OSDN Git Service

2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2
3         * config/s390/s390.c (s390_symref_operand_p): Return false for
4         literal pool references.
5         (s390_check_qrst_address): Update caller.
6
7 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
8
9         * config/i386/predicates.md (ext_register_operand): Check that
10         SUBREG_REG is really a register before looking for REGNO.
11         (reg_not_xmm0_operand): Handle SUBREGs correctly.
12         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
13
14 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
15
16         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
17         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
18         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
19         * print-rtl.c (print_rtx): Likewise.
20         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
22         for ADDR_EXPR with non-addressable object.
23         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
24         (struct dw_val_struct): Add v.val_decl_ref.
25         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
26         Handle DW_OP_GNU_implicit_pointer.
27         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
28         (get_ref_die_offset_label): New function.
29         (implicit_ptr_descriptor): New function.
30         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
31         (loc_descriptor): Likewise.
32         (gen_variable_die): Put even definitions into decl_die_table.
33         (resolve_addr_in_expr): Resolve still unresolved
34         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
35         return false.
36         (dwarf2out_finish): Call output_location_lists after outputting
37         .debug_info and .debug_abbrev instead of before.
38
39 2010-09-09  Roland McGrath  <roland@redhat.com>
40
41         * dwarf2out.c (DWARF_REF_SIZE): Define.
42         (size_of_loc_descr): Use it for DW_OP_call_ref.
43
44 2010-09-09  Alan Modra  <amodra@gmail.com>
45
46         * doc/invoke.text: Reinstate mcmodel=medium.
47         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
48         CMODEL_MEDIUM as default.
49         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
50         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
51         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
52         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
53
54 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
55
56         PR target/45250
57         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
58         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
59         (builtin_longjmp): Likewise.
60         (allocate_stack): Use hard_frame_pointer_rtx instead of
61         frame_pointer_rtx.
62         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
63         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
64         (pa_can_eliminate): Likewise.
65         (TARGET_INTERNAL_ARG_POINTER): Define.
66         (TARGET_CAN_ELIMINATE): Define.
67         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
68         pointer.
69         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
70         (pa_internal_arg_pointer, pa_can_eliminate,
71         pa_initial_elimination_offset): New.
72         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
73         (HARD_FRAME_POINTER_REGNUM): Set to register three.
74         (INITIAL_FRAME_POINTER_OFFSET): Delete.
75         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
76         Define.
77         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
78         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
79         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
80         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
81         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
82         new soft frame pointer.
83         * config/pa/pa64-regs.h: Likewise.
84
85 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
86
87         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
88         numerical constant.
89         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
90
91 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
92
93         PR debug/45531
94         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
95
96 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
97
98         PR debug/45419
99         PR debug/45408
100         * tree-pretty-print.c (dump_generic_node): Disregard top-level
101         qualifiers in otherwise equal MEM_REF pointer types.
102         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
103         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
104
105 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
106
107         PR target/44392
108         * config/arm/arm.md (bswapsi2): Handle condition correctly
109         for armv6 and optimize_size.
110
111 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
112
113         PR other/18555
114         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
115
116 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
117
118         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
119         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
120         ix86_expand_strlen, legitimate_pic_address_disp_p,
121         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
122         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
123         ix86_check_movabs, ix86_secondary_memory_needed): Change function
124         prototype to bool.
125         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
126         return_in_memory_ms_64, ix86_check_movabs,
127         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
128         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
129         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
130         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
131         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
132         ix86_secondary_memory_needed): Change to bool.  Return
133         "true" and "false" values.
134         * config/i386/i386.md: Return "true" and "false" values.
135
136 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
137
138         * doc/sourcebuild.texi (Effective-Target Keywords): Document
139         run_expensive_tests.
140
141 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
142
143         * toplev.c (output_stack_usage): Use lbasename instead of basename.
144
145 2010-09-08  Martin Jambor  <mjambor@suse.cz>
146
147         PR other/45443
148         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
149         at -O3.
150
151 2010-09-08  Richard Guenther  <rguenther@suse.de>
152
153         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
154         (visit): Adjust.
155         (iterative_hash_gimple_type): Likewise.
156         (gimple_type_hash): Likewise.
157         (gimple_register_type): Likewise.
158         (print_gimple_types_stats): Likewise.
159         (free_gimple_type_tables): Likewise.
160
161 2010-09-08  Michael Matz  <matz@suse.de>
162
163         PR tree-optimization/43430
164         * tree-vect-stmts.c (vectorizable_condition): Support multiple
165         copies for conditional statements if it's not part of a reduction.
166
167 2010-09-08  Michael Matz  <matz@suse.de>
168
169         PR tree-optimization/33244
170         * tree-ssa-sink.c (statement_sink_location): Don't sink into
171         empty loop latches.
172
173 2010-09-08  Richard Guenther  <rguenther@suse.de>
174
175         PR tree-optimization/45578
176         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
177         Be more careful when transfering alignment information to
178         the new induction variable.
179         (copy_ref_info): Likewise.
180
181 2010-09-08  Richard Guenther  <rguenther@suse.de>
182
183         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
184         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
185
186 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
187
188         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
189         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
190
191 2010-09-08  Kenneth Zadeck <zadeck@naturalbridge.com>
192
193         PR doc/45587
194         * doc/md.texi: Fixed modes on several standard pattern names.
195
196 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
197
198         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
199         (ashl<mode>3): ...this.
200         (loongson_psra<V_suffix>): Rename to...
201         (ashr<mode>3): ...this.
202         (loongson_psrl<V_suffix>): Rename to...
203         (lshr<mode>3): ...this.
204         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
205         (CODE_FOR_loongson_psllw): Define.
206         (CODE_FOR_loongson_psrlh): Define.
207         (CODE_FOR_loongson_psrlw): Define.
208         (CODE_FOR_loongson_psrah): Define.
209         (CODE_FOR_loongson_psraw): Define.
210
211 2010-09-07  Richard Henderson  <rth@redhat.com>
212
213         * tree-vect-data-refs.c: Include tm_p.h.
214         * Makefile.in (tree-vect-data-refs.o): Update deps.
215         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
216         Move delarations outside #ifdef RTX_CODE.
217
218 2010-09-07  Richard Henderson  <rth@redhat.com>
219
220         * final.c (rest_of_handle_final): Unconditionally do
221         output_function_exception_table before assemble_end_function.
222
223 2010-09-07  Jan Hubicka  <jh@suse.cz>
224
225         * tree-inline.c (tree_inlinable_function_p): Do not test
226         DECL_REPLACEABLE_P.
227         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
228         update_callee_keys, cgraph_decide_inlining): Test function availability.
229         * cif-code.def (OVERWRITABLE): New code.
230
231 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
232             Jack Howarth <howarth@bromo.med.uc.edu>
233
234         PR target/36502
235         PR target/42313
236         PR target/44651
237         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
238         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
239         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
240         MAX macro.
241
242 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
243
244         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
245         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
246
247 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
248
249         * config.gcc: Don't append t-android for Android targets.
250
251         * config/t-android: Removed.
252
253 2010-09-07  Richard Henderson  <rth@redhat.com>
254
255         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
256         * doc/tm.texi.in: Add doc marker.
257         * doc/tm.texi: Rebuild.
258         * except.c (switch_to_exception_section): Always build.
259         (output_one_function_exception_table): Move section switch,
260         personality output, and label output ...
261         (output_function_exception_table): ... here.  Use the new
262         personality hook.
263
264         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
265         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
266         TARGET_ASM_INIT_SECTIONS): New.
267         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
268         make static.
269         (TARGET_ASM_UNWIND_EMIT): Update to match.
270         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
271
272         * config/arm/arm.c (arm_asm_emit_except_personality): New.
273         (arm_asm_init_sections): New.
274         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
275
276 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
277
278         * config/arm/arm.md: Remove unused variable.
279
280 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
281
282         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
283         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
284         (m32r_memory_move_cost): New function.
285
286 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
287
288         * config.gcc: Append t-android for Android targets.
289
290         * config/t-android: New.
291
292 2010-09-07  Richard Henderson  <rth@redhat.com>
293
294         * target.def (unwind_emit_before_insn): New hook.
295         * doc/tm.texi.in: Add @hook marker for it.
296         * doc/tm.texi: Rebuild.
297         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
298
299 2010-09-07  Martin Jambor  <mjambor@suse.cz>
300
301         PR fortran/43665
302         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
303         are any type attributes.
304
305 2010-09-07  Jan Hubicka  <jh@suse.cz>
306
307         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
308         array_ref_low_bound in string access folding.
309
310 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
311
312         PR target/45206
313         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
314         eh_return fixup sequence.
315
316 2010-09-07  Jan Hubicka  <jh@suse.cz>
317
318         * gimple-fold.c (maybe_fold_reference): Verify that operand is
319         gimple_min_invariant.
320
321 2010-09-07  Richard Guenther  <rguenther@suse.de>
322
323         PR middle-end/45569
324         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
325         nor CONSTRUCTOR can trap.
326         * tree-complex.c (update_complex_assignment): Update EH info.
327
328 2010-09-07  Richard Guenther  <rguenther@suse.de>
329
330         PR middle-end/45569
331         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
332         * passes.c (execute_function_todo): Do not verify anything if
333         we saw errors.
334
335 2010-09-07  Richard Guenther  <rguenther@suse.de>
336
337         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
338
339 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
340
341         PR target/43137
342         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
343         New define_mode_attrs.
344         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
345         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
346         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
347         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
348         Remove pool_range attribute.
349         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
350         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
351         pool_range and neg_pool_range attributes.
352         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
353         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
354         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
355
356 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
357
358         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
359         check glibc.
360
361 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
362
363         PR target/22152
364         * config/i386/mmx.md (*mov<mode>_internal_rex64,
365         *mov<mode>_internal_avx, *mov<mode>_internal,
366         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
367         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
368
369 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
370
371         * c-typeck.c (do_warn_double_promotion): Remove.
372         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
373         Objective-C++ too.
374
375 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
376
377         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
378         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
379         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
380         argument type to reg_class_t. Change result type to bool.
381         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
382
383 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
384
385         PR libobjc/19850
386         * gthr-posix.h (__gthread_objc_thread_detach): Use
387         _objc_thread_attribs when detaching a thread.
388         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
389
390 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
391
392         PR target/45524
393         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
394         * configure: Regenerated.
395
396 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
397
398         * combine.c (try_combine): Set subst_low_luid to i0.
399
400 2010-09-06  Richard Guenther  <rguenther@suse.de>
401
402         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
403         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
404         (build_aligned_type): Declare.
405         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
406         (check_aligned_type): New function.
407         (build_aligned_type): Likewise.
408         * expr.c (expand_assignment): Handle misaligned stores via
409         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
410         (expand_expr_real_1): Likewise.
411         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
412         * tree-vect-stmts.c (vectorizable_store): Do not build
413         MISALIGNED_INDIRECT_REF but initialize alignment information.
414         (vectorizable_load): Likewise.
415         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
416         handling.
417         * cfgexpand.c (expand_debug_expr): Likewise.
418         * dwarf2out.c (loc_list_from_tree): Likewise.
419         * fold-const.c (maybe_lvalue_p): Likewise.
420         (operand_equal_p): Likewise.
421         (build_fold_addr_expr_with_type_loc): Likewise.
422         * gimplify.c (gimplify_addr_expr): Likewise.
423         (gimplify_expr): Likewise.
424         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
425         (verify_gimple_assign_single): Likewise.
426         * tree-dump.c (dequeue_and_dump): Likewise.
427         (tree_could_trap_p): Likewise.
428         * tree-predcom.c (ref_at_iteration): Likewise.
429         * tree-pretty-print.c (dump_generic_node): Likewise.
430         (op_code_prio): Likewise.
431         (op_symbol_code): Likewise.
432         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
433         * tree-ssa-loop-im.c (for_each_index): Likewise.
434         (gen_lsm_tmp_name): Likewise.
435         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
436         (find_interesting_uses_address): Likewise.
437         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
438         * tree-ssa-operands.c (get_expr_operands): Likewise.
439         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
440         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
441         (ao_ref_init_from_vn_reference): Likewise.
442         * tree.c (staticp): Likewise.
443         (build1_stat): Likewise.
444         (reference_alias_ptr_type): Likewise.
445         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
446         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
447         MISALIGNED_INDIRECT_REF handling.
448
449 2010-09-06  Richard Guenther  <rguenther@suse.de>
450
451         PR tree-optimization/45534
452         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
453         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
454         on the target.
455         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
456         valid on the target.
457
458 2010-09-06  Andreas Schwab  <schwab@redhat.com>
459
460         * configure.ac: Quote argument of AC_MSG_WARN.
461         * configure: Regenerate.
462
463 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
464
465         * sel-sched.c (move_cond_jump): Correct arguments to
466         maybe_tidy_empty_bb.
467         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
468
469 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
470
471         PR rtl-optimization/44919
472         * sel-sched.c (move_cond_jump): Remove assert, check that
473         the several blocks case can only happen with mutually exclusive
474         insns instead.  Rewrite the movement code to support moving through
475         several basic blocks.
476
477 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
478
479         * config/i386/i386.md (iptrsize): New mode attribute.
480         (tp_seg): Ditto.
481         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
482         mode iterator.
483         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
484         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
485         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
486         (stack_tls_protect_set_<mode>): Ditto from
487         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
488         of thread base pointer load.
489         (stack_tls_protect_test_<mode>): Ditto from
490         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
491         of thread base pointer load.
492         (stack_protect_set): Rewrite using indirect functions.
493         (stack_protect_test): Ditto.
494         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
495         (ix86_print_operand): Handle '@'.
496
497 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
498
499         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
500         MINUS_EXPR.
501
502 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
503
504         * doc/invoke.texi: Document -Wdouble-promotion.
505         * c-typeck.c (convert_arguments): Check for implicit conversions
506         from float to double.
507         (do_warn_double_promotion): New function.
508         (build_conditional_expr): Use it.
509         (build_binary_op): Likewise.
510
511 2010-09-05  Richard Guenther  <rguenther@suse.de>
512
513         PR tree-optimization/45535
514         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
515         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
516         dereferencing it.
517         (indirect_refs_may_alias_p): Likewise.
518
519 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
520
521         * config/sh/sh.c (sh_option_override): Make static.
522         Adjust comments.  Declare.
523         (sh_function_value_regno_p): Likewise.
524         (sh_register_move_cost): Modify the arguments, make static.
525         Adjust comments.  Declare.
526         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
527         TARGET_FUNCTION_VALUE_REGNO_P): Define.
528         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
529         REGISTER_MOVE_COST): Delete.
530         * config/sh/sh-protos.h (sh_override_options): Delete.
531         (sh_register_move_cost): Delete.
532         (sh_function_value_regno_p): Delete.
533
534 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
535
536         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
537         m32r_function_value_regno_p): New functions.
538         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
539         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
540         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
541         FUNCTION_VALUE_REGNO_P): Remove.
542
543 2010-09-04  Jan Hubicka  <jh@suse.cz>
544
545         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
546         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
547         fold_read_from_constant_string.
548
549         * gimple.h (canonicalize_constructor_val): Declare.
550         * gimple-fold.c (canonicalize_constructor_val): New function.
551         (get_symbol_constant_value):Use it.
552         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
553
554 2010-09-04  Jan Hubicka  <jh@suse.cz>
555
556         * tree-switch-conversion.c (build_one_array): Set constructor to be
557         static.
558         * varpool.c (varpool_finalize_decl): Compute const_value_known.
559
560 2010-09-04  Richard Guenther  <rguenther@suse.de>
561
562         PR bootstrap/45519
563         * tree-flow.h (force_gimple_operand_1): Declare.
564         (force_gimple_operand_gsi_1): Likewise.
565         * gimplify.c (force_gimple_operand_1): New worker taking a
566         gimple predicate for ...
567         (force_gimple_operand): ... which now wraps it.
568         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
569         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
570         last change.
571         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
572         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
573         (create_mem_ref): Likewise.
574
575 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
576
577         * config/i386/predicates.md (sse_reg_operand): New predicate.
578         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
579         predicate for operand 1.
580         (XFmode push splitter): Use fp_register_operand predicate
581         for operand 1.
582         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
583         (SF-DF float_extend push splitter): Add reload_completed insn
584         predicate.
585         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
586         MODEF mode macro.  Add reload_completed insn predicate.
587
588 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
589
590         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
591         (struct df_extract_ref): Remove.
592         (union df_ref_d): Remove extract_ref member.
593         (df_ref_create): Remove last three arguments.
594         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
595         * df-scan.c (df_ref_record): Remove last three arguments, do not
596         pass them to df_ref_create_structure.
597         (df_uses_record): Remove first and last three arguments.  Replace
598         first argument with DF_REF_REGULAR, adjust calls to remove the
599         width, offset and mode.  Always call recursively on the second
600         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
601         (df_ref_create_structure): Remove first argument.
602         (struct df_scan_problem_data): Remove ref_extract_pool.
603         (df_scan_free_internal): Do not free it.
604         (df_scan_alloc): Do not allocate it.
605         (df_ref_create): Remove last three arguments, do not pass them to
606         df_ref_create_structure.
607         (df_free_ref): Remove DF_REF_EXTRACT case.
608         (df_notes_rescan): Adjust call to df_uses_record.
609         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
610         Remove DF_REF_EXTRACT case.
611         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
612         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
613         and SUBREG definitions.
614         (df_get_conditional_uses): Remove references to width/offset/mode,
615         adjust call to df_ref_create_structure.
616         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
617         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
618         calls to df_uses_record and df_ref_record.
619         * fwprop.c (update_df): Remove references to width/offset/mode,
620         adjust call to df_ref_create.
621
622 2010-09-03  Jan Hubicka  <jh@suse.cz>
623
624         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
625         (build_cdtor_fns): Update use of build_cdtor.
626
627 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
628
629         * doc/options.texi (SeparateAlias): Document.
630         * opt-functions.awk (switch_flags): Handle SeparateAlias.
631         * opth-gen.awk: Generate enumeration names for options marked
632         SeparateAlias, but not for those marked Ignore.
633         * opts-common.c (generate_canonical_option): Don't output separate
634         argument for options marked CL_SEPARATE_ALIAS.
635         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
636         * opts.h (CL_SEPARATE_ALIAS): New.
637         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
638         CL_COMMON): Adjust definitions.
639         * config/i386/darwin.opt, config/mips/sde.opt: New.
640         * common.opt (fdump-final-insns): New.
641         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
642         i386/darwin.opt.
643         (mips*-sde-elf*): Add mips/sde.opt.
644         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
645         -mno-data-in-code and -mcode-xonly here.
646         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
647         * gcc.c (option_map): Add "j" to --dump entry.
648         (translate_options): Don't translate -d to -foutput-class-dir= here.
649
650 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
651
652         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
653         DR_IS_WRITE.
654         (compute_all_dependences): Same.
655         (create_rdg_edge_for_ddr): Same.
656         * tree-data-ref.h (DR_IS_WRITE): New.
657         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
658         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
659         (write_memrefs_written_at_least_once): Same.
660         * tree-predcom.c (suitable_component_p): Same.
661         (determine_roots_comp): Same.
662         (execute_load_motion): Same.
663         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
664         (vect_enhance_data_refs_alignment): Same.
665         (vect_analyze_group_access): Same.
666
667 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
668
669         PR testsuite/42843
670         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
671         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
672
673 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
674
675         * dwarf2out.c (file scope): Remove #if0'd code.
676         (gen_subprogram_die): Same.
677
678 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
679
680         PR middle-end/45484
681         * dwarf2out.c (flush_queued_reg_saves): Rename to...
682         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
683         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
684         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
685         * config/i386/i386.c (output_set_got): Call it.
686
687 2010-09-03  Michael Matz  <matz@suse.de>
688
689         PR middle-end/45415
690         * tree-sra.c (sra_modify_assign): If we modify the statement,
691         say so.
692
693         * tree-ssa.c (verify_ssa): Check number of operands and links
694         per statement to agree.
695
696 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
697             Iain Sandoe  <iains@gcc.gnu.org>
698
699         PR target/45476
700         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
701         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
702         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
703
704 2010-09-03  Richard Guenther  <rguenther@suse.de>
705
706         * lto-streamer-out.c (output_function): Output function
707         start and end loci.
708         * lto-streamer-in.c (input_function): Input function start
709         and end loci.
710
711 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
712
713         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
714         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
715         * configure: Regenerate.
716         * aclocal.m4: Regenerate.
717
718 2010-09-03  Jan Hubicka  <jh@suse.cz>
719
720         PR lto/44812
721         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
722         on functions/variables in other partition.
723
724 2010-09-03  Jan Hubicka  <jh@suse.cz>
725
726         * cgraph.h (struct varpool_node): Add const_value_known.
727         (varpool_decide_const_value_known): Declare.
728         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
729         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
730         (input_varpool_node): Restore const_value_known.
731         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
732         initializer folding.
733         * ipa.c (ipa_discover_readonly_nonaddressable_var,
734         function_and_variable_visibility): Compute const_value_known.
735         * gimple-fold.c (get_symbol_constant_value): Use varpool for
736         initializer folding.
737         * varpool.c (varpool_decide_const_value_known): New function.
738
739 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
740
741         * config/i386/i386.md: Remove empty preparation statements
742         from splitters.
743
744 2010-09-03  Jan Hubicka  <jh@suse.cz>
745
746         * passes.c (rest_of_decl_compilation): Do not add local vars into
747         varpool.
748         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
749         static or extern vars are in varpool.
750         (varpool_finalize_decl): Sanity check that only static vars are
751         finalized.
752
753 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
754
755         PR debug/45500
756         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
757         not just generic vectors with BLKmode.
758
759 2010-09-03  Richard Guenther  <rguenther@suse.de>
760
761         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
762         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
763         * tree.h (TMR_SYMBOL): Remove.
764         (TMR_BASE, TMR_OFFSET): Adjust.
765         (TMR_INDEX2): New.
766         * alias.c (ao_ref_from_mem): Use TMR_BASE.
767         * builtins.c (get_object_alignment): Merge TMR_BASE and
768         TMR_SYMBOL handling.
769         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
770         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
771         handling.  Also allow TARGET_MEM_REF as base address.
772         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
773         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
774         base.  Gimplify TMR_INDEX2.
775         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
776         * tree-dfa.c (get_ref_base_and_extent): Likewise.
777         (get_addr_base_and_unit_offset): Likewise.
778         * tree-eh.c (tree_could_trap_p): Likewise.
779         * tree-pretty-print.c (dump_generic_node): Likewise.
780         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
781         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
782         base to index2.
783         (get_address_description): Reconstruct addres description
784         from merged TMR_BASE and TMR_INDEX2.
785         (maybe_fold_tmr): Fold propagated addresses.
786         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
787         MEM_REF and TARGET_MEM_REF paths.
788         (indirect_refs_may_alias_p): Likewise.
789         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
790         instead of TMR_SYMBOL.
791         * tree-ssa-operands.c (get_tmr_operands): Simplify.
792         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
793         according to changes ...
794         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
795         Split TARGET_MEM_REF into two fields plus the base.
796         * tree.c (mem_ref_offset): Simplify.
797         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
798         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
799         Strip NOPs when folding MEM_REF addresses.
800         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
801         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
802         (fold_gimple_assign): ... not here.
803
804 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
805
806         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
807         * config/mips/mips.c (mips_shift_truncation_mask): New function.
808         (TARGET_SHIFT_TRUNCATION_MASK): Define.
809
810 2010-09-02  Richard Henderson  <rth@redhat.com>
811
812         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
813         instead of readelf in the test.
814         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
815         in the .debug_frame section for coff targets.
816         * configure: Rebuild.
817
818 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
819
820         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
821         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
822         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
823         (m32c_class_likely_spilled_p): Make static. Change argument type to
824         reg_class_t. Change result type to bool.
825
826 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
827
828         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
829         to convert (double)(long) into a single FRIZ instruction or not
830         when -ffast-math is used.
831
832         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
833         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
834         or FRIZ instruction if -ffast-math.
835         * config/rs6000/rs6000.md (friz): Ditto.
836
837         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
838
839 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
840
841         * opth-gen.awk (quote, comma): Remove unused variables.
842
843 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
844
845         * arm.c (arm_override_options): Correct fall-back code to use
846         SUBTARGET_CPU_DEFAULT.
847
848 2010-09-02  Julian Brown  <julian@codesourcery.com>
849
850         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
851         unspecs.
852         (vcond<mode>, vcondu<mode>): New expanders.
853         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
854         comparisons with zero.
855         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
856         * config/arm/constraints.md (Dz): New constraint.
857
858 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
859
860         * target.def (class_likely_spilled_p): New hook.
861         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
862         * doc/tm.texi: Regenerate.
863         * targhooks.c (default_class_likely_spilled_p): New function.
864         * targhooks.h (default_class_likely_spilled_p): Declare.
865         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
866         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
867         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
868         Use fixed_reg_set instead of fixed_regs.
869         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
870         * calls.c (avoid_likely_spilled_reg): Ditto.
871         * ira-conflicts.c (ira_build_conflicts): Ditto.
872         * ira.c (update_equiv_regs): Ditto.
873         * mode-switching.c (create_pre_exit): Ditto.
874         * regmove.c (find_matches): Ditto.
875         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
876         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
877         (small_register_class_p): New inline function.
878         (push_secondary_reload, find_reusable_reload, find_reloads): Use
879         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
880
881         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
882         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
883         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
884
885 2010-09-02  Richard Guenther  <rguenther@suse.de>
886
887         PR tree-optimization/44937
888         PR tree-optimization/45412
889         * ipa-split.c (split_function): Properly remove PHI nodes.
890
891 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
892
893         * opts.h (struct cl_option): Add warn_message field.
894         (struct cl_decoded_option): Add warn_message field.
895         * doc/options.texi (Ignore, Warn): Document.
896         * opt-functions.awk (needs_state_p): Don't consider aliases or
897         ignored options to need state saved.
898         * optc-gen.awk: Handle Warn and Ignore.
899         * opth-gen.awk: Output OPT_SPECIAL_ignore.
900         * opts-common.c (decode_cmdline_option): Set warn_message field.
901         Handle ignored options.
902         (decode_cmdline_options_to_array, generate_option,
903         generate_option_input_file): Set warn_message field.
904         (read_cmdline_option): Generate warnings from warn_message field.
905         Handle ignored options.
906         * common.opt (Wunreachable-code, fargument-alias,
907         fargument-noalias, fargument-noalias-global,
908         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
909         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
910         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
911         ftree-salias): Mark Ignore.
912         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
913         -mintel-syntax and -mno-intel-syntax here.
914         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
915         using Warn.
916         * opts.c (common_handle_option): Don't handle options marked as
917         ignored.
918         (enable_warning_as_error): Handle ignored options.
919
920 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
921
922         PR driver/44076
923         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
924         alias_target fields.
925         * opt-functions.awk (opt_sanitized_name): Don't handle
926         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
927         * optc-gen.awk: Generate alias fields.
928         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
929         Don't generate such constants for aliases.
930         * opts-common.c (generate_canonical_option): New.
931         (decode_cmdline_option): Handle aliases.  Use
932         generate_canonical_option for known options instead of copying the
933         input option text.
934         * doc/options.texi (Alias): Document.
935         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
936         fstack-check, specs): Mark as aliases.
937         * gcc.c (driver_handle_option): Canonicalize -L options to joined
938         arguments.
939         (driver_handle_option): Don't handle OPT_specs.
940         * opts.c (common_handle_option): Don't handle options marked as
941         aliases.
942         (enable_warning_as_error): Handle aliases.
943         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
944         OPT_Wlarger_than_eq.
945         * tree-optimize.c (tree_rest_of_compilation): Use
946         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
947
948 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
949
950         * config/i386/i386.md (nonmemory_operand): New mode attribute.
951         (push memory peephole2): Macroize peepholes using SWI mode iterator.
952         (move immediate to memory peephole2): Macroize peepholes using
953         SWI124 mode iterator.
954         (non-pairable NOT peephole2): Macroize peepholes using SWI124
955         mode iterator.
956         (simple lea add peephole2): Macroize peepholes using SWI48
957         mode iterator.
958         (simple lea mult peephole2): Ditto.
959         (imul by 3,5,9 to lea peephole2): Ditto.
960         (mov $-1, reg peephole2): Macroize peepholes using SWI248
961         mode iterator.
962         (imul $32bit_imm,mem,reg peephole2): Ditto.
963         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
964
965 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
966
967         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
968
969 2010-09-02  Olivier Hainque  <hainque@adacore.com>
970
971         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
972         (allocno_priority_compare_func): Use it instead of a straight
973         difference computation over priorities.
974
975 2010-09-02  Andi Kleen  <ak@linux.intel.com>
976
977         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
978
979 2010-09-02  Ira Rosen  <irar@il.ibm.com>
980
981         * tree-vectorizer.h (get_later_stmt): New function.
982         (vect_analyze_data_ref_dependences): Add argument.
983         * tree-vect-loop.c (vect_analyze_loop): Update call to
984         vect_analyze_data_ref_dependences.
985         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
986         New function.
987         (vect_analyze_data_ref_dependence): Add argument for basic block
988         dependencies. Check dependencies in basic block vectorization.
989         (vect_analyze_data_ref_dependences): Add argument and update call to
990         vect_analyze_data_ref_dependences.
991         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
992         (vect_bb_vectorizable_with_dependencies): New.
993         (vect_slp_analyze_bb): Check dependencies in basic block.
994         (vect_schedule_slp_instance): Insert stores before the last store in
995         SLP instance.
996
997 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
998
999         PR target/45476
1000         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
1001         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1002
1003 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
1004
1005         PR middle-end/45458
1006         * bb-reorder.c (add_labels_and_missing_jumps): Treat
1007         bbs ending with throwing insns like blocks ending with a call.
1008         (fix_up_fall_thru_edges): Likewise.
1009
1010 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
1011
1012         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
1013         (m32c_function_arg_advance): Delete.
1014         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1015         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
1016         comments.  Take a const_tree and a bool.  Declare.
1017         (m32c_function_arg_advance): Likewise.
1018         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1019
1020 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1021
1022         PR target/45476
1023         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
1024         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
1025         * config/i386/mingw32.h: ... here.
1026
1027 2010-09-01  Andi Kleen  <ak@linux.intel.com>
1028
1029         PR lto/45475
1030         * lto-streamer-in.c (lto_input_ts_target_option): Add.
1031         (lto_input_tree_pointers): Call lto_input_ts_target_option.
1032         * lto-streamer-out (lto_output_ts_target_option): Add.
1033         (lto_output_tree_pointers): Call lto_output_ts_target_option.
1034
1035 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
1036
1037         PR/target 45452
1038         * config/i386/cygwin.h: Change order of specified import libraries.
1039         * config/i386/mingw32.h: Likewise.
1040         * config/i386/t-cygwin: Likewise.
1041         * config/i386/t-mingw32: Likewise.
1042         * config/i386/t-mingw-w32: Likewise.
1043         * config/i386/t-mingw-w64: Likewise.
1044
1045 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1046
1047         * config/arm/neon-schedgen.ml (core): New type.
1048         (allCores): List of supported cores.
1049         (availability_table): Add supported cores.
1050         (collate_bypasses): Accept core as a parameter.
1051         (worst_case_latencies_and_bypasses): Accept core as a parameter.
1052         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
1053         and coreStr to get tune attribute and prefix for functional units.
1054         (emit_bypasses): Accept core name and use it.
1055         (calculate_per_core_availability_table): New.
1056         (filter_core): New.
1057         (calculate_core_availability_table): New.
1058         (main): Use calculate_core_availablity_table.
1059         * config/arm/cortex-a8-neon.md: Update copyright year.
1060         Regenerated from ml file and merged in.
1061         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
1062         cortex_a8_neon_mrc.
1063
1064 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
1065
1066         * Makefile.in (tree-switch-conversion.o): Update dependencies.
1067
1068 2010-09-01  Richard Guenther  <rguenther@suse.de>
1069
1070         * alias.c (ao_ref_from_mem): Adjust.
1071         * builtins.c (get_object_alignment): Likewise.
1072         * cfgexpand.c (expand_debug_expr): Likewise.
1073         * gimple.c (get_base_address): Likewise.
1074         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1075         (get_addr_base_and_unit_offset): Likewise.  Fix for
1076         both TMR_SYMBOL and TMR_BASE being set.
1077         * tree-eh.c (tree_could_trap_p): Likewise.
1078         * gimplify.c (gimplify_expr): Do not attempt to gimplify
1079         TMR_SYMBOL.  Always gimplify TMR_BASE.
1080         * tree-cfg.c (verify_types_in_gimple_reference): Verify
1081         TMR_BASE if there is a TMR_SYMBOL.
1082         * tree-pretty-print.c (dump_generic_node): Adjust.
1083         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
1084         (tree_mem_ref_addr): Likewise.
1085         (create_mem_ref_raw): Likewise.
1086         (move_fixed_address_to_symbol): Likewise.
1087         (create_mem_ref): Likewise.
1088         (dump_mem_address): Likewise.
1089         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
1090         Fix for both TMR_SYMBOL and TMR_BASE being set.
1091         (indirect_refs_may_alias_p): Likewise.
1092         * tree-ssa-operands.c (get_tmr_operands): Adjust.
1093         * tree.def (TARGET_MEM_REF): Adjust documentation.
1094
1095 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1096
1097         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
1098         Rename from X86_TUNE_ADD_ESP_4.
1099         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
1100         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
1101         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
1102         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
1103         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
1104         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
1105         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
1106         * config/i386/i386.c (initial_ix86_tune_features)
1107         <X86_TUNE_SINGLE_POP>: Invert members.
1108         <X86_TUNE_DOUBLE_POP>: Ditto.
1109         <X86_TUNE_SINGLE_PUSH>: Ditto.
1110         <X86_TUNE_DOUBLE_PUSH>: Ditto.
1111         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
1112         No longer exported.
1113         (push peephole2 patterns): Macroize peepholes using P mode iterator.
1114         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
1115         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
1116         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
1117
1118 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1119
1120         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
1121         a volatile LHS if the constructor has only one element.
1122
1123 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
1124
1125         PR bootstrap/45321
1126         * tree.c (stdarg_p): Make fntype parameter const.
1127         * tree.h (stdarg_p): Likewise.
1128         (function_args_iterator): Remove unused fntype field.
1129         (function_args_iter_init): Do not initialize fntype
1130         field.  Make fntype parameter const.
1131
1132 2010-09-01  Richard Guenther  <rguenther@suse.de>
1133
1134         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
1135         estimate.
1136         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
1137         (execute_vrp): Compute number of iteration estimates.
1138         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
1139         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
1140         * tree-data-ref.c (estimated_loop_iterations): Adjust.
1141         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1142         Infer loop bounds from undefined behavior based on a new parameter.
1143         (estimate_numbers_of_iterations): Likewise.
1144         (scev_probably_wraps_p): Adjust.
1145         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
1146
1147 2010-09-01  Nick Clifton  <nickc@redhat.com>
1148
1149         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
1150         where appropriate.
1151         (xstormy16_legitimate_address_p): Use true and false instead of 1
1152         and 0.
1153         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
1154         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
1155         magic constant 2.
1156         (xstormy16_expand_call): Fix comment at start of function.
1157
1158 2010-09-01  Nick Clifton  <nickc@redhat.com>
1159
1160         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
1161         when pushing accumulator register.
1162         (rx_get_stack_layout): Always save call clobbered registers inside
1163         interrupt handlers.
1164         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
1165
1166 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1167
1168         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
1169         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1170
1171         * libgcc-std.ver (GCC_4.6.0): Define version.
1172
1173 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1174
1175         * tree-nested.c (convert_all_function_calls): Iterate until after the
1176         sum of static chains in the nest doesn't change.
1177
1178 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
1179
1180         * config/m32c/m32c.c (classes_intersect): Remove.
1181         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
1182         reg_classes_intersect_p instead of classes_intersect.
1183         (class_can_hold_mode): Change arguments type from enum reg_class to
1184         reg_class_t.  Use reg_class_contents instead of class_contents.
1185         (m32c_register_move_cost): Make static. Change arguments type from
1186         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
1187         classes_intersect. Use reg_class_contents instead of class_contents.
1188         (m32c_memory_move_cost): Make static. Change arguments type from
1189         enum reg_class to reg_class_t.
1190         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1191         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1192         * config/m32c/m32c-protos.h (m32c_register_move_cost,
1193         m32c_memory_move_cost): Remove.
1194
1195 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1196
1197         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
1198         (arm_function_arg): Delete.
1199         (arm_needs_doubleword_align): Take a const_tree.
1200         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1201         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
1202         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
1203         (arm_function_arg): Make static.  Take a const_tree and a bool.
1204         (arm_function_arg_advance): Likewise.
1205         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1206
1207 2010-08-31  Andi Kleen  <ak@linux.intel.com>
1208
1209         * common.opt (fwhopr=): Update for -fwhopr=jobserver
1210         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
1211         * lto-wrapper.c (run_gcc): Add jobserver mode.
1212         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
1213         argument.
1214
1215 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
1216
1217         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
1218         (popsi1): Ditto.
1219         (*popdi1_epilogue): Ditto.
1220         (*popsi1_epilogue): Ditto.
1221         (popsi, popdi peephole2 patterns): Update peepholes for changed
1222         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
1223
1224         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
1225         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
1226
1227         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
1228         (override_options): Do not initialize removed ix86_gen_pop1.
1229         (gen_pop): New static function.
1230         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
1231         (release_scratch_register_on_entry): Ditto.
1232         (ix86_restore_reg_using_pop): Ditto.
1233         (ix86_expand_epilogue): Ditto.
1234
1235 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
1236
1237         PR middle-end/45461
1238         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
1239
1240 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1241
1242         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
1243         semicolons.
1244
1245 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1246
1247         * doc/extend.texi: Fix documentation of the return value of
1248         __builtin_choose_expr.
1249
1250 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1251
1252         * config/v850/v850-protos.h (function_arg): Delete.
1253         * config/v850/v850.h (FUNCTION_ARG): Delete.
1254         (FUNCTION_ARG_ADVANCE): Move code to...
1255         * config/v850/v850.c (v850_function_arg_advance): ...here.
1256         (v850_function_arg): Make static.  Take a const_tree and a bool.
1257         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1258
1259 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1260
1261         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
1262         these...
1263         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1264         ...and these...
1265         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
1266         ..to here..
1267         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1268         ...and here.
1269         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1270
1271 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1272
1273         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
1274         Delete.
1275         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1276         * config/rx/rx.c (rx_function_arg_size): Make static.
1277         (rx_function_arg): Likewise.
1278         (rx_function_arg_advance): New function.
1279         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1280
1281 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
1282
1283         * config/arm/arm.c (arm_override_options): Remove superfluous test.
1284         Fix indentation.
1285
1286 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1287
1288         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
1289         (dwarf2out_decl) <CONST_DECL>: Likewise.
1290
1291 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
1292
1293         Stack usage support
1294         * common.opt (-fstack-usage): New option.
1295         * doc/invoke.texi (Debugging options): Document it.
1296         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
1297         allocate_dynamic_stack_space.
1298         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
1299         and propagate it to allocate_dynamic_stack_space.
1300         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
1301         * calls.c (initialize_argument_information): Pass TRUE as 4th
1302         argument to allocate_dynamic_stack_space.
1303         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
1304         to 1 when pushing a variable-sized argument onto the stack.  Pass
1305         TRUE as 4th argument to allocate_dynamic_stack_space.
1306         Update current_function_pushed_stack_size.
1307         (emit_library_call_value_1): Likewise.
1308         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
1309         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
1310         attempt to find an upper bound.  Remove redundant code for the
1311         SETJMP_VIA_SAVE_AREA case.
1312         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
1313         * function.h (struct stack_usage): New structure.
1314         (current_function_static_stack_size): New macro.
1315         (current_function_dynamic_stack_size): Likewise.
1316         (current_function_pushed_stack_size): Likewise.
1317         (current_function_dynamic_alloc_count): Likewise.
1318         (current_function_has_unbounded_dynamic_stack_size): Likewise.
1319         (current_function_allocates_dynamic_stack_space): Likewise.
1320         (struct function): Add new field 'su'.
1321         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
1322         add the value of the dynamic offset to the dynamic stack usage.
1323         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
1324         for variable-sized objects.
1325         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
1326         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
1327         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
1328         BUILT_IN_ALLOCA for variable-sized objects.
1329         * output.h (output_stack_usage): Declare.
1330         * toplev.c (stack_usage_file): New file pointer.
1331         (output_stack_usage): New function.
1332         (open_auxiliary_file): Likewise.
1333         (lang_dependent_init): Open file if flag_stack_usage is set.
1334         (finalize): Close file if stack_usage_file is not null.
1335         * tree.h (ALLOCA_FOR_VAR_P): New macro.
1336         * config/alpha/alpha.c (compute_frame_size): New function.
1337         (alpha_expand_prologue): Use it.
1338         (alpha_start_function): Likewise.
1339         (alpha_expand_epilogue): Likewise.  Set stack usage info.
1340         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1341         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1342         * config/mips/mips.c (mips_expand_prologue): Likewise.
1343         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1344         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1345         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1346
1347 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
1348
1349         PR tree-optimization/45427
1350         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
1351         Handle the case that the exit is never taken correctly.
1352         (number_of_iterations_ne): Pass exit_must_be_taken to
1353         number_of_iterations_ne_max.
1354
1355 2010-08-30  Catherine Moore  <clm@codesourcery.com>
1356
1357         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
1358         Infer -mdspr2 for the the 74K.
1359
1360 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
1361
1362         PR debug/45419
1363         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
1364
1365         PR middle-end/45423
1366         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
1367         and TRUTH_{AND,OR,XOR}_EXPR.
1368         * c-parser.c (c_parser_omp_atomic): Handle boolean
1369         {PRE,POST}_{INC,DEC}REMENT.
1370
1371 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
1372
1373         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
1374         (function_arg): Delete.
1375         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1376         (FUNCTION_INCOMING_ARG): Delete.
1377         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
1378         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
1379         and a bool.
1380         (function_arg): Rename to...
1381         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
1382         a bool.
1383         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
1384         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1385         (TARGET_FUNCTION_INCOMING_ARG): Define.
1386
1387 2010-08-30  Richard Guenther  <rguenther@suse.de>
1388
1389         PR tree-optimization/21602
1390         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
1391         using points-to information.
1392
1393 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
1396
1397 2010-08-30  Richard Guenther  <rguenther@suse.de>
1398
1399         PR tree-optimization/45449
1400         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
1401         variables.
1402
1403 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
1404
1405         * opts.h (CL_ERR_NEGATIVE): Define.
1406         * opts.c (unknown_option_callback): Don't postpone warnings for
1407         options marked with CL_ERR_NEGATIVE.
1408         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
1409         for negative versions of CL_REJECT_NEGATIVE options.
1410
1411 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
1412
1413         * config/i386/i386.md (zero_extendsidi2_1): Rename from
1414         zero_extendsidi2_32.
1415         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
1416         using SWI12 mode iterator.
1417         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
1418         to define_insn_and_split pattern.
1419         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
1420         using SWI24 mode iterator.
1421         (*zero_extendqi<mode>2_and): Macroize insn from
1422         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
1423         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
1424         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
1425         SWI24 mode iterator.
1426         (*zero_extendqi<mode>2_movzbl): Ditto from
1427         *zero_extendqi{hi,si}2_movzbl.
1428         (extendsidi2_1): Rename from extendsidi2_32.
1429         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
1430         SWI12 mode iterator.
1431
1432 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1433
1434         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
1435         general purpose registers.
1436         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
1437         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
1438         with general purpose registers and memory operands.  Add associated
1439         CCImode post-reload splitter.
1440         * config/ia64/div.md: Change BImode to CCImode throughout.
1441
1442 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         * config/ia64/ia64.md (cstorebi4): Fix thinko.
1445
1446 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
1447
1448         * config/picochip/picochip.c (reorder_var_tracking_notes): This
1449         function was dropping debug insns which caused PR45299.
1450
1451 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
1452
1453         * config/i386/sse.md (extsuffix): New code attribute.
1454         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
1455         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
1456         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
1457         and sse4_1_zero_extendv4qiv4si2.
1458         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
1459         and sse4_1_zero_extendv2qiv2di2.
1460         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
1461         and sse4_1_zero_extendv4hiv4si2.
1462         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
1463         and sse4_1_zero_extendv2hiv2di2.
1464         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
1465         and sse4_1_zero_extendv2siv2di2
1466
1467         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
1468         using any_extend code iterator.
1469         (*avx_<s>mulv8hi3_highpart): Macroize insn from
1470         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
1471         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
1472
1473         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
1474         gen_sse4_1_sign_extend* functions.
1475         (struct builtin_description bdesc_args): Ditto.
1476
1477 2010-08-27  Xinliang David Li  <davidxl@google.com>
1478
1479         PR/45422
1480         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
1481         (iv_ca_set_no_cp): Update used inv expr count.
1482         (iv_ca_set_cp): Ditto.
1483         (iv_ca_new): Initialize new member.
1484         (iv_ca_free): Free memory.
1485
1486 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1487
1488         * config/sh/sh-protos.h (sh_function_arg): Delete.
1489         (sh_function_arg_advance): Delete.
1490         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1491         (PASS_IN_REG_P): Eliminate cast.
1492         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
1493         const_tree and a bool.
1494         (sh_function_arg): Likewise.
1495         (sh_output_mi_thunk): Call sh_function_arg_advance) and
1496         sh_function_arg.
1497         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1498
1499 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
1500             Kaz Kojima  <kkojima@gcc.gnu.org>
1501
1502         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
1503         when possible.
1504         (sh_expand_epilogue): Likewise.
1505         * config/sh/sh.md (movml_push_banked): New insn.
1506         (movml_pop_banked): Likewise.
1507
1508 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
1509
1510         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
1511         gen_regexp_oneof, gen_regexp_sequence): Use the string found
1512         in vector element 0 rather than the original string when there's
1513         only one element.
1514         (gen_regexp): Remove extra semicolon.
1515
1516         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
1517         thumb2_movsf_vfp): Set attribute "insn".
1518         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
1519         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
1520         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
1521         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
1522         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
1523         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
1524         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
1525         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
1526         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
1527         if_not_arith, if_arith_not, cond_move_not): Likewise.
1528
1529 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1530
1531         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
1532         New declaration.
1533         (rs6000_allocate_stack_temp): Ditto.
1534         (rs6000_expand_convert_si_to_sfdf): Ditto.
1535
1536         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
1537         line.  Update the options set if power6 or power7 server/embedded
1538         type options are used.  If we give a warning for no vsx under
1539         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
1540         (rs6000_allocate_stack_temp): New function to allocate a stack
1541         tempoary and adjust the address so it meets either REG+OFFSET or
1542         REG+REG addressing requirements.
1543         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
1544         that they can be used with the LFIWAX/LFIWZX instrucitons.
1545         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
1546         converting signed/unsigned SImode to either SFmode/DFmode.
1547
1548         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
1549         whether certain instructions can be generated.
1550         (TARGET_FCTIDZ): Ditto.
1551         (TARGET_STFIWX): Ditto.
1552         (TARGET_LFIWAX): Ditto.
1553         (TARGET_LFIWZX): Ditto.
1554         (TARGET_FCFIDS): Ditto.
1555         (TARGET_FCFIDU): Ditto.
1556         (TARGET_FCFIDUS): Ditto.
1557         (TARGET_FCTIDUZ): Ditto.
1558         (TARGET_FCTIWUZ): Ditto.
1559
1560         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
1561         (UNSPEC_FCTID): Ditto.
1562         (UNSPEC_LFIWAX): Ditto.
1563         (UNSPEC_LFIWZX): Ditto.
1564         (UNSPEC_FCTIWUZ): Ditto.
1565         (rreg): Use correct constraints.
1566         (SI_CONVERT_FP): New mode attribute for floating point conversion
1567         tests.
1568         (E500_CONVERT): Ditto.
1569         (lfiwax): New insns for converting from integer to floating point
1570         utilizing newer instructions.  Attempt to optimize conversions
1571         that come from memory so that we don't load the value into a GPR,
1572         spill it to the stack and reload it into a FPR.
1573         (floatsi<mode>2_lfiwax): Ditto.
1574         (floatsi<mode>2_lfiwax_mem): Ditto.
1575         (floatsi<mode>2_lfiwax_mem2): Ditto.
1576         (lfiwzx): Ditto.
1577         (floatunssi<mode>2_lfiwzx): Ditto.
1578         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1579         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1580         (floatdidf2_mem): Ditto.
1581         (floatunsdidf2_fcfidu): Ditto.
1582         (floatunsdidf2_mem): Ditto.
1583         (floatunsdisf2): Ditto.
1584         (floatunsdisf2_fcfidus): Ditto.
1585         (floatunsdisf2_mem): Ditto.
1586         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
1587         Use FCFID on 32-bit hosts that support it.
1588         (floatsidf2_internal): Ditto.
1589         (floatunssisf2): Ditto.
1590         (floatunssidf2): Ditto.
1591         (floatunssidf2_internal): Ditto.
1592         (floatsisf2): Ditto.
1593         (floatdidf2): Ditto.
1594         (floatdidf2_fpr): Ditto.
1595         (floatunsdidf2): Ditto.
1596         (floatdisf2): Ditto.
1597         (floatdisf2_fcfids): Ditto.
1598         (floatdisf2_internal1): Ditto.
1599         (fixuns_truncsfsi2): Delete, merge into common pattern for both
1600         SF/DF.  Add power7 support.
1601         (fix_truncsfsi2): Ditto.
1602         (fixuns_truncdfsi2): Ditto.
1603         (fixuns_truncdfdi2): Ditto.
1604         (fix_truncdfsi2): Ditto.
1605         (fix_truncdfsi2_internal): Ditto.
1606         (fix_truncdfsi2_internal_gfxopt): Ditto.
1607         (fix_truncdfsi2_mfpgpr): Ditto.
1608         (fctiwz): Ditto.
1609         (btruncdf2): Ditto.
1610         (btruncdf2_fpr): Ditto.
1611         (btructsf2): Ditto.
1612         (ceildf2): Ditto.
1613         (ceildf2_fpr): Ditto.
1614         (ceilsf2): Ditto.
1615         (floordf2): Ditto.
1616         (floordf2_fpr): Ditto.
1617         (floorsf2): Ditto.
1618         (rounddf2): Ditto.
1619         (rounddf2_fpr): Ditto.
1620         (roundsf2): Ditto.
1621         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
1622         (fix_trunc<mode>di2): Ditto.
1623         (fixuns_trunc<mode>si2): Ditto.
1624         (fixuns_trunc<mode>di2): Ditto.
1625         (fctiwz_<mode>): Ditto.
1626         (btrunc<mode>2): Ditto.
1627         (btrunc<mode>2_fpr): Ditto.
1628         (ceil<mode>2): Ditto.
1629         (ceil<mode>2_fpr): Ditto.
1630         (floor<mode>2): Ditto.
1631         (float<mode>2_fpr): Ditto.
1632         (round<mode>2): Ditto.
1633         (round<mode>2_fpr): Ditto.
1634         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
1635         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1636         (fix_truncdfsi2_internal): Ditto.
1637         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
1638         converted value on stack, loaded into GPR, and then stored into
1639         the final destination.
1640         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
1641         FCTIDZ.
1642         (lrint<mode>di2): New insn, provide the lrint builtin functions.
1643         (ftruncdf2): Delete, unused.
1644         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
1645
1646         * config/rs6000/vsx.md (toplevel): Update copyright year.
1647         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
1648         (VSr3): Ditto.
1649
1650 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
1651             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1652
1653         * gengtype.c (output_type_enum): Test the right union member.
1654
1655 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
1656
1657         PR target/41484
1658         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
1659         operands for operand 1.
1660         (sse4_1_extendv4qiv4si2): Ditto.
1661         (sse4_1_extendv2qiv2di2): Ditto.
1662         (sse4_1_extendv4hiv4si2): Ditto.
1663         (sse4_1_extendv2hiv2di2): Ditto.
1664         (sse4_1_extendv2siv2di2): Ditto.
1665         (sse4_1_zero_extendv8qiv8hi2): Ditto.
1666         (sse4_1_zero_extendv4qiv4si2): Ditto.
1667         (sse4_1_zero_extendv2qiv2di2): Ditto.
1668         (sse4_1_zero_extendv4hiv4si2): Ditto.
1669         (sse4_1_zero_extendv2hiv2di2): Ditto.
1670         (sse4_1_zero_extendv2siv2di2): Ditto.
1671         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
1672         (*sse4_1_extendv4qiv4si2): Ditto.
1673         (*sse4_1_extendv2qiv2di2): Ditto.
1674         (*sse4_1_extendv4hiv4si2): Ditto.
1675         (*sse4_1_extendv2hiv2di2): Ditto.
1676         (*sse4_1_extendv2siv2di2): Ditto.
1677         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
1678         (*sse4_1_zero_extendv4qiv4si2): Ditto.
1679         (*sse4_1_zero_extendv2qiv2di2): Ditto.
1680         (*sse4_1_zero_extendv4hiv4si2): Ditto.
1681         (*sse4_1_zero_extendv2hiv2di2): Ditto.
1682         (*sse4_1_zero_extendv2siv2di2): Ditto.
1683
1684 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1685
1686         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
1687         (mips_function_arg): Delete.
1688         (mips_function_arg_boundary): Take a const_tree.
1689         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
1690         (mips_arg_info): Likewise.
1691         (mips_setup_incoming_varargs): Call mips_function_arg_advance
1692         instead of FUNCTION_ARG_ADVANCE.
1693         (mips_function_arg_advance): Adjust prototype.  Make static.
1694         (mips_function_arg): Likewise.
1695         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1696         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1697
1698 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1699
1700         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1701         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
1702         (function_arg): Delete.
1703         (function_arg_boundary): Take a const_tree.
1704         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
1705         (rs6000_spe_function_arg): Likewise.
1706         (rs6000_parm_start): Likewise.
1707         (rs6000_arg_size): Likewise.
1708         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
1709         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
1710         (rs6000_mixed_function_arg): Likewise.
1711         (function_arg): Rename to...
1712         (rs6000_function_arg): ...this.
1713         (function_arg_advance): Rename to...
1714         (rs6000_function_arg_advance_1): ...this
1715         (rs6000_function_arg_advance): New function.  Call it.
1716         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
1717         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
1718         (rs6000_function_value): Likewise.
1719         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1720
1721 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1722
1723         * config/arm/arm.md (enabled): Test the value of arch_enabled
1724         rather than just using it.
1725
1726 2010-08-27  Olivier Hainque  <hainque@adacore.com>
1727             Eric Botcazou  <ebotcazou@adacore.com>
1728
1729         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
1730         cover all the possible offsets from this base.
1731         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
1732
1733 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
1734
1735         PR tree-optimization/44485
1736         * calls.c (flags_from_decl_or_type): For const or pure
1737         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
1738         together with ECF_CONST resp. ECF_PURE.
1739         * builtins.c (expand_builtin): Use flags_from_decl_or_type
1740         instead of querying flags directly.
1741         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
1742         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
1743
1744 2010-08-26  Richard Guenther  <rguenther@suse.de>
1745
1746         PR tree-optimization/45255
1747         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
1748         and externals are also invariant.
1749
1750 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1751
1752         PR rtl-optimization/44858
1753         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
1754         newi2pat, make sure they don't affect newpat.
1755
1756         PR rtl-optimization/45400
1757         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
1758         SUBREG_REG if both modes are of MODE_INT class.
1759
1760 2010-08-25  Julian Brown  <julian@codesourcery.com>
1761
1762         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
1763         * config/arm/arm.md (generic_sched): No for Cortex-A5.
1764         (generic_vfp): Likewise.
1765         (cortex-a5.md): Include.
1766         * config/arm/cortex-a5.md: New.
1767
1768 2010-08-25  Richard Guenther  <rguenther@suse.de>
1769
1770         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
1771         * gimple.c (gimple_get_alias_set): Remove special handling
1772         for pointers.
1773
1774 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1775
1776         PR middle-end/45355
1777         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
1778         dead_or_set_p when computing i0_feeds_i2_n.
1779
1780         * combine.c (find_split_point): Undo canonicalization of multiply-add
1781         to (minus x (mult)) when it seems likely that this will increase the
1782         chances of a split.
1783
1784 2010-08-25  Richard Guenther  <rguenther@suse.de>
1785
1786         PR lto/44562
1787         * lto-streamer.c (lto_record_common_node): Do not mess with
1788         TYPE_CANONICAL when not in lto.
1789         * gimple.c (gimple_register_type): Likewise.
1790
1791 2010-08-25  Richard Guenther  <rguenther@suse.de>
1792
1793         PR tree-optimization/45316
1794         * tree-ssa-pre.c (eliminate): Properly clean EH info.
1795
1796 2010-08-25  Richard Guenther  <rguenther@suse.de>
1797
1798         PR tree-optimization/45393
1799         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
1800         and clean EH info.  Avoid SSA update.
1801         (execute_cse_sincos): Cleanup the CFG if it has changed.
1802
1803 2010-08-25  Richard Guenther  <rguenther@suse.de>
1804
1805         PR middle-end/45379
1806         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
1807         TARGET_MEM_REF in alignment computation.
1808
1809 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1810
1811         PR tree-optimization/45059
1812         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
1813         type conversions from newop{1,2}.  Assert t is a comparison and
1814         newop{1,2} after the stripping are gimple vals.
1815
1816 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
1817
1818         * config/arm/iterators.md (VU, SE, V_widen_l): New.
1819         (V_unpack, US): New.
1820         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
1821         (vec_unpack<US>_lo_<mode>): Likewise.
1822         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
1823         (neon_vec_unpack<US>_lo_<mode>): Likewise.
1824         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
1825         (vec_widen_<US>mult_hi_<mode>): Likewise.
1826         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
1827         (neon_vec_<US>mult_hi_<mode>"): Likewise.
1828         (neon_unpack<US>_<mode>): Widening move intermediate step for
1829         vectorizing without -mvectorize-with-neon-quad.
1830         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
1831         for vectorizing without -mvectorize-with-neon-quad.
1832         * config/arm/predicates.md (vect_par_constant_high): Check for
1833         high-half lanes of a vector.
1834         (vect_par_constant_low): Check for low-half lanes of a vector.
1835
1836 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1837
1838         * tree-if-conv.c (struct ifc_dr): New.
1839         (IFC_DR): New.
1840         (DR_WRITTEN_AT_LEAST_ONCE): New.
1841         (DR_RW_UNCONDITIONALLY): New.
1842         (memref_read_or_written_unconditionally): Use the cached values
1843         when possible.
1844         (write_memref_written_at_least_once): Same.
1845         (if_convertible_loop_p): Initialize and free DR->aux fields.
1846
1847 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1848
1849         * gimple.c (gimple_could_trap_p_1): Not static anymore.
1850         Pass an extra bool parameter include_mem.
1851         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
1852         (gimple_assign_rhs_could_trap_p): Same.
1853         * gimple.h (gimple_could_trap_p_1): Declared.
1854         * tree-data-ref.h (same_data_refs_base_objects): New.
1855         (same_data_refs): New.
1856         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
1857         (write_memrefs_written_at_least_once): New.
1858         (ifcvt_memrefs_wont_trap): New.
1859         (operations_could_trap): New.
1860         (ifcvt_could_trap_p): New.
1861         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
1862         Gets a vector of data refs.
1863         (if_convertible_stmt_p): Same.
1864         (if_convertible_loop_p_1): New.
1865         (if_convertible_loop_p): Call if_convertible_loop_p_1.
1866
1867 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1868
1869         * common.opt (ftree-loop-if-convert-stores): New flag.
1870         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
1871         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
1872         the created statement before GSI.
1873         (if_convertible_phi_p): Allow virtual phi nodes when
1874         flag_loop_if_convert_stores is set.
1875         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
1876         Do not handle types that do not match is_gimple_reg_type.
1877         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
1878         when flag_loop_if_convert_stores is set, as LHS can contain
1879         memory refs.
1880         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
1881         to if_convertible_gimple_assign_stmt_p.
1882         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
1883         (replace_phi_with_cond_gimple_assign_stmt): Renamed
1884         predicate_scalar_phi.  Do not handle virtual phi nodes.
1885         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
1886         Call predicate_scalar_phi.
1887         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
1888         just after the labels for flag_loop_if_convert_stores, otherwise
1889         insert the predicate in the end of the BB.
1890         (predicate_mem_writes): New.
1891         (combine_blocks): Call predicate_all_scalar_phis.  When
1892         flag_loop_if_convert_stores is set, call predicate_mem_writes.
1893         (tree_if_conversion): Call mark_sym_for_renaming when
1894         flag_loop_if_convert_stores is set.
1895         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
1896         flag_loop_if_convert_stores is set.
1897
1898 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
1899
1900         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
1901         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
1902         (pa_function_value): Make static.
1903         (override_options): Rename to...
1904         (pa_option_override): ...this. Make static.
1905         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
1906         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
1907         TARGET_OPTION_OVERRIDE): Define.
1908         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
1909         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
1910         Remove.
1911         * config/pa/pa-protos.h (override_options): Remove.
1912
1913 2010-08-24  Richard Guenther  <rguenther@suse.de>
1914
1915         PR middle-end/45379
1916         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
1917         if addr->index is NULL or zero.
1918         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
1919         TARGET_MEM_REF more properly.
1920         (indirect_ref_may_alias_decl_p): Likewise.
1921         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
1922         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
1923
1924 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
1925
1926         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
1927         (m32c_override_options): Rename to...
1928         (m32c_option_override): ...this. Make static.
1929         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
1930         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
1931         Remove.
1932         * config/m32c/m32c-protos.h (m32c_override_options,
1933         m32c_function_value_regno_p): Remove.
1934
1935 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1936
1937         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
1938         Fix a typo in a previous commit.
1939
1940 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
1941
1942         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
1943         Pre-initialize innerloop_iters to one.
1944
1945 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1946
1947         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
1948         existing static function global.
1949
1950         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
1951         is changed to global.
1952
1953         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
1954         may_be_nonaddressable_p on base, and don't collect this reference
1955         if the address of the base could not be taken.
1956
1957 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1958
1959         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
1960         enable the compiler to autovectorize mathmetical functions for
1961         power7 using the Mathematical Acceleration Subsystem library.
1962
1963         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
1964         handle which vector math library we have.
1965         (rs6000_override_options): Add -mveclibabi=mass support.
1966         (rs6000_builtin_vectorized_libmass): New function to handle auto
1967         vectorizing math functions that are in the MASS library.
1968         (rs6000_builtin_vectorized_function): Call it.
1969
1970         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1971         -mveclibabi=mass.
1972
1973 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1974
1975         PR boehm-gc/34544
1976         * gthr-posix.h (__gthread_active_init): Delete.
1977         (__gthread_active_p): Do activity check here.
1978         Don't include errno.h on hppa-hpux.  Update comment.
1979         * gthr-posix95.h (__gthread_active_init): Delete.
1980         (__gthread_active_p): Do activity check here.
1981         Don't include errno.h on hppa-hpux.  Update comment.
1982         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
1983         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
1984         add -lpthread when -mt or -pthread is specified.
1985         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
1986         (LINK_GCC_C_SEQUENCE_SPEC): Define.
1987         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
1988         (stublib.c, pthread_default_stacksize_np-stub.o,
1989         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
1990         $(T)libgcc_stub.a): Add methods.
1991         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
1992         (stublib.c, pthread_default_stacksize_np-stub.o,
1993         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
1994         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1995         pthread_mutex_unlock): New stubs.
1996
1997 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
1998
1999         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
2000         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
2001         options.
2002         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
2003         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
2004         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
2005         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
2006         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
2007         "-l".
2008         * cppspec.c: Include opts.h.
2009         (lang_specific_driver): Use cl_decoded_option structures.
2010         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
2011         * doc/tm.texi: Regenerate.
2012         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
2013         (driver_handle_option): Allow driver options needing no special
2014         processing.
2015         (process_command): Decode options before call to
2016         lang_specific_driver.  Pass decoded options to
2017         lang_specific_driver.
2018         * gcc.h (lang_specific_driver): Update prototype.
2019         * gccspec.c: Include opts.h.
2020         (lang_specific_driver): Use cl_decoded_option structures.
2021         * opts-common.c (option_ok_for_language, generate_option,
2022         generate_option_input_file): New.
2023         (decode_cmdline_option): Use option_ok_for_language.
2024         (decode_cmdline_options_to_array): Use generate_option_input_file.
2025         (handle_generated_option): Use generate_option.
2026         * opts.h (generate_option, generate_option_input_file): Declare.
2027
2028 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
2029
2030         * config/mips/mips.c (mips_override_options): Rename to...
2031         (mips_option_override): ...this. Make static.
2032         (TARGET_OPTION_OVERRIDE): Define.
2033         (mips_in_small_data_p): Update comment.
2034         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
2035         (FIXED_REGISTERS): Update comment.
2036         * config/mips/mips-protos.h (mips_override_options): Remove.
2037
2038 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2039
2040         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
2041
2042 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2043
2044         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
2045         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
2046
2047 2010-08-20  Jan Hubicka  <jh@suse.cz>
2048
2049         * tree-pass.h (pass_ipa_cdtor_merge): New function.
2050         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
2051         heap allocated.
2052         (record_cdtor_fn): Move to ipa.c; do not test for
2053         have_ctors_dtors.
2054         (build_cdtor): Move to ipa.c; add code avoiding construction
2055         when target have ctors/dtors and there is only one ctor/dtor at given
2056         priority.
2057         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
2058         sort; reverse order of constructors.
2059         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
2060         (cgraph_finalize_function): Do not call record_cdtor_fn.
2061         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
2062         (cgraph_build_static_cdtor): Move to ipa.c.
2063         * ipa.c: Include target.h and tree-iterator.h.
2064         (cgraph_build_static_cdtor, static_ctors, static_dtors,
2065         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
2066         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
2067         pass_ipa_cdtor_merge): New.
2068         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
2069         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
2070         bounds access.
2071
2072 2010-08-20  Jan Hubicka  <jh@suse.cz>
2073
2074         PR c++/45307
2075         PR c++/17736
2076         * cgraph.h (cgraph_only_called_directly_p,
2077         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
2078         static cdtors.
2079         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
2080         are not needed.
2081         (cgraph_finalize_function): Static cdtors are reachable.
2082         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
2083
2084 2010-08-20  Jan Hubicka  <jh@suse.cz>
2085
2086         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
2087         flag_wpa.
2088         * lto-streamer-out.c (lto_output): Likewise.
2089         * passes.c (ipa_write_optimization_summaries): Initialize statement
2090         uids.
2091
2092 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2093
2094         * tree.h (alias_diag_flags): New enum.
2095         (alias_pair): Add an 'emitted_diags' field.
2096         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
2097         (assemble_alias): Initialize emitted_diags of new pairs.
2098
2099 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
2100
2101         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2102         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2103         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2104         (STACK_CHECK_PROTECT): Define.
2105         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
2106         (output_probe_stack_range): Likewise.
2107         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
2108         builtin stack checking is enabled.
2109         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
2110         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2111         (probe_stack_range): New insn.
2112
2113 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2114
2115         PR target/45336
2116         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
2117         short first.
2118
2119         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
2120         char first.
2121
2122 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2123
2124         PR target/45336
2125         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
2126         to cover zero extension into 64-bit register.
2127         (*sse2_pextrw): Likewise.
2128         (*sse4_1_pextrd_zext): New insn.
2129
2130 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2131
2132         revert r163410, partially revert r163267.
2133         * config/rs6000/darwin.h (LIB_SPEC): Remove.
2134         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
2135         Darwin versions.
2136
2137 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2138
2139         PR middle-end/44974
2140         * builtins.c (expand_builtin): Don't optimize away
2141         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
2142
2143 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
2144
2145         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
2146         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
2147         alternative 1 of operand 2.
2148
2149 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2150             Paolo Bonzini  <bonzini@gnu.org>
2151
2152         * simplify-rtx.c (simplify_unary_operation_1): Optimize
2153         (sign_extend (zero_extend (...)) and
2154         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
2155
2156 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2157
2158         PR rtl-optimization/45353
2159         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
2160         after bb_note is a BARRIER.
2161
2162 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2163
2164         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
2165         linking libgcc.a.
2166
2167 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2168             Michael Matz  <matz@suse.de>
2169
2170         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
2171
2172 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2173
2174         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
2175         (ggc_mark_roots): ...here.
2176
2177 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2178
2179         * vec.h (FOR_EACH_VEC_ELT): Define.
2180         * c-decl.c: Use it.
2181         * cfgloop.c: Likewise.
2182         * cfgloopmanip.c: Likewise.
2183         * cgraph.c: Likewise.
2184         * cgraphunit.c: Likewise.
2185         * combine.c: Likewise.
2186         * config/bfin/bfin.c: Likewise.
2187         * config/mips/mips.c: Likewise.
2188         * config/rs6000/rs6000.c: Likewise.
2189         * dbxout.c: Likewise.
2190         * df-scan.c: Likewise.
2191         * dominance.c: Likewise.
2192         * dse.c: Likewise.
2193         * dwarf2out.c: Likewise.
2194         * except.c: Likewise.
2195         * expr.c: Likewise.
2196         * function.c: Likewise.
2197         * gcse.c: Likewise.
2198         * genattr.c: Likewise.
2199         * ggc-common.c: Likewise.
2200         * gimplify.c: Likewise.
2201         * graphite-blocking.c: Likewise.
2202         * graphite-clast-to-gimple.c: Likewise.
2203         * graphite-dependences.c: Likewise.
2204         * graphite-interchange.c: Likewise.
2205         * graphite-poly.c: Likewise.
2206         * graphite-scop-detection.c: Likewise.
2207         * graphite-sese-to-poly.c: Likewise.
2208         * graphite.c: Likewise.
2209         * haifa-sched.c: Likewise.
2210         * ifcvt.c: Likewise.
2211         * implicit-zee.c: Likewise.
2212         * ipa-prop.c: Likewise.
2213         * ipa-struct-reorg.c: Likewise.
2214         * ipa.c: Likewise.
2215         * ira-build.c: Likewise.
2216         * ira-color.c: Likewise.
2217         * ira-emit.c: Likewise.
2218         * lambda-code.c: Likewise.
2219         * loop-invariant.c: Likewise.
2220         * loop-unroll.c: Likewise.
2221         * lower-subreg.c: Likewise.
2222         * lto-cgraph.c: Likewise.
2223         * lto-opts.c: Likewise.
2224         * lto-streamer-in.c: Likewise.
2225         * lto-streamer-out.c: Likewise.
2226         * lto-streamer.c: Likewise.
2227         * lto-symtab.c: Likewise.
2228         * matrix-reorg.c: Likewise.
2229         * opts.c: Likewise.
2230         * predict.c: Likewise.
2231         * print-tree.c: Likewise.
2232         * sdbout.c: Likewise.
2233         * sel-sched-dump.c: Likewise.
2234         * sel-sched-ir.c: Likewise.
2235         * sel-sched.c: Likewise.
2236         * sese.c: Likewise.
2237         * stor-layout.c: Likewise.
2238         * tree-cfg.c: Likewise.
2239         * tree-cfgcleanup.c: Likewise.
2240         * tree-chrec.c: Likewise.
2241         * tree-data-ref.c: Likewise.
2242         * tree-emutls.c: Likewise.
2243         * tree-inline.c: Likewise.
2244         * tree-into-ssa.c: Likewise.
2245         * tree-loop-distribution.c: Likewise.
2246         * tree-loop-linear.c: Likewise.
2247         * tree-mudflap.c: Likewise.
2248         * tree-outof-ssa.c: Likewise.
2249         * tree-parloops.c: Likewise.
2250         * tree-predcom.c: Likewise.
2251         * tree-pretty-print.c: Likewise.
2252         * tree-scalar-evolution.c: Likewise.
2253         * tree-ssa-live.c: Likewise.
2254         * tree-ssa-loop-im.c: Likewise.
2255         * tree-ssa-loop-ivcanon.c: Likewise.
2256         * tree-ssa-loop-ivopts.c: Likewise.
2257         * tree-ssa-loop-manip.c: Likewise.
2258         * tree-ssa-loop-niter.c: Likewise.
2259         * tree-ssa-loop-prefetch.c: Likewise.
2260         * tree-ssa-phiprop.c: Likewise.
2261         * tree-ssa-pre.c: Likewise.
2262         * tree-ssa-reassoc.c: Likewise.
2263         * tree-ssa-sccvn.c: Likewise.
2264         * tree-ssa-structalias.c: Likewise.
2265         * tree-ssa.c: Likewise.
2266         * tree-vect-data-refs.c: Likewise.
2267         * tree-vect-loop-manip.c: Likewise.
2268         * tree-vect-loop.c: Likewise.
2269         * tree-vect-patterns.c: Likewise.
2270         * tree-vect-slp.c: Likewise.
2271         * tree-vect-stmts.c: Likewise.
2272         * tree-vrp.c: Likewise.
2273         * tree.c: Likewise.
2274         * value-prof.c: Likewise.
2275         * var-tracking.c: Likewise.
2276         * varasm.c: Likewise.
2277         * vmsdbgout.c: Likewise.
2278
2279 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
2280             Richard Guenther  <richard.guenther@gmail.com>
2281
2282         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
2283         copy the src value and return a copy.
2284         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
2285         (C++ Volatiles): Adjust to describe C++ semantics only.
2286
2287 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
2288
2289         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
2290         be zero or nonzero.
2291         * doc/tm.texi: Regenerate.
2292         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
2293         * df-scan.c (df_get_exit_block_use_set), reginfo.c
2294         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
2295         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
2296         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
2297         to 1.
2298
2299 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2300
2301         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
2302         an extra nop past a sibling call at the very end.
2303
2304 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2305
2306         PR bootstrap/45350
2307         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
2308         a comment.
2309
2310 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2311
2312         * target.def (function_arg, function_incoming_arg): Remove const
2313         qualifier on CUMULATIVE_ARGS parameter.
2314         * targhooks.h (default_function_arg, default_function_incoming_arg):
2315         Likewise.
2316         * targhooks.c (default_function_arg, default_function_incoming_arg):
2317         Likewise.
2318         * config/i386/i386.c (ix86_function_arg): Likewise.
2319
2320 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
2321
2322         PR target/45336
2323         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
2324         SIGN_EXTENDs or ZERO_EXTENDs.
2325
2326 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2327
2328         PR target/42172
2329         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
2330         Take its cost into account if nonnull.
2331         (insn_a_feeds_b): New static function.
2332         (combine_instructions): Look for four-insn combinations.
2333         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
2334         them into account when computing all_adjacent and looking for other
2335         uses.
2336         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
2337         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
2338         (try_combine): New arg I0.  Handle four-insn combinations.
2339         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
2340         like ELIM_I1.
2341
2342 2010-08-19  Jason Merrill  <jason@redhat.com>
2343
2344         PR c++/45307
2345         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
2346         if ctor is empty.
2347         (gimplify_modify_expr_rhs): Adjust.
2348
2349 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2350
2351         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
2352         bitmap_bit_p.
2353         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
2354         * dominance.c (iterate_fix_dominators): Likewise.
2355         * dse.c (set_usage_bits): Likewise.
2356         (set_position_unneeded, record_store): Likewise.
2357         * gimple-fold.c (get_maxval_strlen): Likewise.
2358         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
2359         * ipa-inline.c (update_caller_keys): Likewise.
2360         * ipa-split.c (verify_non_ssa_vars): Likewise.
2361         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
2362         (close_type_exposed_parameter, close_type_full_escape): Likewise.
2363         (close_addressof_down): Likewise.
2364         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
2365         (setup_allocno_left_conflicts_size): Likewise.
2366         (ira_reassign_conflict_allocnos): Likewise.
2367         (ira_reassign_pseudos): Likewise.
2368         * ira-emit.c (change_loop): Likewise.
2369         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
2370         * lto-streamer-out.c (write_symbol): Likewise.
2371         * predict.c (expr_expected_value_1): Likewise.
2372         * regstat.c (regstat_bb_compute_ri): Likewise.
2373         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2374         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
2375         * stmt.c (expand_case): Likewise.
2376         * tree-eh.c (emit_eh_dispatch): Likewise.
2377         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
2378         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
2379         Likewise.
2380         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
2381         (rdg_build_components): Likewise.
2382         * tree-object-size.c (collect_object_sizes_for): Likewise.
2383         * tree-sra.c (convert_callers): Likewise.
2384         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
2385         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
2386         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
2387
2388 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2389
2390         * config/i386/i386.md (*lea_1): Use P mode iterator.
2391         (lea add splitter): Also handle DImode operands.
2392         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
2393         predicate.  Do not use ix86_lea_for_add_ok.
2394         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
2395         (lea ashift splitter): Also handle DImode operands.
2396         (DImode lea ashift splitter): Remove splitter.
2397
2398 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2399
2400         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
2401         ix86_binary_operator_ok.
2402
2403 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
2404
2405         PR rtl-optimization/44691
2406         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
2407         is not a register.
2408
2409 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2410
2411         PR target/45070
2412         * config/arm/arm.c (arm_output_epilogue): Ensure that return
2413          value of size 1-3 is handled correctly.
2414
2415 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2416
2417         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
2418         type for the conditional has wide enough range.
2419
2420 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2421
2422         PR target/45327
2423         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
2424         ix86_binary_operator_ok.
2425
2426 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2427
2428         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
2429         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
2430         code to output insn mnemonic.  Fix comment.
2431         (*addsi_1_zext): Add r-r-0 alternative 1.
2432         <TYPE_LEA>: Split insn to lea.
2433         <default>: Handle alternative 1.
2434         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
2435         multi-level if_then_else RTX to set "type" attribute.
2436         <default>: Handle alternative 2.
2437         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
2438         Use cond RTX instead of multi-level if_then_else RTX to set
2439         "type" attribute.
2440         <default>: Handle alternatives 2 and 4.
2441         (lea splitters): Update calls to ix86_lea_for_add_ok.
2442
2443         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
2444         argument.
2445         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
2446
2447 2010-08-18  Richard Guenther  <rguenther@suse.de>
2448
2449         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
2450         use operand helpers.
2451
2452 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
2453
2454         PR middle-end/45292
2455         * optabs.c (expand_bool_compare_and_swap): Expand pending
2456         pops before trying the optab.
2457
2458 2010-08-18  Yao Qi  <yao@codesourcery.com>
2459
2460         PR target/45094
2461         * config/arm/arm.c (output_move_double): Fix typo generating
2462         instructions ('ldr'->'str').
2463
2464 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2465
2466         PR rtl-optimization/42575
2467         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
2468         live ranges.
2469
2470 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2471
2472         * config/arm/arm-protos.h (arm_expand_sync): New.
2473         (arm_output_memory_barrier, arm_output_sync_insn): New.
2474         (arm_sync_loop_insns): New.
2475         * config/arm/arm.c (FL_ARCH7): New.
2476         (FL_FOR_ARCH7): Include FL_ARCH7.
2477         (arm_arch7): New.
2478         (arm_print_operand): Support %C markup.
2479         (arm_legitimize_sync_memory): New.
2480         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
2481         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
2482         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
2483         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
2484         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
2485         (arm_process_output_sync_insn, arm_output_sync_insn): New.
2486         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
2487         * config/arm/arm.h (struct arm_sync_generator): New.
2488         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
2489         (TARGET_HAVE_MEMORY_BARRIER): New.
2490         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
2491         * config/arm/arm.md: Include sync.md.
2492         (UNSPEC_MEMORY_BARRIER): New.
2493         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
2494         (VUNSPEC_SYNC_OP):New.
2495         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
2496         (sync_result, sync_memory, sync_required_value): New attributes.
2497         (sync_new_value, sync_t1, sync_t2): Likewise.
2498         (sync_release_barrier, sync_op): Likewise.
2499         (length): Add logic to length attribute defintion to call
2500         arm_sync_loop_insns when appropriate.
2501         * config/arm/sync.md: New file.
2502
2503 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2504
2505         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
2506         ENABLE_TREE_CHECKING.
2507         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
2508         and GCC >= 4.3.
2509
2510 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2511
2512         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
2513         or optimizing for size, always avoid lea if possible.
2514
2515         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
2516
2517 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
2518
2519         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
2520         Dunmmy function with NULL return unless the target is
2521         OSX >= 10.6 (Darwin10).
2522
2523 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
2524
2525         * gcc.c (spec_function): Add remove-outfile.
2526         (remove_outfile_spec_function): New function.
2527         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
2528         * invoke.texi (replace-outfile): Document.
2529
2530 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
2531
2532         PR target/45296
2533         * reginfo.c (globalize_reg): Reject stack registers.
2534
2535 2010-08-17  Richard Guenther  <rguenther@suse.de>
2536
2537         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
2538         list of conditional equivalences.
2539         (free_all_edge_infos): Adjust.
2540         (record_equivalences_from_incoming_edge): Likewise.
2541         (record_cond): Likewise.
2542         (build_and_record_new_cond): Likewise.
2543         (record_conditions): Likewise.
2544         (dom_opt_leave_block): Likewise.
2545
2546 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
2547
2548         * doc/invoke.texi (ms-extension): Add documentation.
2549
2550 2010-08-17  Richard Guenther  <rguenther@suse.de>
2551
2552         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
2553
2554 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
2555
2556         PR c/40563
2557         * c-decl.c (diagnose_uninitialized_cst_member): New function.
2558         (finish_decl): Use it to issue a -Wc++-compat warning about
2559         uninitialized const field in struct or union.
2560
2561         (finish_struct): Use strip_array_types.
2562
2563 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2564
2565         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
2566         functions.
2567         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
2568         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
2569         call block_nreverse here.
2570         (blocks_nreverse): Rename decl temporary to block.
2571
2572 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
2573
2574         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
2575         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
2576         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
2577         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
2578         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
2579         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
2580         thumb2_iorsi3): Delete.
2581         (orsi_notsi_si): No longer a named pattern.
2582         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
2583         * config/arm/predicates.md (shift_amount_operand): New.
2584         (mult_operator): New.
2585         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
2586         attr enabled): New.
2587         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
2588         arch matches t2.
2589         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
2590         (not_shiftsi_compare0): Likewise, renamed from
2591         arm_notsi_shiftsi_compare0.
2592         (not_shiftsi_compare0_scratch): Likweise, renamed from
2593         arm_notsi_shiftsi_compare0_scratch.
2594         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
2595         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
2596         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
2597         so that the register alternative is disabled when the shift_operator
2598         is MULT.  Use "M" as the constraint for constants.
2599         (arith_shiftsi splitter): Enable for TARGET_32BIT.
2600         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
2601         constraint for constants.
2602         (arith_shiftsi_compare0_scratch): Likewise.
2603         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
2604         Handle Thumb2 alternative.
2605
2606 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2607
2608         * doc/options.texi (NoDriverArg): Document.
2609         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
2610         -MDX and -MMDX.
2611         * opt-functions.awk (switch_flags): Handle NoDriverArg.
2612         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
2613         marking for CL_NO_DRIVER_ARG options when in the driver.
2614         * opts.h (CL_NO_DRIVER_ARG): Define.
2615         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2616         CL_COMMON): Update values.
2617
2618 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2619
2620         * common.opt: Add driver options.
2621         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
2622         * doc/options.texi (Driver, RejectDriver): Document.
2623         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
2624         print_prog_name, print_multi_directory, print_sysroot,
2625         print_multi_os_directory, print_multi_lib,
2626         print_sysroot_headers_suffix, report_times, combine_flag,
2627         use_pipes, wrapper_string): Remove.
2628         (save_switch, driver_unknown_option_callback,
2629         driver_wrong_lang_callback, driver_post_handling_callback,
2630         driver_handle_option): New.
2631         (spec_lang, last_language_n_infiles): Make file-scope static
2632         instead of local to process_command.
2633         (process_command): Use decode_cmdline_options_to_array and
2634         read_cmdline_option for option processing.  Compute have_c in
2635         prescan of decoded options.
2636         * opt-functions.awk (switch_flags): Handle Driver and
2637         RejectDriver.
2638         (var_type, var_type_struct): Handle Separate options as generating
2639         const char * variables.
2640         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
2641         CL_TARGET to be passed by caller if required.
2642         (decode_cmdline_options_to_array): Update comment.
2643         * opts.c (complain_wrong_lang): Handle options only valid for the
2644         driver.
2645         (decode_options): Update call to decode_cmdline_options_to_array.
2646         (print_filtered_help): Ignore driver-only options.
2647         (print_specific_help): Ignore CL_DRIVER.
2648         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
2649         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
2650         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
2651         Update values.
2652
2653 2010-08-16  Richard Guenther  <rguenther@suse.de>
2654
2655         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2656         TARGET_MEM_REF a bit.
2657         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
2658         (create_mem_ref_raw): Always create TMR_OFFSET, store the
2659         alias pointer type via it.
2660         (copy_mem_ref_info): Adjust.
2661         (maybe_fold_tmr): Likewise.
2662         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
2663         (reference_alias_ptr_type): Likewise.
2664         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
2665         adjust documentation of TMR_OFFSET operand.
2666         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
2667         use the alias pointer type.
2668         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
2669         initialize mem attrs but the TMR itself.
2670         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
2671         similar to MEM_REF.
2672         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
2673         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
2674         (unshare_and_remove_ssa_names): Likewise.
2675         (copy_ref_info): Adjust.
2676         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
2677         TARGET_MEM_REF case.
2678         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
2679         at TMR_ORIGINAL.
2680         * tree.h (TMR_ORIGINAL): Remove.
2681         * gimple.c (get_base_address): For TARGET_MEM_REF with a
2682         symbol return that.
2683         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
2684         with a symbol.
2685         (get_addr_base_and_unit_offset): Likewise.
2686         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
2687         TARGET_MEM_REFs.
2688         (indirect_ref_may_alias_decl_p): Likewise.
2689         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
2690
2691 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
2692
2693         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
2694         with GCC version 4.6, the default setting (when not optimizing
2695         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
2696         been changed to -fomit-frame-pointer.
2697
2698 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
2699
2700         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
2701         Darwin10.  Do not link libgcc.a for Darwin >= 9.
2702
2703 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
2704
2705         * doc/invoke.texi (Warning Options): Fix terminology and markup
2706         in the description of how unknown warning options are handled.
2707
2708 2010-08-15  Ira Rosen  <irar@il.ibm.com>
2709
2710         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
2711         in basic blocks.
2712         (vect_supportable_dr_alignment): Check alignment for basic blocks.
2713         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
2714         data references.
2715         (vect_bb_vectorization_profitable_p): New function.
2716         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
2717         check if it's worthwhile to vectorize the basic block.
2718
2719 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
2720
2721         * reload.h (register_move_cost, memory_move_secondary_cost,
2722         secondary_reload_class): Adjust prototype.
2723         * rtl.h (reg_class_subset_p): Adjust prototype.
2724         * reload.c (secondary_reload_class): Change arguments type from
2725         enum reg_class to reg_class_t. Change result type to reg_class_t.
2726         * reginfo.c (register_move_cost, reg_class_subset_p): Change
2727         arguments type from enum reg_class to reg_class_t.
2728         (memory_move_secondary_cost): Change arguments type from
2729         enum reg_class to reg_class_t. Change type of saved_flags to
2730         reg_class_t.
2731
2732         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2733         Remove macros.
2734         (mips_cost): Remove.
2735         (struct mips_rtx_cost_data): Moved to mips.c.
2736         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
2737         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
2738         (mips_cost): Make static.
2739         (mips_canonicalize_move_class): Change argument type to reg_class_t.
2740         Change result type to reg_class_t.
2741         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
2742         type from enum reg_class to reg_class_t.
2743         (mips_register_move_cost): Make static. Change arguments
2744         type from enum reg_class to reg_class_t.
2745         (mips_memory_move_cost): New function.
2746         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2747
2748 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
2749
2750         PR rtl-optimization/43358
2751         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
2752         of a single hard register, using simplify_subreg_regno to decide
2753         what that register should be.
2754
2755 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
2756
2757         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
2758         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
2759         (loongson_pmull<V_suffix>): Rename to...
2760         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
2761
2762 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
2763
2764         * configure.ac: Enable -fomit-frame-pointer on darwin
2765         which support dwarf2.
2766         * config/i386/i386.c (override_options): Same.
2767
2768 2010-08-13  Jie Zhang  <jie@codesourcery.com>
2769
2770         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
2771
2772 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
2773
2774         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
2775         -MMD.
2776
2777 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
2778
2779         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
2780         up dot_prod pattern searching if a stmt is outside the loop.
2781
2782 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
2783             Uros Bizjak  <ubizjak@gmail.com>
2784
2785         * config.gcc: Handle --enable-frame-pointer.
2786
2787         * configure.ac: Add --enable-frame-pointer.
2788         * configure: Regenerated.
2789
2790         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
2791         (override_options): If not configured with --enable-frame-pointer,
2792         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
2793         optimizing for size), -fasynchronous-unwind-tables and
2794         -maccumulate-outgoing-args by default.
2795
2796 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2797
2798         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
2799
2800         PR middle-end/45262
2801         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
2802         -a overflows.  Normalize the range.
2803
2804 2010-08-12  Richard Guenther  <rguenther@suse.de>
2805
2806         PR tree-optimization/45232
2807         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
2808         for types with undefined overflow.
2809         (reassociate_bb): Allow re-associating of bit and min/max
2810         operations for types with undefined overflow.
2811         * tree-ssa-forwprop.c (associate_plusminus): New function.
2812         (tree_ssa_forward_propagate_single_use_vars): Call it.
2813
2814 2010-08-12  Richard Guenther  <rguenther@suse.de>
2815
2816         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
2817         * tree-ssa-alias.c (get_ptr_info): Move ...
2818         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
2819         align and misalign fields conservatively.
2820         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
2821         derive alignment information.
2822         (evaluate_stmt): Derive alignment information from memory
2823         allocation functions.
2824         * tree.h (get_pointer_alignment): Make unsigned.
2825         * builtins.c (get_object_alignment): Use alignment information we
2826         have computed for pointers.
2827         (get_pointer_alignment): Likewise.  Make conservative, return
2828         and unsigned value.
2829         (expand_builtin_strlen): Adjust.
2830         (expand_builtin_memcmp): Likewise.
2831         (expand_builtin_strcmp): Likewise.
2832         (expand_builtin_strncmp): Likewise.
2833         (get_builtin_sync_mem): Use at least mode alignment.
2834         (fold_builtin_memset): Adjust.
2835         (fold_builtin_memory_op): Likewise.
2836         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
2837         information also dump pointer alignment knowledge.
2838         (dump_gimple_stmt): Likewise.
2839
2840 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
2841
2842         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
2843         (EMPTY_FIELD_BOUNDARY): Remove.
2844         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
2845
2846 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2847
2848         PR debug/45259
2849         * caller-save.c (save_call_clobbered_regs): Only swap notes with
2850         DEBUG_INSNs if n_regs_saved.
2851
2852 2010-08-12  Wei Guozhi  <carrot@google.com>
2853
2854         PR target/44999
2855         * config/arm/arm.md (andsi3): Change to zero extension if possible.
2856         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
2857
2858 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
2859
2860         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
2861
2862         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
2863
2864 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2865
2866         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
2867         the case removed in the previous patch, when the only phi argument
2868         is defined in the same loop as the phi node itself.  Handle it
2869         separately from the invariant case by both propagating it outside
2870         the region and replacing the phi node with an assign.
2871
2872 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2873
2874         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
2875         constant phi nodes with one argument are is_gimple_min_invariant
2876         and SSA_NAME_IS_DEFAULT_DEF.
2877
2878 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2879
2880         * graphite-cloog-util.c (oppose_constraint):
2881         Extend loop counter's value range (CLOOG_ORG).
2882         (cloog_matrix_to_ppl_constraint): Same.
2883         (new_Constraint_System_from_Cloog_matrix): Same.
2884         * graphite-cloog-compat.h (matrix_num_type): New.
2885
2886 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2887
2888         * graphite.c (graphite_initialize): Do not initialize
2889         CLooG and initialize the Parma Polyhedra Library
2890         manually when using CLOOG_ORG.
2891         (graphite_finalize): Do not finalize CLooG and finalize
2892         the Parma Polyhedra Library manually when using CLOOG_ORG.
2893         * graphite-cloog-compat.h (cloog_initialize): Hide function
2894         when using CLOOG_ORG.
2895         (cloog_finalize): Same.
2896
2897 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2898
2899         * graphite-clast-to-gimple.c (free_scattering): Change
2900         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
2901         (CLOOG_ORG).
2902         (build_cloog_prog): Same.
2903         * graphite-cloog-compat.h (cloog_domain): Removed.
2904         (cloog_scattering): New.
2905         (cloog_set_domain): Removed.
2906         (cloog_set_scattering): New.
2907         (cloog_next_domain): Removed.
2908         (cloog_next_scattering): New.
2909         (cloog_set_next_domain): Removed.
2910         (cloog_set_next_scattering): New.
2911         (CloogScatteringList): New.
2912         (CloogScattering): New.
2913         (cloog_scattering_free): New.
2914         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
2915         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
2916         New.
2917
2918 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2919
2920         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
2921         CloogState.
2922         (set_cloog_options): Same.
2923         (print_clast_stmt): Same.
2924         (scop_to_clast): Same.
2925         (print_generated_program): Same.
2926         (gloog): Same.
2927         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
2928         (scop_to_clast): Extend with CloogState.
2929         * graphite-cloog-util.c: Include graphite-cloog-compat.h
2930         (new_Cloog_Domain_from_ppl_Polyhedron):
2931         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
2932         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
2933         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2934         * graphite-cloog-util.h (build_cloog_prog): Same.
2935         * graphite-cloog-copat.h (build_cloog_prog): New.
2936         (CloogState): New.
2937         (cloog_state_malloc): New.
2938         (cloog_state_free): New.
2939         (cloog_loop_malloc): New.
2940         (cloog_options_malloc): New.
2941         (cloog_statement_alloc): New.
2942         (cloog_domain_from_cloog_matrix): New.
2943         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2944         (new_Cloog_Domain_from_ppl_Polyhedron): New.
2945
2946 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2947
2948         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
2949         type of NAME now depends on used CLooG version.
2950         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
2951         (gcc_type_for_clast_expr): Same.
2952         (print_clast_stmt): Replace pprint with clast_pprint.
2953         * graphite-cloog-compat.h: Provide compatibility macros for
2954         CLooG Legacy.
2955         (clast_name_p): New.
2956         (clast_expr_term): New.
2957         (clast_expr_red): New.
2958         (clast_expr_bin): New.
2959         (clast_pprint): New.
2960
2961 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2962
2963         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
2964         compatible to newer CLooG releases (CLOOG_ORG).
2965         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
2966         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
2967         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
2968         (build_cloog_prog) : New.
2969         (cloog_program_extract_scalars): New.
2970         (cloog_program_scatter): New.
2971
2972 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2973
2974         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
2975         conditionally (CLOOG_ORG).
2976         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
2977         (cloog_statement_usr): New.
2978         (cloog_domain): Same.
2979         (cloog_set_domain): Same.
2980         (cloog_next_domain): Same.
2981         (cloog_set_next_domain): Same.
2982         (cloog_program_nb_scattdims): Same.
2983         (cloog_program_set_nb_scattdims): Same.
2984         (cloog_program_names): Same.
2985         (cloog_program_set_names): Same.
2986         (cloog_program_set_context): Same.
2987         (cloog_program_set_loop): Same.
2988         (cloog_program_blocklist): Same.
2989         (cloog_program_set_blocklist): Same.
2990         (cloog_program_scaldims): Same.
2991         (cloog_program_set_scaldims): Same.
2992         (cloog_names_nb_parameters): Same.
2993         (cloog_names_set_nb_parameters): Same.
2994         (cloog_names_parameters): Same.
2995         (cloog_names_set_parameters): Same.
2996         (cloog_names_set_nb_iterators): Same.
2997         (cloog_names_set_iterators): Same.
2998         (cloog_names_set_nb_scattering): Same.
2999         (cloog_names_set_scattering): Same.
3000         (cloog_statement_set_usr): Same.
3001         (cloog_loop_set_next): Same.
3002         (cloog_loop_set_domain): Same.
3003         (cloog_loop_set_block): Same.
3004         (cloog_block_list_next): Same.
3005         (cloog_block_list_set_next):
3006         (cloog_block_list_set_block): Same.
3007
3008 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3009
3010         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
3011         a bool.
3012         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
3013         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
3014         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
3015         when something has been changed.
3016         (rewrite_commutative_reductions_out_of_ssa): Same.
3017
3018 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3019
3020         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
3021         handle the case when def is in the sese region.
3022         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
3023         for invariant expressions.
3024         (rewrite_cross_bb_phi_deps): Removed.
3025         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
3026         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
3027         rewrite_cross_bb_phi_deps.
3028
3029 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3030
3031         * graphite-sese-to-poly.c
3032         (rewrite_commutative_reductions_out_of_ssa_loop): Call
3033         scev_analyzable_p only on is_gimple_reg
3034
3035 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3036
3037         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
3038         (rewrite_close_phi_out_of_ssa): Propagate constant values or
3039         parametric expressions outside the scop region.
3040         (rewrite_cross_bb_scalar_deps): Same.
3041         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
3042
3043 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3044
3045         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
3046         SSA_NAME_DEF_STMT only on SSA_NAMEs.
3047
3048 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3049
3050         * tree-scalar-evolution.c (instantiate_scev_name): Do not
3051         instantiate default definitions.
3052
3053 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
3054             Sebastian Pop  <sebastian.pop@amd.com>
3055
3056         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
3057         (loop_exits_from_bb_p): New.
3058         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
3059         (loop_exits_from_bb_p): Declared.
3060         * graphite-scop-detection.c (scopdet_basic_block_info): Call
3061         loop_exits_to_bb_p.
3062
3063 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3064
3065         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
3066         extra parameter for the region.  Call scev_analyzable_p.
3067         (rewrite_reductions_out_of_ssa): Update call to
3068         rewrite_close_phi_out_of_ssa.
3069         (rewrite_cross_bb_phi_deps): Same.
3070         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
3071         parameter for the region.  Call scev_analyzable_p.
3072         (rewrite_commutative_reductions_out_of_ssa): Update call to
3073         rewrite_commutative_reductions_out_of_ssa_loop.
3074
3075 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3076
3077         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
3078
3079 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3080
3081         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
3082         SSA scalar phi nodes that can be scev_analyzable_p.
3083
3084 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3085
3086         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
3087         handle SSA_NAME_IS_DEFAULT_DEF.
3088
3089 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3090
3091         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
3092
3093 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3094
3095         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
3096         case non close-phi nodes with one argument.
3097
3098 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3099
3100         * sese.h (scev_analyzable_p): Scevs could be expressions without
3101         chrecs and still be scev_analyzable_p.
3102
3103 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3104
3105         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
3106
3107 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3108
3109         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
3110         * cfgloop.h (struct loop): Remove single_iv field.
3111         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
3112         (scop_canonicalize_loops): Removed.
3113         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
3114         over all the loop phi nodes in loop->header.
3115         (build_poly_scop): Remove use of scop_canonicalize_loops.
3116
3117 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3118
3119         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
3120         handle GIMPLE_CALL.
3121
3122 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3123
3124         * tree-chrec.c (chrec_apply): Should only apply to the specified
3125         variable.  Also handle multivariate chains of recurrences that
3126         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
3127
3128 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3129
3130         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
3131         (debug_clast_name_indexes_1): Removed.
3132         (debug_clast_name_indexes): Removed.
3133         (pbb_to_depth_to_oldiv): Removed.
3134         (build_iv_mapping): Replace the use of rename_map with iv_map.
3135         (translate_clast_user): Remove uses of rename_map.  Allocate and
3136         free iv_map.
3137         (translate_clast_for_loop): Remove uses of rename_map.
3138         (translate_clast_for): Same.
3139         (translate_clast_guard): Same.
3140         (translate_clast): Same.
3141         (gloog): Same.
3142         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
3143         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
3144         * sese.c (set_rename): Now static.
3145         (rename_variables_in_stmt): Removed.
3146         (rename_uses): New.
3147         (is_parameter): Removed.
3148         (is_iv): Removed.
3149         (expand_scalar_variables_call): Removed.
3150         (expand_scalar_variables_ssa_name): Removed.
3151         (expand_scalar_variables_expr): Removed.
3152         (expand_scalar_variables_stmt): Removed.
3153         (expand_scalar_variables): Removed.
3154         (rename_variables): Removed.
3155         (remove_condition): Removed.
3156         (get_true_edge_from_guard_bb): Removed.
3157         (get_false_edge_from_guard_bb): Removed.
3158         (struct igp): Removed.
3159         (default_before_guard): Removed.
3160         (convert_for_phi_arg): Removed.
3161         (add_guard_exit_phis): Removed.
3162         (insert_guard_phis): Removed.
3163         (graphite_copy_stmts_from_block): Now also uses iv_map and a
3164         region.  Do not copy conditions.  Do not copy induction variables.
3165         Call rename_uses.
3166         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
3167         the translated statement.  Use the iv_map for the induction
3168         variable renaming.
3169         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3170         (set_rename): Removed declaration.
3171         (scev_analyzable_p): ...here.
3172         * tree-chrec.c (chrec_apply_map): New.
3173         * tree-chrec.h (chrec_apply_map): Declared.
3174
3175 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3176
3177         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
3178         insert_loop_close_phis.
3179         * sese.c (name_defined_in_loop_p): Removed.
3180         (expr_defined_in_loop_p): Removed.
3181         (alive_after_loop): Removed.
3182         (close_phi_not_yet_inserted_p): Removed.
3183         (struct alep): Removed.
3184         (add_loop_exit_phis): Removed.
3185         (insert_loop_close_phis): Removed.
3186
3187 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3188
3189         * graphite-cloog-util.c
3190         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
3191         * graphite-poly.c
3192         (psct_scattering_dim_for_loop_depth): Same.
3193
3194 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3195
3196         * graphite-cloog-util.h: Added cloog.h.
3197         * graphite-blocking.c: Removed cloog.h.
3198         * graphite-dependences.c: Same.
3199         * graphite-interchange.c: Same.
3200         * graphite-poly.c: Same.
3201         * graphite-ppl.c: Same.
3202         * graphite-scop-detection.c: Same.
3203         * graphite-sese-to-poly.c:
3204         Removed cloog.h.
3205         Removed graphite-clast-to-gimple.h.
3206         (check_poly_representation): Removed (unused).
3207         * graphite-sese-to-poly.h
3208         (check_poly_representation): Removed (unused).
3209
3210 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3211
3212         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
3213         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
3214         (graphite-cloog-util.o): New.
3215         (graphite-ppl.o): Added graphite-cloog-util.h.
3216         * graphite-clast-to-gimple.c:
3217         Added graphite-cloog-util.h to include statements.
3218         * graphite-cloog-util.c: New.
3219         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
3220         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3221         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3222         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3223         (insert_constraint_into_matrix): Same.
3224         (ppl_Constrain_System_number_of_constraints): Same.
3225         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3226         (oppose_constraint): Same.
3227         (cloog_matrix_to_ppl_constraint): Same.
3228         (new_Constraint_System_from_Cloog_Matrix): Same.
3229         * graphite-cloog-util.h: New.
3230         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
3231         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3232         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3233         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3234         (insert_constraint_into_matrix): Same.
3235         * graphite-ppl.c:
3236         Added graphite-cloog-util.h to include statements.
3237         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
3238         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3239         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3240         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3241         (insert_constraint_into_matrix): Same.
3242         (ppl_Constrain_System_number_of_constraints): Same.
3243         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3244         (oppose_constraint): Same.
3245         (cloog_matrix_to_ppl_constraint): Same.
3246         (new_Constraint_System_from_Cloog_Matrix): Same.
3247         * graphite-ppl.h:
3248         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
3249         graphite-cloog-util.h.
3250         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3251         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3252         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3253         (insert_constraint_into_matrix): Same.
3254
3255 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3256
3257         * graphite-clast-to-gimple.c
3258         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
3259         (precision_for_interval): Same.
3260         (gcc_type_for_interval): Same.
3261         (compute_type_for_level): Same.
3262         * graphite-interchange.c
3263         (lst_interchange_profitable_p): Same.
3264         * graphite-poly.c
3265         (psct_scattering_dim_for_loop_depth): Same.
3266         * graphite-ppl.c
3267         (ppl_max_for_le_pointset): Same.
3268         (ppl_min_for_le_pointset): Same.
3269
3270 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3271
3272         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
3273         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
3274
3275 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3276
3277         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
3278         rewrite_close_phi_out_of_ssa.
3279
3280 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3281
3282         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
3283
3284 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3285
3286         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
3287         rename_map.
3288         * sese.c (debug_rename_map): Same.
3289         (get_rename): Same.
3290         (set_rename): Same.
3291         (rename_variables_in_stmt): Same.
3292         (expand_scalar_variables_call): Same.
3293         (expand_scalar_variables_ssa_name): Same.
3294         (expand_scalar_variables_expr): Same.
3295         (expand_scalar_variables_stmt): Same.
3296         (expand_scalar_variables): Same.
3297         (rename_variables): Same.
3298         (graphite_copy_stmts_from_block): Same.
3299         (copy_bb_and_scalar_dependences): Same.
3300
3301 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3302
3303         * graphite-clast-to-gimple.c (copy_renames): Removed.
3304         (translate_clast_for): Do not call copy_renames.
3305         (translate_clast_guard): Same.
3306
3307 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3308
3309         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
3310         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
3311         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
3312         before rewrite_cross_bb_scalar_deps.
3313
3314 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3315
3316         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
3317         Early return in when flag_associative_math is not set.
3318
3319 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3320
3321         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
3322         of SSA copies on edges except for loop->latch.
3323
3324 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3325
3326         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
3327         Split out of rewrite_reductions_out_of_ssa.
3328         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
3329         Declared.
3330         * graphite.c (graphite_transform_loops): Call it.
3331
3332 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3333
3334         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
3335
3336 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
3337
3338         * dbgcnt.def (graphite_scop): New counter.
3339         * graphite.c: Include dbgcnt.h.
3340         (graphite_transform_loops): Use new counter to limit transformations.
3341         * Makefile.in (graphite.o): Depend on DBGCNT_H.
3342
3343 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3344
3345         * passes.c (init_optimization_passes): Add pass_graphite.
3346         Schedule a pass_copy_prop before pass_graphite_transforms.
3347         * timevar.def (TV_GRAPHITE): Declared.
3348         * tree-pass.h (pass_graphite): Declared.
3349         * tree-ssa-loop.c (pass_graphite): New.
3350
3351 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3352
3353         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
3354         Remove calls to rename_nb_iterations and rename_sese_parameters.
3355         * graphite-clast-to-gimple.h (gloog): Update declaration.
3356         * graphite.c (graphite_transform_loops): Update call to gloog.
3357         * sese.c (rename_variables_in_expr): Removed.
3358         (rename_nb_iterations): Removed.
3359         (rename_sese_parameters): Removed.
3360         * sese.h (rename_nb_iterations): Removed.
3361         (rename_sese_parameters): Removed.
3362
3363 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3364
3365         * graphite-clast-to-gimple.c (gloog): Remove call to
3366         sese_adjust_liveout_phis.
3367         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
3368         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
3369         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
3370         rewrite_phi_out_of_ssa.
3371         * sese.c (get_vdef_before_sese): Removed.
3372         (sese_adjust_vphi): Removed.
3373         (sese_adjust_liveout_phis): Removed.
3374         * sese.h (sese_adjust_liveout_phis): Removed.
3375
3376 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3377
3378         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
3379         argument for the place after which to insert the out of SSA copy.
3380         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
3381         (rewrite_phi_out_of_ssa): Same.
3382         (rewrite_cross_bb_scalar_deps): Same.
3383         (insert_copyout): Removed.
3384         (insert_copyin): Removed.
3385         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
3386         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
3387         insert_copyin.
3388
3389 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3390
3391         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
3392         (rewrite_reductions_out_of_ssa): Same.
3393         (rewrite_commutative_reductions_out_of_ssa): Same.
3394         (build_poly_scop): Do not call these functions.
3395         * graphite-sese-to-poly.h (build_poly_scop): Declared.
3396         (rewrite_reductions_out_of_ssa): Declared.
3397         (rewrite_commutative_reductions_out_of_ssa): Declared.
3398         * graphite.c (graphite_transform_loops): Call on every scop
3399         rewrite_commutative_reductions_out_of_ssa before calling
3400         rewrite_reductions_out_of_ssa and build_scop_bbs.
3401
3402 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3403
3404         * graphite-dependences.c (dot_deps): Make system call to dotty run
3405         in background.
3406         (dot_deps_stmt): Same.
3407         * graphite-poly.c (dot_lst): Same.
3408
3409 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3410
3411         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
3412         phi_arg_in_outermost_loop.
3413         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
3414         (remove_invariant_phi): Same.
3415
3416 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
3417
3418         * target.def (output_addr_const_extra): New hook.
3419         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
3420         * doc/tm.texi: Regenerate.
3421         * targhooks.c (default_asm_output_addr_const_extra): New function.
3422         * targhooks.h (default_asm_output_addr_const_extra): Declare.
3423         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
3424         target hook.
3425
3426         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3427         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
3428         * config/i386/i386.h (output_addr_const_extra): Rename to...
3429         (i386_asm_output_addr_const_extra): ...this. Make static.
3430         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3431
3432 2010-08-11  Richard Henderson  <rth@redhat.com>
3433
3434         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
3435
3436 2010-08-11  Nick Clifton  <nickc@redhat.com>
3437
3438         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
3439         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
3440         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3441         stormy16-lib2-cmpsi.c.
3442
3443         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
3444         -O2.
3445
3446 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3447
3448         * opts.h (struct cl_option_handler_func): Make handler take
3449         cl_decoded_option structure as parameter, not individual elements.
3450         (struct cl_option_handlers): Make callbacks take cl_decoded_option
3451         structure as parameter, not individual elements.
3452         (handle_option): Take cl_decoded_option structure as parameter,
3453         not individual elements.
3454         (handle_generated_option): Declare.
3455         * opts-common.c (handle_option): Take cl_decoded_option structure
3456         as parameter, not individual elements.  Update calls to callback
3457         and handler functions.
3458         (handle_generated_option): New.
3459         (read_cmdline_option): Update calls to callback functions and
3460         handle_option.
3461         * opts.c (common_handle_option, complain_wrong_lang,
3462         unknown_option_callback, post_handling_callback,
3463         lang_handle_option, target_handle_option): Take cl_decoded_option
3464         structure as parameter, not individual elements.
3465         (lang_handle_option, target_handle_option, common_handle_option):
3466         Assert option has at most one argument.
3467         (enable_warning_as_error): Call handle_generated_option instead of
3468         handle_option.  Do not pass -Werror argument as argument of
3469         generated option.
3470
3471 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3472
3473         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3474         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3475         (SUBWORD_BOOL_CAS): Likewise.
3476         (SUBWORD_SYNC_OP): Likewise.
3477         (SUBWORD_TEST_AND_SET): Likewise.
3478         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3479         (SUBWORD_SYNC_OP): Likewise.
3480         (OP_AND_FETCH_WORD): Likewise.
3481
3482 2010-08-10  Xinliang David Li  <davidxl@google.com>
3483
3484         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
3485         compute max/min offset in address.
3486
3487 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
3488
3489         * ira-live.c: Include sbitmap.h.
3490         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
3491         Compress live ranges even more.
3492
3493 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3494
3495         * coverage.c (ctr_labels): Delete.
3496
3497 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3498
3499         PR bootstrap/45177
3500         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
3501         test here from arm_gen_load_multiple_1.
3502         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
3503         multiple_operation_profitable_p.
3504
3505 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3506
3507         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
3508         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
3509
3510 2010-08-10  Richard Henderson  <rth@redhat.com>
3511
3512         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
3513         after saving registers.  Assert that SSE registers are only saved
3514         with a sufficiently aligned frame.
3515         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
3516         remove stack_realign_fp handling.
3517         (ix86_expand_prologue): Save int registers before stack_realign_fp,
3518         and do not mark the stack alignment as frame related.
3519         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
3520
3521         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
3522         saves when re-aligning the stack.
3523
3524 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3525
3526         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
3527         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
3528         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
3529
3530 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3531
3532         * dwarf2out.c (struct die_struct): Move die_tag to the end.
3533
3534 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
3535
3536         * config/arm/iterators.md: New file.
3537         * config/arm/arm.md: Include iterators.md.
3538         (QHSI): Move to new file.
3539         (LTUGEU, cnb, optab, ior_xor): Likewise.
3540         * config/arm/iwmmxt.md (VMMX): Move to new file.
3541         (VSHFT, MMX_char): Likewise.
3542         * config/arm/neon.md (VD): Move to new file.
3543         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
3544         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
3545         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
3546         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
3547         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
3548         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
3549         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
3550         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
3551         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
3552         (Is_d_reg, V_mode_nunits): Likewise.
3553         * config/arm/vec-common.md (VALL): Move to new file.
3554         (VALLW, VINT, VINTW): Likewise.
3555
3556 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3557
3558         PR middle-end/45182
3559         * combine.c (make_compound_operation): Don't try to convert
3560         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
3561
3562 2010-08-10  Richard Guenther  <rguenther@suse.de>
3563
3564         * tree.h (get_object_alignment): Adjust prototype.
3565         * builtins.c (get_object_alignment): Return unsigned int,
3566         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
3567         and TARGET_MEM_REF properly.
3568         (get_pointer_alignment): Adjust.
3569         * emit-rtl.c (get_mem_align_offset): Adjust comment.
3570         (set_mem_attributes_minus_bitpos): Adjust.
3571         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
3572
3573 2010-08-10  Richard Guenther  <rguenther@suse.de>
3574
3575         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
3576         (copy_prop_visit_assignment): Simplify.
3577         (copy_prop_visit_stmt): Also visit assignments from
3578         constants.
3579         (copy_prop_visit_phi_node): Use operand_equal_p.
3580
3581 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3582
3583         * ipa-split.c (find_split_points): Free stack.
3584
3585 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3586
3587         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
3588         * tree.c (tree_node_kind): Delete corresponding entries.
3589
3590 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3591
3592         * alias.c (may_alias_p): Remove unused ret.
3593
3594 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
3595
3596         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
3597         alias_sets_conflict_p.
3598         (walk_mems_1): Moved from alias.c.
3599         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
3600         in alias.c.
3601         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
3602         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
3603         * alias.c (walk_mems_2): Moved to ddg.c.
3604         (walk_mems_1): Ditto.
3605         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
3606         to ddg.c.
3607         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
3608         disambiguation.
3609         *(may_alias_p): New function to check whether two memory expression
3610         may alias or not. Currently used in buidling inter-iteration memory
3611         dependence.
3612         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
3613         (insn_alias_sets_conflict_p): Removed
3614         *rtl.h (may_alias_p): New function prototype.
3615
3616 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3617
3618         * tree.c (nreverse): Assert that we don't have a BLOCK.
3619
3620 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3621
3622         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
3623         * config/arm/arm.c (arm_get_pcs_model): Likewise.
3624         * config/avr/avr.c (init_cumulative_args): Likewise.
3625         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3626         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3627         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
3628         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3629         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3630         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3631         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3632         * dwarf2out.c (gen_subprogram_die): Likewise.
3633         * function.c (allocate_struct_function): Likewise.
3634         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
3635         (deserves_ellipsis): Delete.
3636
3637 2010-08-09  Richard Guenther  <rguenther@suse.de>
3638
3639         * tree-ssa-copy.c (cached_last_copy_of): Remove.
3640         (valueize_val): New function.
3641         (get_last_copy_of): Remove.
3642         (set_copy_of_val): Simplify.
3643         (dump_copy_of): Likewise.
3644         (copy_prop_visit_cond_stmt): Use valueize_val.
3645         (copy_prop_visit_phi_node): Properly handle unvisited names.
3646         Drop code managing copy-of chains.
3647         (init_copy_prop): Adjust.
3648         (fini_copy_prop): Likewise.
3649         (execute_copy_prop): Remove obsolete comment.
3650
3651 2010-08-09  Richard Guenther  <rguenther@suse.de>
3652
3653         PR middle-end/44632
3654         * function.c (gimplify_parameters): Do not clear addressable
3655         bit of the original parameter.
3656
3657 2010-08-09  Richard Guenther  <rguenther@suse.de>
3658
3659         PR middle-end/45212
3660         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
3661         alignment from MEM_REF offset only if we took it from the
3662         base object.
3663
3664 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
3665
3666         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
3667
3668 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3669
3670         * c-tree.h (build_arg_info): Declare.
3671         * c-decl.c (build_arg_info): Define.
3672         (get_parm_info): Call it.  Delete initialization code.
3673         * c-parser.c (c_parser_parms_declarator): Likewise.
3674         (c_parser_parms_list_declaractor): Likewise.
3675
3676 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3677
3678         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
3679         (struct c_arg_info): Change type of tags field.
3680         * c-decl.c (grokdeclarator): Update for changed type of tags field.
3681         (get_parm_info): Likewise.
3682         (store_parm_decls_newstyle): Likewise.
3683
3684 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3685
3686         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
3687         (branch_island_list): Delete.
3688         (branch_islands): Declare.
3689         (add_compiler_branch_island): Adjust for branch_islands instead of
3690         branch_island_list.
3691         (macho_branch_islands): Likewise.
3692         (no_previous_def): Likewise.
3693         (get_prev_label): Likewise.
3694
3695 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3696
3697         PR boehm-gc/34544
3698         * gthr-posix.h (__gthread_start): Delete.
3699         (__gthread_active_init): Use pthread_default_stacksize_np instead of
3700         pthread_create to determine if hpux pthreads are active.
3701         * gthr-posix95.h (__gthread_start): Delete.
3702         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
3703
3704 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
3705
3706         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
3707         _WIN64 not expanded.
3708
3709 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
3710             H.J. Lu  <hongjiu.lu@intel.com>
3711
3712         PR target/45213
3713         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
3714         to output 32bit SFmode immediate as 8 byte sign extended value.
3715
3716 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3717
3718         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3719         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3720         (SUBWORD_BOOL_CAS): Likewise.
3721         (SUBWORD_SYNC_OP): Likewise.
3722         (SUBWORD_TEST_AND_SET): Likewise.
3723         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3724         (SUBWORD_SYNC_OP): Likewise.
3725         (OP_AND_FETCH_WORD): Likewise.
3726
3727 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3728
3729         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
3730         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
3731         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
3732         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
3733         generic part.
3734         (cortex_a9_sched_adjust_cost): New function.
3735         (xscale_sched_adjust_cost): New function.
3736         * config/arm/arm-protos.h (struct tune_params): New field
3737         sched_adjust_cost.
3738         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
3739
3740 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
3741
3742         PR target/44942
3743         * config/sparc/sparc.c (function_arg_advance): Always take into account
3744         the padding, if any.
3745
3746 2010-08-06  Richard Guenther  <rguenther@suse.de>
3747
3748         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
3749         (dump_lattice_value): Dump it.
3750         (get_default_value): Adjust.
3751         (get_constant_value): Likewise.
3752         (set_value_varying): Likewise.
3753         (set_lattice_value): Make sure to not go up the lattice
3754         with bitwise constant values.
3755         (get_value_for_expr): Handle ADDR_EXPRs.
3756         (value_to_double_int): New function.
3757         (get_value_from_alignment): Likewise.
3758         (do_dbg_cnt): Adjust.
3759         (ccp_lattice_meet): Handle partially constant values.
3760         (bit_value_unop_1): New function.
3761         (bit_value_binop_1): Likewise.
3762         (bit_value_unop): Likewise.
3763         (bit_value_binop): Likewise.
3764         (evaluate_stmt): Track partially constant values if
3765         flag_tree_bit_ccp is set.
3766         (ccp_fold_stmt): Dump if we folded a predicate.
3767         (ccp_visit_stmt): Adjust.
3768         * common.opt (ftree-bit-ccp): New flag.
3769         * doc/invoke.texi (ftree-bit-ccp): Document.
3770         * opts.c (decode_options): Enable bit-CCP at -O1.
3771
3772 2010-08-06  Alan Modra  <amodra@gmail.com>
3773
3774         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
3775         and -mrelocatable-lib description.
3776
3777 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3778
3779         From Martin Thuresson  <martint@google.com>
3780         * postreload.c (reload_cse_simplify_operands): Use
3781         SET_REGNO_RAW instead of SET_REGNO.
3782         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
3783         SET_REGNO.
3784         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
3785         instead of SET_REGNO.
3786         * rtl.h (SET_REGNO_RAW): New macro.
3787
3788 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
3789
3790         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
3791         computations.  Fix formatting issues.
3792         (num_sign_bit_copies1): Likewise.
3793         (canonicalize_condition): Likewise.
3794
3795 2010-08-05  Richard Henderson  <rth@redhat.com>
3796
3797         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
3798         (floor_log2): Use clz_hwi.
3799         (exact_log2): Use ctz_hwi.
3800         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
3801         * builtins.c (fold_builtin_bitop): Use them.
3802         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3803         * combine.c (get_pos_from_mask): Use ctz_hwi.
3804         * double-int.c (double_int_ctz): Likewise.
3805         * explow.c (force_reg): Likewise.
3806         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
3807
3808 2010-08-05  Richard Henderson  <rth@redhat.com>
3809
3810         PR target/45189
3811         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
3812         the alignment constant is properly sign-extended.
3813
3814 2010-08-05  Richard Guenther  <rguenther@suse.de>
3815
3816         * expr.c (store_expr): Use emit_block_move only if both
3817         source and target are MEMs.  Use store_bit_field if only
3818         the target is a MEM.
3819
3820 2010-08-05  Richard Henderson  <rth@redhat.com>
3821
3822         PR debug/45188
3823         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
3824         (INCOMING_RETURN_ADDR_RTX): Likewise.
3825         (dwarf2out_do_frame): Remove conditional compilation.
3826         (dwarf2out_frame_init): Likewise.
3827
3828 2010-08-05  Nicolas Setton  <setton@adacore.com>
3829
3830         * gcov.c (flag_display_progress): New static variable.
3831         (main): Display progress info on standard output if requested.
3832         (options): Add -d/--display-progress.
3833         (print_usage): Print them.
3834         (process_args): Handle them.
3835         * doc/gcov.texi: Document them.
3836
3837 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3838
3839         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
3840         (ipcp_insert_stage): Redirect only edges not flagged with
3841         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
3842         discovered constants.
3843
3844 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3845
3846         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
3847         (struct ipa_param_descriptor): New fields types and
3848         cannot_devirtualize.
3849         (ipa_param_cannot_devirtualize_p): New function.
3850         (ipa_param_types_vec_empty): Likewise.
3851         (ipa_make_edge_direct_to_target): Declare.
3852         * ipa-cp.c: Fixed first stage driver name in initial comment,
3853         described devirtualization there too.
3854         (ipcp_analyze_node): Call ipa_analyze_params_uses.
3855         (ipcp_print_all_lattices): Print devirtualization info.
3856         (ipa_set_param_cannot_devirtualize): New function.
3857         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
3858         lattice to BOTTOM.
3859         (ipcp_init_stage): Merged into...
3860         (ipcp_generate_summary): ...its caller.
3861         (ipcp_change_tops_to_bottom): Also process type lists.
3862         (ipcp_add_param_type): New function.
3863         (ipcp_copy_types): Likewise.
3864         (ipcp_propagate_types): Likewise.
3865         (ipcp_propagate_stage): Also propagate types.
3866         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
3867         Also return true if propagated types require it.
3868         (ipcp_update_callgraph): Dump redirection info.
3869         (ipcp_process_devirtualization_opportunities): New function.
3870         (ipcp_const_param_count): Include known type information.
3871         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
3872         on new node.  Fixed formatting.
3873         * ipa-prop.c (make_edge_direct_to_target): Renamed to
3874         ipa_make_edge_direct_to_target and changed all callers.  Made
3875         externally visible.
3876         (ipa_node_duplication_hook): Duplicate types vector.
3877         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
3878         redirect outgoing calls for which we can't get a decl from the
3879         statement.  Check that we can get a decl from the call statement.
3880         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3881         ipa_analyze_params_uses only when ipa-cp is disabled.
3882         * tree-inline.c (get_indirect_callee_fndecl): Removed.
3883         (expand_call_inline): Do not call get_indirect_callee_fndecl.
3884         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
3885         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
3886
3887 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3888
3889         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
3890         temporary. Emit move from temporary to accum, so REG_EQUAL note will
3891         be attached to this insn in correct mode.
3892
3893 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3894
3895         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
3896         using REGNO of base_reg directly.
3897
3898 2010-08-05  Jie Zhang  <jie@codesourcery.com>
3899
3900         PR tree-optimization/45144
3901         * tree-sra.c (type_consists_of_records_p): Return false
3902         if the record contains bit-field.
3903
3904 2010-08-04  Richard Henderson  <rth@redhat.com>
3905
3906         * config/i386/i386.c (struct ix86_frame): Remove padding and
3907         to_allocate members.
3908         (ix86_compute_frame_layout): Don't store them.
3909         (ix86_can_use_return_insn_p): Use a more direct and more obviously
3910         correct condition for the position of the stack pointer.
3911         (ix86_expand_prologue): Compute remaining stack allocation based
3912         on the ultimate stack pointer offset.
3913         (ix86_expand_epilogue): Use more obvious expressions testing for
3914         the stack pointer already pointing to the saved registers.
3915
3916         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
3917         duplication deconstructing the frame pointer.  Simplify
3918         deallocation of the local stack frame.
3919
3920         * reg-notes.def (CFA_EXPRESSION): New.
3921         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3922         (dwarf2out_frame_debug_cfa_expression): New.
3923         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
3924
3925         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
3926         * config/i386/i386.c (ix86_expand_prologue): Set it.
3927         (ix86_expand_epilogue): Clear it.
3928         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
3929         context, add REG_CFA_EXPRESSION notes.
3930
3931         * config/i386/i386.h (struct machine_frame_state): Rename from
3932         machine_cfa_state.  Add members tracking SP and FP regardless
3933         of the current CFA register.
3934         (ix86_cfa_state): Remove.
3935         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
3936         and sse_reg_save_offset members.
3937         (ix86_compute_frame_layout): Set them.
3938         (gen_push): Increment sp_offset too.
3939         (choose_baseaddr_len, choose_baseaddr): New.
3940         (ix86_emit_save_reg_using_mov): New.
3941         (ix86_emit_save_regs_using_mov): Use it.
3942         (ix86_emit_save_sse_regs_using_mov): Likewise.
3943         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
3944         compare vs the saved red_zone_offset.
3945         (pro_epilogue_adjust_stack): Adjust sp_offset.
3946         (ix86_adjust_stack_and_probe): Likewise.
3947         (ix86_expand_prologue): Set up, use, and validate the new
3948         frame_state_info members.  Use gen_frame_mem.
3949         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
3950         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
3951         new frame_state_info members.
3952         (ix86_emit_leave): Likewise.
3953         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
3954         out-of-range stack pointer offsets here.
3955         (ix86_emit_restore_sse_regs_using_mov): Likewise.
3956         (ix86_expand_epilogue): Use and validate the new frame_state_info
3957         members.  Break up and simplify the logic selecting the
3958         restore_regs_via_mov code path.  Ensure that there will be no
3959         out-of-range stack pointer offsets.
3960
3961         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
3962
3963         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
3964         argument name to reflect the expected tree; fix indentation.
3965         (ix86_asm_output_function_label): Output the entire 32-bit
3966         ms_hook here as bytes ...
3967         (ix86_expand_prologue): ... not here as insns.  Attach the
3968         unwind info for the ms_hook to a blockage insn.
3969         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
3970         (ix86_ms_bitfield_layout_p): Fix indentation.
3971         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
3972
3973         * config/i386/i386.c (ix86_using_red_zone): New.
3974         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
3975         ix86_expand_prologue, ix86_force_to_memory): Use it.
3976
3977         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
3978         saving the int registers.
3979
3980         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
3981         and DWARF2_UNWIND_INFO conditional compilation.
3982
3983 2010-08-04  Richard Henderson  <rth@redhat.com>
3984
3985         PR debug/45171
3986         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
3987         an is_naming_typedef_decl.
3988
3989 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
3990
3991         PR rtl-optimization/45162
3992         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
3993         * dce.c (word_dce_process_block): Likewise.
3994
3995 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
3996
3997         PR target/44583
3998         * config/ia64/constraints.md (Z): New.
3999         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
4000         (xfreg_or_signed_fp01_operand): New.
4001         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
4002         with fr_reg_or_signed_fp01_operand and constraint G with Z.
4003         (subsf3): Ditto.
4004         (*maddsf4): Ditto.
4005         (*msubsf4): Ditto.
4006         (adddf3): Ditto.
4007         (adddf3_trunc): Ditto.
4008         (subdf3): Ditto.
4009         (*subdf3_trunc): Ditto.
4010         (*madddf4): Ditto.
4011         (*madddf4_trunc): Ditto.
4012         (*msubdf4): Ditto.
4013         (*msubdf4_trunc): Ditto.
4014         (addxf3): Replace xfreg_or_fp01_operand with
4015         xfreg_or_signed_fp01_operand and constraint G with Z.
4016         (*addxf3_truncsf): Ditto.
4017         (*addxf3_truncdf): Ditto.
4018         (subxf3): Ditto.
4019         (*subxf3_truncsf): Ditto.
4020         (*subxf3_truncdf): Ditto.
4021         (*maddxf4): Ditto.
4022         (*maddxf4_truncsf): Ditto.
4023         (*maddxf4_truncdf): Ditto.
4024         (*msubxf4): Ditto.
4025         (*msubxf4_truncsf): Ditto.
4026         (*msubxf4_truncdf): Ditto.
4027
4028 2010-08-04  Richard Guenther  <rguenther@suse.de>
4029
4030         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
4031         if either alias-set is zero.
4032
4033 2010-08-04  Richard Guenther  <rguenther@suse.de>
4034
4035         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
4036         * tree-ssa-ccp.c: ... here.
4037         * tree-ssa-copy.c: ... and here.
4038         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
4039         value_range_t): Move ...
4040         * tree-vrp.c: ... here.
4041         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
4042         (substitute_and_fold): Adjust prototype.
4043         * tree-ssa-propagate.c (replace_uses_in): Adjust.
4044         (replace_phi_args_in): Likewise.
4045         (substitute_and_fold): Take callback to query lattice instead
4046         of pointer to lattice.  Replace SSA name defs with lattice
4047         values first.
4048         * tree-ssa-ccp.c (ccp_finalize): Adjust.
4049         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
4050         (get_value): New function.
4051         (fini_copy_prop): Adjust.
4052         * tree-vrp.c (vrp_finalize): Adjust.
4053
4054 2010-08-04  Richard Guenther  <rguenther@suse.de>
4055
4056         PR middle-end/45176
4057         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
4058         points-to set for original MEM_REF.
4059
4060 2010-08-04  Richard Guenther  <rguenther@suse.de>
4061
4062         * tree-ssa-ccp.c (get_constant_value): New function.
4063         (get_rhs_assign_op_for_ccp): Remove.
4064         (valueize_op): New function.
4065         (ccp_fold): Use get_constant_value and valueize_op.
4066         (fold_const_aggregate_ref): Likewise.
4067         (ccp_fold_stmt): Likewise.
4068         (visit_assignment): Simplify.
4069
4070 2010-08-04  Richard Guenther  <rguenther@suse.de>
4071
4072         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
4073         * double-int.h (double_int_ctz): Declare.
4074         * double-int.c (double_int_ctz): New function.
4075
4076 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
4077
4078         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
4079         Define.
4080         picochip_expand_movmemhi : Expand movmem pattern.
4081         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
4082         Declare.
4083         * config/picochip/picochip.md (movmemhi) : New pattern.
4084
4085 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4086
4087         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
4088
4089 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
4090
4091         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
4092         NEG as operand of a MULT by merging it with the other operand.
4093         * combine.c (make_compound_operation): Use trunc_int_for_mode when
4094         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
4095         MULT.
4096         * config/arm/constraints.md (M): Examine only 32 bits of a
4097         HOST_WIDE_INT.
4098         * config/arm/predicates.md (power_of_two_operand): Likewise.
4099
4100 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4101
4102         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
4103         non-NOTE insns.
4104
4105 2010-08-03  Jan Hubicka  <jh@suse.cz>
4106
4107         * ipa-split.c (struct split_point): Add split_part_set_retval.
4108         (find_retval): Forward declare.
4109         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
4110         (consider_split): Compute current->split_part_set_retval.
4111         (visit_bb): Do not look into return value.
4112         (split_function): Handle !split_part_set_retval
4113
4114 2010-08-03  Martin Jambor  <mjambor@suse.cz>
4115
4116         * tree-sra.c (completely_scalarize_record): New parameter REF, create
4117         its own access->expr intead of using build_ref_for_offset.
4118
4119 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4120
4121         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
4122         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
4123         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
4124         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
4125         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
4126         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
4127         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
4128         DEFAULT_SWITCH_TAKES_ARG.
4129         * config/rx/rx.opt (-patch=): Remove option.
4130         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
4131         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
4132         * doc/invoke.texi (RX Options): Remove -patch=.
4133         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
4134         (option_map): Remove --profile-blocks, --quiet and --silent.
4135
4136 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4137
4138         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
4139         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
4140         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
4141         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4142         Update calls to ix86_expand_compare and ix86_expand_branch.
4143         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
4144         ix86_expand_compare.
4145         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
4146         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4147         Make static.
4148         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
4149         and ix86_compare_op1.  Update calls to ix86_expand_compare.
4150         (ix86_expand_int_movcc): Ditto.
4151         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
4152         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
4153         (ix86_expand_setcc): Ditto.
4154         (ix86_expand_compare): Remove prototype.
4155         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
4156         ix86_compare_op0 and ix86_compare_op1.  Update calls
4157         to ix86_expand_branch to directly pass operands[1] and operands[2].
4158         (cbranchxf4): Ditto.
4159         (cbranch<MODEF:mode>4): Ditto.
4160         (cbranchcc4): Ditto.
4161         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
4162         Update calls to ix86_expand_setcc to directly pass operands[2] and
4163         operands[3].
4164         (cstorexf4): Ditto.
4165         (cstore<MODEF:mode>4): Ditto.
4166         (cstorecc4): Ditto.
4167
4168 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4169
4170         PR target/45063
4171         * caller-save.c (save_call_clobbered_regs): Remove regs from
4172         hard_regs_saved when they are set.
4173
4174 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
4175
4176         PR target/41089
4177         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4178         as volatile.
4179
4180 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
4181
4182         * common.opt (ftree-loop-distribute-patterns): New.
4183         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
4184         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
4185         at -O3.
4186         * tree-data-ref.c (stores_zero_from_loop): New.
4187         * tree-data-ref.h (stores_zero_from_loop): Declared.
4188         * tree-loop-distribution.c (tree_loop_distribution): Call
4189         stores_zero_from_loop.
4190         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
4191
4192 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4193
4194         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
4195         into account.
4196
4197         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
4198         * config/arm/arm.c (thumb1_code): New variable.
4199         (arm_override_options): Set it.
4200         (thumb1_final_prescan_insn): Keep track of condition code status.
4201         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
4202         jumps that depend on them.
4203         * config/arm/arm.h (thumb1_code): Declare variable.
4204         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
4205         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
4206         thumb1_cc_mode.
4207         (CC_STATUS_INIT): New macro.
4208         * config/arm/constraints.md (Pd): New constraint.
4209         * config/arm/predicates.md (noov_comparison_operator): New predicate.
4210         * config/arm/arm.md (is_thumb1): New define_attr.
4211         (conds): Set default to "clob" when generating Thumb1 code.
4212         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
4213         code are set.  Use two-operand assembly syntax.
4214         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
4215         pattern.
4216         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
4217         codes are set.  Use two-operand assembly syntax.
4218         (zero_extendhisi splitter): Remove constraints.
4219         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
4220         thumb1_movsf_insn): Set conds attribute as appropriate.
4221         (cbranchsi4_insn): Use condition code status from struct
4222         machine_function to determine whether the comparison can be eliminated.
4223         Discourage the alternative using high registers.
4224         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
4225         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
4226         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
4227         subsi3_cbranch): Delete.
4228         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
4229         one subtract and one cbranch insn.
4230
4231         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
4232         thumb2_movdf_soft_insn): Delete patterns.
4233         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
4234         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
4235         (pool_range, neg_pool_range): Use them to define defaults.
4236         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
4237         and allow for TARGET_32BIT.
4238
4239         PR target/40457
4240         * config/arm/arm.h (arm_regs_in_sequence): Declare.
4241         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
4242         load_multiple_sequence, store_multiple_sequence): Delete
4243         declarations.
4244         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
4245         declarations.
4246         * config/arm/ldmstm.md: New file.
4247         * config/arm/arm.c (arm_regs_in_sequence): New array.
4248         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
4249         CHECK_REGS.  All callers changed.
4250         If SAVED_ORDER is nonnull, copy the computed order into it.
4251         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
4252         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
4253         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
4254         If SAVED_ORDER is nonnull, copy the computed order into it.
4255         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
4256         like REGS.  Handle Thumb mode.
4257         (arm_gen_load_multiple_1): New function, broken out of
4258         arm_gen_load_multiple.
4259         (arm_gen_store_multiple_1): New function, broken out of
4260         arm_gen_store_multiple.
4261         (arm_gen_multiple_op): New function, with code from
4262         arm_gen_load_multiple and arm_gen_store_multiple moved here.
4263         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
4264         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
4265         changed.
4266         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
4267         * config/arm/predicates.md (commutative_binary_operator): New.
4268         (load_multiple_operation, store_multiple_operation): Handle more
4269         variants of these patterns with different starting offsets.  Handle
4270         Thumb-1.
4271         * config/arm/arm.md: Include "ldmstm.md".
4272         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
4273         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
4274         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
4275         peepholes): Delete.
4276         * config/arm/ldmstm.md: New file.
4277         * config/arm/arm-ldmstm.ml: New file.
4278
4279         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
4280         if statement which adds extra costs to frame-related expressions.
4281
4282 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4283
4284         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
4285
4286 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
4287
4288         PR target/45142
4289         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
4290         alternative 2.
4291         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
4292         split V4SI operands.
4293
4294 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
4295
4296         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4297         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
4298         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
4299         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4300
4301 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
4302
4303         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
4304         LOCAL_INCLUDE_DIR.
4305
4306 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
4307
4308         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
4309         used in the call to optab_for_tree_code.  Fix the second
4310         is_widening_mult_p call.  Check that both unwidened operands
4311         have the same sign.
4312
4313 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
4314
4315         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
4316
4317 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
4318
4319         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4320
4321 2010-07-30  DJ Delorie  <dj@redhat.com>
4322
4323         * config/rx/predicates.md (rx_constshift_operand): New.
4324         * config/rx/rx.md (zs_cond): New.
4325         (cbranchsi4): Remove mode.
4326         (*cbranchsi4_<code>): Likewise.
4327         (*tstbranchsi4_<code>): New.
4328         (*tstbranchsi4r_<code>): New.
4329         (*tstbranchsi4m_eq): New.
4330         (*tstbranchsi4m_ne): New.
4331         (cbranchsf4): Remove mode.
4332         (*cbranchsf4_<code>): Likewise.
4333
4334 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
4335
4336         * rtlanal.c (simplify_subreg_regno): Don't treat
4337         HARD_FRAME_POINTER_REGNUM specially.
4338
4339 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
4340
4341         * common.opt (-G): Don't define option here.
4342         * config/g.opt: New.
4343         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
4344         rs6000/powerpc and score targets.
4345         * opts.c (common_handle_option): Don't handle -G here.
4346         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
4347         * config/frv/frv.c (frv_handle_option): Handle -G.
4348         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
4349         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
4350         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
4351         * config/mips/mips.c (mips_handle_option): Handle -G.
4352         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
4353         * config/score/score.c (score_handle_option): Handle -G.
4354
4355 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
4356
4357         * config/mmix/mmix.c: Include basic-block.h.
4358
4359 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
4360
4361         PR debug/45055
4362         PR rtl-optimization/45137
4363         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
4364         prototypes.
4365         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
4366         New functions.
4367         * combine.c (next_nonnote_nondebug_insn): Removed.
4368         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
4369         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
4370         * sched-deps.c (sched_analyze_insn): Likewise.
4371         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
4372         * rtlanal.c (canonicalize_condition): Likewise.
4373         * postreload.c (reload_combine_recognize_pattern): Likewise.
4374         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
4375
4376 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
4377
4378         * config/i386/i386.md (int_cond): Remove code iterator.
4379         (fp_cond): Ditto.
4380         (cbranch<mode>4): Use ordered_comparison_operator predicate
4381         for operator0.
4382         (cstore<mode>4): Ditto for operator1.
4383         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
4384         (add<mode>cc): ditto.
4385
4386 2010-07-30  Richard Guenther  <rguenther@suse.de>
4387
4388         PR middle-end/45141
4389         * expr.c (expand_expr_real_1): Check for not handled base address.
4390
4391 2010-07-30  Richard Guenther  <rguenther@suse.de>
4392
4393         * ipa-prop.c (ipa_modify_formal_parameters): Use
4394         build_distinct_type_copy.
4395
4396 2010-07-30  Anthony Green  <green@moxielogic.com>
4397
4398         * config/moxie/rtems.h: New file.
4399         * config.gcc: Add moxie-rtems support.
4400
4401 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4402
4403         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
4404         df flags as in run_fast_df_dce.
4405
4406 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4407
4408         Revert:
4409         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4410
4411         * rtl.def (NOTE): Swap operands 4 and 5.
4412         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
4413         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
4414         Adjust accordingly.
4415         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
4416
4417 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4418
4419         PR debug/45110
4420         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
4421         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
4422         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
4423         formal parameters.
4424         (gen_decl_die): Change return type to dw_die_ref, return what
4425         gen_formal_parameter_die returned.
4426
4427 2010-07-29  Martin Jambor  <mjambor@suse.cz>
4428
4429         * dbgcnt.def (eipa_sra): New counter.
4430         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
4431
4432 2010-07-29  Xinliang David Li  <davidxl@google.com>
4433
4434         PR bootstrap/45119
4435         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
4436         in revision 162652.
4437
4438 2010-07-29  Richard Guenther  <rguenther@suse.de>
4439
4440         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
4441         (TV_TREE_STORE_CCP): Likewise.
4442         (TV_TREE_REDPHI): Likewise.
4443
4444 2010-07-29  Richard Guenther  <rguenther@suse.de>
4445
4446         * double-int.h (double_int_and_not): New function.
4447         * combine.c (try_combine): Use it.
4448         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
4449
4450 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4451
4452         PR rtl-optimization/42575
4453         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
4454         Argument AU removed.  All callers changed.  Ignore artificial refs.
4455         Use return value of df_word_lr_simulate_defs to decide whether an insn
4456         is necessary.
4457         (fast_dce): Rename arg to WORD_LEVEL.
4458         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
4459         static.
4460         (pass_fast_rtl_byte_dce): Delete.
4461         * dce.h (run_word_dce): Declare.
4462         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
4463         All callers changed.  Simplify code to only deal with two-word regs.
4464         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
4465         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
4466         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
4467         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
4468         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
4469         (df_word_lr_mark_ref): Declare.
4470         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
4471         df_word_lr_simulate_uses): Declare or rename from byte variants.
4472         (df_byte_lr_simulate_artificial_refs_at_top,
4473         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4474         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
4475         declarations.
4476         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
4477         (enum df_mm): Delete.
4478         * df-byte-scan.c: Delete file.
4479         * df-problems.c (df_word_lr_problem_data): Renamed from
4480         df_byte_lr_problem_data, all members deleted except for
4481         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
4482         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
4483         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4484         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
4485         df_byte_lr_confluence_0): Delete functions.
4486         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
4487         callers changed.
4488         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
4489         Don't initialize members that were deleted, don't try to discover data
4490         about registers.  Ignore hard regs.
4491         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
4492         (df_word_lr_mark_ref): New function.
4493         (df_word_lr_bb_local_compute): Renamed from
4494         df_byte_bb_lr_local_compute; all callers changed.  Use
4495         df_word_lr_mark_ref.  Assert that artificial refs don't include
4496         pseudos.  Ignore hard registers.
4497         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
4498         Assert that exit block uses don't contain pseudos.
4499         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
4500         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
4501         callers changed.  Ignore hard regs.
4502         (df_word_lr_transfer_function): Renamed from
4503         df_byte_lr_transfer_function; all callers changed.
4504         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
4505         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
4506         changed.
4507         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
4508         callers changed.
4509         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
4510         confluence operator 0 set to NULL.
4511         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
4512         callers changed.
4513         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
4514         Return bool, true if bitmap changed or insn otherwise necessary.
4515         All callers changed.  Simplify using df_word_lr_mark_ref.
4516         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
4517         all callers changed.  Simplify using df_word_lr_mark_ref.
4518         * lower-subreg.c: Include "dce.h"
4519         (decompose_multiword_subregs): Call run_word_dce if df available.
4520         * Makefile.in (lower-subreg.o): Adjust dependencies.
4521         (df-byte-scan.o): Delete.
4522         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
4523
4524 2010-07-29  Richard Guenther  <rguenther@suse.de>
4525
4526         * tree.c (build_vector): Assert that the vector constant
4527         has enough elements.
4528         (build_vector_from_ctor): Pad with trailing zeros.
4529
4530 2010-07-29  Richard Guenther  <rguenther@suse.de>
4531
4532         PR tree-optimization/45120
4533         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4534         Handle offset in DEREFs properly.
4535         (get_constraint_for_1): Handle MEM_REF offset properly.
4536
4537 2010-07-29  Richard Guenther  <rguenther@suse.de>
4538
4539         PR middle-end/45034
4540         * convert.c (convert_to_integer): Always use an unsigned
4541         type for narrowed negate and bitwise not.
4542
4543 2010-07-29  Ira Rosen  <irar@il.ibm.com>
4544
4545         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
4546         to outer loop when creating reduction epilogue for double reduction,
4547         and switch back to the inner loop when updating the phi nodes.
4548         Update uses of outer loop exit phi nodes in double reduction (instead
4549         of uses of reduction).
4550
4551 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
4552
4553         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
4554         popcount on power7 and parity on power6 systems.
4555         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
4556         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
4557         instructions.
4558
4559         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
4560         (UNSPEC_PARITY): Ditto.
4561         (SFDF): New iterator for SF/DF.
4562         (rreg2): New mode attribute for floating register constraint.
4563         (TARGET_FLOAT): New mode attribute for whether single/double float
4564         is supported.
4565         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
4566         pattern.
4567         (parity<mode>2_cmpb): New insn for parity on power6 and newer
4568         machines.
4569         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
4570         pattern.  Add support for fcpsgn instruction added in power6.
4571         (copysignsf3): Delete.
4572         (copysigndf3): Delete.
4573         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
4574         instead of if_then_else in RTL to avoid problems with -0.
4575
4576         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
4577         of if_then_else to mirror scalar code.
4578         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
4579         rs6000.md.
4580
4581         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
4582         instead of if_then_else.
4583
4584 2010-07-28  Xinliang David Li  <davidxl@google.com>
4585
4586         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
4587         (dump_cand): Dump var_before/after.
4588         (htab_inv_expr_eq): New function.
4589         (htab_inv_expr_hash): New function.
4590         (tree_ssa_iv_optimize_init): Support pseudo invariants.
4591         (add_candidate_1): consider base type precision.
4592         (set_use_iv_cost): New parameter.
4593         (adjust_setup_cost): Use profile information.
4594         (get_address_cost): Do not hard code width in computing address
4595         offset limits.
4596         (compare_aff_trees): New function.
4597         (get_loop_invariant_expr_id): New function.
4598         (get_computation_cost_at): New parameter and use profile information.
4599         (get_computation_cost): New parameter.
4600         (determine_use_iv_cost_generic): Pass new parameter.
4601         (determine_use_iv_cost_address): Ditto.
4602         (determine_use_iv_cost_condition): Ditto.
4603         (autoinc_possible_for_pair): Ditto.
4604         (determine_use_iv_costs): More dumps.
4605         (iv_ca_get_num_inv_exprs): New function.
4606         (iv_ca_recount_cost): Consider loop invariants in register pressure
4607         cost.
4608         (iv_ca_add_use): New parameter.
4609         (iv_ca_dump): Better dumping.
4610         (iv_ca_extend): New parameter.
4611         (try_add_cand_for): Attempt to get better partial solution.
4612         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
4613         (create_new-ivs): More dumps.
4614         (rewrite_use_compare): Ditto.
4615         (free_loop_data): More cleanup.
4616         (treee_ssa_iv_optimize_finalize): Ditto.
4617
4618 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
4619
4620         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
4621         * config/i386/i386.c (ix86_profile_before_prologue): New.
4622         (override_options): Add special handling for -mfentry.
4623         (ix86_function_regparm): Likewise.
4624         (ix86_function_sseregparm): Likewise.
4625         (ix86_frame_pointer_required): Likewise.
4626         (ix86_expand_prologue): Check for ms_hook_prologue.
4627         (x86_function_profiler): Adjust mcount output.
4628         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
4629         * config/i386/i386.opt (mfentry): New.
4630         * doc/invoke.texi (mfentry): Add documentation.
4631         * doc/tm.texi: Regenerated..
4632         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
4633         * final.c (final_start_function): Replace macro
4634         PROFILE_BEFORE_PROLOGUE by target hook.
4635         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4636         * target.def (profile_before_prologue): New hook.
4637         * targhooks.c (default_profile_before_prologue): New.
4638         * targhooks.h (default_profile_before_prologue): New.
4639
4640 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
4641
4642         PR debug/45105
4643         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
4644
4645         PR debug/45103
4646         * dwarf2out.c (dwarf2out_var_location): Always consider
4647         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
4648
4649 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4650
4651         PR rtl-optimization/45107
4652         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
4653
4654 2010-07-28  Richard Guenther  <rguenther@suse.de>
4655
4656         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
4657         (set_lattice_value): Do not query an old default value.
4658         (get_value_for_expr): New function.  Properly canonicalize
4659         float values.
4660         (ccp_visit_phi_node): Use it.
4661
4662 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
4663
4664         * config/arm/arm.c (arm_pcs_default): Remove static.
4665         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
4666         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
4667         (arm_pcs_default): Declare.
4668
4669 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
4670
4671         * config/rs6000/rs6000.c (rs6000_override_options):
4672         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
4673         ... to darwin_rs6000_override_options.
4674         (rs6000_return_in_memory): Update preceding comment for darwin
4675         64 bit ABI.  Use TARGET_MACHO inline.
4676         (rs6000_darwin64_struct_check_p): New.
4677         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
4678         (function_arg): Likewise.
4679         (rs6000_arg_partial_bytes): Likewise.
4680         (rs6000_function_value): Likewise.
4681
4682 2010-07-28  Andi Kleen <ak@linux.intel.com>
4683
4684         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
4685
4686 2010-07-28  Richard Guenther  <rguenther@suse.de>
4687
4688         PR middle-end/44903
4689         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
4690         targets try harder to not generate unaligned accesses.
4691
4692 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4693
4694         PR rtl-optimization/45101
4695         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
4696         for gcse-las.
4697
4698 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4699
4700         PR tree-optimization/44885
4701         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
4702         with non-aliased component.
4703
4704 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
4705
4706         * config/darwin-driver.c (SWITCH_TAKES_ARG,
4707         WORD_SWITCH_TAKES_ARG): Remove.
4708         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4709         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
4710         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
4711         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
4712         definitions from gcc.c.
4713         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
4714         defaults.h.
4715         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
4716         Move to defaults.h.
4717         * opts-common.c: Include tm.h.
4718         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
4719         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
4720         Handle more than one argument.  Set canonical_option_num_elements.
4721         (decode_cmdline_options_to_array): Set
4722         canonical_option_num_elements and trailing elements of
4723         canonical_option.
4724         * opts.h (struct cl_decoded_option): Allow four elements in
4725         canonical_option.  Add field canonical_option_num_elements.
4726         * Makefile.in (opts-common.o): Update dependencies.
4727
4728 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4729
4730         PR middle-end/44790
4731         PR middle-end/44993
4732         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
4733         sure the base has address_mode before adding the offset.
4734
4735 2010-07-27  Xinliang David Li <davidxl@google.com>
4736
4737         * tree-flow.h (create_mem_ref): Add one new parameter.
4738         * tree-ssa-address.c (create_mem_ref): New parameter.
4739         (addr_to_parts): Ditto.
4740         (move_variant_to_index): New function.
4741         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
4742
4743 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4744
4745         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
4746         4 and 5.
4747         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
4748         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
4749         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
4750         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
4751         CODE_LABELs and NOTEs.
4752         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
4753         * combine.c (try_combine): Likewise.
4754         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4755         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
4756
4757 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4758
4759         * coretypes.h (struct cl_option_handlers): Declare.
4760         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
4761         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
4762         * langhooks-def.h (lhd_handle_option): Declare.
4763         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
4764         * langhooks.c (lhd_handle_option): New.
4765         * langhooks.h (struct lang_hooks): Update prototype and return
4766         value type of handle_option hook.
4767         * optc-gen.awk: Generate target_flags_explicit definition for the
4768         driver.
4769         * opts-common.c: Include diagnostic.h.
4770         (handle_option): Move from opts.c.  Update prototype and return
4771         value type.  Use handlers structure.
4772         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
4773         handlers structure.
4774         (set_option): Move from opts.c.
4775         * opts.c (common_handle_option): Update prototype and return value
4776         type.  Update calls to handle_option and enable_warning_as_error.
4777         (unknown_option_callback, post_handling_callback,
4778         lang_handle_option, target_handle_option): New.
4779         (handle_option, read_cmdline_option): Move to opts-common.c.
4780         (read_cmdline_options): Update prototype.  Update call to
4781         read_cmdline_option.
4782         (decode_options): Initialize and use handlers structure.
4783         (set_option): Move to opts-common.c.
4784         (enable_warning_as_error): Update prototype.  Update call to
4785         handle_option.
4786         * opts.h (struct cl_option_handler_func, struct
4787         cl_option_handlers): New.
4788         (handle_option, enable_warning_as_error): Update prototypes.
4789         (read_cmdline_option): Declare.
4790         * Makefile.in (opts-common.o): Update dependencies.
4791
4792 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4793
4794         * config/arm/arm.c (params.h): Include.
4795         (arm_override_options): Tune gcse-unrestricted-cost.
4796         * config/arm/t-arm (arm.o): Define dependencies.
4797
4798 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4799
4800         PR target/42495
4801         PR middle-end/42574
4802         * basic-block.h (get_dominated_to_depth): Declare.
4803         * dominance.c (get_dominated_to_depth): New function, use
4804         get_all_dominated_blocks as a base.
4805         (get_all_dominated_blocks): Use get_dominated_to_depth.
4806
4807         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
4808         (hoist_exprs): Remove.
4809         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
4810         (compute_code_hoist_vbeinout): Add debug print outs.
4811         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
4812
4813         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
4814         quadratic behavior.
4815         * params.h (MAX_HOIST_DEPTH): New macro.
4816         * doc/invoke.texi (max-hoist-depth): Document.
4817
4818 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4819
4820         PR rtl-optimization/40956
4821         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
4822         constants.
4823
4824 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4825
4826         PR target/42495
4827         PR middle-end/42574
4828         * config/arm/arm.c (legitimize_pic_address): Use
4829         gen_calculate_pic_address pattern to emit calculation of PIC address.
4830         (will_be_in_index_register): New function.
4831         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
4832         (thumb1_legitimate_address_p): Use it provided !strict_p.
4833         * config/arm/arm.md (calculate_pic_address): New expand and split.
4834
4835 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4836
4837         PR target/42495
4838         PR middle-end/42574
4839         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
4840         * config/arm/arm.md (define_split "J", define_split "K"): Make
4841         IRA/reload friendly.
4842
4843 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4844
4845         * gcse.c (insert_insn_end_basic_block): Update signature, remove
4846         unused checks.
4847         (pre_edge_insert, hoist_code): Update.
4848
4849 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4850
4851         PR target/42495
4852         PR middle-end/42574
4853         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
4854
4855 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4856
4857         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
4858
4859 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4860
4861         PR rtl-optimization/40956
4862         PR target/42495
4863         PR middle-end/42574
4864         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
4865         for hoisting.
4866         (hoist_code): Count occurences in current block too.
4867
4868 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4869
4870         * gcse.c (struct expr:max_distance): New field.
4871         (doing_code_hoisting_p): New static variable.
4872         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
4873         simple expressions, don't change behavior for PRE.  Set max_distance.
4874         (insert_expr_in_table): Set new max_distance field.
4875         (hash_scan_set): Update.
4876         (hoist_expr_reaches_here_p): Stop search after max_distance
4877         instructions.
4878         (find_occr_in_bb): New static function.  Use it in ...
4879         (hoist_code): Calculate sizes of basic block before any changes are
4880         done.  Pass max_distance to hoist_expr_reaches_here_p.
4881         (one_code_hoisting_pass): Set doing_code_hoisting_p.
4882
4883         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
4884         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
4885         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
4886         macros.
4887         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
4888         Document.
4889
4890 2010-07-27  Jeff Law  <law@redhat.com>
4891             Maxim Kuvyrkov  <maxim@codesourcery.com>
4892
4893         * gcse.c (compute_transpout, transpout): Remove, move logic
4894         to prune_expressions.
4895         (compute_pre_data): Move pruning of trapping expressions ...
4896         (prune_expressions): ... here.  New static function.
4897         (compute_code_hoist_data): Use it.
4898         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
4899
4900 2010-07-27  Xinliang David Li  <davidxl@google.com>
4901
4902         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
4903         (rewrite_use_address): Adjust iv update position when needed.
4904
4905 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4906
4907         * dbgcnt.def (hoist_insn): New debug counter.
4908         * gcse.c (hoist_code): Use it.
4909
4910 2010-07-27  Xinliang David Li  <davidxl@google.com>
4911
4912         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
4913         (niter_for_single_dom_exit): Passes additional parameter.
4914         (iv_period): Fix comments.
4915         (may_eliminate_iv): Handles multiple exit loops properly.
4916         (free_tree_niter_desc): New function.
4917         (free_loop_data): Frees up loop iteration descriptors.
4918
4919 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4920
4921         PR target/44542
4922         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
4923         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
4924         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
4925         (expand_one_var): Don't consider DECL_ALIGN for variables for
4926         which expand_one_stack_var_at has been already called.
4927
4928         PR testsuite/44701
4929         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
4930         constraints on IA-64.
4931
4932 2010-07-27  Jie Zhang  <jie@codesourcery.com>
4933
4934         PR target/44290
4935         Revert:
4936         2010-07-23  Jie Zhang  <jie@codesourcery.com>
4937
4938         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4939         false if ! tree_versionable_function_p.
4940
4941 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4942
4943         * dwarf2out.c (add_data_member_location_attribute): Use
4944         add_AT_unsigned instead of add_AT_int if offset is non-negative.
4945
4946 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4947
4948         * postreload.c (try_replace_in_use): New static function.
4949         (reload_combine_recognize_const_pattern): Use it here.  Allow
4950         substituting into a final add insn, and substituting into a memory
4951         reference in an insn that sets the reg.
4952
4953 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4954
4955         * common.opt (o): Add MissingArgError.
4956         * doc/options.texi (MissingArgError): Document.
4957         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
4958         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
4959         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4960         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
4961         * langhooks.h (struct lang_hooks): Remove missing_argument.
4962         * optc-gen.awk: Handle MissingArgError and output new structure
4963         field initializers.
4964         * opts.c (read_cmdline_option): Use missing_argument_error field
4965         instead of missing_argument langhook.
4966         * opts.h (struct cl_option): Add missing_argument_error field.
4967         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
4968
4969 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
4970
4971         PR target/29090
4972         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
4973         Darwin64 ABI, for zero-sized objects.
4974
4975 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
4976
4977         PR target/35491
4978         PR target/29090
4979
4980         Merge from Apple local 4.2.1.
4981         2005-05-11  Stan Shebs  <shebs@apple.com>
4982         Fix 64-bit varargs for Darwin (Radar 4028089).
4983         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
4984         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4985         Add argument, add case for 8-byte register half-filled with a float.
4986         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
4987         single-precision floats specially.
4988
4989 2010-07-27  Ira Rosen  <irar@il.ibm.com>
4990
4991         PR tree-optimization/44152
4992         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
4993         complex numbers for further check.
4994         (vect_supported_load_permutation_p): Check nodes with
4995         complex numbers.
4996
4997 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4998
4999         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
5000         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
5001         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
5002         (LANG_HOOKS_INITIALIZER): Add new hooks.
5003         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
5004         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
5005         and complain_wrong_lang_p.  Update init_options prototype.
5006         * c-objc-common.c (c_initialize_diagnostics): First call
5007         c_common_initialize_diagnostics.
5008         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
5009         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
5010         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
5011         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
5012         (hook_uint_void_0): New.
5013         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
5014         (hook_uint_void_0): New.
5015         * opts-common.c (decode_cmdline_option,
5016         decode_cmdline_options_to_array): Also fill in canonical_option field.
5017         * opts.c (complain_wrong_lang): Use langhook to determine whether
5018         to complain instead of special-casing LTO.
5019         (decode_options): Separate lang_mask determination with
5020         option_lang_mask hook from call of init_options hook.
5021         * opts.h (struct cl_decoded_option): Add canonical_option.
5022
5023 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5024
5025         PR tree-optimization/45083
5026         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
5027
5028 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5029
5030         * postreload.c (reload_combine_recognize_const_pattern): Move test
5031         for limiting the insn movement to the right scope.
5032
5033         PR rtl-optimization/45051
5034         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
5035         than reg_mentioned_p.
5036
5037 2010-07-26  Richard Henderson  <rth@redhat.com>
5038
5039         PR target/44132
5040         * tree-emutls.c: New file.
5041         * Makefile.in (OBJS-common): Add it.
5042         * tree-pass.h (pass_ipa_lower_emutls): Declare.
5043         * passes.c (init_optimization_passes): Add it.
5044
5045         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
5046         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
5047         * expr.c (emutls_var_address): Delete.
5048         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
5049         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
5050         (emutls_finish): Delete.
5051         * toplev.c (compile_file): Don't call it.
5052         * tree.h (emutls_decl): Delete.
5053         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
5054         (emutls_finish, emutls_finalize_control_var): Delete.
5055         (emutls_object_type): Move to tree-emutls.c.
5056         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
5057         default_emutls_var_fields, get_emutls_object_type,
5058         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
5059         default_emutls_var_init): Likewise.
5060         (get_variable_section): Don't special case emutls.
5061         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
5062         default_elf_select_section, default_unique_section,
5063         default_encode_section_info): Likewise.
5064         * varpool.c (decide_is_variable_needed): Likewise.
5065         * gimple-iterator.c (update_call_edge_frequencies): New
5066         (gsi_insert_on_edge_immediate): Use it.
5067         (gsi_insert_seq_on_edge_immediate): Likewise.
5068         (gsi_commit_one_edge_insert): Likewise.
5069
5070         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
5071         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
5072         (x86_64_elf_unique_section): Likewise.
5073
5074 2010-07-26  Jan Hubicka  <jh@suse.cz>
5075
5076         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
5077         GTY((skip)).
5078
5079 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
5080
5081         * target.def (output_source_filename): New hook.
5082         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
5083         * doc/tm.texi: Regenerate.
5084         * toplev.c (output_file_directive) Remove function.
5085         * toplev.h (output_file_directive) Remove.
5086         * output.h (default_asm_output_source_filename,
5087         output_file_directive): Declare.
5088         * varasm.h (default_asm_output_source_filename,
5089         output_file_directive): New functions.
5090
5091         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5092         * config/mips/mips-protos.h (mips_output_filename): Remove.
5093         * config/mips/mips.c (mips_output_filename): Make Static.
5094         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5095
5096 2010-07-26  Richard Guenther  <rguenther@suse.de>
5097
5098         PR tree-optimization/43784
5099         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
5100         if the destination is used by the call.
5101
5102 2010-07-26  Richard Guenther  <rguenther@suse.de>
5103
5104         PR middle-end/45073
5105         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
5106         SSA updating on being in SSA form.
5107
5108 2010-07-26  Richard Guenther  <rguenther@suse.de>
5109
5110         PR middle-end/45056
5111         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
5112
5113 2010-07-26  Richard Guenther  <rguenther@suse.de>
5114
5115         PR tree-optimization/45071
5116         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
5117         adjust op->opcode.
5118
5119 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
5120
5121         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
5122         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
5123         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
5124         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
5125         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
5126         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
5127         save_r31, return_r31, save_interrupt, return_interrupt,
5128         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
5129         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
5130         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
5131         new ABI requirements.
5132         (save_r6_r9, L_callt_save_r6_r9): Remove.
5133         * config/v850/predicates.md (even_reg_operand, disp23_operand,
5134         const_float_1_operand const_float_0_operand): New Predicates.
5135         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
5136         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
5137         * config/v850/t-v850: Update multilibs for new target variants.
5138         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
5139         * config/v850/t-v850e: Likewise.
5140         * config/v850/v850.c (v850_issue_rate): New.
5141         (v850_strict_argument_naming): New.
5142         (function_arg): Modify to generate a different ABI.
5143         (print_operand): Update case 'z' to support float modes.
5144         (output_move_single): Modify to generate appropriate and better
5145         assembly.
5146         (v850_float_z_comparison_operator, v850_select_cc_mode,
5147         v850_float_nz_comparison_operator,  v850_gen_float_compare,
5148         v850_gen_compare): New functions to support comparison of float values.
5149         (ep_memory_offset): Add support for V850E2 targets.
5150         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
5151         (INTERRUPT_REGPARM_NUM): Remove.
5152         (compute_register_save_size): Add extra case to save/restore long call.
5153         (use_prolog_function): New function to support prologue.
5154         (expand_prologue): Add support for V850E2 targets and modified
5155         as per the current ABI requirements.
5156         (expand_epilogue): Likewise.
5157         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
5158         (construct_save_jarl): Likewise.
5159         (construct_dispose_instruction): Update as per the current ABI
5160         requirements.
5161         (construct_prepare_instruction): Likewise.
5162         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
5163         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
5164         (CPP_SPEC): Updated to support v850e2 targets.
5165         (STRICT_ALIGNMENT): Modified.
5166         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
5167         (FIXED_REGISTERS): Likewise.
5168         (CALL_USED_REGISTERS): Likewise.
5169         (CONDITIONAL_REGISTER_USAGE): Updated.
5170         (HARD_REGNO_MODE_OK): Updated.
5171         (reg_class): Updated to add even registers.
5172         (REG_CLASS_NAMES): Likewise.
5173         (REG_CLASS_CONTENTS): Likewise.
5174         (REGNO_REG_CLASS): Updated for CC registers.
5175         (REG_CLASS_FROM_LETTER): Added support for even registers.
5176         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
5177         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
5178         ARG_POINTER_REGNUM): Updated.
5179         (FUNCTION_ARG_ADVANCE): Define.
5180         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
5181         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
5182         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
5183         (GO_IF_LEGITIMATE_ADDRESS): Updated.
5184         (SELECT_CC_MODE): Define.
5185         (REGISTER_NAMES): Updated to add psw and fcc registers.
5186         (ADDITIONAL_REGISTER_NAMES): Updated.
5187         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
5188         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
5189         * config/v850/v850.md (define_constants): Define new constants.
5190         (type): Update store,bit1,macc,div,fpu and single attributes.
5191         (cpu): New attribute.
5192         (cc): Add set_z attribute.
5193         (unsign23byte_load, sign23byte_load, unsign23hword_load,
5194         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
5195         23word_store): New instructions for 23-bit displacement load and store.
5196         (movqi_internal, movhi_internal): Update the attributes.
5197         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
5198         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
5199         the attributes.
5200         (v850_tst1): Modified using CC_REGNUM.
5201         (tstsi): Remove.
5202         (cmpsi): Modified as define_expand from define_insn.
5203         (cmpsi_insn, cmpsf, cmpdf): New instructions.
5204         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
5205         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
5206         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
5207         one_cmplsi2): Clobber the CC_REGNUM register.
5208         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
5209         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
5210         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
5211         (setf_insn, set_z_insn, set_nz_insn): New instructions for
5212         v850e2v3 target.
5213         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
5214         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
5215         targets.
5216         (sasf_1, sasf_2): Remove.
5217         (sasf): New instruction.
5218         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
5219         targets. CC_REGNUM register is clobbered and attributes are
5220         updated.
5221         (branch_z_normal, branch_z_invert, branch_nz_normal,
5222         branch_nz_invert): New branch related instructions.
5223         (jump): Updated the attributes.
5224         (switch): Update to support new targets. CC_REGNUM register is
5225         clobbered and attributes are updated.
5226         (call_internal_short, call_internal_long, call_value_internal_short,
5227         call_value_internal_long): Updated the attributes.
5228         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
5229         clobbered and attributes are updated.
5230         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
5231         Update to support new targets. CC_REGNUM register is clobbered.
5232         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
5233         instructions.
5234         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
5235         are updated.
5236         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
5237         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
5238         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
5239         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
5240         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
5241         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
5242         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
5243         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
5244         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
5245         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
5246         point instructions defined for V850e2v3 target.
5247         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
5248         Add support for V850E2 targets and CC_REGNUM register is clobbered.
5249         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
5250         support for new targets.
5251         * config/v850/v850-modes.def: New file.
5252         * config/v850/v850.opt(mstrict-align): Remove.
5253         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
5254         mv850e2v3): New command line options for V850.
5255         * config.gcc: Update the newly added files.
5256         * doc/invoke.texi: Update the newly added command line options for
5257         V850 target.
5258
5259 2010-07-26  Richard Guenther  <rguenther@suse.de>
5260
5261         PR tree-optimization/45052
5262         * ipa-pure-const.c (check_stmt): Check volatileness.
5263
5264 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5265
5266         PR target/44707
5267         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
5268         * config/sparc/sparc.c: Include reload.h.
5269         (legitimize_tls_address): Rename into...
5270         (sparc_legitimize_tls_address): ...this.
5271         (legitimize_pic_address): Rename into...
5272         (sparc_legitimize_pic_address): ...this.
5273         (sparc_expand_move): Adjust to above renaming.
5274         (sparc_tls_referenced_p): Likewise.
5275         (sparc_legitimize_tls_address): Likewise.
5276         (sparc_legitimize_pic_address): Likewise.
5277         (sparc_legitimize_address): Likewise.
5278         (sparc_output_mi_thunk): Likewise.
5279         (sparc_legitimize_reload_address): New global function.  Recognize
5280         (lo_sum (high ...) ...) patterns generated by earlier passes.
5281         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
5282
5283 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5284
5285         PR target/44484
5286         * config/sparc/predicates.md (memory_reg_operand): Delete.
5287         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
5288         (*sync_compare_and_swap): Encode the address form in the pattern.
5289         (*sync_compare_and_swapdi_v8plus): Likewise.
5290
5291 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
5292
5293         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
5294         Streamline paragraph on compatibility with the system compiler.
5295
5296 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
5297
5298         PR middle-end/45035
5299         * alias.c (true_dependence_1): Fix thinko in merge of old
5300         true_dependence and canon_true_dependence.
5301
5302 2010-07-23  Jan Hubicka  <jh@suse.cz>
5303
5304         * lto-streamer-out.c (write_symbol): Fix visibilities of external
5305         references.
5306
5307 2010-07-23  Le-Chun Wu  <lcwu@google.com>
5308
5309         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
5310         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
5311         and an unnecessary assignment.
5312         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
5313         self-assign warning.
5314         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
5315         unnecessary self-init.
5316
5317 2010-07-23  Richard Guenther  <rguenther@suse.de>
5318
5319         PR lto/43071
5320         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
5321         for -flto and -fwhopr.
5322
5323 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
5324
5325         PR target/41943
5326         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
5327         (stmp-int-hdrs): Prefix/postfix headers by include_next.
5328         * config.gcc (user_headers_inc_next_pre): New.
5329         (user_headers_inc_next_post): Likewise.
5330         (*-w64-mingw*): Use for float.h post-fixing, and for
5331         stddef.h/stdarg.h pre-fixing by include_next.
5332         * configure.ac (user_headers_inc_next_post): New.
5333         (user_headers_inc_next_pre): New.
5334         * configure: Regenerated.
5335
5336 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5337
5338         * configure.ac: Don't disable TLS on Solaris 8/9 by default
5339         Set tga_func for Solaris 2/x86 resp. SPARC.
5340         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
5341         (LIB_THREAD_LDFLAGS_SPEC): Define.
5342         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
5343         * configure: Regenerate.
5344         * config.in: Regenerate.
5345         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
5346         -pthread, -threads, LIB_TLS_SPEC with -pthread.
5347         * doc/install.texi (Specific, *-*-solaris2*): Document use of
5348         alternate thread libraries on Solaris 8.
5349         Document TLS patch requirements.
5350         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
5351         Document tls.
5352
5353         PR target/18788
5354         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
5355         -shared.
5356
5357 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
5358
5359         * tree.h (struct tree_base): Add nameless_flag bitfield.
5360         (TYPE_NAMELESS, DECL_NAMELESS): Define.
5361         * omp-low.c (create_omp_child_function, scan_omp_parallel,
5362         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
5363         DECL_ARTIFICIAL where needed.
5364         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
5365         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
5366         has DECL_NAMELESS set.
5367
5368 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5369
5370         PR tree-optimization/44915
5371         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
5372         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
5373         (analyze_function): Likewise.
5374
5375 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5376
5377         PR tree-optimization/44914
5378         * tree-sra.c (sra_modify_function_body): Return true if CFG was
5379         changed, add purging dead eh edges.
5380         (ipa_sra_modify_function_body): Return true if CFG was changed,
5381         simplify purging dead eh edges.
5382         (modify_function): Return true if CFG was changed.
5383         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
5384         was changed.
5385         (ipa_early_sra): Likewise.
5386
5387 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5388
5389         PR target/44290
5390         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
5391         if "naked".
5392         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5393         false if ! tree_versionable_function_p.
5394
5395 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
5396
5397         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
5398         * ipa-pure-const.c (special_builtlin_state): Remove
5399         BUILT_IN_ARGS_INFO case.
5400         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5401         * builtins.c (expand_builtin): Likewise.
5402         (expand_builtin_args_info): Remove.
5403         * doc/tm.texi (__builtin_args_info): Remove.
5404         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
5405         * doc/tm.text.in: Likewise.
5406
5407 2010-07-23  Richard Guenther  <rguenther@suse.de>
5408
5409         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
5410         (lto_symtab_merge_decls_2): Likewise.
5411         * tree-ssa.c (useless_type_conversion_p): Likewise.
5412         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5413         * gimple.c (gtc_visited2, gtc_ob2): Remove.
5414         (struct type_pair_d): Make same_p an array indexed by mode.
5415         Update comment.
5416         (lookup_type_pair): Update initialization.
5417         (struct sccs): Adjust same_p type.
5418         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
5419         Adjust.
5420         (print_gimple_types_stats): Likewise.
5421         * gimple.h (enum gtc_mode): New.
5422         (gimple_types_compatible_p): Adjust prototype.
5423
5424 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
5425
5426         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
5427         again after processing insn.
5428
5429 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5430
5431         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
5432         proper words when !tree_versionable_function_p.
5433
5434 2010-07-23  Richard Guenther  <rguenther@suse.de>
5435
5436         PR tree-optimization/45037
5437         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
5438
5439 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5440
5441         * doc/extend.texi: Remove IP2K from the description of naked attribute.
5442         Add MCORE instead.
5443
5444 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5445
5446         PR lto/44992
5447         * lto-opts.c (lto_write_options): Add NULL file_data argument to
5448         lto_get_section_name.
5449         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
5450         * lto-streamer-out.c (produce_asm): Likewise.
5451         (copy_function): Likewise.
5452         (produce_symtab): Likewise.
5453         (produce_asm_for_decls): Likewise.
5454         * lto-streamer.c (lto_get_section_name): Add file_data argument.
5455         Rewrite to add random postfix to LTO sections.
5456         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
5457         (lto_get_section_name): Add file_data argument to prototype.
5458
5459 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5460
5461         * lto-section-in.c (lto_section_name): Synchronize names
5462         with lto_get_section_name.
5463
5464 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5465
5466         * lto-opts.c (lto_read_file_options): Check for missing section.
5467
5468 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5469
5470         * ira.c (check_allocation): Correctly handle the case where an allocno
5471         with two objects was allocated to a single reg.
5472
5473 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
5474
5475         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
5476         (is_widening_mult_p): Likewise.
5477         (convert_to_widen): Use them.
5478         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
5479         well as integer ones.
5480
5481 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
5482
5483         * alias.c (true_dependence_1): New function, merged version of
5484         true_dependence and canon_true_dependence.
5485         (true_dependence): Simplify.
5486         (canon_true_dependence): Simplify.
5487
5488 2010-07-22  Richard Henderson  <rth@redhat.com>
5489
5490         PR target/45027
5491         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
5492         of V4SFmode for the SSE saves; increase stack alignment if needed.
5493         (ix86_gimplify_va_arg): Don't increase stack alignment here.
5494
5495 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
5496
5497         PR bootstrap/45028
5498         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
5499         call cprop_find_used_regs again via note_uses.
5500
5501 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5502
5503         * alias.c (get_alias_set): Fix formatting issues.
5504
5505 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
5506
5507         PR middle-end/44878
5508         * stmt.c (expand_value_return):  Call promote_function_mode with
5509         a for_return argument of 2 when returning by reference.
5510
5511 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
5512
5513         PR debug/45024
5514         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
5515         unit DIE if we can find the scope DIE.
5516
5517 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5518
5519         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
5520         changed.  Initialize OBJECT_SUBWORD.
5521         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
5522         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
5523         all callers changed.
5524         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
5525         (finish_allocno): Likewise.
5526         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
5527         (remove_low_level_allocnos): Likewise.
5528         (update_bad_spill_attribute): Likewise.
5529         (setup_min_max_allocno_live_range_point): Likewise.
5530         (sort_conflict_id_map): Likewise.
5531         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
5532         (ior_hard_reg_conflicts): New function.
5533         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
5534         (compress_conflict_vecs): Iterate over objects, not allocnos.
5535         (ira_add_live_range_to_object): New function.
5536         (object_range_compare_func): Renamed from allocno_range_compare_func.
5537         All callers changed.
5538         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
5539         subobjects, widen the min/max range of the lowest-order object to
5540         potentially include all other such low-order objects.
5541         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
5542         (check_allocation): Likewise.  Use more fine-grained tests for register
5543         conflicts.
5544         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
5545         allocno subobjects.
5546         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
5547         choices about which bits to set in each set.  Don't use
5548         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
5549         using the multiple sets we computed.
5550         (push_allocno_to_stack): Iterate over allocno subobjects.
5551         (all_conflicting_hard_regs_coalesced): New static function.
5552         (setup_allocno_available_regs_num): Use it.
5553         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
5554         subobjects.
5555         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
5556         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5557         by ALLOCNO_NUM_OBJECTS.
5558         (calculate_spill_cost): Likewise.
5559         (color_pass): Express if statement in a more normal way.
5560         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
5561         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
5562         (setup_slot_coalesced_allocno_live_ranges): Likewise.
5563         (allocno_reload_assign): Likewise.
5564         (ira_reassign_pseudos): Likewise.
5565         (fast_allocation): Likewise.
5566         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5567         (print_allocno_conflicts): Likewise.
5568         (ira_build_conflicts): Likewise.
5569         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
5570         callers changed.  Test subword 0 of each allocno for conflicts.
5571         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
5572         callers changed.  Iterate over allocno subobjects.
5573         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
5574         * ira-int.h (struct ira_allocno): New member: num_objects.
5575         Rename object to objects and change it into an array.
5576         (ALLOCNO_OBJECT): Add new argument N.
5577         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
5578         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
5579         (ior_hard_reg_conflicts): Declare.
5580         (ira_add_live_range_to_object): Declare.
5581         (ira_allocno_object_iterator): New.
5582         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
5583         (FOR_EACH_ALLOCNO_OBJECT): New macro.
5584         * ira-lives.c (objects_live): Renamed from allocnos_live; all
5585         uses changed.
5586         (allocnos_processed): New sparseset.
5587         (make_object_born): Renamed from make_allocno_born; take an
5588         ira_object_t argument.  All callers changed.
5589         (make_object_dead): Renamed from make_allocno_dead; take an
5590         ira_object_t argument.  All callers changed.
5591         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
5592         All callers changed.
5593         (mark_pseudo_regno_live): Iterate over allocno subobjects.
5594         (mark_pseudo_regno_dead): Likewise.
5595         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
5596         functions.
5597         (mark_ref_live): Detect subword accesses and call
5598         mark_pseudo_regno_subword_live as appropriate.
5599         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
5600         (process_bb_nodes_live): Deal with object-related updates first; set
5601         and test bits in allocnos_processed to avoid computing allocno
5602         statistics more than once.
5603         (create_start_finish_chains): Iterate over objects, not allocnos.
5604         (print_object_live_ranges): New function.
5605         (print_allocno_live_ranges): Use it.
5606         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
5607         and objects_live.
5608
5609 2010-07-22  Richard Guenther  <rguenther@suse.de>
5610
5611         PR lto/42451
5612         * gimple.c (gtc_next_dfs_num): New global.
5613         (struct sccs): Make value a union, add integer same_p member.
5614         (gtc_visit): New function.
5615         (gimple_types_compatible_p_1): New function, split out from ...
5616         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
5617         (iterative_hash_gimple_type): Adjust for sccs change.
5618
5619 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5620
5621         PR tree-optimization/44891
5622         * tree-sra.c: Include gimple-pretty-print.h.
5623         (replace_uses_with_default_def_ssa_name): Renamed to
5624         get_repl_default_def_ssa_name, return the new SSA name instead of
5625         replacing the old one.
5626         (sra_modify_assign): Dump a message when removing a load, if the LHS
5627         is an SSA_NAME, do not do any propagation, just set the RHS to a
5628         default definition SSA NAME, type convert if necessary.
5629         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
5630
5631 2010-07-22  Richard Guenther  <rguenther@suse.de>
5632
5633         PR tree-optimization/45017
5634         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
5635         TYPE_PRECISION of integral types in addition to size.
5636
5637 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5638
5639         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
5640         when no C library is specified.
5641
5642 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5643
5644         * ipa-prop.h (struct ipa_node_params): Updated comment.
5645         (struct ipa_edge_args): Likewise.
5646         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
5647
5648 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5649
5650         * cgraphunit.c (verify_edge_count_and_frequency): New function.
5651         (verify_cgraph_node): Verify frequencies of indirect edges.
5652         * tree-inline.c (tree_function_versioning): Update frequencies of
5653         indirect edges.
5654
5655 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5656
5657         PR target/43698
5658         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
5659         Set *arm_rev to be predicable.
5660
5661 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5662
5663         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
5664         (LINK_COMMAND_SPEC_A): New.
5665         (DSYMUTIL): New.
5666         (DSYMUTIL_SPEC): New.
5667         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
5668         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
5669
5670 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5671
5672         * calls.c (load_register_parameters): Move check for zero
5673         sized items so that only the call to
5674         mem_overlaps_already_clobbered_arg_p () is protected.
5675
5676 2010-07-22  Jan Hubicka  <jh@suse.cz>
5677
5678         * ipa-pure-const.c (varying_state): Break out from ...
5679         (get_function_state): ... here; always return varying_state
5680         when state would be NULL otherwise.
5681         (remove_node_data): Do not free varying state.
5682
5683 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5684
5685         PR bootstrap/44970
5686         PR middle-end/45009
5687         * postreload.c: Include "target.h".
5688         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
5689         into account.
5690         (fixup_debug_insns): Don't copy the rtx.
5691         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
5692         Don't copy when replacing.  Call fixup_debug_insns in the case where
5693         we merged one add with another.
5694         (reload_combine_recognize_pattern): Fail if there aren't any uses.
5695         Try harder to determine whether we're picking a valid index register.
5696         Don't set store_ruid for an insn we're going to scan in the
5697         next iteration.
5698         (reload_combine): Remove unused code.
5699         (reload_combine_note_use): When updating use information for
5700         an old insn, ignore a use that occurs after store_ruid.
5701         * Makefile.in (postreload.o): Update dependencies.
5702
5703         * function.c (record_hard_reg_sets): Restrict the previous change
5704         to cases where the incoming nominal mode is the same as the
5705         incoming promoted mode and everything happens in MODE_INT.
5706
5707 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5708
5709         PR debug/45015
5710         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
5711         ASM_OPERANDS_OUTPUT_IDX.
5712         (adjust_insn): For inline asm with multiple sets ensure first
5713         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
5714         the insn.
5715
5716 2010-07-21  Richard Henderson  <rth@redhat.com>
5717
5718         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
5719         comparison for avoiding xmm register saves.  Emit the xmm register
5720         saves explicitly.
5721         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
5722         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
5723         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
5724         Remove patterns and the associated splitters.
5725
5726 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
5727
5728         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
5729         and imagine parts of a complex, so that they can have the same
5730         base and fall into the same group.
5731
5732 2010-07-21  Richard Guenther  <rguenther@suse.de>
5733
5734         PR lto/45018
5735         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
5736         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
5737         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
5738
5739 2010-07-21  Martin Jambor  <mjambor@suse.cz>
5740
5741         PR tree-optimization/44900
5742         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
5743         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
5744
5745 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
5746
5747         PR middle-end/44738
5748         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
5749
5750 2010-07-21  Richard Guenther  <rguenther@suse.de>
5751
5752         PR middle-end/45013
5753         * tree-ssa.c (useless_type_conversion_p): Dispatch to
5754         gimple_types_compatible_p only when in lto.
5755         * gimple.c (gimple_types_compatible_p): Use canonical types
5756         to speed up comparison.
5757
5758 2010-07-21  Richard Guenther  <rguenther@suse.de>
5759
5760         * tree-flow.h (referenced_var): Move define ...
5761         * tree-flow-inline.h (referenced_var): ... here as an inline
5762         function.  Assert here ...
5763         * tree-dfa.c (referenced_var_lookup): ... instead of here.
5764         * tree-ssa.c (maybe_optimize_var): Check if the variable
5765         is in referenced vars.
5766         (execute_update_addresses_taken): Remove old broken check.
5767         * gimple-pretty-print.c (pp_points_to_solution): Use
5768         referenced_var_lookup.
5769         * tree-into-ssa.c (dump_decl_set): Likewise.
5770
5771 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5772
5773         PR debug/45003
5774         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
5775         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
5776         ZERO_EXTEND here.
5777
5778 2010-07-20  Richard Henderson  <rth@redhat.com>
5779
5780         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
5781
5782 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5783
5784         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
5785         computing the sum of the stack pointer and a large constant.
5786         * config/arm/constraints.md (M): Remove superfluous parentheses.
5787         (Pc): New constraint.
5788
5789 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5790
5791         PR debug/45006
5792         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
5793         operand's type if exp is tcc_unary class tree.
5794
5795 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5796
5797         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
5798         Reverse sense of if_then_else condition.
5799
5800 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5801
5802         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
5803         * config/rs6000/rs6000.c (rs6000_override_options): Set
5804         rs6000_block_move_inline_limit appropriately.
5805         (expand_block_move): Use rs6000_block_move_inline_limit.
5806         * doc/invoke.texi (mblock-move-inline-limit): Document.
5807
5808 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5809
5810         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
5811         FROM and TO.  All callers changed.  Don't look for tracked uses,
5812         just scan the RTL for DEBUG_INSNs and substitute.
5813         (reload_combine_recognize_pattern): Call fixup_debug_insns.
5814         (reload_combine): Ignore DEBUG_INSNs.
5815
5816 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5817
5818         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
5819         depth to 8 from 5.
5820
5821         PR debug/45003
5822         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
5823         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
5824         instead of the result's type.
5825
5826 2010-07-20  Richard Guenther  <rguenther@suse.de>
5827
5828         PR tree-optimization/44977
5829         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
5830         SSA form.
5831
5832 2010-07-20  Richard Guenther  <rguenther@suse.de>
5833
5834         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
5835         (lto_symtab_merge_decls_2): Likewise.
5836         * gimple.h (gimple_types_compatible_p): Declare.
5837         * gimple.c (gimple_queue_type_fixup): Remove.
5838         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
5839         (gimple_compatible_complete_and_incomplete_type_p): New function.
5840         (gimple_types_compatible_p): Adjust.
5841         (gimple_register_type): Remove type fixup code.
5842         (print_gimple_types_stats): Adjust.
5843         (free_gimple_type_tables): Likewise.
5844         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
5845         * tree-ssa.c (useless_type_conversion_p): Likewise.
5846
5847 2010-07-20  Richard Guenther  <rguenther@suse.de>
5848
5849         PR middle-end/44971
5850         PR middle-end/44988
5851         * tree-ssa.c (maybe_optimize_var): New function split out from ...
5852         (execute_update_addresses_taken): ... here.
5853         (non_rewritable_mem_ref_base): Likewise.
5854         (execute_update_addresses_taken): Do not iterate over all referenced
5855         vars but just all local decls and parms.
5856         Properly check call and asm arguments and rewrite call arguments.
5857
5858 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
5859
5860         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
5861         to top level.
5862         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
5863         definitions ...
5864         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
5865         New macro.
5866         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
5867
5868 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5869
5870         * gengtype.c (start_root_entry): New function, split out from
5871         write_root.  Check whether V is null and raise an error if so.
5872         (write_field_root): Check for V being null.  Don't raise an error here;
5873         set V to null instead.
5874         (write_root): Update comment above function.  Use start_root_entry.
5875
5876 2010-07-19  Xinliang David Li  <davidxl@google.com>
5877
5878         PR testsuite/44932
5879         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
5880         def edges.
5881         (find_uninit_use): Add dump.
5882         (is_use_properly_guarded): Ditto.
5883         (warn_uninitialized_phi): Ditto.
5884         (execute_late_warn_uninitialized): Ditto.
5885
5886 2010-07-19  Richard Guenther  <rguenther@suse.de>
5887
5888         PR middle-end/44941
5889         * expr.c (emit_block_move_hints): Move zero size check first.
5890         Move asserts to more useful places.
5891         * calls.c (load_register_parameters): Check for zero size.
5892
5893 2010-07-19  Richard Henderson  <rth@redhat.com>
5894
5895         * tree-optimize.c (execute_all_early_local_passes): New.  Change
5896         cgraph_state here ...
5897         (execute_early_local_optimizations): ... not here.  Remove.
5898         (pass_early_local_passes, pass_all_early_optimizations): Update.
5899
5900 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
5901
5902         * postreload.c (reload_combine_closest_single_use): Ignore the
5903         number of uses for DEBUG_INSNs.
5904         (fixup_debug_insns): New static function.
5905         (reload_combine_recognize_const_pattern): Use it.  Don't let the
5906         main loop be affected by DEBUG_INSNs.
5907         Really disallow moving adds past a jump insn.
5908         (reload_combine_recognize_pattern): Don't update use_ruid here.
5909         (reload_combine_note_use): Do it here.
5910         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
5911
5912 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
5913
5914         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
5915         of a loop.
5916         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
5917
5918 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
5919
5920         * config/i386/darwin.h: Define darwin_emit_branch_islands.
5921         (TARGET_MACHO_BRANCH_ISLANDS): New.
5922         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
5923         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
5924         default value.
5925         * config/i386/i386.c (output_pic_addr_const): Do not emit
5926         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
5927         (x86_output_mi_thunk): Adjust symbol creation.
5928         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
5929         Remove out of date comment.
5930         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
5931         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5932         (DARWIN_GENERATE_ISLANDS): Ditto.
5933         (output_call):  Do not emit branch islands unless
5934         darwin_emit_branch_islands is set.
5935         * config/darwin.c: Declare darwin_emit_branch_islands.
5936         (machopic_indirect_data_reference): Do not emit unless
5937         darwin_emit_branch_islands is set.
5938         (darwin_override_options): Set darwin_emit_branch_islands
5939         where it is needed.
5940         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5941
5942 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5943
5944         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5945         sse_runtime, sse2_runtime.
5946
5947 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
5948
5949         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
5950         low half of a single-register SCmode return value before ORing
5951         it with the high half.
5952         * config/mips/mips16.S (MERGE_GPRf): Likewise.
5953
5954 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5955
5956         PR target/44805
5957         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
5958         on all targets.
5959
5960 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
5961
5962         PR target/42235
5963         * postreload.c (reload_cse_move2add): Return bool, true if anything.
5964         changed.  All callers changed.
5965         (move2add_use_add2_insn): Likewise.
5966         (move2add_use_add3_insn): Likewise.
5967         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
5968         reload_combine.
5969         (RELOAD_COMBINE_MAX_USES): Bump to 16.
5970         (last_jump_ruid): New static variable.
5971         (struct reg_use): New members CONTAINING_MEM and RUID.
5972         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
5973         (reload_combine_split_one_ruid, reload_combine_split_ruids,
5974         reload_combine_purge_insn_uses, reload_combine_closest_single_use
5975         reload_combine_purge_reg_uses_after_ruid,
5976         reload_combine_recognize_const_pattern): New static functions.
5977         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
5978         is true for our reg and that we have available index regs.
5979         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
5980         callers changed.  Use them to initialize fields in struct reg_use.
5981         (reload_combine): Initialize last_jump_ruid.  Be careful when to
5982         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
5983         Call reload_combine_recognize_const_pattern.
5984         (reload_combine_note_store): Update REAL_STORE_RUID field.
5985
5986 2010-07-16  Jason Merrill  <jason@redhat.com>
5987
5988         * Makefile.in (opts-common.o): Depend on options.h.
5989
5990 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
5991
5992         * tree.c (build_common_builtin_nodes): Use build_function_type_list
5993         instead of build_function_type.
5994         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
5995         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5996
5997 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
5998
5999         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
6000         do all the work.
6001         (rs6000_emit_int_cmove): Use function pointers for insn generation.
6002         Don't force values into registers unnecessarily.
6003         (output_isel): Assert that we're not given conditions we can't handle.
6004         Delete corresponding code.
6005         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
6006         scc_comparison_operator constraint.  Permit 0 for the consequent
6007         operand.  Permit any GPR for the alternative operand.
6008         (isel_unsigned_<mode>): Likewise.
6009
6010 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
6011
6012         PR target/44942
6013         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
6014         argument to const_tree.
6015         * config/i386/i386.c (function_arg_advance): If padding needs to be
6016         inserted before argument, increment cum->words by number of padding
6017         words as well.
6018         (contains_aligned_value_p): Change argument to const_tree.
6019         (ix86_function_arg_boundary): Change second argument to const_tree.
6020
6021 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
6022
6023         PR target/42235
6024         * function.c (record_hard_reg_sets): New static function.
6025         (assign_parm_setup_reg): If an optab for extending exists and the
6026         generated code clobbbers no hard regs, emit the insn directly and
6027         create a REG_EQUIV note.
6028
6029 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6030
6031         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
6032         TREE_CHAIN.
6033         * c-typeck.c (push_init_level): Likewise.
6034         (process_init_element): Likewise.
6035
6036 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
6037
6038         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
6039         (integer_three_node): Add.
6040         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
6041         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
6042         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
6043         of call build_int_cst.
6044         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
6045         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
6046         (find_interesting_uses_address): Ditto.
6047         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
6048         * tree-eh.c (lower_eh_constructs_2): Ditto.
6049         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
6050         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
6051         * expmed.c (expand_divmod): Ditto.
6052         * tree-mudflap.c (mx_register_decls): Ditto.
6053         * varasm.c (array_size_for_constructor): Ditto.
6054         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6055         * c-parser.c (c_parser_postfix_expression): Ditto.
6056
6057 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6058
6059         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
6060         New static variables.
6061         (reload_combine_recognize_pattern): New static function, broken out
6062         of reload_combine.
6063         (reload_combine): Use it.  Only initialize first_index_reg and
6064         last_index_reg once.
6065
6066 2010-07-15  Richard Henderson  <rth@redhat.com>
6067
6068         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
6069         when done.
6070
6071 2010-07-15  Jan Hubicka  <jh@suse.cz>
6072
6073         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
6074         comdats for broken gold.
6075         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
6076
6077 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6078
6079         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
6080
6081 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6082
6083         * tree.h (DECL_CHAIN): Define.
6084         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6085         * c-decl.c: Likewise.
6086         * c-parser.c: Likewise.
6087         * c-typeck.c: Likewise.
6088         * cfgexpand.c: Likewise.
6089         * cgraph.c: Likewise.
6090         * cgraphunit.c: Likewise.
6091         * combine.c: Likewise.
6092         * config/alpha/alpha.c: Likewise.
6093         * config/arm/arm.c: Likewise.
6094         * config/frv/frv.c: Likewise.
6095         * config/i386/i386.c: Likewise.
6096         * config/i386/winnt-cxx.c: Likewise.
6097         * config/ia64/ia64.c: Likewise.
6098         * config/iq2000/iq2000.c: Likewise.
6099         * config/mep/mep.c: Likewise.
6100         * config/mips/mips.c: Likewise.
6101         * config/pa/som.h: Likewise.
6102         * config/rs6000/rs6000.c: Likewise.
6103         * config/s390/s390.c: Likewise.
6104         * config/sh/sh.c: Likewise.
6105         * config/sh/symbian-cxx.c: Likewise.
6106         * config/sparc/sparc.c: Likewise.
6107         * config/spu/spu.c: Likewise.
6108         * config/stormy16/stormy16.c: Likewise.
6109         * config/vxworks.c: Likewise.
6110         * config/xtensa/xtensa.c: Likewise.
6111         * coverage.c: Likewise.
6112         * dbxout.c: Likewise.
6113         * dwarf2out.c: Likewise.
6114         * emit-rtl.c: Likewise.
6115         * expr.c: Likewise.
6116         * function.c: Likewise.
6117         * gimple-low.c: Likewise.
6118         * gimple-pretty-print.c: Likewise.
6119         * gimplify.c: Likewise.
6120         * integrate.c: Likewise.
6121         * ipa-inline.c: Likewise.
6122         * ipa-prop.c: Likewise.
6123         * ipa-split.c: Likewise.
6124         * ipa-struct-reorg.c: Likewise.
6125         * ipa-type-escape.c: Likewise.
6126         * langhooks.c: Likewise.
6127         * lto-cgraph.c: Likewise.
6128         * omp-low.c: Likewise.
6129         * stor-layout.c: Likewise.
6130         * tree-cfg.c: Likewise.
6131         * tree-complex.c: Likewise.
6132         * tree-dfa.c: Likewise.
6133         * tree-dump.c: Likewise.
6134         * tree-inline.c: Likewise.
6135         * tree-mudflap.c: Likewise.
6136         * tree-nested.c: Likewise.
6137         * tree-object-size.c: Likewise.
6138         * tree-pretty-print.c: Likewise.
6139         * tree-sra.c: Likewise.
6140         * tree-ssa-live.c: Likewise.
6141         * tree-ssa-loop-niter.c: Likewise.
6142         * tree-ssa-math-opts.c: Likewise.
6143         * tree-ssa-reassoc.c: Likewise.
6144         * tree-ssa-sccvn.c: Likewise.
6145         * tree-ssa-structalias.c: Likewise.
6146         * tree-tailcall.c: Likewise.
6147         * tree-vrp.c: Likewise.
6148         * tree.c: Likewise.
6149         * var-tracking.c: Likewise.
6150         * varasm.c: Likewise.
6151
6152 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6153
6154         PR target/44877
6155         * config/spu/spu.c (spu_expand_builtin_1): Allow references
6156         (as well as pointers) as argument to mask_for_load builtins.
6157
6158 2010-07-15  Richard Guenther  <rguenther@suse.de>
6159
6160         PR tree-optimization/44946
6161         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
6162         with accessing only padding properly.
6163
6164 2010-07-15  Jan Hubicka  <jh@suse.cz>
6165
6166         * ipa.c (function_and_variable_visibility): Variables marked as used
6167         should not be localized.
6168
6169 2010-07-15  Jan Hubicka  <jh@suse.cz>
6170
6171         * cgraph.c: Include lto-streamer.h
6172         (change_decl_assembler_name): Work when assembler name hash is at place.
6173         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
6174         be sure to rename it to avoid name clash.
6175         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
6176         Localize hidden symbols only when locally defined.
6177
6178 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
6179
6180         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
6181
6182 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
6183             Kevin F. Quinn  <kevquinn@gentoo.org>
6184
6185         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
6186         * common.opt: Add -Wtrampolines.
6187         * doc/invoke.texi: Add -Wtrampolines.
6188
6189 2010-07-15  Jie Zhang  <jie@codesourcery.com>
6190
6191         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
6192         cortex_a8_issue_ls.
6193
6194 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
6195
6196         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
6197         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
6198
6199 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6200
6201         * config/spu/spu.c (reg_names): Remove prototype.
6202         (call_used_regs): Likewise.
6203
6204 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
6205
6206         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
6207         "unused" with attribute "used".
6208         (__JCR_END__): Likewise.
6209         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
6210         "used" attribute.
6211         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
6212
6213 2010-07-14  Richard Guenther  <rguenther@suse.de>
6214
6215         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
6216         (maybe_fixup_decls): Likewise.
6217         (input_gimple_stmt): Do not fixup anything.
6218         * lto-streamer-out.c (output_gimple_stmt): Make sure all
6219         non-automatic variable uses are wrapped inside a MEM_REF.
6220
6221 2010-07-14  Richard Henderson  <rth@redhat.com>
6222
6223         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
6224         for functions.
6225         * varasm.c (assemble_variable): Remove early exit for functions;
6226         assert that we're given a variable.
6227
6228 2010-07-14  Jie Zhang  <jie@codesourcery.com>
6229
6230         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
6231         cortex_a8_default when neon_type is not none.
6232
6233 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6234
6235         * lower-subreg.c (subreg_context): New static bitmap.
6236         (decompose_multiword_subregs): Allocate and free it.
6237         (find_decomposable_subregs): Set a bit in it for a register that
6238         occurs in a subreg that changes mode but not size.
6239         (can_decompose_p): Test it instead of non_decomposable_context.
6240
6241 2010-07-14  Richard Guenther  <rguenther@suse.de>
6242
6243         PR tree-optimization/44824
6244         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
6245         is_gimple_mem_ref_addr.
6246         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
6247         non-decl_address_invariant_p addresses.
6248
6249 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6250
6251         * reload.c (find_reloads): Revert code to penalize small register
6252         classes that was brought in with the IRA merge.
6253
6254 2010-07-14  Richard Guenther  <rguenther@suse.de>
6255
6256         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
6257         as base of ARRAY_REFs.
6258
6259 2010-07-14  Richard Guenther  <rguenther@suse.de>
6260
6261         PR middle-end/44930
6262         * tree-pretty-print.c (do_niy): Do not print a newline.
6263
6264 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6265
6266         * ira-int.h (struct ira_object): New.
6267         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
6268         (struct ira_allocno): Remove members min, max,
6269         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
6270         conflict_allocnos_num and conflict_vec_p.  Add new member object.
6271         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
6272         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
6273         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
6274         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
6275         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
6276         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
6277         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
6278         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
6279         an ira_object_t rather than ira_allocno_t.  All uses changed.
6280         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6281         contains a vector of ira_object_t; all uses changed.
6282         (ira_objects_num): Declare variable.
6283         (ira_create_allocno_object): Declare function.
6284         (ira_conflict_vector_profitable_p): Adjust prototype.
6285         (ira_allocate_conflict_vec): Renamed from
6286         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
6287         (ira_allocate_object_conflicts): Renamed from
6288         ira_allocate_allocno_conflicts; first arg now ira_object_t.
6289         (struct ira_object_iterator): New.
6290         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
6291         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
6292         to conflict_vec_p.  All uses changed.
6293         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
6294         Changed to take into account that conflicts are now tracked for
6295         objects.
6296         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
6297         Args changed to accept ira_object_t.  All uses changed.
6298         (allocnos_conflict_p): New static function.
6299         (collected_conflict_objects): Renamed from collected_allocno_objects;
6300         now a vector of ira_object_t.  All uses changed.
6301         (build_conflict_bit_table): Changed to take into account that
6302         conflicts are now tracked for objects.
6303         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
6304         (print_allocno_conflicts, ira_build_conflicts): Likewise.
6305         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
6306         setup_allocno_left_conflicts_size, allocno_reload_assign,
6307         fast_allocation): Likewise.
6308         * ira-lives.c (make_hard_regno_born, make_allocno_born)
6309         process_single_reg_class_operands, process_bb_node_lives): Likewise.
6310         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
6311         Likewise.
6312         * ira-build.c (ira_objects_num): New variable.
6313         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6314         contains a vector of ira_object_t; all uses changed.
6315         (ira_object_id_map_vec): Corresponding change.
6316         (object_pool): New static variable.
6317         (initiate_allocnos): Initialize it.
6318         (finish_allocnos): Free it.
6319         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
6320         New functions.
6321         (ira_create_allocno): Don't set members that were removed.
6322         (ira_set_allocno_cover_class): Don't change conflict hard regs.
6323         (merge_hard_reg_conflicts): Changed to take into account that
6324         conflicts are now tracked for objects.
6325         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
6326         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
6327         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
6328         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
6329         setup_min_max_conflict_allocno_ids, ):  Likewise.
6330         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
6331         to ira_object_t; all callers changed.
6332         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
6333         to ira_object_t, all callers changed.
6334         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
6335         to ira_object_t, all callers changed.
6336         (conflict_check, curr_conflict_check_tick): Renamed from
6337         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
6338         changed.
6339         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
6340         arg changed to ira_object_t, all callers changed.
6341         (create_cap_allocno): Call ira_create_allocno_object.
6342         (finish_allocno): Free the corresponding object.
6343         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
6344         callers changed.  Adjusted for dealing with objects.
6345         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
6346         dealing with objects.
6347         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
6348
6349         * ira-int.h (struct live_range): Rename allocno member to object
6350         and change type to ira_object_t.
6351         (struct ira_object): New member live_ranges.
6352         (struct ira_allocno): Remove member live_ranges.
6353         (ALLOCNO_LIVE_RANGES): Remove.
6354         (OBJECT_LIVE_RANGES): New macro.
6355         (ira_create_live_range, ira_copy_live_range_list,
6356         ira_merge_live_range_list, ira_live_ranges_intersect_p,
6357         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
6358         * ira-build.c (ira_create_object): Initialize live ranges here.
6359         (ira_create_allocno): Not here.
6360         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
6361         changed to ira_object_t, all callers changed.
6362         (copy_live_range): Rename from copy_allocno_live_range, all callers
6363         changed.
6364         (ira_copy_live_range_list): Rename from
6365         ira_copy_allocno_live_range_list, all callers changed.
6366         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
6367         all callers changed.
6368         (ira_live_ranges_intersect_p): Rename from
6369         ira_allocno_live_ranges_intersect_p, all callers changed.
6370         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
6371         callers changed.
6372         (ira_finish_live_range_list): Rename from
6373         ira_finish_allocno_live_range_list, all callers changed.
6374         (change_object_in_range_list): Rename from change_allocno_in_range_list,
6375         last arg changed to ira_object_t, all callers changed.
6376         (finish_allocno): Changed to expect live ranges in the allocno's object.
6377         (move_allocno_live_ranges, copy_allocno_live_ranges,
6378         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
6379         ira_flattening, ira_build): Likewise.
6380         * ira-color.c (allocnos_have_intersected_live_ranges_p,
6381         slot_coalesced_allocno_live_ranges_intersect,
6382         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
6383         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6384         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
6385         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
6386         make_allocno_dead, create_start_finish_chains,
6387         remove_some_program_points_and_update_live_ranges,
6388         ira_debug_live_range_list): Likewise.
6389
6390         * ira-int.h (ira_object_conflict_iterator): Rename from
6391         ira_allocno_conflict_iterator.
6392         (ira_object_conflict_iter_init): Rename from
6393         ira_allocno_conflict_iter_init, second arg changed to
6394         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
6395         FOR_EACH_ALLOCNO_CONFLICT.
6396         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
6397         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
6398         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
6399         * ira-conflicts.c (print_allocno_conflicts): Likewise.
6400
6401 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
6402
6403         PR other/44874
6404         * tree-dump.c (dump_options): Add enumerate_locals entry.
6405         Add TDF_NOID exclusion to all entry.
6406         * tree-dump.h (dump_enumerated_decls): Declare.
6407         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
6408         Don't display type uid.
6409         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
6410         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
6411         * tree-ssa-live.c: Include gimple.h.
6412         (numbered_tree_d): New struct.
6413         (numbered_tree): New typedef.
6414         (DEF_VEC_O (numbered_tree): New.
6415         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
6416         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
6417         (dump_enumerated_decls): Likewise.
6418         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
6419         debug info and flag_dump_final_insns, call dump_enumerated_decls.
6420         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
6421         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
6422
6423 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
6424
6425         * expmed.h (MAX_BITS_PER_WORD): Move to...
6426         * defaults.h (MAX_BITS_PER_WORD): ...here.
6427
6428 2010-07-13  DJ Delorie  <dj@redhat.com>
6429
6430         * config/h8300/h8300.c (h8300_init_once): Default to
6431         -fstrict_volatile_bitfields.
6432
6433         * config/sh/sh.c (sh_override_options): Default to
6434         -fstrict_volatile_bitfields.
6435
6436         * config/rx/rx.c (rx_option_override): New.
6437
6438         * config/m32c/m32c.c (m32c_override_options): Default to
6439         -fstrict_volatile_bitfields.
6440
6441 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
6442
6443         * tree.h (build_function_call_expr): Delete.
6444         (build_call_expr_loc_array): New function.
6445         (build_call_expr_loc_vec): New function.
6446         * tree-flow.h (struct omp_region): Change type of ws_args field
6447         to a VEC.
6448         * builtins.c (build_function_call_expr): Delete.
6449         (build_call_expr_loc_array): New function.
6450         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
6451         (build_call_expr): Likewise.
6452         (build_call_expr_loc_vec): New function.
6453         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
6454         build_function_call_expr.
6455         * expr.c (emutls_var_address): Likewise.
6456         * varasm.c (emutls_common_1): Likewise.
6457         * omp-low.c (expand_omp_atomic_mutex): Likewise.
6458         (expand_omp_taskreg): Adjust for new type of region->ws_args.
6459         (get_ws_args_for): Return a VEC instead of a tree.
6460         (expand_parallel_call): Call build_call_expr_loc_vec instead of
6461         build_function_call_expr.
6462         * stor-layout.c (self_referential_size): Likewise.
6463
6464 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6465
6466         PR testsuite/44701
6467         * recog.c (constrain_operands): Allow side-effects in memory
6468         operands if either < or > constraint is used, rather than if
6469         both < and > is used.
6470
6471 2010-07-13  Richard Guenther  <rguenther@suse.de>
6472
6473         PR middle-end/44911
6474         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
6475         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
6476         without name.
6477
6478 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6479
6480         PR target/44761
6481         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
6482         to variable emited.
6483         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
6484         * config/sh/sh.md (symGOT_load): Likewise.
6485         (symDTPOFF2reg): Likewise.
6486         (symTPOFF2reg): Likewise.
6487
6488 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6489
6490         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
6491         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
6492
6493 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6494
6495         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
6496         explanation.
6497         Find ucontext_t * on Solaris 11.
6498         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
6499         Handle new Solaris 11 __sighndlr patterns.
6500
6501 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6502
6503         PR debug/44901
6504         * vec.h (VEC_block_remove): Fix comment.
6505         * tree-ssa-live.c (remove_unused_locals): Don't use
6506         VEC_unordered_remove on local_decls, instead replace a single
6507         vector element in each iteration if at least one element had
6508         to be removed and VEC_truncate at the end.
6509         * omp-low.c (expand_omp_taskreg): Likewise.
6510
6511 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6512
6513         * c-decl.c (finish_function): Fix typo in comment.
6514
6515 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6516
6517         PR bootstrap/44921
6518         * postreload.c (move2add_use_add3_insn): Silence gcc warning
6519         on min_regno.
6520
6521 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
6522
6523         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
6524         (simplify_stmt_using_ranges): Use it.
6525
6526 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6527
6528         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
6529         member.  Do not mark as GTY(()).
6530         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
6531         (spu_builtin_decls): New static variable.
6532         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
6533         (spu_init_builtins): Likewise.
6534         (spu_builtin_mul_widen_even): Likewise.
6535         (spu_builtin_mul_widen_odd): Likewise.
6536         (spu_builtin_mask_for_load): Likewise.
6537         (spu_builtin_vec_perm): Likewise.
6538         * config/spu/spu-c.c: Include "target.h".
6539         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
6540         of using spu_builtins[].fndecl.
6541
6542 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6543
6544         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
6545         imply -minterlink-mips16.
6546
6547 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6548
6549         * config/mips/mips.h (mips16_globals): Declare.
6550         (SWITCHABLE_TARGET): Define.
6551         * config/mips/mips.c: Include target-globals.h.
6552         (mips16_globals): New variable.
6553         (mips_set_mips16_mode): Use save_target_globals and
6554         restore_target_globals instead of target_reinit.
6555
6556 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6557
6558         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
6559         to say that the function can be called more than once.
6560         * target-globals.c (save_target_globals): Call init_reg_sets.
6561
6562 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6563
6564         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
6565         * bb-reorder.h: New file.
6566         * bb-reorder.c (default_target_bb_reorder): New variable.
6567         (this_target_bb_reorder): New conditional variable.
6568         (uncond_jump_length): Redefine as a macro.
6569         * target-globals.h (this_target_bb_reorder): Declare.
6570         (target_globals): Add a bb_reorder field.
6571         (restore_target_globals): Copy the bb_reorder field to
6572         this_target_bb-reorder.
6573         * target-globals.c: Include bb-reorder.h.
6574         (default_target_globals): Initialize the bb_reorder field.
6575         (save_target_globals): Likewise.
6576
6577 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6578
6579         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
6580         * gcse.h: New file.
6581         * gcse.c: Include gcse.h.
6582         (default_target_gcse): New variable.
6583         (this_target_gcse): New conditional variable.
6584         (can_copy): Redefine as a macro.
6585         (can_copy_init_p): New macro.
6586         (can_copy_p): Remove can_copy_init_p.
6587         * target-globals.h (this_target_gcse): Declare.
6588         (target_globals): Add a gcse field.
6589         (restore_target_globals): Copy the gcse field to this_target_gcse.
6590         * target-globals.c: Include gcse.h.
6591         (default_target_globals): Initialize the gcse field.
6592         (save_target_globals): Likewise.
6593
6594 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6595
6596         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
6597         and x_ira_prohibited_mode_move_regs_initialized_p.
6598         (ira_prohibited_mode_move_regs): Redefine as a macro.
6599         * ira.c (ira_prohibited_mode_move_regs): Delete.
6600         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
6601
6602 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6603
6604         * reload.h (target_reload): Add x_cached_reg_save_code and
6605         x_cached_reg_restore_code.
6606         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
6607         Redefine as macros.
6608
6609 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6610
6611         * Makefile.in (target-globals.o): Depend on builtins.h.
6612         * builtins.h: New file.
6613         * builtins.c: Include builtins.h.
6614         (default_target_builtins): New variable.
6615         (this_target_builtins): New conditional variable.
6616         (apply_args_mode, apply_result_mode): Redefine as macros.
6617         * target-globals.h (this_target_builtins): Declare.
6618         (target_globals): Add a builtins field.
6619         (restore_target_globals): Copy the builtins field to
6620         this_target_builtins.
6621         * target-globals.c: Include builtins.h.
6622         (default_target_globals): Initialize the builtins field.
6623         (save_target_globals): Likewise.
6624
6625 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6626
6627         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
6628         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
6629         from expmed.c.
6630         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
6631         (alg_hash, alg_hash_used_p): New macros.
6632         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
6633         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
6634         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
6635
6636 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6637
6638         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
6639         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
6640         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
6641         (this_op_costs, costs_classes): Redefine as macros.
6642         (record_reg_classes): Don't take op_costs as a parameter.
6643         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
6644         (scan_one_insn): Update call to record_operand_costs.
6645
6646 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6647
6648         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
6649         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
6650         (target_ira_int): New structure.
6651         (default_target_ira_int): Declare.
6652         (this_target_ira_int): Declare as a variable or define as a macro.
6653         (ira_reg_mode_hard_regset, ira_register_move_cost)
6654         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
6655         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
6656         (prohibited_class_mode_regs, ira_important_classes_num)
6657         (ira_important_classes, ira_reg_class_intersect)
6658         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
6659         (ira_reg_class_union): Redefine as macros.
6660         * ira.h (target_ira): New structure.
6661         (default_target_ira): Declare.
6662         (this_target_ira): Declare as a variable or define as a macro.
6663         (ira_available_class_regs, ira_hard_regno_cover_class)
6664         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
6665         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
6666         (ira_class_hard_regs_num): Redefine as macros.
6667         * ira.c (default_target_ira, default_target_ira_int): New variables.
6668         (this_target_ira, this_target_ira_int): New conditional variables.
6669         (ira_reg_mode_hard_regset, ira_memory_move_cost)
6670         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
6671         (ira_class_subset_p): Delete.
6672         (no_unit_alloc_regs): Redefine as a macro.
6673         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
6674         (ira_class_hard_regs_num, ira_class_hard_reg_index)
6675         (ira_available_class_regs): Delete.
6676         (alloc_reg_class_subclasses): Redefine as a macro.
6677         (ira_reg_class_cover_size, ira_reg_class_cover)
6678         (ira_important_classes_num, ira_important_classes)
6679         (ira_important_class_nums, ira_class_translate): Delete.
6680         (cover_class_order): Document the variable's lifetime.
6681         (reorder_important_classes): Don't set ira_important_class_nums.
6682         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
6683         (ira_reg_class_super_classes, ira_reg_class_union)
6684         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
6685         Delete.
6686         (setup_reg_class_nregs): Don't set ira_max_regs.
6687         (prohibited_class_mode_regs): Delete.
6688         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
6689         (target_globals): Add ira and ira_int fields.
6690         (restore_target_globals): Copy the ira field to this_target_ira
6691         and the ira_int field to this_target_ira_int.
6692         * target-globals.c: Include ira-int.h.
6693         (default_target_globals): Initialize the ira and ira_int fields.
6694         (save_target_globals): Likewise.
6695
6696 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6697
6698         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
6699         * cfgloop.h (target_cfgloop): New structure.
6700         (default_target_cfgloop): Declare.
6701         (this_target_cfgloop): Declare as a variable or define as a macro.
6702         (target_avail_regs, target_clobbered_regs, target_res_regs)
6703         (target_reg_cost, target_spill_cost): Redefine as macros.
6704         * cfgloopanal.c (default_target_cfgloop): New variable.
6705         (this_target_cfgloop): New conditional variable.
6706         (target_avail_regs, target_clobbered_regs, target_res_regs)
6707         (target_reg_cost, target_spill_cost): Delete.
6708         * target-globals.h (this_target_cfgloop): Declare.
6709         (target_globals): Add a cfgloop field.
6710         (restore_target_globals): Copy the cfgloop field to
6711         this_target_cfgloop.
6712         * target-globals.c: Include cfgloop.h.
6713         (default_target_globals): Initialize the cfgloop field.
6714         (save_target_globals): Likewise.
6715
6716 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6717
6718         * regs.h (target_regs): Add x_direct_load, x_direct_store and
6719         x_float_extend_from_mem.
6720         (direct_load, direct_store, float_extend_from_mem): New macros.
6721         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
6722
6723 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6724
6725         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
6726         (target-globals.o): Depend on $(LIBFUNCS_H).
6727         * libfuncs.h: Include hashtab.h.
6728         (libfunc_entry): Moved from optabs.c.
6729         (target_libfuncs): New structure.
6730         (default_target_libfuncs): Declare.
6731         (this_target_libfuncs): Declare as a variable or define as a macro.
6732         (libfunc_table): Redefine as a macro.
6733         * optabs.c (default_target_libfuncs): New variable.
6734         (this_target_libfuncs): New conditional variable.
6735         (libfunc_table): Delete.
6736         (libfunc_entry): Moved to optabs.h.
6737         (libfunc_hash): Redefine as a macro.
6738         (hash_libfunc, eq_libfunc): Fix comments.
6739         (init_optabs): Use libfunc_hash to detect cases where the function
6740         has already been called.  Clear the hash table instead of
6741         recreating it.
6742         * target-globals.h (this_target_libfuncs): Declare.
6743         (target_globals): Add a libfuncs field.
6744         (restore_target_globals): Copy the libfuncs field to
6745         this_target_libfuncs.
6746         * target-globals.c: Include libfuncs.h.
6747         (default_target_globals): Initialize the libfuncs field.
6748         (save_target_globals): Likewise.
6749
6750 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6751
6752         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
6753         in all dependency lists.
6754
6755 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6756
6757         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
6758         * optabs.h (target_optabs): New structure.
6759         (default_target_optabs): Declare.
6760         (this_target_optabs): Declare as a variable or define as a macro.
6761         (optab_table, convert_optab_table, direct_optab_table): Redefine
6762         as macros.
6763         * optabs.c (default_target_optabs): New variable.
6764         (this_target_optabs): New conditional variable.
6765         (optab_table, convert_optab_table, direct_optab_table): Delete.
6766         * target-globals.h (this_target_optabs): Declare.
6767         (target_globals): Add a optabs field.
6768         (restore_target_globals): Copy the optabs field to
6769         this_target_optabs.
6770         * target-globals.c: Include expr.h and optabs.h.
6771         (default_target_globals): Initialize the optabs field.
6772         (save_target_globals): Likewise.
6773
6774 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6775
6776         * flags.h (target_flagstate): Add x_flag_excess_precision.
6777         (flag_excess_precision): Redefine as a macro.
6778         * toplev.c (flag_excess_precision): Delete.
6779
6780 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6781
6782         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
6783         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
6784         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
6785         (no_caller_save_reg_set): Redefine as a macro.
6786         * reload.h (target_reload): Add x_caller_save_initialized_p and
6787         x_regno_save_mode.
6788         (caller_save_initialized_p): Redefine as a macro.
6789         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
6790         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
6791         (regno_save_mode): Redefine as a macro.
6792
6793 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6794
6795         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
6796         * expmed.h: New file.
6797         * expmed.c (default_target_costs): New variable.
6798         (this_target_costs): New conditional variable.
6799         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
6800         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
6801         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
6802         * target-globals.h (this_target_expmed): Declare.
6803         (target_globals): Add a expmed field.
6804         (restore_target_globals): Copy the expmed field to
6805         this_target_expmed.
6806         * target-globals.c: Include expmed.h.
6807         (default_target_globals): Initialize the expmed field.
6808         (save_target_globals): Likewise.
6809
6810 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6811
6812         * Makefile.in (target-globals.o): Depend on reload.h.
6813         * reload.h (target_reload): New structure.
6814         (default_target_reload): Declare.
6815         (this_target_reload): Declare as a variable or define as a macro.
6816         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
6817         * reload1.c (default_target_reload): New variable
6818         (this_target_reload): New conditional variable.
6819         (indirect_symref_ok, double_reg_address_ok): Delete.
6820         (spill_indirect_levels): Redefine as a macro.
6821         * target-globals.h (this_target_reload): Declare.
6822         (target_globals): Add a reload field.
6823         (restore_target_globals): Copy the reload field to
6824         this_target_reload.
6825         * target-globals.c: Include hard-reg-set.h.
6826         (default_target_globals): Initialize the reload field.
6827         (save_target_globals): Likewise.
6828
6829 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6830
6831         * rtl.h (target_rtl): Add x_static_reg_base_value.
6832         * alias.c (static_reg_base_value): Redefine as a macro.
6833
6834 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6835
6836         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
6837         (GTFILES): Remove reginfo.c.
6838         * rtl.h (target_rtl): Add x_top_of_stack.
6839         (top_of_stack): New macro.
6840         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
6841         (top_of_stack): Delete.
6842
6843 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6844
6845         * regs.h (target_regs): Add x_hard_regs_of_mode,
6846         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
6847         x_may_move_out_cost and x_last_mode_for_init_move_cost.
6848         (have_regs_of_mode, contains_reg_of_mode, move_cost)
6849         (may_move_in_cost, may_move_out_cost): Redefine as macros.
6850         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
6851         (may_move_in_cost, may_move_out_cost): Delete.
6852         (last_mode_for_init_move_cost): Redefine as a macro.
6853
6854 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6855
6856         * hard-reg-set.h (target_hard_regs): New structure.
6857         (default_target_hard_regs): Declare.
6858         (this_target_hard_regs): Declare as a variable or define as a macro.
6859         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
6860         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
6861         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
6862         (reg_class_size, reg_class_subclasses, reg_class_subunion)
6863         (reg_class_superunion, reg_names): Redefine as macros.
6864         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
6865         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
6866         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
6867         (reg_class_contents, reg_class_size, reg_class_subclasses)
6868         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
6869         (default_target_hard_regs): New variable
6870         (this_target_hard_regs, initial_call_really_used_regs)
6871         (initial_reg_alloc_order): New conditional variables.
6872         (initial_reg_names): New variable.
6873         (init_reg_sets): Assert that initial_call_really_used_regs,
6874         initial_reg_alloc_order and initial_reg_names
6875         are all the same size as their variable counterparts.  Use them to
6876         initialize those counterparts.
6877         * target-globals.h (this_target_hard_regs): Declare.
6878         (target_globals): Add a hard_regs field.
6879         (restore_target_globals): Copy the hard_regs field to
6880         this_target_hard_regs.
6881         * target-globals.c: Include hard-reg-set.h.
6882         (default_target_globals): Initialize the hard_regs field.
6883         (save_target_globals): Likewise.
6884
6885 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6886
6887         * Makefile.in (target-globals.o): Depend on $(RTL_H).
6888         * rtl.h (target_rtl): New structure.
6889         (default_target_rtl): Declare.
6890         (this_target_rtl): Declare as a variable or define as a macro.
6891         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
6892         Redefine as macros.
6893         * emit-rtl.c (default_target_rtl): New variable.
6894         (this_target_rtl): New conditional variable.
6895         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
6896         (return_address_pointer_rtx): Delete.
6897         (initial_regno_reg_rtx): New macro.
6898         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
6899         (init_emit_regs): Likewise.
6900         * target-globals.h (this_target_rtl): Declare.
6901         (target_globals): Add a rtl field.
6902         (restore_target_globals): Copy the rtl field to this_target_rtl.
6903         * target-globals.c: Include rtl.h.
6904         (default_target_globals): Initialize the rtl field.
6905         (save_target_globals): Likewise.
6906
6907 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6908
6909         * Makefile.in (target-globals.o): Depend on $(REGS_H).
6910         * regs.h (target_reg_modes): New structure.
6911         (default_target_reg_modes): Declare.
6912         (this_target_reg_modes): Declare as a variable or define as a macro.
6913         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
6914         * reginfo.c (default_target_reg_modes): New variable.
6915         (this_target_reg_modes): New conditional variable.
6916         (hard_regno_nregs, reg_raw_mode): Delete.
6917         * target-globals.h (this_target_regs): Declare.
6918         (target_globals): Add a regs field.
6919         (restore_target_globals): Copy the regs field to this_target_regs.
6920         * target-globals.c: Include regs.h.
6921         (default_target_globals): Initialize the regs field.
6922         (save_target_globals): Likewise.
6923
6924 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6925
6926         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
6927         * doc/tm.texi: Regenerate.
6928         * Makefile.in (OBJS-common): Add target-globals.o.
6929         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
6930         and target-globals.h.
6931         (target-globals.o): New rule.
6932         (GTFILES): Include $(srcdir)/target-globals.h.
6933         * defaults.h (SWITCHABLE_TARGET): Define.
6934         * gengtype.c (open_base_files): Add target-globals.h to the
6935         list of includes.
6936         * target-globals.h: New file.
6937         * target-globals.c: Likewise.
6938
6939         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
6940         * flags.h (target_flag_state): New structure.
6941         (default_target_flag_state): Declare.
6942         (this_target_flag_state): Declare as a variable or define as a macro.
6943         (align_loops_log): Redefine as a macro.
6944         (align_loops_max_skip, align_jumps_log): Likewise.
6945         (align_jumps_max_skip, align_labels_log): Likewise.
6946         (align_labels_max_skip, align_functions_log): Likewise.
6947         * toplev.c (default_target_flag_state): New variable.
6948         (this_target_flag_state): New conditional variable.
6949         (align_loops_log): Delete.
6950         (align_loops_max_skip, align_jumps_log): Likewise.
6951         (align_jumps_max_skip, align_labels_log): Likewise.
6952         (align_labels_max_skip, align_functions_log): Likewise.
6953         * target-globals.h (this_target_flag_state): Declare.
6954         (target_globals): Add a flag_state field.
6955         (restore_target_globals): Copy the flag_state field to
6956         this_target_flag_state.
6957         * target-globals.c: Include flags.h.
6958         (default_target_globals): Initialize the flag_state field.
6959         (save_target_globals): Likewise.
6960
6961 2010-07-12  Jie Zhang  <jie@codesourcery.com>
6962
6963         * postreload.c (reg_symbol_ref[]): New.
6964         (move2add_use_add2_insn): New.
6965         (move2add_use_add3_insn): New.
6966         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
6967         (move2add_note_store): Likewise.
6968
6969 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
6970
6971         PR rtl-optimization/44752
6972         * genautomata.c (main): Don't emit an empty file even if there
6973         is no automaton.
6974
6975 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6976
6977         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
6978         ix86_solaris_return_in_memory.
6979         * config/i386-protos.h: Reflect this.
6980         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6981         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6982         Move ...
6983         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
6984
6985 2010-07-12  Jie Zhang  <jie@codesourcery.com>
6986
6987         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
6988         align the stack when it's going to be saved.
6989
6990 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6991
6992         PR pch/14940
6993         * config/host-solaris.c (mmap_fixed): New function.
6994         (sol_gt_pch_get_address): Use it.
6995         (sol_gt_pch_use_address): Likewise.
6996
6997 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6998
6999         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7000         pentiumpro on Solaris 8 and 9/x86.
7001         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
7002         Document SSE/SSE2 support.
7003         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
7004
7005 2010-07-12  Andi Kleen  <ak@linux.intel.com>
7006
7007         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
7008         instead of gcc_assert to print better error message for multiple
7009         prevailing defs.
7010
7011 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
7012
7013         * config/i386/i386.c (ix86_asm_output_function_label): Change format
7014         string placeholder from 0x%x to %#x.
7015         (ix86_code_end): Use putc to output '\n'.
7016         (ix86_print_operand) <case ';'>: Use putc to output ';'.
7017
7018 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
7019
7020         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
7021         in directive -export.
7022
7023 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
7024
7025         * reginfo.h (reg_classes_intersect_p): Change arguments type to
7026         reg_class_t.
7027         * rtl.h (reg_classes_intersect_p): Adjust prototype.
7028
7029         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7030         Remove macros.
7031         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
7032         rs6000_memory_move_cost): Remove
7033         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
7034         TARGET_MEMORY_MOVE_COST): Define.
7035         (rs6000_register_move_cost): Make static. Change arguments type from
7036         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
7037         (rs6000_memory_move_cost): Make static. Change arguments type from
7038         'enum reg_class' to reg_class_t.
7039
7040 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
7041
7042         PR middle-end/42505
7043         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
7044         lookup code into....
7045         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
7046         new functions.
7047         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
7048         * cfgloopanal.c (target_clobbered_regs): Define.
7049         (init_set_costs): Initialize target_clobbered_regs.
7050         (estimate_reg_pressure_cost): Add call_p argument.  When true,
7051         adjust the number of available registers to exclude the
7052         call-clobbered registers.
7053         * cfgloop.h (target_clobbered_regs): Declare.
7054         (estimate_reg_pressure_cost): Adjust declaration.
7055         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
7056         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
7057         (determine_set_costs): Dump target_clobbered_regs.
7058         (loop_body_includes_call): New function.
7059         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
7060         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
7061         call_p flag through.
7062         (best_gain_for_invariant): Likewise.
7063         (find_invariants_to_move): Likewise.
7064         (move_single_loop_invariants): Likewise, using already-computed
7065         has_call field.
7066
7067 2010-07-10  Richard Guenther  <rguenther@suse.de>
7068             Joern Rennecke  <joern.rennecke@embecosm.com>
7069
7070         PR debug/44832
7071         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
7072         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
7073         unless they have DECL_IGNORED_P set.
7074
7075 2010-07-10  Richard Guenther  <rguenther@suse.de>
7076
7077         PR lto/44889
7078         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
7079         helper function.
7080         (gimple_types_compatible_p): Similar to pointed-to
7081         types allow and merge a mix of complete and incomplete aggregate.
7082         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
7083         (iterative_hash_gimple_type): Adjust for that.
7084
7085 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
7086
7087         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
7088
7089 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
7090
7091         PR objc/44140
7092         * config/darwin.c (output_objc_section_asm_op): Save and restore
7093         section when outputting ObjC section list.
7094
7095 2010-07-09  Jan Hubicka  <jh@suse.cz>
7096
7097         * lto-streamer-out.c (produce_symtab): Do not write alias
7098         cgraph/varpool nodes.
7099
7100 2010-07-09  Jan Hubicka  <jh@suse.cz>
7101
7102         * tree-inline.c (declare_return_variable): Fix ICE while
7103         inlining DECL_BY_VALUE function not in SSA form
7104
7105 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
7106
7107         PR tree-optimization/44576
7108         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
7109         New.  Pull out from is_loop_prefetching_profitable to implement
7110         the trip count to ahead ratio heuristic.
7111         (mem_ref_count_reasonable_p): New.  Pull out from
7112         is_loop_prefetching_profitable to implement the instruction to
7113         memory reference ratio heuristic.  Also consider not reasonable if
7114         the memory reference count is above a threshold (to avoid
7115         explosive compilation time.
7116         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
7117         is_loop_prefetching_profitable to implement the instruction to
7118         prefetch ratio heuristic.
7119         (is_loop_prefetching_profitable): Removed.
7120         (loop_prefetch_arrays): Distribute the cost analysis across the
7121         function to allow early exit of the prefetch analysis.
7122         is_loop_prefetching_profitable is splitted into three functions,
7123         with each one called as early as possible.
7124         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
7125         number of memory references in a loop is considered too many.
7126
7127 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7128
7129         * reload.c (find_reloads): Don't clear badop if we have a winreg
7130         alternative, but not win, and the class only has fixed regs.
7131         * hard-reg-set.h (class_only_fixed_regs): Declare.
7132         * reginfo.c (class_only_fixed_regs): New array.
7133         (init_reg_sets_1): Initialize it.
7134         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
7135         discourage alternatives using the stack pointer.
7136
7137         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
7138
7139         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
7140
7141         * config/arm/arm.md (cbranchqi4): Fix array size.
7142         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
7143         calculating length.
7144
7145 2010-07-09  Richard Guenther  <rguenther@suse.de>
7146
7147         * gimple.c (struct type_fixup_s): New struct and VEC type.
7148         (gimple_register_type_fixups): New static global.
7149         (gimple_queue_type_fixup): New function.
7150         (gimple_types_compatible_p): Queue type fixups instead of
7151         applying them here.
7152         (gimple_register_type): Apply queued fixups for the
7153         canonical type.  Empty the type fixup queue.
7154
7155 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7156
7157         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
7158         * configure: Regenerate.
7159         * config.in: Ditto.
7160
7161 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7162             Denys Vlasenko  <dvlasenk@redhat.com>
7163             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7164
7165         PR tree-optimization/28632
7166         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
7167         (extract_range_from_binary_expr): Further optimize
7168         BIT_AND_EXPR and BIT_IOR_EXPR.
7169
7170 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
7171
7172         * tree-if-conv.c (fold_or_predicates): New.
7173         (add_to_predicate_list): Call it.
7174
7175 2010-07-09  Richard Guenther  <rguenther@suse.de>
7176
7177         PR middle-end/44890
7178         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
7179         if base is a pointer.
7180         * tree-cfg.c (verify_expr): Update MEM_REF checking.
7181
7182 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7183
7184         PR target/44877
7185         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
7186         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
7187         builtin mask for load/store builtins.
7188
7189 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7190
7191         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
7192         for "lock addl".
7193         * configure: Regenerate.
7194         * config/i386/i386.c (ix86_print_operand) <case ';'>:
7195         Remove TARGET_MACHO.
7196
7197 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
7198
7199         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
7200         default ISA flags.
7201         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
7202
7203 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
7204
7205         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
7206
7207 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
7208
7209         * config/picochip/picochip.md (commsTestPort): Emit more
7210         efficient sequence for tstport instruction.
7211
7212 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7213
7214         * config/i386/i386.c (ix86_veclib_handler): Make static.
7215
7216 2010-07-09  Richard Guenther  <rguenther@suse.de>
7217
7218         PR tree-optimization/44852
7219         * tree-ssa-alias.c: Include toplev.h for exact_log2.
7220         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
7221         in MEM_REF.
7222         (indirect_refs_may_alias_p): Likewise.
7223         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
7224
7225 2010-07-09  Richard Guenther  <rguenther@suse.de>
7226
7227         PR tree-optimization/44882
7228         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
7229         sets do conflict.
7230         (vectorizable_load): Likewise.
7231
7232 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7233
7234         PR target/40657
7235         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
7236         All callers changed.
7237         Handle the case when we're called for the epilogue.
7238         (thumb_unexpanded_epilogue): Use it.
7239         (thumb1_expand_epilogue): Likewise.
7240
7241 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7242
7243         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
7244         both ranges are range_int_cst_p with non-negative minimum,
7245         try harder to derive smaller range.
7246
7247 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7248
7249         * genrecog.c: Include diagnostic-core.h before toplev.h.
7250         * genoutput.c: Likewise.
7251         * genextract.c: Likewise.
7252         * genautomata.c: Likewise.
7253         * genemit.c: Likewise.
7254         * genpeep.c: Likewise.
7255         * genattrtab.c: Likewise.
7256         * genconditions.c: Likewise.
7257         * genpreds.c: Likewise.
7258
7259 2010-07-08  Andi Kleen  <ak@linux.intel.com>
7260
7261         * lto-section-in.c (lto_section_name): Add missing comma.
7262
7263 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
7264
7265         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
7266         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
7267         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
7268         (ia64_override_options): Rename to...
7269         (ia64_option_override): ... this one. Make static.
7270
7271 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7272
7273         PR middle-end/44843
7274         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
7275         pointed-to type of the offset in a MEM_REF to compute the alignment.
7276
7277 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
7278
7279         * final.c (final_scan_insn): Replace
7280         TARGET_UNWIND_INFO macro check by unwind_emit
7281         hook NULL check.
7282         * targhooks.c (default_unwind_emit): Removed.
7283         * targhooks.h (default_unwind_emit): Likewise.
7284         * target.def (unwind_emit): Set default value to NULL.
7285
7286         * config/i386/i386-protos.h (ix86_asm_output_function_label):
7287         New prototype.
7288         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
7289         for NULL fntype argument and allow 64-bit targets.
7290         (ix86_asm_output_function_label): New function.
7291         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
7292         (ix86_handle_fndecl_attribute): Likewise.
7293         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
7294         * doc/doc/tm.texi: Regenerated.
7295         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
7296         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
7297         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
7298         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
7299         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7300         * config/elfos.h: Likewise.
7301         * config/i386/cygming.h: Likewise.
7302         * config/netbsd-aout.h: Likewise.
7303         * config/openbsd.h: Likewise.
7304         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
7305         by ix86_asm_output_function_label function call.
7306         * varasm.c (assemble_start_function): Use
7307         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7308
7309 2010-07-08  Jan Hubicka  <jh@suse.cz>
7310
7311         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
7312         New function.
7313         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
7314         Declare.
7315         * ipa-cp.c (ipcp_estimate_growth): Use it.
7316         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
7317         Likewise.
7318
7319 2010-07-08  Jan Hubicka  <jh@suse.cz>
7320
7321         * tree-inline.c (declare_return_variable): Allocate annotation for new
7322         temporary.
7323
7324 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7325
7326         PR tree-optimization/44710
7327         * tree-if-conv.c (parse_predicate): New.
7328         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
7329         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
7330
7331 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7332
7333         * common.opt (ftree-loop-if-convert): New flag.
7334         * doc/invoke.texi (ftree-loop-if-convert): Documented.
7335         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
7336         when flag_tree_loop_if_convert is set.
7337
7338 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
7339
7340         * config/i386/i386.c: Use short syntax for function calls
7341         through function pointers.
7342         * config/i386/i386.md: Ditto.
7343
7344 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7345
7346         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
7347
7348 2010-07-08  Richard Guenther  <rguenther@suse.de>
7349
7350         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
7351         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
7352
7353 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
7354
7355         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
7356         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
7357         (loc_list_from_tree): Likewise.
7358         (output_loc_operands): Handle outputting DW_OP_const[48]u
7359         with loc->dtprel set.
7360         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
7361
7362 2010-07-08  Jan Hubicka  <jh@suse.cz>
7363
7364         * ipa.c: Include pointer-set.h
7365         (cgraph_externally_visible_p): New attribute ALIASED;
7366         when in LTO, hidden symbols are local unless they are aliased.
7367         (function_and_variable_visibility): Compute aliased nodes;
7368         handle LTO and hidden symbol on functions and vars.
7369         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
7370         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
7371
7372 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7373
7374         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7375         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7376         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7377         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7378         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7379         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
7380         (ix86_gen_probe_stack_range): Likewise.
7381         (override_options): Set them.
7382         (ix86_target_stack_probe): New function.
7383         (ix86_compute_frame_layout): Force use of push instructions to
7384         save registers if stack checking with probes is enabled.
7385         (get_scratch_register_on_entry): New function.
7386         (release_scratch_register_on_entry): Likewise.
7387         (ix86_adjust_stack_and_probe): Likewise.
7388         (output_adjust_stack_and_probe): Likewise.
7389         (ix86_emit_probe_stack_range): Likewise.
7390         (output_probe_stack_range): Likewise.
7391         (ix86_expand_prologue): Emit stack checking code if static built-in
7392         stack checking is enabled.
7393         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
7394         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
7395         (output_adjust_stack_and_probe): Likewise.
7396         (output_probe_stack_range): Likewise.
7397         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7398         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
7399         TARGET_STACK_PROBE.
7400         (allocate_stack_worker_64): Likewise.
7401         (allocate_stack): Likewise.
7402         (adjust_stack_and_probe): New insn.
7403         (probe_stack_range): Likewise.
7404
7405 2010-07-08  Richard Guenther  <rguenther@suse.de>
7406
7407         PR tree-optimization/44831
7408         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
7409         a MEM_REF preserving TBAA info of the original dereference.
7410         Dereference the original pointer if the address is not invariant.
7411         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
7412         at least one invariant address that we are going to dereference.
7413
7414 2010-07-08  Richard Guenther  <rguenther@suse.de>
7415
7416         PR tree-optimization/44861
7417         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
7418         information when building MEM_REFs.
7419         (vectorizable_load): Likewise.
7420         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7421
7422 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7423
7424         * config/sol2-c.c: Do not include diagnostic-core.h.
7425
7426 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7427
7428         PR bootstrap/44768
7429         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
7430         with respect to current_function_decl. Pass decl of the function.
7431         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
7432         * ipa-inline.c (compute_inline_parameters): Pass decl to
7433         estimated_stack_frame_size.
7434
7435 2010-07-08  Richard Guenther  <rguenther@suse.de>
7436
7437         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7438         New function.
7439         (valueize_refs): Call it.
7440
7441 2010-07-08  Richard Guenther  <rguenther@suse.de>
7442
7443         PR rtl-optimization/44838
7444         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
7445         SSA form do not use pointer equivalence.
7446
7447 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7448
7449         * dwarf2out.c (AT_linkage_name): Delete.
7450         (add_linkage_attr): New function.
7451         (add_linkage_name): Call it to emit the linkage attribute.
7452         (dwarf2out_finish): Likewise.
7453         (move_linkage_attr): Explicitly accept both attribute variants.
7454
7455 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7456
7457         * toplev.h: Do not include diagnostic-core.h.
7458         Include diagnostic-core.h in every file that includes toplev.h.
7459         * c-tree.h: Do not include toplev.h.
7460         * pretty-print.h: Update comment.
7461         * Makefile.in: Update dependencies.
7462         * alias.c: Include diagnostic-core.h in every file that includes
7463         toplev.h.
7464         * attribs.c: Likewise.
7465         * auto-inc-dec.c: Likewise.
7466         * bb-reorder.c: Likewise.
7467         * bt-load.c: Likewise.
7468         * caller-save.c: Likewise.
7469         * calls.c: Likewise.
7470         * cfg.c: Likewise.
7471         * cfganal.c: Likewise.
7472         * cfgbuild.c: Likewise.
7473         * cfgcleanup.c: Likewise.
7474         * cfghooks.c: Likewise.
7475         * cfgloop.c: Likewise.
7476         * combine.c: Likewise.
7477         * config/alpha/alpha.c: Likewise.
7478         * config/arc/arc.c: Likewise.
7479         * config/arm/arm.c: Likewise.
7480         * config/arm/pe.c: Likewise.
7481         * config/avr/avr.c: Likewise.
7482         * config/bfin/bfin.c: Likewise.
7483         * config/cris/cris.c: Likewise.
7484         * config/crx/crx.c: Likewise.
7485         * config/darwin-c.c: Likewise.
7486         * config/darwin.c: Likewise.
7487         * config/fr30/fr30.c: Likewise.
7488         * config/frv/frv.c: Likewise.
7489         * config/h8300/h8300.c: Likewise.
7490         * config/host-darwin.c: Likewise.
7491         * config/i386/i386.c: Likewise.
7492         * config/i386/netware.c: Likewise.
7493         * config/i386/nwld.c: Likewise.
7494         * config/i386/winnt-cxx.c: Likewise.
7495         * config/i386/winnt-stubs.c: Likewise.
7496         * config/i386/winnt.c: Likewise.
7497         * config/ia64/ia64-c.c: Likewise.
7498         * config/ia64/ia64.c: Likewise.
7499         * config/iq2000/iq2000.c: Likewise.
7500         * config/lm32/lm32.c: Likewise.
7501         * config/m32c/m32c-pragma.c: Likewise.
7502         * config/m32c/m32c.c: Likewise.
7503         * config/m32r/m32r.c: Likewise.
7504         * config/m68hc11/m68hc11.c: Likewise.
7505         * config/m68k/m68k.c: Likewise.
7506         * config/mcore/mcore.c: Likewise.
7507         * config/mep/mep-pragma.c: Likewise.
7508         * config/mep/mep.c: Likewise.
7509         * config/mmix/mmix.c: Likewise.
7510         * config/mn10300/mn10300.c: Likewise.
7511         * config/moxie/moxie.c: Likewise.
7512         * config/pa/pa.c: Likewise.
7513         * config/pdp11/pdp11.c: Likewise.
7514         * config/picochip/picochip.c: Likewise.
7515         * config/rs6000/rs6000-c.c: Likewise.
7516         * config/rs6000/rs6000.c: Likewise.
7517         * config/rx/rx.c: Likewise.
7518         * config/s390/s390.c: Likewise.
7519         * config/score/score.c: Likewise.
7520         * config/score/score3.c: Likewise.
7521         * config/score/score7.c: Likewise.
7522         * config/sh/sh.c: Likewise.
7523         * config/sh/symbian-base.c: Likewise.
7524         * config/sh/symbian-c.c: Likewise.
7525         * config/sh/symbian-cxx.c: Likewise.
7526         * config/sol2-c.c: Likewise.
7527         * config/sol2.c: Likewise.
7528         * config/sparc/sparc.c: Likewise.
7529         * config/spu/spu.c: Likewise.
7530         * config/stormy16/stormy16.c: Likewise.
7531         * config/v850/v850-c.c: Likewise.
7532         * config/v850/v850.c: Likewise.
7533         * config/vax/vax.c: Likewise.
7534         * config/vxworks.c: Likewise.
7535         * config/xtensa/xtensa.c: Likewise.
7536         * convert.c: Likewise.
7537         * cse.c: Likewise.
7538         * cselib.c: Likewise.
7539         * dbgcnt.c: Likewise.
7540         * dbxout.c: Likewise.
7541         * ddg.c: Likewise.
7542         * dominance.c: Likewise.
7543         * emit-rtl.c: Likewise.
7544         * explow.c: Likewise.
7545         * expmed.c: Likewise.
7546         * fixed-value.c: Likewise.
7547         * fold-const.c: Likewise.
7548         * fwprop.c: Likewise.
7549         * gcse.c: Likewise.
7550         * ggc-common.c: Likewise.
7551         * ggc-page.c: Likewise.
7552         * ggc-zone.c: Likewise.
7553         * gimple-low.c: Likewise.
7554         * gimplify.c: Likewise.
7555         * graph.c: Likewise.
7556         * haifa-sched.c: Likewise.
7557         * ifcvt.c: Likewise.
7558         * implicit-zee.c: Likewise.
7559         * integrate.c: Likewise.
7560         * ira-build.c: Likewise.
7561         * ira-color.c: Likewise.
7562         * ira-conflicts.c: Likewise.
7563         * ira-costs.c: Likewise.
7564         * ira-lives.c: Likewise.
7565         * ira.c: Likewise.
7566         * lists.c: Likewise.
7567         * loop-doloop.c: Likewise.
7568         * loop-iv.c: Likewise.
7569         * lto-opts.c: Likewise.
7570         * lto-symtab.c: Likewise.
7571         * main.c: Likewise.
7572         * modulo-sched.c: Likewise.
7573         * optabs.c: Likewise.
7574         * params.c: Likewise.
7575         * plugin.c: Likewise.
7576         * postreload-gcse.c: Likewise.
7577         * postreload.c: Likewise.
7578         * predict.c: Likewise.
7579         * profile.c: Likewise.
7580         * real.c: Likewise.
7581         * regcprop.c: Likewise.
7582         * reginfo.c: Likewise.
7583         * regmove.c: Likewise.
7584         * reorg.c: Likewise.
7585         * resource.c: Likewise.
7586         * rtl.c: Likewise.
7587         * rtlanal.c: Likewise.
7588         * sched-deps.c: Likewise.
7589         * sched-ebb.c: Likewise.
7590         * sched-rgn.c: Likewise.
7591         * sdbout.c: Likewise.
7592         * sel-sched-dump.c: Likewise.
7593         * sel-sched-ir.c: Likewise.
7594         * simplify-rtx.c: Likewise.
7595         * stmt.c: Likewise.
7596         * stor-layout.c: Likewise.
7597         * store-motion.c: Likewise.
7598         * targhooks.c: Likewise.
7599         * tree-cfg.c: Likewise.
7600         * tree-cfgcleanup.c: Likewise.
7601         * tree-dump.c: Likewise.
7602         * tree-eh.c: Likewise.
7603         * tree-inline.c: Likewise.
7604         * tree-nomudflap.c: Likewise.
7605         * tree-object-size.c: Likewise.
7606         * tree-optimize.c: Likewise.
7607         * tree-outof-ssa.c: Likewise.
7608         * tree-phinodes.c: Likewise.
7609         * tree-profile.c: Likewise.
7610         * tree-ssa-ccp.c: Likewise.
7611         * tree-ssa-coalesce.c: Likewise.
7612         * tree-ssa-live.c: Likewise.
7613         * tree-ssa-loop-niter.c: Likewise.
7614         * tree-ssa-loop-prefetch.c: Likewise.
7615         * tree-ssa-loop.c: Likewise.
7616         * tree-ssa-structalias.c: Likewise.
7617         * tree-ssa-uninit.c: Likewise.
7618         * tree-ssa.c: Likewise.
7619         * tree-vect-data-refs.c: Likewise.
7620         * tree-vect-loop-manip.c: Likewise.
7621         * tree-vect-loop.c: Likewise.
7622         * tree-vect-patterns.c: Likewise.
7623         * tree-vect-stmts.c: Likewise.
7624         * tree-vrp.c: Likewise.
7625         * varasm.c: Likewise.
7626         * vec.c: Likewise.
7627         * web.c: Likewise.
7628         * xcoffout.c: Likewise.
7629
7630 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
7631
7632         * gengtype.c (write_field_root): New function.
7633         (write_root): Use it.
7634
7635 2010-07-07  Wei Guozhi  <carrot@google.com>
7636
7637         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7638         of lowest bits to lshift/compare): Add a missing line.
7639
7640 2010-07-07  Wei Guozhi  <carrot@google.com>
7641
7642         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7643         of lowest bits to lshift/compare): New.
7644
7645 2010-07-07  Tom Tromey  <tromey@redhat.com>
7646
7647         * doc/tm.texi: Update.
7648         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
7649         Add @hook.
7650         * target.def (want_debug_pub_sections): New hook.
7651         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
7652         * dwarf2out.c (add_pubname_string): Check
7653         targetm.want_debug_pub_sections.
7654         (add_pubname): Likewise.
7655         (add_pubtype): Likewise.
7656
7657 2010-07-07  Jie Zhang  <jie@codesourcery.com>
7658
7659         * genautomata.c (output_automata_list_min_issue_delay_code):
7660         Correctly decompress min_issue_delay.
7661
7662 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7663
7664         PR rtl-optimization/44404
7665         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
7666         possible, use reg_overlap_mentioned_p instead.
7667
7668 2010-07-07  Duncan Sands  <baldrick@free.fr>
7669
7670         PR middle-end/41355
7671         * tree.c (build_function_type_skip_args): Copy the original type using
7672         build_distinct_type_copy rather than copy_node.
7673
7674 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7675
7676         PR target/44850
7677         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
7678         revision 161876.
7679         (ix86_expand_prologue): Likewise.
7680         (ix86_handle_fndecl_attribute): Likewise.
7681         (ix86_asm_declare_function_name): Likewise.
7682         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7683         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7684         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
7685         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
7686         * doc/extend.texi: Likewise.
7687
7688 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7689
7690         PR target/44844
7691         * config/i386/i386.md (rdrand<mode>): Changed to expand to
7692         retry if the carry flag isn't valid.
7693         (rdrand<mode>_1): New.
7694
7695 2010-07-07  Richard Guenther  <rguenther@suse.de>
7696
7697         PR middle-end/44790
7698         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
7699         for expanding the constant offset for MEM_REFs.
7700
7701 2010-07-07  Richard Guenther  <rguenther@suse.de>
7702
7703         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
7704         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
7705         * gimple.h (is_gimple_operand): Remove.
7706         * gimple.c (is_gimple_operand): Likewise.
7707         (walk_gimple_op): Fix wi->val_only setting for calls.
7708         * tree-cfg.c (verify_gimple_call): Fix argument validation.
7709         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
7710         invalid gimple calls.
7711
7712 2010-07-06  Jan Hubicka  <jh@suse.cz>
7713
7714         * lto-cgraph.c (output_cgraph): Add missing declaration.
7715
7716 2010-07-06  Jan Hubicka  <jh@suse.cz>
7717
7718         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
7719         partition.
7720
7721 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
7722
7723         * doc/gimple.texi (GIMPLE_DEBUG): Document.
7724         * doc/rtl.texi (Debug Information): New node.
7725         (NOTE_INSN_VAR_LOCATION): Document.
7726         (debug_insn): Likewise.
7727         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
7728
7729 2010-07-07  Jan Hubicka  <jh@suse.cz>
7730
7731         With parts by Richard Guenther.
7732
7733         PR middle-end/44813
7734         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
7735         for functions passed by reference.
7736         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
7737         in memory when passed by reference.
7738         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
7739         beggining.
7740         * ipa-split.c (split_function): Cleanup way return value is passed;
7741         handle SSA DECL_BY_REFERENCE retvals.
7742         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
7743         DECL_BY_REFERENCE is set.
7744         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
7745         find_what_p_points_to): Handle RESULT_DECL.
7746         * tree-inline.c (declare_return_variable): Get new entry_block argument;
7747         when passing by reference ensure that RESULT_DECL is gimple_val.
7748         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
7749         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
7750
7751 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7752
7753         PR rtl-optimization/44787
7754         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
7755         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
7756
7757 2010-07-06  Jan Hubicka  <jh@suse.cz>
7758
7759         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
7760         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
7761         with body can prevail.
7762         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
7763         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
7764         * cgraph.c (cgraph_get_node_or_alias): New function.
7765         * cgraph.h (cgraph_get_node_or_alias): Declare.
7766
7767 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
7768
7769         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
7770         support.
7771         (ix86_expand_prologue): Likewise.
7772         (ix86_handle_fndecl_attribute): Likewise.
7773         (ix86_asm_declare_function_name): New function for
7774         ASM_DECLARE_FUNCTION_NAME.
7775         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
7776         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
7777         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
7778         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
7779         * doc/extend.texi: Adjust documentation about ms_hook_prologue
7780         attribute.
7781
7782 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7783
7784         * config/i386/i386.md (immediate_operand): New mode attribute.
7785
7786         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
7787         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
7788         using P mode iterator.
7789         (pro_epilogue_adjust_stack_di_2): Rename from
7790         pro_epilogue_adjust_stack_rex64_2.
7791
7792         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
7793
7794 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7795
7796         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
7797         through gen_mov_insv_1 function pointer.
7798         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
7799         gen_truncxf<mode>2 through gen_truncxf function pointer.
7800         (remainder<mode>3): Ditto.
7801         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
7802         (allocate_stack): Call gen_allocate_stack_worker_64 or
7803         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
7804         function pointer.
7805         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
7806         function pointer.
7807
7808 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7809
7810         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
7811         operand constraint instead of <r><i>m.
7812
7813 2010-07-06  Richard Guenther  <rguenther@suse.de>
7814
7815         PR middle-end/44828
7816         * convert.c (convert_to_integer): Watch out for overflowing
7817         MULT_EXPR as well.
7818
7819 2010-07-05  Jan Hubicka  <jh@suse.cz>
7820
7821         * lto-streamer.c (write_symbol_vec): Rename to ...
7822         (write_symbol) ... this one; write only symbol given and when
7823         present in cache. Sanity check that what is defined is present
7824         in cgraph/varpool with body/finalized decl.
7825         (write_symbols_of_kind): Remove.
7826         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
7827         pairs to produce symtab.
7828         (produce_asm_for_decls): Update call of produce_symtab; don't do so
7829         when doing WPA streaming.
7830
7831 2010-07-05  Jan Hubicka  <jh@suse.cz>
7832
7833         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
7834         function is still available to fold into.
7835
7836 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7837
7838         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
7839         * function.h (struct_function): Change type of local_decls field
7840         to a VEC.
7841         (add_local_decl): New function.
7842         (FOR_EACH_LOCAL_DECL): New macro.
7843         * cfgexpand.c (init_vars_expansion): Adjust for new type of
7844         cfun->local_decls.
7845         (estimated_stack_frame_size): Likewise.
7846         (expand_used_vars): Likewise.
7847         * cgraphbuild.c (build_cgraph_edges): Likewise.
7848         * function.c (instantiate_decls_1): Likewise.
7849         * ipa-struct-reorg.c (build_data_structure): Likewise.
7850         * ipa-type-escape.c (analyze_function): Likewise.
7851         * lto-streamer-in.c (input_function): Likewise.
7852         * lto-streamer-out.c (output_function): Likewise.
7853         * tree-ssa-live.c (remove_unused_locals): Likewise.
7854         * tree.c (free_lang_data_in_decl): Likewise.
7855         (find_decls_types_in_node): Likewise.
7856         * omp-low.c (remove_exit_barrier): Likewise.
7857         (expand_omp_taskreg): Likewise.
7858         (list2chain): Rename to...
7859         (vec2chain): ...this.  Adjust.
7860         * cgraphunit.c (assemble_thunk): Call add_local_decl.
7861         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
7862         * gimple-low.c (record_vars_into): Likewise.
7863         * tree-inline.c (remap_decls): Likewise.
7864         (declare_return_variable): Likewise.
7865         (declare_inline_vars): Likewise.
7866         (copy_forbidden): Adjust for new type of cfun->local_decls.
7867         (add_local_variables): New function.
7868         (expand_call_inline): Call it.
7869         (tree_function_versioning): Likewise.
7870
7871 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7872
7873         AVX Programming Reference (June, 2010)
7874         * config/i386/cpuid.h (bit_F16C): New.
7875         (bit_RDRND): Likewise.
7876         (bit_FSGSBASE): Likewise.
7877
7878         * config/i386/i386-builtin-types.def: Add
7879         "DEF_FUNCTION_TYPE (UINT16)", function types for
7880         float16 <-> float conversions and
7881         "DEF_FUNCTION_TYPE (VOID, UINT64)".
7882
7883         * config/i386/i386-c.c (ix86_target_macros_internal): Support
7884         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
7885         OPTION_MASK_ISA_F16C.
7886
7887         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
7888         (OPTION_MASK_ISA_RDRND_SET): Likewise.
7889         (OPTION_MASK_ISA_F16C_SET): Likewise.
7890         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
7891         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
7892         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
7893         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
7894         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
7895         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
7896         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
7897         (override_options): Handle them.
7898         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
7899         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
7900         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
7901         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
7902         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
7903         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
7904         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
7905         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
7906         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
7907         (bdesc_args): Likewise.
7908         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
7909         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
7910         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
7911         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
7912         Handle non-memory store.
7913
7914         * config/i386/i386.h (TARGET_FSGSBASE): New.
7915         (TARGET_RDRND): Likewise.
7916         (TARGET_F12C): Likewise.
7917
7918         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
7919         (UNSPEC_VCVTPS2PH): Likewise.
7920         (UNSPECV_RDFSBASE): Likewise.
7921         (UNSPECV_RDGSBASE): Likewise.
7922         (UNSPECV_WRFSBASE): Likewise.
7923         (UNSPECV_WRGSBASE): Likewise.
7924         (UNSPECV_RDRAND): Likewise.
7925         (rdfsbase<mode>): Likewise.
7926         (rdgsbase<mode>): Likewise.
7927         (wrfsbase<mode>): Likewise.
7928         (wrgsbase<mode>): Likewise.
7929         (rdrand<mode>): Likewise.
7930
7931         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
7932
7933         * config/i386/immintrin.h (_rdrand_u16): New.
7934         (_rdrand_u32): Likewise.
7935         (_readfsbase_u32): Likewise.
7936         (_readfsbase_u64): Likewise.
7937         (_readgsbase_u32): Likewise.
7938         (_readgsbase_u64): Likewise.
7939         (_writefsbase_u32): Likewise.
7940         (_writefsbase_u64): Likewise.
7941         (_writegsbase_u32): Likewise.
7942         (_writegsbase_u64): Likewise.
7943         (_rdrand_u64): Likewise.
7944         (_cvtsh_ss): Likewise.
7945         (_mm_cvtph_ps): Likewise.
7946         (_mm256_cvtph_ps): Likewise.
7947         (_cvtss_sh): Likewise.
7948         (_mm_cvtps_ph): Likewise.
7949         (_mm256_cvtps_ph): Likewise.
7950
7951         * config/i386/sse.md (vcvtph2ps): New.
7952         (*vcvtph2ps_load): Likewise.
7953         (vcvtph2ps256): Likewise.
7954         (vcvtps2ph): Likewise.
7955         (*vcvtps2ph): Likewise.
7956         (*vcvtps2ph_store): Likewise.
7957         (vcvtps2ph256): Likewise.
7958
7959         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
7960
7961         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
7962
7963 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
7964
7965         PR bootstrap/44512
7966         * genenums.c (main): Output include of insn-constants.h
7967         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
7968
7969 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
7970
7971         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
7972         (override_options): Initialize it.
7973         (ix86_expand_prologue): Use it.
7974
7975 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
7976
7977         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
7978
7979 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
7980
7981         * double-int.h (fit_double_type): Remove declaration.
7982         * double-int.c (fit_double_type): Remove function.
7983         * tree.h (int_fits_type_p): Adjust prototype.
7984         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
7985         instead of fit_double_type.
7986         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
7987         instead of fit_double_type and build_int_cst_wide.
7988         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
7989         instead of fit_double_type and build_int_cst_wide.
7990         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
7991         of fit_double_type.
7992
7993 2010-07-05  Jan Hubicka  <jh@suse.cz>
7994
7995         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
7996         in_other_partition.
7997         * lto-cgraph.c (referenced_from_other_partition_p,
7998         reachable_from_other_partition_p): Use in_other_partition flags.
7999         (output_node, output_varpool_node): COMDAT nodes always have private
8000         copies and thus are never used from other partition.
8001
8002 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8003
8004         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8005         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
8006         * config/ia64/ia64.c Include reload.h.
8007         (ia64_memory_move_cost): New function.
8008         (TARGET_MEMORY_MOVE_COST): Define.
8009         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
8010         memory_move_cost.
8011
8012 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8013
8014         PR middle-end/42505
8015         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
8016         comments about cost model.
8017         (try_add_cand_for):  Add second strategy for choosing initial set
8018         based on original IVs, controlled by ORIGINALP argument.
8019         (get_initial_solution): Add ORIGINALP argument.
8020         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
8021         (find_optimal_iv_set): Try two different strategies for choosing
8022         the IV set, and return the one with lower cost.
8023
8024 2010-07-05  Richard Guenther  <rguenther@suse.de>
8025
8026         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
8027
8028 2010-07-05  Richard Guenther  <rguenther@suse.de>
8029
8030         * tree.c (reference_alias_ptr_type): New function.
8031         * tree.h (reference_alias_ptr_type): Declare.
8032         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
8033         allow non-TARGET_MEM_REF new refs.
8034         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
8035         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
8036         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
8037         (create_mem_ref): Get alias pointer type.  Adjust calls to
8038         create_mem_ref_raw.
8039         (maybe_fold_tmr): Likewise.
8040         * tree-flow.h (create_mem_ref): Adjust prototype.
8041
8042 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8043
8044         PR c++/44808
8045         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
8046         *from_p is VAR_DECL.
8047
8048 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8049
8050         * tree.h (build_call_list): Remove.
8051         * tree.c (build_call_list): Remove.
8052
8053 2010-07-05  Richard Guenther  <rguenther@suse.de>
8054
8055         * double-int.h (double_int_sub): Declare.
8056         * double-int.c (double_int_sub): New function.
8057         * dwarf2out.c (field_byte_offset): Use it.
8058         * fixed-value.c (do_fixed_add): Likewise.
8059         (do_fixed_multiply): Likewise.
8060         (do_fixed_divide): Likewise.
8061         * tree-predcom.c (add_ref_to_chain): Likewise.
8062         (determine_roots_comp): Likewise.
8063         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8064
8065 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8066
8067         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
8068         implementations.
8069
8070 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
8071
8072         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
8073         * arm-modes.def (CC_NOTB): Don't define.
8074         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
8075         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
8076         (LTUGEU): New code_iterator.
8077         (cnb, optab): New corresponding code_attrs.
8078         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
8079         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
8080         using LTUGEU.
8081         (addsi3_carryin_shift_<optab>): Likewise.
8082         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
8083         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
8084         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
8085         (subsi3_compare): Renamed from subsi3_compare0_c.
8086         Change CC_NOTB to CC.
8087         (arm_subsi3_insn): Allow constants for operand 0.
8088         (compare_scc peephole for eq case): New.
8089         (compare_scc splitters): Change CC_NOTB to CC.
8090
8091 2010-07-05  Richard Guenther  <rguenther@suse.de>
8092
8093         * tree-ssa-loop-im.c (for_each_index): Do not handle
8094         ALIGN_INDIRECT_REF.
8095         (gen_lsm_tmp_name): Likewise.
8096         * tree-dump.c (dequeue_and_dump): Likewise.
8097         * tree-pretty-print.c (dump_generic_node): Likewise.
8098         (op_code_prio): Likewise.
8099         (op_symbol_code): Likewise.
8100         * tree.c (staticp): Likewise.
8101         (build1_stat): Likewise.
8102         * tree.h (INDIRECT_REF_P): Likewise.
8103         * fold-const.c (maybe_lvalue_p): Likewise.
8104         (operand_equal_p): Likewise.
8105         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8106         (ao_ref_init_from_vn_reference): Likewise.
8107         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8108         (find_interesting_uses_address): Likewise.
8109         * dwarf2out.c (loc_list_from_tree): Likewise.
8110         * gimplify.c (gimplify_expr): Likewise.
8111         * tree-eh.c (tree_could_trap_p): Likewise.
8112         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8113         * cfgexpand.c (expand_debug_expr): Likewise.
8114         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8115         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8116         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8117         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
8118         * tree-ssa-operands.c (get_expr_operands): Likewise.
8119         * expr.c (safe_from_p): Likewise.
8120         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
8121         * tree-vect-data-refs.c (vect_setup_realignment): Build
8122         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
8123         * tree-vect-stmts.c (vectorizable_load): Likewise.
8124         * tree.def (ALIGN_INDIRECT_REF): Remove.
8125
8126 2010-07-05  Richard Guenther  <rguenther@suse.de>
8127
8128         PR tree-optimization/44784
8129         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
8130         for inserted stmts.
8131         (find_or_generate_expression): Fix SCCVN insertion check.
8132
8133 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
8134
8135         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
8136         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
8137         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
8138         directives.
8139
8140 2010-07-05  Ira Rosen  <irar@il.ibm.com>
8141
8142         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
8143         statements that are not vectorized.
8144         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
8145         in INSIDE_COST.
8146
8147 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
8148
8149         PR bootstrap/44820
8150         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
8151
8152 2010-07-05  Richard Guenther  <rguenther@suse.de>
8153
8154         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
8155         RESULT_DECLs properly.
8156
8157 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         PR rtl-optimization/44695
8160         * config/i386/i386.md (extract_code): Removed.
8161         (<u>divmodqi4): Likewise.
8162         (divmodqi4): New.
8163         (udivmodqi4): Likewise.
8164         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
8165         (udivmodhiqi3): Likewise.
8166
8167 2010-07-04  Jan Hubicka  <jh@suse.cz>
8168
8169         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
8170
8171 2010-07-04  Jan Hubicka  <jh@suse.cz>
8172
8173         * cgraphunit.c (init_cgraph): Only initialize dump file if it
8174         is not already initialized.
8175
8176 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8177
8178         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
8179         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
8180         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
8181         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
8182         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
8183         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
8184         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
8185         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
8186         (sync_new_nand_optab): Redefine as macros.
8187         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
8188         Delete.
8189         (direct_optab_index): New enum.
8190         (direct_optab_d): New structure.
8191         (direct_optab): New typedef.
8192         (direct_optab_table): Declare.
8193         (direct_optab_handler, set_direct_optab_handler): New functions.
8194         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
8195         (sync_lock_release_optab): New macros.
8196         * optabs.c (direct_optab_table): New variable.
8197         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
8198         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
8199         cmpstr_optab and cmpstrn_optab.
8200         (emit_conditional_move): Likewise for movcc_optab.
8201         (can_conditionally_move_p): Likewise for movcc_gen_code.
8202         (init_insn_codes): Clear direct_optab_table.
8203         (init_optabs): Don't initialize the new "direct optabs" here.
8204         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
8205         vcond_gen_code.
8206         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
8207         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
8208         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
8209         (expand_sync_operation): Likewise other sync_*_optabs.
8210         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
8211         to sync_compare_and_swap_optab.
8212         (expand_sync_lock_test_and_set): Use direct_optab_handler for
8213         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
8214         to the names of both.
8215         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
8216         cmpstr_optab and cmpstrn_optab.
8217         (expand_builtin_lock_release): Likewise sync_lock_release.
8218         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
8219         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
8220         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
8221         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
8222         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
8223         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
8224         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
8225         (sync_lock_test_and_set, sync_lock_release): Delete.
8226         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
8227         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
8228         * genopinit.c (optabs): Use set_direct_optab_handler for the new
8229         macro optabs.
8230         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
8231         the "optab" local variable.  Use direct_optab_handler for optab and
8232         sync_compare_and_swap_optab.
8233         * reload1.c (reload_in_optab, reload_out_optab): Delete.
8234         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
8235         reload_in_optab and reload_out_optab.
8236         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8237         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
8238         * config/pa/pa.c (pa_secondary_reload): Likewise.
8239         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
8240         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
8241         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
8242         (VMSupportsCS8_builtin): Likewise.
8243
8244 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8245
8246         * optabs.h (optab_handlers): Change type of insn_code to int.
8247         (optab_handler, set_optab_handler, convert_optab_handler)
8248         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
8249         CODE_FOR_nothing".
8250         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
8251         (init_insn_codes): Zero both the above arrays.
8252         (init_optabs): Never call init_insn_codes first time around.
8253
8254 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8255
8256         * optabs.h (optab_handler, convert_optab_handler): Turn into
8257         inline functions that return an insn code.
8258         (set_optab_handler, set_convert_optab_handler): New functions.
8259         * builtins.c: Replace optab_handler(X)->insn_code with
8260         optab_handler or set_optab_handler thoughout.  Likewise
8261         convert_optab_handler(X)->insn_code with convert_optab_handler
8262         and set_convert_optab_handler.
8263         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
8264         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
8265         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
8266         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
8267         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
8268         config/spu/spu.c: Likewise.
8269
8270 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8271
8272         PR target/44531
8273         * config.gcc (sh*-*-*): Use regular expressions instead of
8274         the 'i' modifier for sed substitutions.
8275
8276 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
8277
8278         * gimple.c (gimple_body): Comments added.
8279
8280 2010-07-04  Richard Guenther  <rguenther@suse.de>
8281
8282         PR middle-end/44809
8283         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
8284         of an INDIRECT_REF.
8285
8286 2010-07-04  Richard Guenther  <rguenther@suse.de>
8287
8288         PR tree-optimization/44479
8289         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
8290         extra SSA name copy statements which preserves points-to
8291         information.
8292         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8293         Copy points-to information for all pointers.  Properly handle
8294         MEM_REFs.
8295         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
8296         copy statements.
8297         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
8298         dependency.
8299
8300 2010-07-04  Richard Guenther  <rguenther@suse.de>
8301
8302         PR middle-end/44785
8303         * tree-inline.c (initialize_inlined_parameters): Do not
8304         re-use pointer-map slot over remap_type call.
8305
8306 2010-07-04  Richard Guenther  <rguenther@suse.de>
8307
8308         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
8309
8310 2010-07-04  Richard Guenther  <rguenther@suse.de>
8311
8312         PR tree-optimization/44656
8313         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
8314         again after value-replacing in the defintions lhs.
8315
8316 2010-07-04  Ira Rosen  <irar@il.ibm.com>
8317             Revital Eres  <eres@il.ibm.com>
8318
8319         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
8320         Document new arguments.
8321         * doc/tm.texi: Regenerate.
8322         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
8323         Handle unaligned store.
8324         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
8325         * target.def (builtin_vectorization_cost): Add new arguments.
8326         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
8327         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
8328         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
8329         (vect_vfa_segment_size): Fix indentation.
8330         * tree-vectorizer.h (struct _vect_peel_info): New.
8331         (struct _vect_peel_extended_info): New.
8332         (struct _loop_vec_info): Add new field for peeling hash table and a
8333         macro for its access.
8334         (VECT_MAX_COST): Define.
8335         (vect_get_load_cost): Declare.
8336         (vect_get_store_cost, vect_get_known_peeling_cost,
8337         vect_get_single_scalar_iteraion_cost): Likewise.
8338         (vect_supportable_dr_alignment): Add new argument.
8339         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
8340         field.
8341         (destroy_loop_vec_info): Free peeling hash table.
8342         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
8343         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
8344         vect_analyze_slp. Fix indentation.
8345         (vect_get_single_scalar_iteraion_cost): New function.
8346         (vect_get_known_peeling_cost): Likewise.
8347         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
8348         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
8349         statement. Move outside cost calculation inside unknown peeling case.
8350         Call vect_get_known_peeling_cost for known amount of peeling.
8351         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
8352         reference to the print message of forced alignment.
8353         (vect_verify_datarefs_alignment): Update call to
8354         vect_supportable_dr_alignment.
8355         (vect_get_data_access_cost): New function.
8356         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
8357         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
8358         vect_peeling_hash_choose_best_peeling): Likewise.
8359         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
8360         to store all the accesses in the loop and find best possible access to
8361         align using peeling for known alignment case. For unknown alignment
8362         check if stores are preferred or if peeling is worthy.
8363         (vect_find_same_alignment_drs): Analyze pairs of loads too.
8364         (vect_supportable_dr_alignment): Add new argument and check aligned
8365         accesses according to it.
8366         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
8367         (cost_for_stmt): Call vect_get_stmt_cost.
8368         (vect_model_simple_cost): Likewise.
8369         (vect_model_store_cost): Call vect_get_stmt_cost. Call
8370         vect_get_store_cost to calculate the cost of the statement.
8371         (vect_get_store_cost): New function.
8372         (vect_model_load_cost): Call vect_get_stmt_cost. Call
8373         vect_get_load_cost to calculate the cost of the statement.
8374         (vect_get_load_cost): New function.
8375         (vectorizable_store): Update call to vect_supportable_dr_alignment.
8376         (vectorizable_load): Likewise.
8377         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
8378         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
8379         arguments. Handle unaligned store.
8380         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
8381         (rs6000_builtin_support_vector_misalignment): Return true for word and
8382         double word alignments for VSX.
8383         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
8384         vect_supportable_dr_alignment and builtin_vectorization_cost.
8385
8386 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8387
8388         PR target/44597
8389         * config/pa/predicates.md (prefetch_cc_operand): Remove.
8390         (prefetch_nocc_operand): Likewise.
8391         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
8392         (prefetch_20): New insn.
8393         (prefetch_cc): Remove.
8394         (prefetch_nocc): Likewise.
8395
8396 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8397
8398         * expr.c (vector_mode_valid_p): Move to c-common.c.
8399         * expr.h (vector_mode_valid_p): Do not declare here.
8400         * system.h: Poison GCC_EXPR_H in front-ends.
8401         * Makefile.in: Update dependencies.
8402
8403 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8404
8405         PR target/44705
8406         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
8407
8408 2010-07-03  Jan Hubicka  <jh@suse.cz>
8409
8410         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
8411         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
8412         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
8413         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
8414         Likewise.
8415
8416         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
8417         Update timevars.V
8418         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
8419         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
8420         TV_IPA_LTO_DECL_OUT): New.
8421         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
8422
8423 2010-07-03  Jan Hubicka  <jh@suse.cz>
8424
8425         * ipa-inline.c (update_edge_key): Break out from ...
8426         update_callers_keys): ... here;
8427         (update_callee_keys): Update only the edges from caller to callee.
8428         (update_all_calle_keys): Do what update_calle_keys did.
8429         (decide_inlining_of_small_functions): Avoid recomputing of all
8430         callees when badness increase.
8431
8432 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8433
8434         * config/arm/arm.c (arm_attr_length_move_neon): New.
8435         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
8436         * config/arm/neon.md (define_mode_attr V_slen): Remove.
8437         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
8438         to compute length attribute.
8439
8440 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8441
8442         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
8443         as predicate for operand 1 and remove its constraint.
8444         * config/arm/predicates.md (vfp_register_operand): New.
8445         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
8446         (*push_fp_multi): Likewise.
8447
8448 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8449
8450         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
8451
8452 2010-07-03  Jan Hubicka  <jh@suse.cz>
8453
8454         * config/i386/i386.c (override_options): Revert accidental commit.
8455
8456 2010-07-02  Le-Chun Wu  <lcwu@google.com>
8457
8458         PR c++/44128
8459         * doc/invoke.texi: Update documentation of -Wshadow.
8460
8461 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
8462             Julian Brown  <julian@codesourcery.com>
8463             Sandra Loosemore <sandra@codesourcery.com>
8464
8465         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
8466         comparisons.  Adjust to take both operands.
8467         (arm_select_cc_mode): Handle DImode comparisons.
8468         (arm_gen_compare_reg): Generate a scratch register for DImode
8469         comparisons which require one.  Use xor for Thumb equality checks.
8470         (arm_const_double_by_immediates): New.
8471         (arm_print_operand): Allow 'Q' and 'R' for constants.
8472         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
8473         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
8474         arm_canonicalize_comparison.
8475         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
8476         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8477         prototype.
8478         (arm_const_double_by_immediates): Declare.
8479         * config/arm/constraints.md (Di): New constraint.
8480         * config/arm/predicates.md (arm_immediate_di_operand)
8481         (arm_di_operand, cmpdi_operand): New.
8482         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
8483         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
8484         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
8485         (cstoredi4): Handle non-Cirrus also.
8486
8487 2010-07-02  Julian Brown  <julian@codesourcery.com>
8488             Sandra Loosemore <sandra@codesourcery.com>
8489
8490         PR target/43703
8491         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
8492         (smax<mode>3): Disable for NEON float modes when
8493         flag_unsafe_math_optimizations is false.
8494         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
8495         (*mul<mode>3_neon)
8496         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
8497         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
8498         for NEON float modes when flag_unsafe_math_optimizations is false.
8499         (quad_halves_<code>v4sf): Only enable if
8500         flag_unsafe_math_optimizations is true.
8501         * doc/invoke.texi (ARM Options): Add note about floating point
8502         vectorization requiring -funsafe-math-optimizations.
8503
8504 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8505             Julian Brown  <julian@codesourcery.com>
8506
8507         * config/arm/neon.md (UNSPEC_VABA): Delete.
8508         (UNSPEC_VABAL): Delete.
8509         (UNSPEC_VABS): Delete.
8510         (UNSPEC_VMUL_N): Delete.
8511         (adddi3_neon): New.
8512         (subdi3_neon): New.
8513         (mul<mode>3add<mode>_neon): Make the pattern named.
8514         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
8515         (neon_vadd<mode>): Replace with define_expand, and move the remaining
8516         unspec parts...
8517         (neon_vadd<mode>_unspec): ...to this.
8518         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
8519         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
8520         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
8521         (neon_vaba<mode>): Rewrite in terms of vabd.
8522         (neon_vabal<mode>): Rewrite in terms of vabdl.
8523         (neon_vabs<mode>): Rewrite without unspec.
8524         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
8525         (*arm_subdi3): Likewise.
8526         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
8527         No_op attribute to disable assembly output checks.
8528         * config/arm/arm_neon.h: Regenerated.
8529         * doc/arm-neon-intrinsics.texi: Regenerated.
8530
8531 2010-07-02  Jan Hubicka  <jh@suse.cz>
8532
8533         * ipa-split.c (split_function): For aggregate values, set the return
8534         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
8535         *<retval> = fncall.part ().
8536         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
8537
8538 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8539
8540         * config/arm/neon.md (UNSPEC_VAND): Delete.
8541         (UNSPEC_VBIC): Delete.
8542         (UNSPEC_VCLZ): Delete.
8543         (UNSPEC_VCNT): Delete.
8544         (UNSPEC_VEOR): Delete.
8545         (UNSPEC_VORN): Delete.
8546         (UNSPEC_VORR): Delete.
8547         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
8548         core registers too.
8549         (anddi3_neon): Likewise.
8550         (orndi3_neon): Likewise.
8551         (bicdi3_neon): Likewise.
8552         (xordi3_neon): Likewise.
8553         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
8554         rid of unspec and handle unused operand.
8555         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
8556         * config/arm/predicates.md (imm_for_neon_logic_operand):
8557         Require TARGET_NEON.
8558         (imm_for_neon_inv_logic_operand): Likewise.
8559         * config/arm/arm.md (define_split for logical_binary_operator):
8560         Disable for NEON registers.
8561         (anddi3): Add new define_expand, and rename the insn.  Disable
8562         this insn for NEON, where anddi3_neon now applies.
8563         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
8564         (iordi3): As for anddi3.
8565         (xordi3): Likewise.
8566         * config/arm/neon.ml (Vand): Split DImode variants and mark them
8567         as No_op to disable testing for exact instruction match.
8568         (Vorr): Likewise.
8569         (Veor): Likewise.
8570         (Vbic): Likewise.
8571         (Vorn): Likewise.
8572         * config/arm/arm_neon.h: Regenerated.
8573         * doc/arm-neon-intrinsics.texi: Regenerated.
8574
8575 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8576
8577         * expr.h (emit_stack_probe): Declare.
8578         * explow.c (emit_stack_probe): Make global.
8579         (anti_adjust_stack_and_probe): Fix comments.
8580         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8581         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8582         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8583         * config/sparc/sparc.c: Include except.h.
8584         (sparc_emit_probe_stack_range): New function.
8585         (output_probe_stack_range): Likewise.
8586         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
8587         built-in stack checking is enabled.
8588         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
8589         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8590         (probe_stack_range): New insn.
8591
8592 2010-07-02  Richard Guenther  <rguenther@suse.de>
8593
8594         PR target/43958
8595         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
8596         for argument alignment.
8597
8598 2010-07-02  Jan Hubicka  <jh@suse.cz>
8599
8600         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
8601         walk backwards from entry_bb to check only those basic block of header
8602         that might lead to execution of split part.
8603         (consider_split) ... here.
8604         (find_return_bb): Allow assignment in return BB.
8605         (find_retval): New.
8606         (split_function): Fix name of cloned function; take care of updating
8607         return value in return_bb containing move.
8608
8609 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
8610
8611         PR target/44771
8612         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
8613         used variable insn.
8614
8615 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8616
8617         * implicit-zee.c (combine_reaching_defs): Fix long lines.
8618         (is_set_with_extension_DI): Delete.
8619         (struct zero_extend_info): New structure.
8620         (add_removable_zero_extend): New function.
8621         (find_removable_zero_extends): Use note_stores to find SETs.
8622         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
8623
8624 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8625
8626         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
8627         is_miss_rate_acceptable. Pull total_positions computation
8628         out of the loops.  Early return if miss_positions exceeds
8629         the acceptable threshold.
8630         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
8631         is_miss_rate_acceptable after renaming of compute_miss_rate.
8632
8633 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8634
8635         PR middle-end/44576
8636         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
8637         of 1000) for miss rate if the address diference is greater than or
8638         equal to the cache line size (the two reference will never hit the
8639         same cache line).
8640
8641 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
8642
8643         PR target/42835
8644         * config/arm/arm-modes.def (CC_NOTB): New mode.
8645         * config/arm/arm.c (get_arm_condition_code): Handle it.
8646         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
8647         * config/arm/arm.md (subsi3_compare0_c): New pattern.
8648         (compare_scc): Now a define_and_split.  Add a number of extra
8649         splitters before it.
8650
8651         PR target/42172
8652         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
8653         and ZERO_EXTEND.
8654         (arm_rtx_costs_1): Likewise.
8655         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
8656         * config/arm/arm.md (is_arch6): New attribute.
8657         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
8658         extendqisi2): Tighten the code somewhat, avoiding invalid
8659         RTL to occur in the expander patterns.
8660         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
8661         (thumb1_zero_extendhisi2_v6): Delete.
8662         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
8663         (thumb1_extendhisi2_v6): Delete.
8664         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
8665         (thumb1_extendqisi2_v6): Delete.
8666         (zero_extendhisi2 for register input splitter): New.
8667         (zero_extendqisi2 for register input splitter): New.
8668         (thumb1_extendhisi2 for register input splitter): New.
8669         (extendhisi2 for register input splitter): New.
8670         (extendqisi2 for register input splitter): New.
8671         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
8672         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
8673         and add support for a register alternative requiring a split.
8674         (thumb1_zero_extendqisi2): Likewise.
8675         (arm_zero_extendqisi2): Likewise.
8676         (arm_extendhisi2): Likewise.
8677         (arm_extendqisi2): Likewise.
8678
8679 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8680
8681         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
8682         instead of an unspec.
8683         (neon_expand_vector_init): Likewise.
8684         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
8685         (UNSPEC_VDUP_LANE): Delete.
8686         (UNSPEC VDUP_N): Delete.
8687         (UNSPEC_VGET_HIGH): Delete.
8688         (UNSPEC_VGET_LANE): Delete.
8689         (UNSPEC_VGET_LOW): Delete.
8690         (UNSPEC_VMVN): Delete.
8691         (UNSPEC_VSET_LANE): Delete.
8692         (V_double_vector_mode): New.
8693         (vec_set<mode>_internal): Make code emitted match that for the
8694         corresponding intrinsics.
8695         (vec_setv2di_internal): Likewise.
8696         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
8697         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
8698         (neon_vset_lane<mode>): Combine double and quad patterns and
8699         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
8700         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
8701         (neon_vdup_n<mode>): Rewrite RTL without unspec.
8702         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
8703         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
8704         with neon_vdup_lanev2di, adjusting the pattern from the latter
8705         to be predicable for consistency.
8706         (neon_vdup_lane<mode>_internal): New.
8707         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
8708         to avoid using an unspec.
8709         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
8710         (neon_vdup_lanev2di): Turn into a define_expand.
8711         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
8712         (neon_vget_high<mode>): Replace with....
8713         (neon_vget_highv16qi): New pattern using canonical RTL.
8714         (neon_vget_highv8hi): Likewise.
8715         (neon_vget_highv4si): Likewise.
8716         (neon_vget_highv4sf): Likewise.
8717         (neon_vget_highv2di): Likewise.
8718         (neon_vget_low<mode>): Replace with....
8719         (neon_vget_lowv16qi): New pattern using canonical RTL.
8720         (neon_vget_lowv8hi): Likewise.
8721         (neon_vget_lowv4si): Likewise.
8722         (neon_vget_lowv4sf): Likewise.
8723         (neon_vget_lowv2di): Likewise.
8724
8725         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
8726         test for this emitting vmov.
8727         (Vset_lane): Likewise.
8728         (Vdup_n): Likewise.
8729         (Vmov_n): Likewise.
8730
8731         * doc/arm-neon-intrinsics.texi: Regenerated.
8732
8733 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8734
8735         * config/arm/neon.md (vec_extractv2di): Correct error in register
8736         numbering to reconcile with neon_vget_lanev2di.
8737
8738 2010-07-02  Richard Guenther  <rguenther@suse.de>
8739
8740         * tree-ssa-structalias.c (pt_solution_set_var): New function.
8741         * tree-ssa-alias.h (pt_solution_set_var): Declare.
8742         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
8743         points-to information.
8744
8745 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
8746
8747         * config/s390/s390.c (override_options): Adopt prefetching
8748         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
8749
8750 2010-07-02  Jan Hubicka  <jh@suse.cz>
8751
8752         * df-problems.c (df_kill_notes): Do not collect dead  notes.
8753         (df_set_note): Just call add_reg_note.
8754         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
8755         df_create_unused_note): Do not deal with lists of old notes.
8756         (df_note_bb_compute): Likewise.
8757
8758 2010-07-02  Richard Guenther  <rguenther@suse.de>
8759
8760         * tree-ssa-structalias.c (find_func_aliases): Handle
8761         pointer alignment via BIT_AND_EXPR.
8762         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
8763
8764 2010-07-02  Richard Guenther  <rguenther@suse.de>
8765
8766         * tree-data-ref.c (initialize_data_dependence_relation): Handle
8767         mismatching number of dimensions properly.
8768
8769 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8770
8771         PR target/44707
8772         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
8773         (lo_sum (high ...) ...) patterns generated by earlier passes.
8774
8775 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8776
8777         * doc/install.texi (Prerequisites): Document Perl requirement on
8778         Solaris 2.
8779         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
8780
8781 2010-07-02  Richard Guenther  <rguenther@suse.de>
8782
8783         PR middle-end/44777
8784         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
8785
8786 2010-07-02  Jan Hubicka  <jh@suse.cz>
8787
8788         PR middle-end/44706
8789         * predict.c (predict_paths_for_bb): Handle case when control dependence
8790         BB has only abnormal edges.
8791
8792 2010-07-02  Richard Guenther  <rguenther@suse.de>
8793
8794         PR tree-optimization/44748
8795         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
8796         the embedded conversion in MEM_REFs.
8797
8798 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
8799
8800         * reload.c: Include toplev.h.
8801         * recog.c:  Likewise.
8802         * Makefile.in: Adjust dependencies.
8803
8804 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
8805
8806         PR debug/44694
8807         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
8808         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
8809
8810 2010-07-01  Richard Guenther  <rguenther@suse.de>
8811
8812         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
8813         types for offsets.
8814
8815 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8816
8817         PR target/44732
8818         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
8819         Fix argument types.
8820
8821 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
8822
8823         PR target/44727
8824         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8825         Make sure operand 0 dies.
8826
8827 2010-07-01  Richard Guenther  <rguenther@suse.de>
8828
8829         PR middle-end/42834
8830         PR middle-end/44468
8831         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
8832         * doc/generic.texi (References to storage): Document MEM_REF.
8833         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
8834         (print_call_name): Likewise.
8835         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
8836         (build_simple_mem_ref_loc): New function.
8837         (mem_ref_offset): Likewise.
8838         * tree.h (build_simple_mem_ref_loc): Declare.
8839         (build_simple_mem_ref): Define.
8840         (mem_ref_offset): Declare.
8841         * fold-const.c: Include tree-flow.h.
8842         (operand_equal_p): Handle MEM_REF.
8843         (build_fold_addr_expr_with_type_loc): Likewise.
8844         (fold_comparison): Likewise.
8845         (fold_unary_loc): Fold
8846         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
8847         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
8848         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
8849         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
8850         (ptr_deref_may_alias_ref_p_1): Likewise.
8851         (ao_ref_base_alias_set): Properly differentiate base object for
8852         offset and TBAA.
8853         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
8854         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
8855         (indirect_refs_may_alias_p): Likewise.
8856         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
8857         chasing code.
8858         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
8859         (call_may_clobber_ref_p_1): Likewise.
8860         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
8861         * expr.c (expand_assignment): Handle MEM_REF.
8862         (store_expr): Handle MEM_REFs from STRING_CSTs.
8863         (store_field): If expanding a MEM_REF of a non-addressable
8864         decl use bitfield operations.
8865         (get_inner_reference): Handle MEM_REF.
8866         (expand_expr_addr_expr_1): Likewise.
8867         (expand_expr_real_1): Likewise.
8868         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
8869         * alias.c (ao_ref_from_mem): Handle MEM_REF.
8870         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
8871         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
8872         (dr_analyze_indices): Likewise.
8873         (dr_analyze_alias): Likewise.
8874         (object_address_invariant_in_loop_p): Likewise.
8875         * gimplify.c (mark_addressable): Handle MEM_REF.
8876         (gimplify_cond_expr): Build MEM_REFs.
8877         (gimplify_modify_expr_to_memcpy): Likewise.
8878         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
8879         (gimple_fold_indirect_ref): Adjust.
8880         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
8881         * tree.def (MEM_REF): New tree code.
8882         * tree-dfa.c: Include toplev.h.
8883         (get_ref_base_and_extent): Handle MEM_REF.
8884         (get_addr_base_and_unit_offset): New function.
8885         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
8886         * gimple-fold.c (may_propagate_address_into_dereference): Handle
8887         MEM_REF.
8888         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
8889         accesses if the array has just one dimension.  Remove always true
8890         parameter.  Do not require type compatibility here.
8891         (maybe_fold_offset_to_component_ref): Remove.
8892         (maybe_fold_stmt_indirect): Remove.
8893         (maybe_fold_reference): Remove INDIRECT_REF handling.
8894         Fold back to non-MEM_REF.
8895         (maybe_fold_offset_to_address): Simplify.  Deal with type
8896         mismatches here.
8897         (maybe_fold_reference): Likewise.
8898         (maybe_fold_stmt_addition): Likewise.  Also handle
8899         &ARRAY + I in addition to &ARRAY[0] + I.
8900         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
8901         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
8902         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
8903         * tree-ssa.c (useless_type_conversion_p): Make most pointer
8904         conversions useless.
8905         (warn_uninitialized_var): Handle MEM_REF.
8906         (maybe_rewrite_mem_ref_base): New function.
8907         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
8908         to SSA form.
8909         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
8910         INDIRECT_REF handling.
8911         (copy_tree_body_r): Handle MEM_REF.
8912         * gimple.c (is_gimple_addressable): Adjust.
8913         (is_gimple_address): Likewise.
8914         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
8915         invariant base are invariant.
8916         (is_gimple_min_lval): Adjust.
8917         (is_gimple_mem_ref_addr): New function.
8918         (get_base_address): Handle MEM_REF.
8919         (count_ptr_derefs): Likewise.
8920         (get_base_loadstore): Likewise.
8921         * gimple.h (is_gimple_mem_ref_addr): Declare.
8922         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
8923         * tree-cfg.c (verify_address): New function, split out from ...
8924         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
8925         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
8926         INDIRECT_REFs.
8927         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
8928         INDIRECT_REF.  Allow conversions.
8929         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
8930         a register does not change its size.
8931         (verify_types_in_gimple_reference): Verify MEM_REF.
8932         (verify_gimple_assign_single): Disallow INDIRECT_REF.
8933         Handle MEM_REF.
8934         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
8935         New.
8936         (mark_address_taken): Handle MEM_REF.
8937         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
8938         (get_asm_expr_operands): Pass opf_not_non_addressable.
8939         (get_expr_operands): Handle opf_[not_]non_addressable.
8940         Handle MEM_REF.  Remove INDIRECT_REF handling.
8941         * tree-vrp.c (check_array_ref): Handle MEM_REF.
8942         (search_for_addr_array): Likewise.
8943         (check_array_bounds): Likewise.
8944         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
8945         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
8946         (ref_always_accessed_p): Likewise.
8947         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
8948         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
8949         Handle MEM_REF.
8950         * cgraphbuild.c (mark_load): Properly check for NULL result
8951         from get_base_address.
8952         (mark_store): Likewise.
8953         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
8954         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
8955         handling for MEM_REF.
8956         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
8957         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
8958         * builtins.c (stabilize_va_list_loc): Use the function ABI
8959         valist type if we couldn't canonicalize the argument type.
8960         Always dereference with the canonical va-list type.
8961         (maybe_emit_free_warning): Handle MEM_REF.
8962         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
8963         memmove to memcpy.
8964         * builtins.c (fold_builtin_memory_op): Use ref-all types
8965         for all memcpy foldings.
8966         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
8967         (build_outer_var_ref): Likewise.
8968         (scan_omp_1_op): Likewise.
8969         (lower_rec_input_clauses): Likewise.
8970         (lower_lastprivate_clauses): Likewise.
8971         (lower_reduction_clauses): Likewise.
8972         (lower_copyprivate_clauses): Likewise.
8973         (expand_omp_atomic_pipeline): Likewise.
8974         (expand_omp_atomic_mutex): Likewise.
8975         (create_task_copyfn): Likewise.
8976         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
8977         Remove old union trick.  Initialize constant offsets.
8978         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
8979         INDIRECT_REF.  Init base_alias_set properly.
8980         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
8981         (vn_reference_fold_indirect): Adjust for MEM_REFs.
8982         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
8983         for ARRAY_REFs.
8984         (may_insert): Remove.
8985         (visit_reference_op_load): Do not test may_insert.
8986         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
8987         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8988         a field to store the constant offset this op applies.
8989         (run_scc_vn): Adjust prototype.
8990         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
8991         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
8992         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
8993         bother about volatile qualifiers on pointers.
8994         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
8995         * tree-ssa-loop-ivopts.c
8996         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
8997         (strip_offset_1): Likewise.
8998         (find_interesting_uses_address): Replace INDIRECT_REF handling with
8999         MEM_REF handling.
9000         (get_computation_cost_at): Likewise.
9001         * ipa-pure-const.c (check_op): Handle MEM_REF.
9002         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
9003         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
9004         and constants.
9005         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
9006         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
9007         (eliminate_local_variables_1): Likewise.
9008         (create_call_for_reduction_1): Likewise.
9009         (create_loads_for_reductions): Likewise.
9010         (create_loads_and_stores_for_name): Likewise.
9011         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
9012         (ssa_accessed_in_tree): Handle MEM_REF.
9013         (ssa_accessed_in_assign_rhs): Likewise.
9014         (update_type_size): Likewise.
9015         (analyze_accesses_for_call_stmt): Likewise.
9016         (analyze_accesses_for_assign_stmt): Likewise.
9017         (transform_access_sites): Likewise.
9018         (transform_allocation_sites): Likewise.
9019         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
9020         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9021         not handle INDIRECT_REF.
9022         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
9023         (cond_store_replacement): Likewise.
9024         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9025         MEM_REF, no not handle INDIRECT_REFs.
9026         (insert_into_preds_of_block): Properly initialize avail.
9027         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
9028         for ARRAY_REFs.  Properly handle reference lookups that
9029         require a bit re-interpretation.
9030         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
9031         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
9032         (build_ref_for_offset_1): Remove.
9033         (build_ref_for_offset): Build MEM_REFs.
9034         (gate_intra_sra): Disable for now.
9035         (sra_ipa_modify_expr): Handle MEM_REF.
9036         (ipa_early_sra_gate): Disable for now.
9037         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
9038         MEM_REF handling.
9039         (disqualify_base_of_expr): Likewise.
9040         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
9041         MEM_REF handling.
9042         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
9043         Use mem_ref_offset.  Remove bogus folding.
9044         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
9045         (make_fancy_name_1): Add support for MEM_REF.
9046         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
9047         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
9048         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
9049         (compute_complex_ancestor_jump_func): Likewise.
9050         (ipa_analyze_virtual_call_uses): Likewise.
9051         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
9052         INDIRECT_REF folding with more generalized MEM_REF folding.
9053         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
9054         (forward_propagate_addr_into_variable_array_index): Also handle
9055         &ARRAY + I in addition to &ARRAY[0] + I.
9056         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
9057         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
9058         creates assignments with overlap.
9059         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
9060         (get_frame_field): Likewise.
9061         (get_nonlocal_debug_decl): Likewise.
9062         (convert_nonlocal_reference_op): Likewise.
9063         (struct nesting_info): Add mem_refs pointer-set.
9064         (create_nesting_tree): Allocate it.
9065         (convert_local_reference_op): Insert to be folded mem-refs.
9066         (fold_mem_refs): New function.
9067         (finalize_nesting_tree_1): Perform defered folding of mem-refs
9068         (free_nesting_tree): Free the pointer-set.
9069         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
9070         (vectorizable_load): Likewise.
9071         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
9072         (propagate_with_phi): Likewise.
9073         * tree-object-size.c (addr_object_size): Handle MEM_REFs
9074         instead of INDIRECT_REFs.
9075         (compute_object_offset): Handle MEM_REF.
9076         (plus_stmt_object_size): Handle MEM_REF.
9077         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
9078         for &MEM_REF.
9079         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
9080         (symbol_marked_for_renaming): Likewise.
9081         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
9082         (fold-const.o): Add $(TREE_FLOW_H).
9083         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
9084         (find_func_clobbers): Likewise.
9085         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
9086         (decompose_access): Likewise.
9087         (replace_field_acc): Likewise.
9088         (replace_field_access_stmt): Likewise.
9089         (insert_new_var_in_stmt): Likewise.
9090         (get_stmt_accesses): Likewise.
9091         (reorg_structs_drive): Disable.
9092         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
9093         (ix86_canonical_va_list_type): Likewise.
9094
9095 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9096
9097         PR other/44566
9098         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
9099         * target.def (struct gcc_target): Replace enum reg_class with
9100         reg_class_t in hook argument / return types.
9101         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
9102         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
9103         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
9104         * targhooks.h (default_branch_target_register_class): Likewise.
9105         (default_ira_cover_classes, default_secondary_reload): Likewise.
9106         (default_memory_move_cost, default_register_move_cost): Likewise.
9107         * targhooks.c (default_branch_target_register_class): Likewise.
9108         (default_ira_cover_classes, default_secondary_reload): Likewise.
9109         (default_memory_move_cost, default_register_move_cost): Likewise.
9110         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
9111         * bt-load.c (branch_target_load_optimize): Likewise.
9112         * ira.c (setup_cover_and_important_classes): Likewise.
9113         * ira-costs.c (copy_cost): Likewise.
9114         * reload1.c (emit_input_reload_insns): Likewise.
9115         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9116         * config/frv/frv.c (frv_secondary_reload): Likewise.
9117         * config/s390/s390.c (s390_secondary_reload): Likewise.
9118         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
9119         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
9120         (ix86_register_move_cost): Likewise.
9121         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
9122         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
9123         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
9124         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
9125         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
9126         (rs6000_ira_cover_classes): Likewise.
9127         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
9128         * config/picochip/picochip-protos.h (picochip_secondary_reload):
9129         Likewise.
9130         * config/pa/pa.c (pa_secondary_reload): Likewise.
9131         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
9132         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
9133         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
9134         * doc/tm.texi: Regenerate.
9135
9136 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
9137
9138         PR bootstrrap/44726
9139         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
9140         use.
9141         (build_alias_set_optimal_p): Likewise.
9142         (build_base_obj_set_for_drs): Likewise.
9143
9144 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9145
9146         * target.def: Remove comment about licensing problems of function
9147         declarations.
9148
9149         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
9150         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
9151         * doc/tm.texi: Regenerate.
9152
9153         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
9154         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
9155
9156         * target.def (enum_va_list_p): Use DEFHOOK.
9157         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
9158         Rename ptype to ptree.
9159         * doc/tm.texi: Regenerate.
9160
9161         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
9162         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
9163         * doc/tm.texi: Regenerate.
9164
9165         * target.def (memory_move_cost): Use DEFHOOK.
9166         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
9167         Rename regclass AKA class to rclass.
9168         * doc/tm.texi: Regenerate.
9169
9170         * target.def (pragma_parse): Use DEFHOOK.
9171         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
9172         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
9173         * doc/tm.texi: Regenerate.
9174
9175         * target.def (pass_by_reference): Use DEFHOOK.
9176         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
9177         * doc/tm.texi: Regenerate.
9178
9179         * target.def (resolve_overloaded_builtin): Rename params to arglist.
9180         Use DEFHOOK.
9181         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
9182         * doc/tm.texi: Regenerate.
9183
9184         * target.def (return_pops_args): Use DEFHOOK.
9185         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
9186         Rename stack-size to size.
9187         * doc/tm.texi: Regenerate.
9188
9189         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
9190         last-sched_cycle to last_clock, cur_cycle to clock.
9191         * doc/tm.texi.in: Use @hook.
9192         * doc/tm.texi: Regenerate.
9193
9194         * target.def (print_operand, print_operand_address): Update comment.
9195         (print_operand_punct_valid_p): Likewise.
9196
9197 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9198
9199         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
9200         to rtl.h.
9201         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
9202         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
9203         * rtl-error.h: New.
9204         * regrename.c: Do not include toplev.h. Include rtl-error.h.
9205         * rtl-error.c: Likewise.
9206         * reload.c: Likewise.
9207         * recog.c:  Likewise.
9208         * sel-sched.c: Likewise.
9209         * function.c: Likewise.
9210         * reg-stack.c: Likewise.
9211         * cfgrtl.c: Likewise.
9212         * reload1.c: Likewise.
9213         * final.c: Include rtl-error.
9214         * Makefile.in: Adjust dependencies.
9215
9216 2010-06-30  Jan Hubicka  <jh@suse.cz>
9217
9218         PR middle-end/PR44706
9219         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
9220         to return the value.
9221
9222 2010-06-30  Michael Matz  <matz@suse.de>
9223
9224         PR bootstrap/44699
9225         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
9226         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
9227         a gimple reg, attach the original VDEF to the last store in the
9228         sequence.
9229
9230 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
9231
9232         PR other/44034
9233         * config/darwin.c (darwin_override_options): Use renamed
9234         targetm.asm_out.emit_unwind_label.
9235
9236 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9237
9238         PR tree-optimization/39799
9239         * tree-inline.c (remap_ssa_name): Initialize variable only if
9240         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9241
9242 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
9243
9244         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
9245
9246 2010-06-30  Richard Guenther  <rguenther@suse.de>
9247
9248         PR target/44722
9249         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
9250         against oscillation with reverse peephole2.
9251
9252 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9253
9254         PR target/44721
9255         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9256         Fix last commit.
9257
9258 2010-06-30  Nick Clifton  <nickc@redhat.com>
9259
9260         * config/rx/rx-modes.def: New file.
9261         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
9262         (CC_REGNUM): Define.
9263         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
9264         register.
9265         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
9266         (SELECT_CC_MODE): Define.
9267         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
9268         (reg:CC CC_REG) instead of (cc0).
9269         (attr "cc"): Delete.
9270         (cbranchsi4): Do not split compare and branch here. Instead move
9271         it to...
9272         (cbranchsi4_<code>): ... here.  New patterns.
9273         (cmpsi): Call rx-compare_redundant to find out if it is necessary
9274         to emit the compare instruction.
9275         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
9276         cc_status flags.
9277         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
9278         FIRST_PSEUDO_REGNUM.
9279         (rx_expand_prologue, rx_expand_epilogue): Likewise.
9280         (rx_notice_update_cc): Delete.
9281         (rx_cc_modes_compatible): New function.
9282         (flags_needed_for_conditional): New function.
9283         (flags_from_mode): New function.
9284         (rx_compare_redundant): New function - scans backwards through
9285         insn list to find out if condition flags are already set correctly.
9286         (TARGET_CC_MODES_COMPATIBLE): Define.
9287         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
9288
9289         * config/rx/rx.h (BRANCH_COST): Define.
9290         (REGISTER_MOVE_COST): Define.
9291         * config/rx/predicates (rx_source_operand): Allow all constant types.
9292         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
9293         (tstsi4): New pattern.
9294         * config/rx/rx.c (rx_memory_move_cost): Define.
9295         (TARGET_MEMORY_MOVE_COST): Define.
9296
9297 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9298
9299         * tree.h (block_may_fallthru): Declare here.
9300         * tree-flow.h (block_may_fallthru): Do not declare here.
9301         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
9302         bitmap.h
9303         * Makefile.in (c-typeck.o): Update dependencies.
9304
9305 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
9306
9307         PR debug/44694
9308         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
9309         * cselib.c (cfa_base_preserved_regno): New static variable.
9310         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
9311         of REGNO (cfa_base_preserved_val->locs->loc).
9312         (cselib_preserve_cfa_base_value): Add regno argument, set
9313         cfa_base_preserved_regno to it.
9314         (cselib_invalidate_regno): Allow removal of registers other than
9315         cfa_base_preserved_regno from cfa_base_preserved_val.
9316         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
9317         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
9318         of MEM addresses, if not on LHS.
9319         (reverse_op): Don't add reverse ops for cfa_base_rtx.
9320         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
9321
9322 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9323
9324         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
9325         static variables.
9326         (peep2_buf_position): New static function.
9327         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
9328         peephole2_optimize): Use it.
9329         (peep2_attempt, peep2_update_life): New static functions, broken out
9330         of peephole2_optimize.
9331         (peep2_fill_buffer): New static function.
9332         (peephole2_optimize): Change the main loop to try to fill the buffer
9333         with the maximum number of insns before matching them against
9334         peepholes.  Use a forward scan.  Remove special case for targets with
9335         conditional execution.
9336         * genrecog.c (change_state): Delete dead code.
9337         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9338         Rewrite so as not to expect the second insn to have had a peephole
9339         applied yet.
9340
9341 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9342
9343         * genhooks.c (emit_findices): Cast field precision to int.
9344         (emit_documentation): Likewise.
9345
9346 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
9347
9348         PR tree-optimization/43801
9349         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
9350         if old_decl was DECL_ONE_ONLY.
9351
9352         PR debug/44668
9353         * dwarf2out.c (add_accessibility_attribute): New function.
9354         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
9355         instead of adding DW_AT_accessibility manually.
9356         (gen_enumeration_type_die, gen_struct_or_union_type_die,
9357         gen_typedef_die): Use it.
9358
9359 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9360
9361         * vmsdbgout.c (full_name): Just output the file name if not native.
9362
9363 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9364
9365         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
9366         (funcnam_table): New static table.
9367         (funcnum_table): New static table.
9368         (write_rtnbeg): Write value saved in funcnum_table.
9369         (write_rtnend): Write value saved in funcnum_table.
9370         (vmsdbgout_begin_function): Save current function info in
9371         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
9372         (vmsdbgout_finish): Iterate over funcnum_table.
9373
9374 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9375
9376         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
9377         (vmsdbgout_type_decl): Declare
9378         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
9379         (FUNC_EPILOGUE_LABEL): New macro
9380         (vmsdbgout_begin_epilogue): New function.
9381         (vmsdbgout_type_decl): New function.
9382
9383 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9384
9385         * vmsdbg.h: Update copyright.
9386
9387 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9388
9389         * vmsdbg.h (DST_K_TBG): New DST constant.
9390         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
9391         (write_modbeg): Cast module_language to avoid warning.
9392         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
9393
9394 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9395
9396         PR other/44034
9397         * target.def, doc/tm.texi.in, genhooks.c: New files.
9398         * target.h: Instead of defining individual hook members,
9399         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
9400         include target.def.
9401         * target-def.h: Instead of defining individual hook initializers,
9402         include target-hooks-def.h.
9403         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
9404         targetm.live_on_entry -> targetm.extra_live_on_entry
9405         targetm.sched.md_finish ->targetm.sched.finish
9406         targetm.sched.md_init -> targetm.sched.init
9407         targetm.sched.md_init_global -> targetm.sched.init_global
9408         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
9409         targetm.asm_out.except_table_label ->
9410           targetm.asm_out.emit_except_table_label
9411         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
9412         targetm.target_help -> targetm.help
9413         targetm.vectorize.builtin_support_vector_misalignment ->
9414           targetm.vectorize.support_vector_misalignment
9415         targetm.file_start_app_off -> targetm.asm_file_start_app_off
9416         targetm.file_start_file_directive ->
9417          targetm.asm_file_start_file_directive
9418         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
9419         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
9420         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
9421         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
9422           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
9423         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
9424           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
9425         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
9426         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
9427         * Makefile.in (TARGET_H): Depend on target.def.
9428         (TARGET_DEF_H): Depend on target-hooks-def.h.
9429         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
9430         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
9431         * doc/tm.texi: Regenerate.
9432
9433         * Makefile.in (s-tm-texi): Remove stray tab / rule.
9434
9435         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
9436         (targetm.sched.init): Likewise.
9437
9438 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9439
9440         PR bootstrap/44713
9441         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
9442         (function_arg_advance_32): Const-ify TYPE parameter.
9443         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
9444         (ix86_function_arg_advance): Change type of NAMED to bool.
9445         (function_arg_32): Const-ify CUM and TYPE parameters.
9446         (function_arg_64): Likewise.  Change type of NAMED to bool.
9447         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
9448         to bool.
9449         (ix86_function_arg): Change type of NAMED to bool.
9450         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
9451         last argument as a bool.
9452
9453 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9454
9455         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
9456         (OVERRIDE_OPTIONS): Add note of obsolescence.
9457         Replace references with references to TARGET_OPTION_OVERRIDE.
9458         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
9459          the macro).
9460         * targhooks.c (default_target_option_override): New function.
9461         * targhooks.h (default_target_option_override): Declare.
9462         * target.h (struct gcc_target): Add override member to
9463         target_option member.
9464         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
9465         targetm.target_option.override call.
9466         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
9467         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
9468
9469 2010-06-29  Jan Hubicka  <jh@suse.cz>
9470
9471         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
9472
9473 2010-06-29  Jan Hubicka  <jh@suse.cz>
9474
9475         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
9476         unreachable.
9477         (rebuild_frequencies): New function.
9478         * predict.h (rebuild_frequencies): Declare.
9479         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
9480         entry block and edge reaching new_entry.
9481         (tree_function_versioning): When doing partial cloning, rebuild
9482         frequencies when done.
9483         * passes.c (execute_function_todo): Use rebild_frequencies.
9484
9485 2010-06-29  Richard Guenther  <rguenther@suse.de>
9486
9487         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
9488         * tree-flow.h (enum noalias_state): Remove.
9489         (struct var_ann_d): Remove noalias_state member.
9490
9491 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9492
9493         PR target/43902
9494         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
9495         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
9496         (maddhidi4): Likewise.
9497
9498         Revert parts of the change for PR25130.
9499         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9500         MEM_ALIAS_SET.
9501
9502 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9503
9504         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
9505         targetm.calls.function_incoming_arg, and
9506         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
9507         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
9508         * target.h (struct gcc_target): Add function_arg_advance,
9509         function_arg, and function_incoming_arg fields.
9510         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
9511         (TARGET_FUNCTION_INCOMING_ARG): Define.
9512         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
9513         and TARGET_FUNCTION_INCOMING_ARG.
9514         * targhooks.h (default_function_arg_advance): Declare.
9515         (default_function_arg, default_function_incoming_arg): Declare.
9516         * targhooks.c (default_function_arg_advance): New function.
9517         (default_function_arg, default_function_incoming_arg): New function.
9518         * config/i386/i386.c (function_arg_advance): Rename to...
9519         (ix86_function_arg_advance): ...this.  Make static.
9520         (function_arg): Rename to...
9521         (ix86_function_arg): ...this.  Make static.
9522         (TARGET_FUNCTION_ARG_ADVANCE): Define.
9523         (TARGET_FUNCTION_ARG): Define.
9524         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
9525         (FUNCTION_ARG): Delete.
9526         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
9527         (function_arg): Delete prototype.
9528
9529 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9530
9531         * reginfo.c (init_reg_sets_1): Adjust comments.
9532         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
9533         * calls.c (prepare_call_address): Likewise.
9534         (emit_call_1): Use targetm.calls.return_pops_args.
9535         (expand_call): Likewise.
9536         * function.c (assign_parms): Likewise.
9537         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
9538         * target.h (struct gcc_target) [struct calls]: Add
9539         return_pops_args field.
9540         * targhooks.h (default_return_pops_args): Declare.
9541         * targhooks.c (default_return_pops_args): Define.
9542         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
9543         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
9544         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
9545         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
9546         documentation.
9547         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
9548         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
9549         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
9550         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
9551         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
9552         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
9553         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
9554         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
9555         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
9556         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
9557         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
9558         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
9559         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
9560         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
9561         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
9562         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
9563         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
9564         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
9565         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
9566         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
9567         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
9568         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
9569         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
9570         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
9571         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
9572         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
9573         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
9574         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
9575         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
9576         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
9577         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
9578         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
9579         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
9580         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
9581         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
9582         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
9583         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
9584         * config/i386/i386.c (ix86_return_pops_args): Make static.
9585         Constify arguments.
9586         (TARGET_RETURN_POPS_ARGS): Define.
9587         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
9588         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
9589         (TARGET_RETURN_POPS_ARGS): Define.
9590         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
9591         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
9592         (TARGET_RETURN_POPS_ARGS): Define.
9593
9594 2010-06-29  Richard Guenther  <rguenther@suse.de>
9595
9596         PR middle-end/44667
9597         * tree-inline.c (initialize_inlined_parameters): Make sure
9598         to remap the inlined parameter variable substitutions types.
9599
9600 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9601
9602         PR rtl-optimization/44659
9603         * combine.c (make_compound_operation) <SUBREG>: Do not return the
9604         result of force_to_mode if it partially re-expanded the compound.
9605
9606 2010-06-28  Jan Hubicka  <jh@suse.cz>
9607
9608         PR middle-end/44671
9609         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
9610         RESULT_DECL.
9611
9612 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
9613
9614         * double-int.h (force_fit_type_double): Remove declaration.
9615         * double-int.c (force_fit_type_double): Move to tree.c.
9616         * tree.h (force_fit_type_double): Declare.
9617         * tree.h (force_fit_type_double): Moved from double-int.c. Use
9618         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
9619         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
9620         * convert.c (convert_to_pointer): Adjust call to
9621         force_fit_type_double.
9622         * tree-vrp.c (extract_range_from_assert,
9623         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
9624         * fold-const.c: Update comment.
9625         (int_const_binop, fold_convert_const_int_from_int,
9626         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
9627         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
9628         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
9629         round_up_loc): Adjust call to force_fit_type_double.
9630
9631 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9632
9633         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
9634
9635 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9636
9637         * tree-sra.c (convert_callers): New parameter, change fndecls of
9638         recursive calls.
9639         (modify_function): Pass the old decl to convert_callers.
9640
9641 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9642
9643         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
9644         ipa_check_create_node_params and ipa_initialize_node_params with
9645         checking asserts they are not necessary.
9646
9647 2010-06-28  Jan Hubicka  <jh@suse.cz>
9648
9649         PR tree-optimization/44687
9650         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
9651
9652 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9653
9654         PR c++/44535
9655         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
9656         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
9657         instead of BINFO_BASE_BINFO.
9658
9659 2010-06-28  Michael Matz  <matz@suse.de>
9660
9661         PR middle-end/44592
9662         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
9663         proper VDEF chain for intermediate stores in the sequence.
9664
9665 2010-06-28  Jan Hubicka  <jh@suse.cz>
9666
9667         PR tree-optimization/44357
9668         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
9669         uninlinable functions.
9670
9671 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9672
9673         * config.gcc (powerpc*-*-*): Handle titan.
9674         * config/rs6000/rs6000.c (titan_cost): New costs.
9675         (rs6000_override_options): Add "titan" to processor_target_table.
9676         Add Titan to branch alignment logic.
9677         Correctly set rs6000_cost for titan.
9678         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
9679         * config/rs6000/titan.md: New file.
9680         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
9681
9682 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9683
9684         * tree-browser.c (TB_history_stack): Convert to a VEC.
9685         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
9686         (TB_history_prev): Likewise.
9687
9688 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9689
9690         * vec.h (vec_heap_free): Add parentheses around free.
9691
9692 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
9693
9694         * system.h: Poison GCC_EXCEPT_H for front-end files.
9695
9696         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
9697         langhook.
9698         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
9699         Define to NULL by default.
9700         * except.h: Define GCC_EXCEPT_H.
9701         (doing_eh): Remove prototype.
9702         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
9703         (lang_protect_cleanup_actions): Remove.
9704         * except.c (lang_protect_cleanup_actions): Remove.
9705         (doing_eh): Remove.
9706         (gen_eh_region): Don't check doing_eh here.
9707         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
9708         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
9709         instead of lang_protect_cleanup_actions.
9710         * omp-low.c (maybe_catch_exception): Likewise.
9711         * Makefile.in: Update dependencies.
9712
9713 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
9714
9715         * cgraph.h (struct varpool_node): new used_from_object_file flag.
9716         (struct cgraph_local_info): new used_from_object_file flag.
9717         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
9718         (cgraph_clone_node): initialize used_from_object_file.
9719         (cgraph_create_virtual_clone): initialize used_from_object_file.
9720         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
9721         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
9722         when compiling with -fwhole-program.
9723         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
9724         internal resolver.
9725         * ipa.c (function_and_variable_visibility): Set externally_visible
9726         flag of varpool_node if used_from_object_file flag is set.
9727         (cgraph_externally_visible_p): check used_from_object_file flag.
9728         * doc/invoke.texi (-fwhole-program option): Change description of
9729         externally_visible attribute accordingly.
9730         * doc/extend.texi (externally_visible): Ditto.
9731
9732 2010-06-27  Jan Hubicka  <jh@suse.cz>
9733
9734         * params.def (max-inline-insns-auto): Default to 40.
9735         * doc/invoke.texi (max-inline-insns-auto): Document the change.
9736
9737 2010-06-27  Jan Hubicka  <jh@suse.cz>
9738
9739         PR middle-end/44671
9740         PR middle-end/44686
9741         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
9742         signature change.
9743         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
9744         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
9745
9746 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
9747
9748         * target.h (struct gcc_target): Add register_move_cost field.
9749         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
9750         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
9751         * targhooks.c (default_register_move_cost): New function.
9752         * targhooks.h (default_register_move_cost): Declare function.
9753         * defaults.h (REGISTER_MOVE_COST): Delete.
9754         * ira-int.h (ira_register_move_cost): Update comment.
9755         * ira.c (ira_register_move_cost): Update comment.
9756         * reload.h (register_move_cost): Declare.
9757         * reginfo.c (register_move_cost): New function.
9758         (move_cost): Update comment.
9759         (init_move_cost, memory_move_secondary_cost): Replace
9760         REGISTER_MOVE_COST with register_move_cost.
9761         * postreload.c (reload_cse_simplify_set): (Ditto.).
9762         * reload.c (find_valid_class, find_reloads): (Ditto.).
9763         * reload1.c (choose_reload_regs): (Ditto.).
9764         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
9765         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
9766         * doc/md.texi (can_create_pseudo_p): Update documentation.
9767
9768         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9769         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9770         * config/i386/i386.h (ix86_memory_move_cost): Make static.
9771         (TARGET_MEMORY_MOVE_COST): Define.
9772
9773         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9774         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
9775         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
9776         (TARGET_MEMORY_MOVE_COST): Define.
9777
9778 2010-06-27  Richard Guenther  <rguenther@suse.de>
9779
9780         PR tree-optimization/44683
9781         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
9782         false edge from the inverted condition.
9783
9784 2010-06-27  Richard Guenther  <rguenther@suse.de>
9785
9786         PR middle-end/44684
9787         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
9788         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
9789         for register LHS.  Or non-store assignments.
9790
9791 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9792
9793         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
9794         (sparc_emit_set_const64): Likewise.  Remove disabled code.
9795         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
9796         (sparc_emit_set_const64): Likewise.
9797
9798 2010-06-26  Catherine Moore  <clm@codesourcery.com>
9799
9800         * config/mips/mips.md (alu_type): New attribute.
9801         (type): Infer type from alu_type.
9802         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
9803         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
9804         *subsi3_extended, negsi2, negdi2, *low<mode>,
9805         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
9806         xor<mode>3, *nor<mode>3,
9807         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
9808         *zero_extendhi_truncqi):  Set alu_type instead of type.
9809
9810 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
9811
9812         * config/alpha/alpha.c (alpha_need_linkage): Adjust
9813         splay_tree_new_ggc call.
9814         (alpha_use_linkage): Likewise.
9815
9816 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9817
9818         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
9819         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
9820         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
9821         (static_specs): Remove switches_need_spaces.
9822         (process_command, do_self_spec): Hardcode handling "-o" instead of
9823         checking switches_need_spaces.
9824         * system.h (SWITCHES_NEED_SPACES): Poison.
9825
9826 2010-06-26  Richard Guenther  <rguenther@suse.de>
9827
9828         PR tree-optimization/44393
9829         * tree-loop-distribution.c (generate_loops_for_partition): Fix
9830         stmt removal and VOP renaming.
9831         (generate_memset_zero): Remove redundant stmt updating.
9832         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
9833         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
9834
9835 2010-06-26  Jan Hubicka  <jh@suse.cz>
9836
9837         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
9838         edges comming from header are equivalent.
9839         (visit_bb): Handle PHIs correctly.
9840         * tree-inline.c (copy_phis_for_bb): Be able to copy
9841         PHI from entry edge.
9842         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
9843
9844 2010-06-26  Richard Guenther  <rguenther@suse.de>
9845
9846         PR middle-end/44674
9847         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
9848         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
9849
9850 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9851
9852         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
9853         add_infile, alloc_switch): New.
9854         (process_command): Remove variable lang_n_infiles.  Process
9855         options in a single pass.  Use new functions for allocating
9856         infiles and switches arrays.  Properly skip operands of
9857         -Xpreprocessor and -Xassembler.
9858
9859 2010-06-26  Jan Hubicka  <jh@suse.cz>
9860
9861         PR middle-end/44671
9862         * cgraphunit.c (cgraph_function_versioning): Remove wrong
9863         cgraph_make_decl_local call; fix typo copying RTL data.
9864
9865 2010-06-25  DJ Delorie  <dj@redhat.com>
9866
9867         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
9868         (m32c_output_aligned_common): Likewise.
9869         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9870         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9871         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
9872         (m32c_register_pragmas): Register it.
9873         * config/m32c/m32c.c (m32c_get_pragma_address): New.
9874         (m32c_insert_attributes): Set #pragma address decls volatile.
9875         (pragma_entry_eq): New.
9876         (pragma_entry_hash): New.
9877         (m32c_note_pragma_address): New.
9878         (m32c_get_pragma_address): New.
9879         (m32c_output_aligned_common): New.
9880         * doc/extend.texi: Document the new pragma.
9881
9882         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
9883         also.
9884         * config/m32c/predicates.md (m32c_any_operand): Check the code
9885         instead of memory_operand so as to allow matching volatile MEMs.
9886         (m32c_nonimmediate_operand): Likewise.
9887         (mra_operand): Allow volatiles.
9888
9889 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
9890
9891         PR debug/44610
9892         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
9893         address if the offset is unknown.
9894
9895 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
9896
9897         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
9898         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
9899         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
9900         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
9901         to ia64_start_function. Invoke it.
9902         * config/ia64/ia64.c (ia64_start_function): Call new function
9903         dwarf2out_vms_debug_main_pointer.
9904
9905 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9906
9907         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
9908         statements computing the true predicate.
9909
9910 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9911
9912         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
9913         to boolean_true_node.
9914         (reset_bb_predicate): New.
9915         (predicate_bbs): Call reset_bb_predicate.
9916
9917 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9918
9919         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
9920         (tree_if_conversion): Returns true when something has been changed.
9921         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
9922         changed something.
9923
9924 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9925
9926         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
9927         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
9928         * tree-if-conv.c: Include dbgcnt.h.
9929         (tree_if_conversion): Use if_conversion_tree to count the number of
9930         if-convertible loops.
9931
9932 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
9933
9934         * common.opt (fprefetch-loop-arrays): Re-define
9935         -fprefetch-loop-arrays as a tri-state option with the initial
9936         value of -1.
9937         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
9938         pass only when flag_prefetch_loop_arrays > 0.
9939         * toplev.c (process_options): Note that, with tri-states,
9940         flag_prefetch_loop_arrays>0 means prefetching is enabled.
9941         * config/i386/i386.c (override_options): Enable prefetching at -O3
9942         for a set of CPUs that sw prefetching is helpful.
9943         (software_prefetching_beneficial_p): New.  Return TRUE if software
9944         prefetching is beneficial for the given CPU.
9945
9946 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
9947
9948         PR rtl-optimization/44326
9949         * implicit-zee.c (find_removable_zero_extends): Replace
9950         INSN_P with NONDEBUG_INSN_P.
9951
9952 2010-06-25  Martin Jambor  <mjambor@suse.cz>
9953
9954         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
9955         (struct ipa_node_params): Removed the modification_analysis_done flag.
9956         (ipa_is_param_modified): Removed.
9957         (ipa_analyze_node): Declare.
9958         (ipa_compute_jump_functions): Remove declaration.
9959         (ipa_count_arguments): Likewise.
9960         (ipa_detect_param_modifications): Likewise.
9961         (ipa_analyze_params_uses): Likewise.
9962         * ipa-prop.c (struct param_analysis_info): New type.
9963         (visit_store_addr_for_mod_analysis): Removed.
9964         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
9965         moved down in the file.
9966         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
9967         (ipa_count_arguments): Made static.
9968         (mark_modified): New function.
9969         (is_parm_modified_before_call): New function.
9970         (compute_pass_through_member_ptrs): New parameter parms_info, call
9971         is_parm_modified_before_call instead of ipa_is_param_modified.
9972         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
9973         it to compute_pass_through_member_ptrs.
9974         (ipa_compute_jump_functions): New parameter parms_info, pass it to
9975         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
9976         on the callee if it is analyzed.  Made static.
9977         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
9978         is_parm_modified_before_call instead of ipa_is_param_modified.
9979         (ipa_analyze_call_uses): New parameter parms_info, pass it to
9980         ipa_analyze_indirect_call_uses.
9981         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
9982         ipa_analyze_call_uses.
9983         (ipa_analyze_params_uses): New parameter parms_info, pass it to
9984         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
9985         (ipa_analyze_node): New function.
9986         (ipa_print_node_params): Do not dump the modified flag.
9987         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
9988         it.  Do not stream the modified parameter flag.
9989         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
9990         it.  Do not stream the modified parameter flag.
9991         * ipa-cp.c (ipcp_analyze_node): Removed.
9992         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
9993         with only a call to ipa_analyze_node.
9994         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
9995         node with only a call to ipa_analyze_node.
9996
9997 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9998
9999         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
10000
10001 2010-06-25  Jan Hubicka  <jh@suse.cz>
10002
10003         * tree-pass.h (pass_split_functions): Declare.
10004         * opts.c (decode_options): Enable function splitting at -O2
10005         * timevar.def (TV_IPA_FNSPLIT): New macro.
10006         * ipa-split.c: New file.
10007         * common.opt (-fpartial-inlining): New flag.
10008         * Makefile.in (ipa-split.o): New object file.
10009         * passes.c (init_optimization_passes): Add ipa-split.
10010         * params.def (partial-inlining-entry-probability): New parameters.
10011         * doc/invoke.texi (-fpartial-inlining): New.
10012
10013 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10014
10015         PR 44665
10016         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
10017         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
10018         (gimplify_expr): Likewise.
10019
10020 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10021
10022         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
10023         statements instead of bailing out on them.
10024         (ipa_analyze_indirect_call_uses): Do not require that loads from the
10025         parameter are in the same BB as the condition.  Update comments.
10026
10027 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
10028
10029         PR middle-end/43866
10030         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
10031         true or always false, return NULL_TREE.
10032         (tree_unswitch_single_loop): Optimize conditions even when reaching
10033         max-unswitch-level parameter.  If num > 0, optimize first all conditions
10034         using entry checks, then do still reachable block discovery and consider
10035         only conditions in still reachable basic blocks in the loop.
10036
10037         PR tree-optimization/44539
10038         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
10039         the call doesn't have LHS, but has VDEF.
10040
10041 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10042
10043         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
10044         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
10045         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
10046         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
10047         * system.h (MODIFY_TARGET_NAME): Poison.
10048
10049 2010-06-25  Alan Modra  <amodra@gmail.com>
10050
10051         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
10052         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
10053         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10054         CMODEL_LARGE as default.
10055         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
10056         (offsettable_ok_by_alignment): Delete.
10057         (rs6000_emit_move): Remove mcmodel=medium optimization.
10058
10059 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10060
10061         With large parts from Jim Wilson:
10062         PR target/43902
10063         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
10064         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10065         * optabs.c (optab_for_tree_code): Likewise.
10066         (expand_widen_pattern_expr): Likewise.
10067         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
10068         out of execute_optimize_widening_mul.
10069         (convert_plusminus_to_widen): New function.
10070         (execute_optimize_widening_mul): Use the two new functions.
10071         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
10072         Remove code to generate widening multiply-accumulate.  Add support
10073         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10074         * gimple-pretty-print.c (dump_ternary_rhs): New function.
10075         (dump_gimple_assign): Call it when appropriate.
10076         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
10077         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10078         (expand_gimple_stmt_1): Likewise.
10079         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
10080         WIDEN_MULT_MINUS_EXPR.
10081         * tree-ssa-operands.c (get_expr_operands): Likewise.
10082         * tree-inline.c (estimate_operator_cost): Likewise.
10083         * gimple.c (extract_ops_from_tree_1): Renamed from
10084         extract_ops_from_tree.  Add new arg for a third operand; fill it.
10085         (gimple_build_assign_stat): Support operations with three operands.
10086         (gimple_build_assign_with_ops_stat): Likewise.
10087         (gimple_assign_set_rhs_from_tree): Likewise.
10088         (gimple_assign_set_rhs_with_ops_1): Renamed from
10089         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
10090         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
10091         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
10092         WIDEN_MULT_MINUS_EXPR.
10093         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
10094         (extract_ops_from_tree_1): Adjust declaration.
10095         (gimple_assign_set_rhs_with_ops_1): Likewise.
10096         (gimple_build_assign_with_ops): Pass NULL for last operand.
10097         (gimple_build_assign_with_ops3): New macro.
10098         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
10099         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
10100         functions.
10101         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
10102         (verify_gimple_assign): Call it.
10103         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
10104         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
10105         functions for dealing with three-operand statements.
10106         * tree.c (commutative_ternary_tree_code): New function.
10107         * tree.h (commutative_ternary_tree_code): Declare it.
10108         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
10109         ternary statements.
10110         (gimple_assign_nonzero_warnv_p): Likewise.
10111         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
10112         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
10113         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
10114         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
10115         (struct hashtable_expr): New member ternary in the union.
10116         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
10117         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
10118         (iterative_hash_hashable_expr): Likewise.
10119         (print_expr_hash_elt): Handle EXPR_TERNARY.
10120         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
10121         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
10122         statements.  Handle GIMPLE_TERNARY_RHS.
10123
10124 2010-06-25  Jan Hubicka  <jh@suse.cz>
10125
10126         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
10127
10128 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
10129
10130         PR c/44517
10131         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
10132         parameters are not good.
10133         (c_parser_parameter_declaration): Error unknown type name if the type
10134         name can't start declaration specifiers.
10135
10136 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10137
10138         * gcc.c (translate_options): Don't mention +e in comment.
10139         (process_command): Don't handle +e specially.
10140
10141 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10142
10143         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
10144
10145         * ira-build.c (merge_hard_reg_conflicts): New function.
10146         (create_cap_allocno, copy_info_to_removed_store_destinations,
10147         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
10148         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
10149         (remove_unnecessary_allocnos, remove_low_level_allocnos)
10150         copy_nifo_to_removed_store_destination): Use them.
10151         * ira-lives.c (make_hard_regno_born): New function, split out of
10152         make_regno_born.
10153         (make_allocno_born): Likewise.
10154         (make_hard_regno_dead): New function, split out of make_regno_dead.
10155         (make_allocno_dead): Likewise.
10156         (inc_register_pressure): New function, split out of set_allocno_live.
10157         (dec_register_pressure): New function, split out of clear_allocno_live.
10158         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
10159         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
10160         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
10161         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
10162         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
10163         mark_pseudo_regno_live.
10164         (process_bb_node_lives): Use mark_pseudo_regno_live,
10165         make_hard_regno_born and make_allocno_dead.
10166         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
10167         set_allocno_live, clear_allocno_live): Delete functions.
10168
10169         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
10170         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
10171         functions.
10172         (ira_flattening): Use ira_parent_allocno.
10173         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
10174         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
10175
10176         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
10177         statement.
10178
10179         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
10180         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
10181         minmax_set_iter_cond, minmax_set_iter_next,
10182         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
10183         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
10184         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
10185         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
10186         uses changed.
10187
10188         * ira-int.h (struct live_range, live_range_t): Renamed from struct
10189         ira_allocno_live_range and allocno_live_range_t; all uses changed.
10190         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
10191         All uses changed.
10192
10193 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
10194
10195         * thumb2.md (thumb2_tlobits_cbranch): Delete.
10196         (peephole2 to convert zero_extract/compare of single bit to
10197          lshift/compare): New.
10198
10199 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
10200
10201         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
10202         recursive call and call to 'int_const_binop'.
10203         (build_range_check, fold_cond_expr_with_comparison, unextend,
10204         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
10205         multiple_of_p): Adjust call to const_binop.
10206
10207 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
10208
10209         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
10210         determine size of XFmode operand.
10211         (XFmode extended DFmode push splitter): Ditto.
10212         (XFmode extended SFmode push splitter): Ditto.
10213
10214 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10215
10216         PR target/44588
10217         * config/i386/i386.md (extract_code): New.
10218         (<u>divmodqi4): Likewise.
10219         (divmodhiqi3): Likewise.
10220         (udivmodhiqi3): Likewise.
10221         (<u>divqi3): Remvoved.
10222
10223 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
10224
10225         PR middle-end/44492
10226         * recog.h (struct recog_data): Add is_asm field.
10227         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
10228         present in constraints of inline-asm operand and memory operand
10229         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
10230         (extract_insn): Initialize recog_data.is_asm.
10231         * doc/md.texi (Constraints): Document operand side-effect rules.
10232
10233 2010-06-24  Andi Kleen  <ak@linux.intel.com>
10234
10235         * c-parser.c (c_parser_conditional_expression): Call
10236         warn_for_omitted_condop.
10237         * doc/invoke.texi: Document omitted condop warning.
10238
10239 2010-06-24  Nick Clifton<nickc@redhat.com>
10240
10241         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
10242         insn in the sequence is a jump insn before setting its label.
10243
10244 2010-06-24  Alan Modra  <amodra@gmail.com>
10245
10246         * collect2.c (main): Match exactly --version and --help.
10247
10248 2010-06-24  DJ Delorie  <dj@redhat.com>
10249
10250         * config/m32c/m32c-pragma.c: Don't include rtl.h.
10251
10252 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
10253
10254         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
10255         using X87MODEF mode iterator.
10256         (pushsf splitter): Macroize splitter using P mode iterator.
10257         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
10258         mode iterator.
10259
10260         (*movxf_internal): Rename from *movxf_integer.
10261         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
10262         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
10263         (*movdf_internal): Rename from *movdf_integer.
10264         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
10265         (*movsf_internal): Rename from *movdf_1.
10266
10267 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
10268
10269         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
10270         (const_gimple_seq_node): Removed typedefs.
10271
10272         * gimple.h (gimple_seq_node_d, gimple_seq_node)
10273         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
10274
10275 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10276
10277         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
10278         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
10279         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
10280         and CODE_FOR_vec_extract_lo_v4df.
10281
10282         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
10283         Changed to define_insn_and_split.
10284         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
10285         (vec_extract_lo_v16hi): Likewise.
10286         (vec_extract_lo_v32qi): Likewise.
10287         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
10288         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
10289
10290 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
10291
10292         PR target/44640
10293         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
10294         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
10295         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
10296         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
10297         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
10298
10299         PR target/44640
10300         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
10301
10302         PR other/44644
10303         * df-core.c (struct df): Rename to df_d.
10304         * df.h (struct df): Likewise.
10305         * dse.h (struct df): Remove forward declaration.
10306         * recog.h (struct insn_data): Rename to:
10307         (struct_insn_data_d).  Adjusted all users.
10308
10309 2010-06-23  Arnaud Charlet  <charlet@adacore.com
10310
10311         PR ada/22220
10312         * doc/install.texi: Update requirements to build GNAT.
10313
10314 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
10315
10316         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
10317         enum type.
10318         (m68k_sched_attr_opx_type): Remove unreachable return.
10319         (m68k_sched_attr_opy_type): Likewise.
10320         (m68k_sched_attr_size): Likewise.
10321         (sched_get_opxy_mem_type): Likewise.
10322         (m68k_sched_attr_op_mem): Likewise.
10323
10324 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10325
10326         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
10327         new statement and adjust VDEF only if necessary.  Remove superfluous
10328         call to maybe_clean_or_replace_eh_stmt.
10329         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
10330         copy the flags.
10331         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
10332         * tree-inline.c (copy_bb): ...and not there.
10333
10334 2010-06-22  Cary Coutant  <ccoutant@google.com>
10335
10336         * dwarf2out.c (is_nested_in_subprogram): New function.
10337         (should_move_die_to_comdat): Use it.
10338         (copy_ancestor_tree): Don't mark DIEs here.
10339         (copy_decls_walk): Start walk from root of newly-added tree;
10340         mark DIEs here instead.
10341
10342 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10343
10344         * config/i386/i386.md (unit): Also check sseishft1.
10345
10346 2010-06-22  Jan Hubicka  <jh@suse.cz>
10347
10348         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
10349         enabled.
10350
10351 2010-06-22  Jan Hubicka  <jh@suse.cz>
10352
10353         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
10354         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
10355         Return true if something changed.
10356         * df.h (df_confluence_function_n): Return bool.
10357         * df-core.c (df_worklist_propagate_forward,
10358         df_worklist_propagate_backward): Track changes and ages.
10359         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
10360         track ages.
10361         * dse.c (dse_confluence_n): Return always true.
10362
10363 2010-06-22  Jan Hubicka  <jh@suse.cz>
10364
10365         * bitmap.c (bitmap_clear_bit): Micro optimize.
10366
10367 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
10368
10369         * config/i386/i386.md (SWI1248x): New mode iterator.
10370         (SWI48x): Ditto.
10371         (SWI12): Ditto.
10372         (SWI24): Ditto.
10373
10374         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
10375         SWI1248x mode iterator.
10376         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
10377         using SWI124 mode iterator.
10378         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
10379         mode iterator.
10380         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
10381         *pushdi2_prologue_rex64 using P mode iterator.
10382         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
10383         using SWI48 mode iterator.
10384         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
10385         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
10386         using SWI1248x mode iterator.
10387         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
10388         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
10389         SWI48 mode iterator.
10390         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
10391         iterator.
10392         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
10393         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
10394         SWI12 mode iterator.
10395         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
10396         SWI12 mode iterator.
10397         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
10398         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
10399         SWI24 mode iterator.
10400         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
10401         SWI48 mode iterator.
10402         (mov<mode>_insn_1): New expander.
10403         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
10404         using SWI48x mode iterator.
10405
10406         (*movoi_internal_avx): Rename from *movoi_internal.
10407         (*movti_internal_rex64): Rename from *movti_rex64.
10408         (*movti_internal_sse): Rename from *movti_sse.
10409         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
10410         (*movdi_internal): Rename from *movdi_2.
10411         (*movsi_internal): Rename from *movsi_1.
10412         (*movhi_internal): Rename from *movhi_1.
10413         (*movqi_internal): Rename from *movqi_1.
10414
10415         (insv): Update the call to gen_movsi_insv_1 for rename.
10416         * config/i386/i386.c (promote_duplicated_reg): Ditto.
10417
10418 2010-06-22  Jan Hubicka  <jh@suse.cz>
10419
10420         * passes.c (execute_function_todo): Move call of statistics_fini_pass
10421         to ...
10422         (execute_todo) ... this one.
10423
10424 2010-06-22  Alan Modra  <amodra@gmail.com>
10425
10426         PR target/44364
10427         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10428         * caller-save.c (insert_restore, insert_save): Use non-validate
10429         form of adjust_address.
10430
10431 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10432
10433         PR target/39690
10434         * config/pa/pa.c (override_options): Disable
10435         -freorder-blocks-and-partition.
10436
10437 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10438
10439         PR target/44615
10440         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
10441
10442         * config/i386/i386.md (type): Add sseishft1
10443
10444         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
10445         (ppro_insn_load): Likewise.
10446         (ppro_insn_store): Likewise.
10447         (ppro_insn_both): Likewise.
10448
10449         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
10450         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
10451         for type.
10452         (*vec_extractv2di_1_avx): Likewise.
10453         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
10454         type.  Remove atom_unit.
10455         (*vec_extractv2di_1_sse2): Likewise.
10456
10457 2010-06-21  DJ Delorie  <dj@redhat.com>
10458
10459         * diagnostic.h (diagnostic_classification_change_t): New.
10460         (diagnostic_context): Add history and push/pop list.
10461         (diagnostic_push_diagnostics): Declare.
10462         (diagnostic_pop_diagnostics): Declare.
10463         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
10464         from pragmas in a history chain instead of the global table.
10465         (diagnostic_push_diagnostics): New.
10466         (diagnostic_pop_diagnostics): New.
10467         (diagnostic_report_diagnostic): Scan history chain to find state
10468         of diagnostics as of the diagnostic location.
10469         * opts.c (set_option): Pass UNKNOWN_LOCATION to
10470         diagnostic_classify_diagnostic.
10471         (enable_warning_as_error): Likewise.
10472         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
10473         use in the history chain.
10474         * doc/extend.texi: Document pragma GCC diagnostic changes.
10475
10476 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
10477
10478         * dwarf2out.c (add_linkage_name): New function.  Don't add
10479         anything to DW_TAG_member DIEs.
10480         (add_name_and_src_coords_attributes): Use it.
10481         (gen_variable_die): Call it for C++ static data members if
10482         specification is DW_TAG_member.
10483
10484         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
10485         C++ char16_t and char32_t.
10486
10487         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
10488         * genattrtab.c: Include vecprim.h.
10489         (cached_attrs, cached_attr_count, attrs_seen_once,
10490         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
10491         attrs_cached_after): New variables.
10492         (find_attrs_to_cache): New function.
10493         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
10494         (write_test_expr): Add attrs_cached argument, return it too,
10495         attempt to cache non-const attributes used more than once in
10496         a single case handling.
10497         (write_attr_get): Use find_attrs_to_cache, for caching candidates
10498         emit cached_* variables.  Adjust write_attr_set callers.
10499         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
10500         to find attributes that should be cached in this block.  Adjust
10501         write_test_expr callers.
10502         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
10503         callers.
10504         (make_automaton_attrs): Adjust write_test_expr caller.
10505
10506         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
10507         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
10508         (make_automaton_attrs): If find_tune_attr returns non-NULL,
10509         write separate internal_dfa_insn_code_* and insn_default_latency_*
10510         functions for each attribute's value and emit init_sched_attrs
10511         function and function pointers.
10512         * genattr.c (const_attrs, reservations): New variables.
10513         (gen_attr): Add const attributes to const_attrs vector.
10514         (check_tune_attr, find_tune_attr): New functions.
10515         (main): Add reservations to reservations vector.  If find_tune_attr
10516         returns true, add prototype for init_sched_attrs and make
10517         internal_dfa_insn_code and insn_default_latency function pointers,
10518         otherwise define init_sched_attrs as dummy macro.
10519         * cfgexpand.c: Include insn-attr.h.
10520         (gimple_expand_cfg): Call init_sched_attrs.
10521
10522         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
10523
10524         PR target/44575
10525         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
10526         va_arg from a set of register save slots into a temporary,
10527         if the container is bigger than type size, do the copying
10528         using smaller mode or using memcpy.
10529
10530         PR bootstrap/44426
10531         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
10532         prototype.
10533         (sel_print_to_dot): Remove macro.
10534         (sel_print): Likewise.  New prototype.
10535         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
10536         (sel_print): New function.
10537
10538 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10539
10540         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
10541         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
10542
10543 2010-06-21  Nick Clifton  <nickc@redhat.com>
10544
10545         * config/rx/rx.h (PTRDIFF_TYPE): Define.
10546         (SMALL_REGISTER_CLASS): Define (to zero).
10547         (PRINT_OPERAND): Delete.
10548         (PRINT_OPERAND_ADDRESS): Delete.
10549         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
10550         (rx_print_operand_address): Delete prototype.
10551         * config/rx/rx.c (rx_print_operand): Make static.
10552         Allow %H and %L to handle CONST_DOUBLEs.
10553         (rx_print_operand_address): Make static.
10554         (rx_gen_move_template): Rename local variable 'template' to
10555         out_template.
10556         (rx_function_arg): Do not pass unknown sized objects in registers.
10557         (TARGET_PRINT_OPERAND): Define.
10558         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10559
10560 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10561
10562         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
10563
10564 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
10565
10566         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
10567         stack-alignment for simple leaf-functions.
10568
10569 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10570
10571         * doc/install.texi: Document bootstrap-lto.
10572
10573 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10574
10575         PR debug/44248
10576         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
10577         (input_function): Drop them here, if VTA is disabled.
10578
10579 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
10580
10581         PR target/44546
10582         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
10583         New predicate.
10584         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
10585         ix86_swapped_fp_comparsion_operator instead of
10586         ix86_fp_comparison_operator.
10587
10588         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
10589         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
10590         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
10591         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
10592         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
10593         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
10594
10595 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
10596
10597         PR other/32998
10598         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
10599         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
10600         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
10601         (decode_cmdline_option): Update for this return value.  Set
10602         orig_option_with_args_text field.  Set arg field for unknown
10603         options.  Make static.
10604         (decode_cmdline_options_to_array): New.
10605         (prune_options): Update handling of find_opt return value.
10606         * opts.c (read_cmdline_option): Take decoded option.  Return void.
10607         (read_cmdline_options): Take decoded options.
10608         (decode_options): Add parameters for decoded options.  Use
10609         decode_cmdline_options_to_array.  Use decoded options for -O
10610         scan.  Use integral_argument for -O parameters.  Update call to
10611         read_cmdline_options.
10612         (enable_warning_as_error): Update handling of find_opt return value.
10613         * opts.h: Update comment on unknown options.
10614         (struct cl_decoded_option): Update comments on opt_index and arg.
10615         Add orig_option_with_args_text.
10616         (decode_cmdline_option): Remove.
10617         (decode_cmdline_options_to_array): Declare.
10618         (decode_options): Update prototype.
10619         * toplev.c (save_argv): Remove.
10620         (save_decoded_options, save_decoded_options_count): New.
10621         (read_integral_parameter): Remove.
10622         (print_switch_values): Use decoded options.
10623         (toplev_main): Don't set save_argv.  Update call to decode_options.
10624         * toplev.h (read_integral_parameter): Remove.
10625         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
10626
10627 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
10628
10629         PR target/44072
10630         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
10631         immediate.
10632         * constraints.md (Pw, Px): New constraints.
10633         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
10634
10635 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
10636
10637         * config/i386/sse.md (fma4modesuffixf4): Removed.
10638         (ssemodesuffixf2s): Likewise.
10639         (ssemodesuffixf4): Likewise.
10640         (ssemodesuffixf2c): Likewise.
10641         (ssescalarmodesuffix2s): Likewise.
10642         (avxmodesuffixf2c): Likewise.
10643         (ssemodesuffix): New.
10644         (ssescalarmodesuffix): Likewise.
10645         Update patterns with ssemodesuffix and ssescalarmodesuffix.
10646
10647 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
10648
10649         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
10650
10651 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10652
10653         * stor-layout.c (debug_rli): Remove unused local variables.
10654
10655 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10656
10657         PR rtl-optimization/40900
10658         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
10659         original expression for later reuse.
10660         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
10661         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
10662
10663 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
10664
10665         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
10666         double_int_fits_in_uhwi_p): Implement as static inline.
10667         (double_int_xor): New inline function.
10668         (double_int_lrotate, double_int_rrotate, double_int_max,
10669         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10670         double_int_smin): Declare.
10671         (lrotate_double, rrotate_double): Remove declaration.
10672         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
10673         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
10674         (double_int_lrotate, double_int_rrotate, double_int_max,
10675         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10676         double_int_smin): New function.
10677         * fold-const.c (int_const_binop): Clean up, use double_int_*
10678         functions.
10679         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
10680         double_int_* and immed_double_int_const functions.
10681
10682 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10683
10684         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
10685         * function.c (types_used_by_cur_var_decl): Likewise.
10686         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
10687
10688 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10689
10690         * tree.h (record_layout_info): Change type of pending_statics field
10691         to a VEC.
10692         * stor-layout.c (start_record_layout): Store NULL into
10693         pending_statics.
10694         (debug_rli): Call debug_vec_tree instead of debug_tree.
10695         (place_field): Likewise.
10696         (finish_record_layout): Likewise.
10697
10698 2010-06-18  Alan Modra  <amodra@gmail.com>
10699
10700         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
10701
10702 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10703
10704         PR target/43740
10705         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
10706         for SET source operand from SET destination operand.
10707
10708 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
10709
10710         PR rtl-optimization/39871
10711         * reload1.c (init_eliminable_invariants): For flag_pic, disable
10712         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
10713         (function_invariant_p): Rule out a plus of frame or arg pointer with
10714         a SYMBOL_REF.
10715         * ira.c (find_reg_equiv_invariant_const): Likewise.
10716
10717 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
10718
10719         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
10720         print_operand_address and puts to output the operand for CONST.
10721
10722 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
10723
10724         PR debug/44572
10725         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
10726         hook.
10727
10728 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10729
10730         * v850-protos.h (print_operand): Delete.
10731         (print_operand_address): Delete.
10732         * v850.h (PRINT_OPERAND): Delete.
10733         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10734         (PRINT_OPERAND_ADDRESS): Delete.
10735         * v850.c (print_operand_address): Rename to...
10736         (v850_print_operand_address): ...this.  Make static. Call
10737         v850_print_operand.
10738         (print_operand): Rename to...
10739         (v850_print_operand): ...this.  Make static.  Call
10740         v850_print_operand_address.
10741         (v850_print_operand_punct_valid_p): New function.
10742         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10743         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10744
10745 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10746
10747         * config/sh/sh-protos.h (print_operand): Delete.
10748         (print_operand_address): Delete.
10749         * config/sh/sh.h (PRINT_OPERAND): Delete.
10750         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10751         (PRINT_OPERAND_ADDRESS): Delete.
10752         * config/sh/sh.c (sh_print_operand_address): Make static.
10753         (sh_print_operand): Make static.  Call sh_print_operand_address
10754         and sh_print_operand.
10755         (sh_print_operand_punct_valid_p): New function.
10756         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10757         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10758
10759 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10760
10761         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
10762         (mcore_print_operand_address): Delete.
10763         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
10764         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10765         (PRINT_OPERAND_ADDRESS): Delete.
10766         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
10767         (mcore_print_operand): Make static.
10768         (mcore_print_operand_punct_valid_p): New function.
10769         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
10770         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10771
10772 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10773
10774         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
10775         (print_operand_address): Delete.
10776         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
10777         (PRINT_OPERAND_ADDRESS): Delete.
10778         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
10779         static.
10780         (m68hc11_print_operand): Make static.
10781         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10782
10783 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10784
10785         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
10786         (m32r_print_operand_address): Delete.
10787         * config/m32r/m32r.h (m32r_punct_chars): Delete.
10788         (PRINT_OPERAND): Delete.
10789         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10790         (PRINT_OPERAND_ADDRESS): Delete.
10791         * config/m32r/m32r.c (m32r_punct_chars): Make static.
10792         (m32r_print_operand_address): Make static.
10793         (m32r_print_operand): Make static.
10794         (m32r_print_operand_punct_valid_p): New function.
10795         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10796         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10797
10798 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10799
10800         * config/iq2000/iq2000-protos.h (print_operand): Delete.
10801         (print_operand_address): Delete.
10802         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
10803         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10804         (PRINT_OPERAND_ADDRESS): Delete.
10805         (iq2000_print_operand_punct): Delete.
10806         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
10807         (iq2000_print_operand_address): Make static.
10808         (iq2000_print_operand): Make static.
10809         (iq2000_print_operand_punct_valid_p): New function.
10810         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10811         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10812
10813 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10814
10815         * config/frv/frv-protos.h (frv_print_operand): Delete.
10816         (frv_print_operand_address): Delete.
10817         * config/frv/frv.h (PRINT_OPERAND): Delete.
10818         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10819         (PRINT_OPERAND_ADDRESS): Delete.
10820         * config/frv/frv.c (frv_print_operand_address): Make static.
10821         (frv_print_operand): Make static.
10822         (frv_print_operand_punct_valid_p): New function.
10823         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10824         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10825
10826 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10827
10828         * tree.h (vec_member): Declare.
10829         * tree.c (vec_member): Define.
10830
10831 2010-06-17  Richard Guenther  <rguenther@suse.de>
10832
10833         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
10834         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
10835
10836 2010-06-17  Richard Guenther  <rguenther@suse.de>
10837
10838         * tree-inline.c (declare_return_variable): Remove bogus code.
10839
10840 2010-06-17  Richard Guenther  <rguenther@suse.de>
10841
10842         * gimplify.c (gimplify_bind_expr): Always promote complex
10843         and vector variables to registers if possible.
10844
10845 2010-06-17  Richard Guenther  <rguenther@suse.de>
10846
10847         * expr.c (get_inner_reference): Use double_int for bit_offset
10848         calculation.
10849
10850 2010-06-16  DJ Delorie  <dj@redhat.com>
10851
10852         * common.opt (-fstrict-volatile-bitfields): new.
10853         * doc/invoke.texi: Document it.
10854         * fold-const.c (optimize_bit_field_compare): For volatile
10855         bitfields, use the field's type to determine the mode, not the
10856         field's size.
10857         * expr.c (expand_assignment): Likewise.
10858         (get_inner_reference): Likewise.
10859         (expand_expr_real_1): Likewise.
10860         * expmed.c (store_fixed_bit_field): Likewise.
10861         (extract_bit_field_1): Likewise.
10862         (extract_fixed_bit_field): Likewise.
10863
10864 2010-06-16  Richard Guenther  <rguenther@suse.de>
10865
10866         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
10867
10868 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
10869
10870         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
10871         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
10872         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
10873         * debug.c: Likewise.
10874         * sdbout.c: Likewise.
10875         * vmsdbgout.c: Likewise.
10876         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
10877         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
10878         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
10879         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
10880         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
10881         * dwarf2out.c (dw_fde_struct): New fields
10882         dw_fde_vms_{end,begin}_prologue.
10883         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
10884         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
10885         (dwarf2out_vms_end_prologue): New function.
10886         (dwarf2out_vms_begin_epilogue): New function.
10887         (dw_val_struct): New value dw_val_class_vms_delta.
10888         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
10889         begin_epilogue for VMS.
10890         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
10891         new static functions.
10892         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
10893         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
10894         static functions.
10895         (print_die): New case dw_val_class_vms_delta.
10896         (attr_checksum): Likewise.
10897         (same_dw_val_p: Likewise.
10898         (size_of_die): Likewise.
10899         (value_format): Likewise.
10900         (output_die): Likewise.
10901         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
10902         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
10903         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
10904         dwarf2out_cfi_begin_epilogue
10905         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
10906
10907 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10908
10909         * config/cris/cris-protos.h (cris_print_operand): Delete.
10910         (cris_print_operand_address): Delete.
10911         * config/cris/cris.h (PRINT_OPERAND): Delete.
10912         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10913         (PRINT_OPERAND_ADDRESS): Delete.
10914         * config/cris/cris.c (cris_print_operand_address): Make static.
10915         (cris_print_operand): Make static.
10916         (cris_print_operand_punct_valid_p): New function.
10917         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10918         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10919
10920 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10921
10922         * config/arm/arm-protos.h (arm_print_operand): Delete.
10923         (arm_print_operand_address): Delete.
10924         * config/arm/arm.h (PRINT_OPERAND): Delete.
10925         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10926         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
10927         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
10928         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
10929         (arm_print_operand): Make static.
10930         (arm_print_operand_punct_valid_p): New function.
10931         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10932         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10933
10934 2010-06-16  Nick Clifton  <nickc@redhat.com>
10935
10936         * config/rx/constraints.md (NEGint4): New constraint.
10937         * config/rx/rx.md (attr cc): Add set_zsc.
10938         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
10939         initialised.
10940         (cmpsf): Likewise.
10941         (call_internal): Clobber the cc0 register.
10942         (call_value_internal): Likewise.
10943         (cstoresi4): Likewise.
10944         (movsieq): Likewise.
10945         (movsine): Likewise.
10946         (addsi3): Add alternative to handle small negative constants.
10947         (sunsi3): Likewise.
10948         (addsi3): Do not set the O bit in the cc0 register.
10949         (adddi3): Likewise.
10950         (subsi3): Likewise.
10951         (subdi3): Likewise.
10952         (andsi3): Reorder alternatives to prefer shorter forms.
10953         (mulsi3): Likewise.
10954         (iorsi3): Likewise.
10955         (negsi2): Note that the cc0 flags are set.
10956         (rotlsi3): Note that only the Z and S bits are set in cc0.
10957         (lshrsi3): Likewise.
10958         (ashlsi3): Likewise.
10959         (subsf3): Use %Q for the MEM operand.
10960         (fix_truncsfsi2): Likewise.
10961         (floatsisf2): Likewise.
10962         (bitset): Remove early clobber from destination.
10963         (bitset_in_memory): Likewise.
10964         (lrintsf2): Clobber the cc0 register.
10965         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
10966         (rx_print_operand): Handle %N.
10967
10968 2010-06-16  Jan Hubicka  <jh@suse.cz>
10969
10970         * df-core.c (df_compact_blocks): Free problem_temps vector.
10971
10972 2010-06-16  Martin Jambor  <mjambor@suse.cz>
10973
10974         PR tree-optimization/43905
10975         * tree-sra.c: Include tree-inline.h.
10976         (create_abstract_origin): Removed.
10977         (modify_function): Version the call graph node instead of creating
10978         abstract origins and dealing with same_body aliases.
10979         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
10980         function is versionable.
10981         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
10982
10983 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
10984
10985         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
10986         (CHOOSE_DYNAMIC_LINKER): Update.
10987
10988 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
10989
10990         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
10991         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
10992         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
10993         *prefetch_3dnow_rex.
10994
10995 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
10996
10997         * target.h (struct asm_out):Add declare_constant_name field.
10998         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10999         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
11000         * output.h (default_asm_declare_constant_name): Declare.
11001         (assemble_label): Update prototype.
11002         * varasm.c (assemble_constant_contents): Use
11003         targetm.asm_out.declare_constant_name target hook.
11004         (assemble_label): Add 'file' argument.
11005         (default_asm_declare_constant_name): New function.
11006         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
11007         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
11008         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
11009
11010         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
11011         * config/darwin.c (darwin_asm_declare_constant_name): New function.
11012         (machopic_output_indirection): Update assemble_label argument list.
11013         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
11014         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11015
11016 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
11017
11018         PR middle-end/44391
11019         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11020         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
11021
11022 2010-06-15  Richard Guenther  <rguenther@suse.de>
11023
11024         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
11025
11026 2010-06-15  Paul Brook  <paul@codesourcery.com>
11027
11028         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
11029         hard-float ABI.
11030
11031 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
11032
11033         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
11034         don't get a vector type for output.
11035
11036 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
11037
11038         PR fortran/44536
11039         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
11040         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
11041         (LANG_HOOKS_DECLS): Add it.
11042         * gimplify.c (omp_notice_variable): Call
11043         lang_hooks.decls.omp_report_decl.
11044
11045 2010-06-15  Martin Jambor  <mjambor@suse.cz>
11046
11047         PR lto/44464
11048         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
11049         on the newly dead SSA name.
11050
11051 2010-06-15  Alan Modra  <amodra@gmail.com>
11052
11053         * doc/invoke.texi: Add mcmodel to powerpc options.
11054         * configure.ac: Add HAVE_LD_LARGE_TOC test.
11055         * configure: Regenerate.
11056         * config.in: Regenerate.
11057         * config/rs6000/linux64.opt (mcmodel): New.
11058         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
11059         (TARGET_CMODEL, SET_CMODEL): Define.
11060         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
11061         select CMODEL_MEDIUM default.
11062         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
11063         (TARGET_CMODEL): Define default.
11064         * config/rs6000/rs6000.c (cmodel): New variable.
11065         (rs6000_explicit_options): Add cmodel field.
11066         (rs6000_handle_option): Handle -mcmodel.
11067         (create_TOC_reference): Add largetoc_reg param.  Generate high,
11068         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
11069         (rs6000_delegitimize_address): Recognise new toc reference rtl
11070         and minimal-toc rtl.
11071         (rs6000_legitimize_reload_address): Handle new toc references.
11072         (print_operand_address): Handle legitimate_constant_pool_address_p
11073         match before lo_sum.
11074         (rs6000_eliminate_indexed_memrefs): Tidy.
11075         (rs6000_emit_move): Tweak threshold for inlining constants.
11076         Keep rs6000_emit_allocate_stack large stack frame offsets
11077         loaded into r0 inline.
11078         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
11079         (tocrel_base, tocrel_offset): New variables.
11080         (toc_relative_expr_p): Set them here.
11081         (print_operand_address): Skip over any offset on constant pool address.
11082         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
11083         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
11084         (offsettable_ok_by_alignment): New function.
11085         (rs6000_emit_move): Address suitably aligned local symbol_refs
11086         relative to the toc pointer for -mcmodel=medium.
11087         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
11088         strict param.  Allow lo_sum version of addressing.  Verify reg
11089         used for -mminimal-toc and -mcmodel != small.  Update all callers.
11090         * config/rs6000/constraints.md: Update for above change.
11091         * config/rs6000/predicates.md: Likewise.
11092         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
11093         code.
11094         (tls_gd): Split for -mcmodel=medium/large.
11095         (tls_gd_high, tls_gd_low): New.
11096         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
11097         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
11098         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
11099         (largetoc_high, largetoc_low): New.
11100         (cmptf_internal2): Add clobber.
11101         * config/rs6000/rs6000-protos.h: Update.
11102
11103 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
11104
11105         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
11106         true if no prefetch is going to be generated for a given group.
11107         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
11108         estimate the prefetch_count.
11109         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
11110         prefetch count by considering the unroll_factor and prefetch_mod
11111         for is_loop_prefetching_profitable.
11112
11113 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
11114
11115         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
11116         anything if the argument is not a MEM.
11117
11118 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11119
11120         PR debug/43650
11121         PR debug/44181
11122         PR debug/44247
11123         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
11124         debug stmts.
11125         (canonicalize_loop_ivs): Likewise.
11126
11127 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11128
11129         PR debug/43656
11130         * haifa-sched.c (setup_insn_reg_pressure_info,
11131         update_register_pressure): Reject debug insns.
11132         (ready_sort): Don't setup reg pressure for debug insns.
11133         (schedule_insn): Don't update reg pressure for debug insns.
11134
11135 2010-06-14  Richard Guenther  <rguenther@suse.de>
11136
11137         * lto-streamer.c (cached_bp): Remove.
11138         (bitpack_delete): Likewise.
11139         (bitpack_create): Likewise.
11140         (bp_get_next_word): Likewise.
11141         (bp_pack_value, bp_unpack_value): Move ...
11142         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
11143         Re-implement.
11144         (struct bitpack_d): Likewise.
11145         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
11146         New inline functions.
11147         * lto-streamer-out.c (lto_output_bitpack): Remove.
11148         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11149         (pack_value_fields): Adjust.
11150         (lto_write_tree): Likewise.
11151         (output_gimple_stmt): Likewise.
11152         (output_function): Likewise.
11153         * lto-streamer-in.c (input_gimple_stmt): Adjust.
11154         (input_function): Likewise.
11155         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11156         (lto_input_bitpack): Remove.
11157         (lto_materialize_tree): Adjust.
11158         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
11159         * lto-cgraph.c (lto_output_edge): Adjust.
11160         (lto_output_node): Likewise.
11161         (lto_output_varpool_node): Likewise.
11162         (lto_output_ref): Likewise.
11163         (input_node): Likewise.
11164         (input_varpool_node): Likewise.
11165         (input_ref): Likewise.
11166         (input_edge): Likewise.
11167         (output_node_opt_summary): Likewise.
11168         (input_node_opt_summary): Likewise.
11169         * ipa-pure-const.c (pure_const_write_summary): Likewise.
11170         (pure_const_read_summary): Likewise.
11171         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
11172         (ipa_read_indirect_edge_info): Likewise.
11173         (ipa_write_node_info): Likewise.
11174         (ipa_read_node_info): Likewise.
11175
11176 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11177
11178         PR target/44534
11179         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
11180         (vec_extract_lo_v16hi): Likewise.
11181         (vec_extract_lo_v32qi): Likewise.
11182
11183 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11184
11185         PR bootstrap/44426
11186         * tree.h (build_call_expr): Don't define as vararg macro, instead
11187         add a prototype.
11188         * builtins.c (build_call_nofold): Remove.
11189         (expand_builtin_int_roundingfn, expand_builtin_pow,
11190         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
11191         expand_builtin_memset_args, expand_builtin_strcmp,
11192         expand_builtin_strncmp, expand_builtin_memory_chk): Use
11193         build_call_nofold_loc instead of build_call_nofold.
11194         (build_call_expr): New function.
11195
11196         PR tree-optimization/44508
11197         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
11198         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
11199         don't eliminate trivially dead stmts.
11200         * tree-vrp.c (vrp_finalize): Pass false as last argument
11201         to substitute_and_fold.
11202         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
11203         to substitute_and_fold.
11204         * tree-ssa-ccp.c (ccp_finalize): Likewise.
11205
11206         PR bootstrap/44509
11207         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
11208
11209 2010-06-14  Ira Rosen  <irar@il.ibm.com>
11210
11211         PR tree-optimization/44507
11212         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
11213         to build initial vector for BIT_AND_EXPR.
11214         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
11215
11216 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11217
11218         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
11219         adjust z10prop set_attr.
11220
11221 2010-06-13  Jan Hubicka  <jh@suse.cz>
11222
11223         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11224         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
11225         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
11226         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
11227         datastructure checks into checking asserts.
11228         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
11229         * tree-ssa-sccvn.c (VN_INFO): Likewise.
11230         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
11231         df_ref_create_structure): Likewise.
11232         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
11233         pool_free): Use gcc_checking_assert.
11234         * alias.c (get_alias_set): Likewise.
11235         * var-tracking.c (variable_htab_free, shared_hash_copy,
11236         canonicalize_values_mark, variable_merge_over_cur): Likewise.
11237         * lto-streamer.c (bp_unpack_value): Likewise.
11238
11239 2010-06-13  Richard Guenther  <rguenther@suse.de>
11240
11241         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
11242         Do not stream but initialize TYPE_CANONICAL to NULL.
11243         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
11244         * gimple.c (gimple_types_compatible_p): Disregard
11245         TYPE_STRUCTURAL_EQUALITY_P.
11246         (gimple_register_type): Use TYPE_CANONICAL as cache.
11247         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
11248         before registering common types.
11249         * config/i386/i386.c (ix86_function_arg_boundary): Do not
11250         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
11251         * tree.h (TYPE_CANONICAL): Clarify documentation.
11252
11253 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
11254
11255         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11256         LIBCALL_VALUE): Remove macros.
11257         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
11258         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11259         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11260         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
11261         (ia64_function_value): Make static. Handle receiving the function
11262         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
11263
11264 2010-06-12  Jan Hubicka  <jh@suse.cz>
11265
11266         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
11267         at correct place.
11268
11269 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
11270
11271         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
11272
11273 2010-06-12  Jan Hubicka  <jh@suse.cz>
11274
11275         * df-core.c (df_clear_bb_info): New function.
11276         (df_set_blocks): bb_info is always allocated.
11277         (df_get_bb_info): Use block_info_elt_size.
11278         (df_set_bb_info): Likewise.
11279         (df_compact_blocks): Update for new block_info.
11280         (grow_bb_info): New function.
11281         * df-problems.c (df_grow_bb_info): Move to df-core.c
11282         (df_rd_set_bb_info): Remove.
11283         (df_rd_free_bb_info): Do not free block pool.
11284         (df_rd_alloc): Do not create pool, use check for
11285         obstack presence instead of NULL pointer for new blocks.
11286         (df_rd_free): DO not free alloc pool; clear block_info.
11287         (problem_RD): Add size of block info structure.
11288         (df_lr_set_bb_info): Remove.
11289         (df_lr_free_bb_info): Do not free block pool.
11290         (df_lr_alloc): Do not create pool, use check for
11291         obstack presence instead of NULL pointer for new blocks.
11292         (df_lr_free): DO not free alloc pool; clear block_info.
11293         (problem_LR): Add size of block info structure.
11294         (df_live_set_bb_info): Remove.
11295         (df_live_free_bb_info): Do not free block pool.
11296         (df_live_alloc): Do not create pool, use check for
11297         obstack presence instead of NULL pointer for new blocks.
11298         (df_live_free): DO not free alloc pool; clear block_info.
11299         (problem_LIVE): Add size of block info structure.
11300         (problem_CHAIN): Add size of block info structure.
11301         (df_byte_lr_set_bb_info): Remove.
11302         (df_byte_lr_free_bb_info): Do not free block pool.
11303         (df_byte_lr_alloc): Do not create pool, use check for
11304         obstack presence instead of NULL pointer for new blocks.
11305         (df_byte_lr_free): DO not free alloc pool; clear block_info.
11306         (problem_BYTE_LR): Add size of block info structure.
11307         (problem_NOTE): Add size of block info structure.
11308         (df_byte_MD_set_bb_info): Remove.
11309         (df_byte_MD_free_bb_info): Do not free block pool.
11310         (df_byte_MD_alloc): Do not create pool, use check for
11311         obstack presence instead of NULL pointer for new blocks.
11312         (df_byte_MD_free): DO not free alloc pool; clear block_info.
11313         (problem_BD): Add size of block info structure.
11314         * df-scan.c (df_scan_free_internal): Free block pool.
11315         (df_scan_set_bb_info): Remove.
11316         (df_scan_free_bb_info): Check for artificial_defs instead
11317         of bb_info being non-NULL.
11318         (df_scan_alloc): DO not create df_scan_block pool.
11319         (problem_SCAN): Set size of block info.
11320         (df_bb_refs_record): Do not allocate bb_info.
11321         * df.h (df_problem): Add block_info_elt_size.
11322         (struct dataflow): Change block_info to void *.
11323         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
11324         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
11325         in-line structures.
11326
11327 2010-06-12  Jan Hubicka  <jh@suse.cz>
11328
11329         PR tree-optimize/44485
11330         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
11331         containing use of return value of noreturn function.
11332
11333 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
11334
11335         * targhooks.c (default_function_value): Don't use
11336         FUNCTION_OUTGOING_VALUE.
11337         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
11338         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
11339
11340 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
11341
11342         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
11343         Add crtfastmath.o to extra_parts.
11344         * config/mips/crtfastmath.c: New.
11345         * config/mips/linux.h (ENDFILE_SPEC): New.
11346
11347 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
11348
11349         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
11350         old_type in parameter.
11351         (gcc_type_for_value): Update call to gcc_type_for_interval.
11352         (compute_type_for_level_1): Renamed compute_type_for_level.
11353         Update call to gcc_type_for_interval.
11354
11355 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11356
11357         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
11358         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
11359
11360 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11361
11362         * opts-common.c: Include options.h.
11363         (integral_argument): Move from opts.c.
11364         (decode_cmdline_option): New.  Based on read_cmdline_option.
11365         * opts.c (integral_argument): Move to opts-common.c.
11366         (read_cmdline_option): Move most contents to
11367         decode_cmdline_option.  Use %qs in diagnostics.
11368         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
11369         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
11370         decode_cmdline_option): New.
11371
11372 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11373
11374         PR target/44481
11375         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
11376         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
11377         (partiysi2_cmp): Ditto.
11378         (*partiyhi2_cmp): Ditto.
11379         (*parityqi2_cmp): Remove.
11380
11381 2010-06-11  Jan Hubicka  <jh@suse.cz>
11382
11383         * bitmap.h (bmp_iter_next_bit): New.
11384         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
11385
11386 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
11387             Eric Botcazou  <ebotcazou@adacore.com>
11388
11389         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
11390         computed cost.
11391
11392 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11393
11394         * config/i386/i386.md (unspec): New define_c_enum.
11395         (unspecv): Ditto.
11396
11397 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
11398
11399         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
11400
11401 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
11402
11403         PR middle-end/44483
11404         * tree-if-conv.c (bb_predicate_s): New struct.
11405         (bb_predicate_p): New.
11406         (bb_has_predicate): New.
11407         (bb_predicate): New.
11408         (set_bb_predicate): New.
11409         (bb_predicate_gimplified_stmts): New.
11410         (set_bb_predicate_gimplified_stmts): New.
11411         (add_bb_predicate_gimplified_stmts): New.
11412         (init_bb_predicate): New.
11413         (free_bb_predicate): New.
11414         (is_predicated): Use bb_predicate.
11415         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
11416         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
11417         before processing their successors.
11418         (clean_predicate_lists): Removed.
11419         (find_phi_replacement_condition): Use bb_predicate.
11420         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
11421         computations.
11422         (insert_gimplified_predicates): New.
11423         (combine_blocks): Call insert_gimplified_predicates.
11424         (tree_if_conversion): Call free_bb_predicate instead of
11425         clean_predicate_lists.
11426
11427 2010-10-11  Paul Brook  <paul@codesourcery.com>
11428
11429         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
11430         * config/arm/arm.c (all_architectures): Change v7e-m default to
11431         cortexm4.
11432         * config/arm/arm-cores.def: Add cortex-m4.
11433         * config/arm/arm-tune.md: Regenerate.
11434
11435 2010-06-11  Jan Hubicka  <jh@suse.cz>
11436
11437         * ipa-pure-const.c (special_builtlin_state): New function.
11438         (check_call): Use it instead of special casign BUILT_IN_RETURN.
11439         (propagate_pure_const): Use it.
11440
11441 2010-06-11  Jan Hubicka  <jh@suse.cz>
11442
11443         * df-problems.c (df_live_scratch): Convert to bitmap_head.
11444         (df_live_alloc): Initialize df_live_scratch when initializing
11445         problem_data.
11446         (df_live_transfer_function): Update uses of df_live_scratch.
11447         (df_live_free): Free problem_data; clear df_live_scratch before
11448         releasing the obstack.
11449         (df_md_free): Free problem data.
11450
11451 2010-06-11  Jan Hubicka  <jh@suse.cz>
11452
11453         * doc/invoke.texi (Wsuggest-attribute): Document.
11454         (Wmissing-noreturn): Remove.
11455         * ipa-pure-const.c (warn_function_noreturn): New function.
11456         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
11457         warn_missing_noreturn.
11458         * common.opt (Wsuggest-attribute=noreturn): New.
11459         * tree-flow.h (warn_function_noreturn): Declare.
11460         * tree-cfg.c (execute_warn_function_noreturn): Use
11461         warn_function_noreturn.
11462         (gate_warn_function_noreturn): New.
11463         (pass_warn_function_noreturn): Update.
11464
11465 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11466
11467         * c-typeck.c (handle_warn_cast_qual): Add loc
11468         parameter. Improve warning message.
11469         (build_c_cast): Pass location to handle_warn_cast_qual.
11470
11471 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11472
11473         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
11474         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
11475         insn mnemonic.
11476         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
11477
11478 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
11479
11480         Fix bootstap on mips
11481         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
11482         be naming typedefs.
11483
11484 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
11485
11486         * system.h (helper_const_non_const_cast): New inline for
11487         gcc version <= 4.0.
11488         (CONST_CAST2): For gcc version <= 4.0 use
11489         new helper to do const/non-const casting.
11490
11491 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11492
11493         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
11494         * Makefile.in (OBJS-common): Include insn-enums.o.
11495         (insn-enums.o): New rule.
11496         (simple_generated_c): Add insn-enums.c.
11497         (build/genenums.o): New rule.
11498         (genprogmd): Add "enums".
11499         * genconstants.c (print_enum_type): Declare a C string array
11500         for each enum.
11501         * genenums.c: New file.
11502         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
11503         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
11504         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
11505
11506 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11507
11508         * doc/md.texi (define_enum_attr): Document.
11509         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
11510         * read-md.h (lookup_enum_type): Declare.
11511         * read-md.c (lookup_enum_type): New function.
11512         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
11513         * genattrtab.c (attr_desc): Add an enum_name field.
11514         (evaluate_eq_attr): Take the associated attribute as argument.
11515         Get the enum prefix from the enum_name field, if defined.
11516         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
11517         (simplify_test_exp): Pass attr to evaluate_eq_attr.
11518         (add_attr_value): New function, split out from...
11519         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
11520         (write_test_expr): Pass attr to evaluate_eq_attr.
11521         (write_attr_get): Use the enum_name as the enum tag, if defined.
11522         (write_attr_valueq): Use the enum_name as a prefix, if defined.
11523         (find_attr): Initialize enum_name.
11524         (main): Handle DEFINE_ENUM_ATTR.
11525         * gensupport.c (process_rtx): Likewise.
11526         * config/mips/mips.h (mips_tune_attr): Delete.
11527         * config/mips/mips.md (cpu): Use define_attr_enum.
11528
11529 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11530
11531         * doc/md.texi (define_c_enum, define_enum): Document.
11532         * read-md.h (md_constant): Add a parent_enum field.
11533         (enum_value, enum_type): New structures.
11534         (upcase_string, traverse_enum_types): Declare.
11535         * read-md.c (enum_types): New variable.
11536         (upcase_string, add_constant): New functions.
11537         (handle_constants): Don't create the hash table here.
11538         Use add_constant.
11539         (traverse_md_constants): Don't check for a null md_constants.
11540         (decimal_string, handle_enum, traverse_enum_types): New functions.
11541         (read_md_files): Initialize md_constants and md_enums.
11542         * genconstants.c (print_md_constant): Ignore info argument.
11543         Only print constants that belong to no enum.
11544         (print_enum_type): New function.
11545         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
11546         for each defined enum type.
11547         * config/mips/mips.md (processor): New define_enum.
11548         (unspec): New define_c_enum.
11549         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
11550         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
11551         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
11552         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
11553         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
11554         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
11555         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
11556         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
11557         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
11558         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
11559         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
11560         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
11561         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
11562         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
11563         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
11564         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
11565         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
11566         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
11567         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
11568         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
11569         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
11570         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
11571         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11572         (UNSPEC_RDDSP): Move to mips-dsp.md.
11573         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
11574         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
11575         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
11576         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
11577         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
11578         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
11579         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
11580         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
11581         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
11582         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
11583         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
11584         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
11585         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
11586         Moved to mips-dspr2.md.
11587         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
11588         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
11589         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
11590         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
11591         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
11592         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
11593         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11594         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11595         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11596         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11597         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11598         UNSPEC_LOONGSON_PSADBH)
11599         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11600         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11601         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
11602         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11603         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11604         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11605         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
11606         (cpu): Update comment.
11607         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
11608         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
11609         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
11610         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
11611         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
11612         UNSPEC_LOONGSON_PCMPEQ)
11613         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
11614         UNSPEC_LOONGSON_PINSR_0)
11615         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11616         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11617         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11618         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11619         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11620         UNSPEC_LOONGSON_PSADBH)
11621         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11622         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11623         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
11624         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11625         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11626         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11627         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
11628         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
11629         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
11630         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
11631         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
11632         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
11633         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
11634         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
11635         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
11636         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
11637         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
11638         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
11639         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
11640         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
11641         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
11642         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
11643         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
11644         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
11645         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
11646         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
11647         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11648         (UNSPEC_RDDSP): Moved from mips.md.
11649         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
11650         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
11651         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
11652         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
11653         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
11654         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
11655         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
11656         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
11657         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
11658         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
11659         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
11660         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
11661         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
11662         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
11663         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
11664         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
11665         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
11666         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
11667         (UNSPEC_SCC): Moved from mips.md.
11668         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
11669         "processor_type" to "processor".
11670         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
11671         * config/mips/mips.h (processor_type): Delete.
11672         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
11673         "processor_type" to "processor".
11674
11675 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11676
11677         * configure.ac (tm_include_list): Add insn-constants.h.
11678         * configure: Regenerate.
11679         * Makefile.in (GTM_H): Move insn-constants.h here from...
11680         (TM_H): ...here.
11681         * mkconfig.sh: Remove special handling for insn-constants.h.
11682
11683 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11684
11685         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
11686         (BUILD_MD): ...this new variable.
11687         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
11688         that include the old contents of simple_generated_h and
11689         simple_generated_c.
11690         (simple_generated_h, simple_generated_c): Include them.  Add
11691         insn-constants.h.
11692         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
11693         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
11694         Remove these dependencies from the main rule and include
11695         insn-conditions.md in the command line only if it appears
11696         in the dependency list.
11697         (insn-constants.h, s-constants): Delete.
11698         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
11699         or gensupport.h.
11700         (build/genmddeps.o): Likewise.
11701         (genprogrtl): New variable that contains everything from genprogmd
11702         except mddeps and constants.
11703         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
11704         depend on $(BUILD_MD)
11705         (genprog): New variable.  Make these programs depend on
11706         $(BUILD_ERRORS).
11707         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
11708         (main): Use read_md_files instead of init_rtx_reader_args.
11709         * genconstants.c: As for genmddeps.c.
11710         * read-md.h (read_skip_construct): Declare.
11711         * read-md.c (read_skip_construct): New function.
11712         (handle_file): Allow a null handle_directive, skipping the
11713         construct if so.
11714         (parse_include): Update the comment accordingly.
11715
11716 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11717
11718         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
11719         * genmddeps.c: Include read-md.h.
11720         (main): Call init_rtx_reader_args instead of init_md_reader_args.
11721         * genattr.c (main): Likewise.
11722         * genattrtab.c (main): Likewise.
11723         * genautomata.c (main): Likewise.
11724         * gencodes.c (main): Likewise.
11725         * genconditions.c (main): Likewise.
11726         * genconfig.c (main): Likewise.
11727         * genconstants.c (main): Likewise.
11728         * genemit.c (main): Likewise.
11729         * genextract.c (main): Likewise.
11730         * genflags.c (main): Likewise.
11731         * genopinit.c (main): Likewise.
11732         * genoutput.c (main): Likewise.
11733         * genpeep.c (main): Likewise.
11734         * genrecog.c (main): Likewise.
11735         * genpreds.c (main): Likewise.
11736         * gensupport.h (in_fname): Move to read-md.h.
11737         (init_md_reader_args_cb): Rename to...
11738         (init_rtx_reader_args_cb): ...this and return a bool.
11739         (init_md_reader_args): Rename to...
11740         (init_rtx_reader_args): ...this and return a bool.
11741         (include_callback): Move to read-md.h.
11742         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
11743         (file_name_list, first_dir_md_include): Move to read-md.c
11744         (first_bracket_include): Delete unused variable.
11745         (last_dir_md_include): Move to read-md.c.
11746         (process_include): Delete, moving code to read-md.c:handle_include.
11747         (process_rtx): Don't handle INCLUDE.
11748         (save_string): Delete.
11749         (rtx_handle_directive): New function.
11750         (init_md_reader_args_cb): Rename to...
11751         (init_rtx_reader_args_cb): ...this and return a boolean success value.
11752         Use read_md_args.
11753         (init_md_reader_args): Rename to...
11754         (init_rtx_reader_args): ...this and return a boolean success value.
11755         * rtl.def (INCLUDE): Delete.
11756         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
11757         argument.
11758         * read-rtl.c (read_conditions): Don't gobble ')' here.
11759         (read_mapping): Likewise.
11760         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
11761         Handle top-level non-rtx constructs here rather than in read_rtx_1.
11762         Store the whole queue in *X.  Remove call to init_md_reader.
11763         (read_rtx_1): Rename to...
11764         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
11765         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
11766         here.
11767         (read_nested_rtx): New function.  Handle (nil) here rather than
11768         in read_rtx_code.
11769         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
11770         gobble ')' here.
11771         * read-md.h (directive_handler_t): New type.
11772         (in_fname, include_callback): Moved from read-md.h.
11773         (read_constants, init_md_reader): Delete.
11774         (read_md_files): Declare.
11775         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
11776         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
11777         from gensupport.c.
11778         (read_constants): Rename to...
11779         (handle_constants): ...this.  Don't gobble ')' here.
11780         (handle_include, handle_file, handle_toplevel_file)
11781         (parse_include): New functions, mostly taken from gensupport.c.
11782         (init_md_reader): Subsume into...
11783         (read_md_files): ...this new function.
11784
11785 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11786
11787         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
11788         (unread_char): Decrement read_md_lineno after putting back '\n'.
11789         * read-md.c (fatal_with_file_and_line): Push back any characters
11790         that we decide not to add to the context.
11791         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
11792         fatal_expected_char in cases where '/' ends a line (for example).
11793         (read_name): Don't increment read_md_lineno here.
11794         (read_escape): Likewise.
11795         (read_quoted_string): Likewise.
11796         (read_braced_string): Likewise.
11797
11798 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11799
11800         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
11801         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
11802         * genconstants.c: Include read-md.h.
11803         * read-rtl.c (md_constants): Move to read-md.c.
11804         (md_name): Move to read-md.h.
11805         (initialize_iterators): Use leading_string_hash instead of def_hash
11806         and leading_string_eq_p instead of def_name_eq_p.
11807         (read_name): Move to read-md.c.
11808         (def_hash, def_name_eq_p): Delete.
11809         (read_constants, traverse_md_constants): Move to read-md.c.
11810         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
11811         * read-md.h: Include hashtab.h.
11812         (md_name): Moved from read-rtl.c.
11813         (md_constant): Moved from read-md.h.
11814         (leading_string_hash, leading_string_eq_p, read_name)
11815         (read_constants, traverse_md_constants): Declare.
11816         * read-md.c (md_constants): Moved from read-rtl.c.
11817         (leading_string_hash, leading_string_eq_p): New functions.
11818         (read_name, read_constants, traverse_md_constants): Moved from
11819         read-rtl.c.
11820
11821 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11822
11823         * read-rtl.c (md_name): New structure.
11824         (read_name): Take an md_name instead of a buffer pointer.
11825         Use the "string" field instead of strcpy when expanding constants.
11826         (read_constants): Remove the tmp_char argument.  Update the calls
11827         to read_name, using two local name buffers instead of the tmp_char
11828         argument.  Merge the constant-creation code.
11829         (read_conditions): Remove the tmp_char argument.  Update the calls
11830         to read_name, using a local name buffer instead of the tmp_char
11831         argument.
11832         (read_mapping): Replace tmp_char variable with a local name buffer.
11833         Update the calls to read_name.
11834         (read_rtx_1): Likewise.  Update the calls to read_constants and
11835         read_conditions.
11836
11837 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11838
11839         * Makefile.in (build/read-md.o): Depend on errors.h.
11840         * read-md.h (error_with_line): Declare.
11841         * read-md.c: Include errors.h.
11842         (message_with_line_1): New function, extracted from...
11843         (message_with_line): ...here.
11844         (error_with_line): New function.
11845         * genattrtab.c: If a call to message_with_line is followed by
11846         "have_error = 1;", replace both statements with a call to
11847         error_with_line.
11848         * genoutput.c: Likewise.
11849         * genpreds.c: Likewise.
11850         * genrecog.c: If a call to message_with_line is followed by
11851         "error_count++;", replace both statements with a call to
11852         error_with_line.
11853         (errorcount): Delete.
11854         (main): Don't check it.
11855         * gensupport.c: If a call to message_with_line is followed by
11856         "errors = 1;", replace both statements with a call to error_with_line.
11857         (errors): Delete.
11858         (process_define_cond_exec): Check have_error instead of errors.
11859         (init_md_reader_args_cb): Likewise.  Don't set errors.
11860
11861 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11862
11863         * read-md.h (read_md_file): Declare.
11864         (read_char, unread_char): New functions.
11865         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11866         (read_quoted_string, read_string): Remove FILE * argument.
11867         * read-md.c (read_md_file): New variable.
11868         (read_md_filename, read_md_lineno): Update comments and remove
11869         unnecessary initialization.
11870         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11871         (read_escape, read_quoted_string, read_braced_string, read_string):
11872         Remove FILE * argument.  Update calls accordingly, using read_char
11873         and unread_char instead of getc and ungetc.
11874         * rtl.h (read_rtx): Remove FILE * argument.
11875         * read-rtl.c (iterator_group): Remove FILE * argument from
11876         "find_builtin".
11877         (iterator_traverse_data): Remove "infile" field.
11878         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
11879         (add_mapping, read_name, read_constants, read_conditions)
11880         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
11881         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
11882         Remove file arguments from all calls, using read_char and unread_char
11883         instead of getc and ungetc.
11884         * gensupport.c (process_include): Preserve read_md_file around
11885         the include.  Set read_md_file to the handle of the included file.
11886         Update call to read_rtx.
11887         (init_md_reader_args_cb): Set read_md_file to the handle of the file
11888         and remove local FILE *.  Update calls to read_rtx.
11889
11890 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11891
11892         * read-md.h (read_rtx_lineno): Rename to...
11893         (read_md_lineno): ...this.
11894         (read_rtx_filename): Rename to...
11895         (read_md_filename): ...this.
11896         (copy_rtx_ptr_loc): Rename to...
11897         (copy_md_ptr_loc): ...this.
11898         (print_rtx_ptr_loc): Rename to...
11899         (print_md_ptr_loc): ...this.
11900         * read-md.c: Likewise.  Update references after renaming.
11901         (string_obstack): Replace RTL with MD in comment.
11902         (set_rtx_ptr_loc): Rename to...
11903         (set_md_ptr_loc): ...this.
11904         (get_rtx_ptr_loc): Rename to...
11905         (get_md_ptr_loc): ...this.
11906         * genconditions.c: Update references after renaming.
11907         * genemit.c: Likewise.
11908         * genoutput.c: Likewise.
11909         * genpreds.c: Likewise.
11910         * gensupport.c: Likewise.
11911         * read-rtl.c: Likewise.
11912
11913 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11914
11915         * Makefile.in (READ_MD_H): New variable.
11916         (BUILD_RTL): Add build/read-md.o.
11917         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
11918         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
11919         (build/genattrtab.o, build/genconditions.o build/genemit.o)
11920         (build/genextract.o, build/genflags.o, build/genoutput.o)
11921         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
11922         (build/read-md.o): New rule.
11923         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
11924         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
11925         * coretypes.h: ...here.
11926         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
11927         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
11928         * genattr.c: Include read-md.h.
11929         * genattrtab.c: Likewise.
11930         * genconditions.c: Likewise.
11931         * genemit.c: Likewise.
11932         * genextract.c: Likewise.
11933         * genflags.c: Likewise.
11934         * genoutput.c: Likewise.
11935         * genpreds.c: Likewise.
11936         * genrecog.c: Likewise.
11937         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
11938         (join_c_conditions, print_c_condition, read_rtx_filename)
11939         (read_rtx_lineno): Move to read-md.h.
11940         * read-rtl.c: Include read-md.h.
11941         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
11942         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
11943         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
11944         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
11945         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
11946         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
11947         (read_braced_string, read_string): Move to read-md.c.
11948         (read_rtx): Move some initialization to init_md_reader and call
11949         init_md_reader here.
11950         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
11951         Move to read-md.h.
11952         * gensupport.c: Include read-md.h.
11953         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
11954         * read-md.h, read-md.c: New files.
11955
11956 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
11957
11958         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11959         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11960         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
11961         * config/moxie/moxie.c (moxie_function_value): Make static.
11962         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
11963         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11964
11965 2010-06-10  Martin Jambor  <mjambor@suse.cz>
11966
11967         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
11968         * dbgcnt.def (tree_sra): New counter.
11969         * tree-sra.c: Include dbgcnt.h.
11970         (gate_intra_sra): Check tree_sra debug counter.
11971
11972 2010-06-10  Martin Jambor  <mjambor@suse.cz>
11973
11974         PR tree-optimization/44258
11975         * tree-sra.c (build_access_subtree): Return false iff there is a
11976         partial overlap.
11977         (build_access_trees): Likewise.
11978         (analyze_all_variable_accesses): Disqualify candidates if
11979         build_access_trees returns true for them.
11980
11981 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
11982
11983         PR debug/41371
11984         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
11985         tail-recurse into canonical node.  Fast-forward over
11986         non-canonical VALUEs.
11987
11988 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
11989
11990         PR boostrap/44470
11991         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
11992         (*addsi_1_zext) <TYPE_LEA>: Likewise.
11993         (add lea splitter): Likewise.
11994         (add_zext lea splitter): Likewise.
11995
11996 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
11997
11998         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
11999
12000 2010-06-10  Jan Hubicka  <jh@suse.cz>
12001
12002         * df-problems.c (df_live_problem_data): Add live_bitmaps.
12003         (df_live_alloc): Initialize problem data and live_osbtacks.
12004         (df_live_finalize): Remove obstack, problem data; do not
12005         clear all bitmaps.
12006         (df_live_top_dump, df_live_bottom_dump): Do not dump old
12007         data when not allocated.
12008         (df_live_verify_solution_start): Do not allocate problem data.
12009         (df_live_verify_solution_end): Check if out is allocated.
12010         (struct df_md_problem_data): New structure.
12011         (df_md_alloc): Allocate problem data.
12012         (df_md_free): Free problem data; do not clear bitmaps.
12013
12014 2010-06-10  Jan Beulich  <jbeulich@novell.com>
12015
12016         PR bootstrap/37304
12017         * configure.ac: Replace $() with ${} when intending to expand
12018         variables rather than invoking commands.
12019         * configure: Re-generate.
12020
12021 2010-06-10  Jan Hubicka  <jh@suse.cz>
12022
12023         PR rtl-optimization/44460
12024         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
12025         TYPE_NEEDS_CONSTRUCTING sanity check.
12026
12027 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
12028
12029         * doc/include/fdl.texi: Move to GFDL version 1.3.
12030
12031         * doc/cpp.texi: Move to GFDL version 1.3.
12032         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
12033         * doc/gccint.texi: Move to GFDL version 1.3.
12034         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
12035         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
12036         * doc/invoke.texi: Move to GFDL version 1.3.
12037
12038 2010-06-09  Jan Hubicka  <jh@suse.cz>
12039
12040         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
12041         Break out from ...
12042         (propagate) ... here; swap the order.
12043
12044 2010-06-09  Jan Hubicka  <jh@suse.cz>
12045
12046         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
12047         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
12048         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
12049         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
12050
12051 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12052
12053         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
12054         Do not the gather memory reference in the outer loop if the step
12055         is not a constant.
12056
12057 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12058
12059         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
12060         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
12061         8 to 4.  Minor change of the related comments.
12062
12063 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12064
12065         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
12066         the scev analysis when the variable is not used outside the loop
12067         in a close phi node: call compute_overall_effect_of_inner_loop.
12068
12069 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12070
12071         * graphite-sese-to-poly.c (single_pred_cond): Renamed
12072         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
12073         (build_sese_conditions_before): Renamed call to single_pred_cond.
12074         (build_sese_conditions_after): Same.
12075
12076 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12077
12078         * graphite-poly.h: Fix comments and indentation.
12079         * graphite-sese-to-poly.c: Same.
12080         (build_sese_conditions_before): Compute stmt and gbb only when needed.
12081         * tree-chrec.c: Fix comments and indentation.
12082         (tree-ssa-loop-niter.c): Same.
12083
12084 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12085
12086         PR rtl-optimization/42461
12087         * dce.c (deletable_insn_p): Return true for const or pure calls again.
12088         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
12089
12090 2010-06-09  Jan Hubicka  <jh@suse.cz>
12091
12092         * bitmap.c (bitmap_and): Walk array forward.
12093         (bitmap_and_compl_into): Likewise.
12094         (bitmap_xor): Likewise.
12095         (bitmap_xor_into):  Likewise.
12096         (bitmap_equal_p): Likewise.
12097         (bitmap_intersect_p): Likewise.
12098         (bitmap_intersect_compl_p): Likewise.
12099         (bitmap_ior_and_into): Likewise.
12100         (bitmap_elt_copy): Likewise.
12101         (bitmap_and_compl): Likewise.
12102         (bitmap_elt_ior): Likewise.
12103
12104 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
12105
12106         * opts-common.c (prune_options): Ensure replacement argv array
12107         is correctly terminated by a NULL entry.
12108
12109 2010-06-09  Jan Hubicka  <jh@suse.cz>
12110
12111         * cgraph.h (varpool_first_static_initializer,
12112         varpool_next_static_initializer): Make checking only when
12113         checking enabled.
12114         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
12115         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
12116         gcc_assert to gcc_checking_assert.
12117         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
12118         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
12119         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
12120         op_iter_init_phiuse, op_iter_init_phidef,
12121         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
12122         gcc_checking_assert.
12123         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
12124         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
12125         partition_is_global, live_on_entry, live_on_exit,
12126         live_merge_and_clear): Likewise.
12127         * system.h (gcc_checking_assert): New macro.
12128         * gimple.h (set_bb_seq): Use gcc_checking_assert.
12129
12130 2010-06-09  Jason Merrill  <jason@redhat.com>
12131
12132         * Makefile.in (TAGS): Collect tags info from c-family.
12133
12134 2010-06-09  Jan Hubicka  <jh@suse.cz>
12135
12136         * gimple.h (gcc_gimple_checking_assert): New macro.
12137         (gimple_set_def_ops, gimple_set_use_ops,
12138         gimple_set_vuse, gimple_set_vdef,
12139         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
12140         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
12141         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
12142         gimple_asm_output_op, gimple_asm_output_op_ptr,
12143         gimple_asm_set_output_op, gimple_asm_clobber_op,
12144         gimple_asm_set_clobber_op, gimple_asm_label_op,
12145         gimple_asm_set_label_op, gimple_try_set_kind,
12146         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
12147         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
12148         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
12149         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
12150         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
12151         gimple_omp_for_set_initial, gimple_omp_for_final,
12152         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
12153         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
12154         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
12155         conditional with ENABLE_GIMPLE_CHECKING.
12156         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
12157
12158 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
12159
12160         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
12161         (get_computation_cost_at): Use it.
12162         (determine_use_iv_cost_condition): Likewise.
12163         (determine_iv_cost): Likewise.
12164
12165 2010-06-09  Richard Guenther  <rguenther@suse.de>
12166
12167         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
12168         replace constants.
12169
12170 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
12171
12172         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
12173
12174 2010-06-09  Martin Jambor  <mjambor@suse.cz>
12175
12176         PR tree-optimization/44423
12177         * tree-sra.c (dump_access): Dump also grp_assignment_read.
12178         (analyze_access_subtree): Pass negative allow_replacements to children
12179         if the current type is scalar.
12180
12181 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12182
12183         PR testsuite/42843
12184         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
12185         * doc/plugins.texi (Plugin license check): Update information
12186         on type of plugin_is_GPL_compatible.
12187         * Makefile.in (PLUGINCC): Define as $(COMPILER).
12188         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
12189
12190 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12191
12192         * config/arm/arm.c (thumb2_reorg): New function.
12193         (arm_reorg): Call it.
12194         * config/arm/thumb2.md (define_peephole2 for flag clobbering
12195         arithmetic operations): Delete.
12196
12197 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
12198
12199         PR target/44067
12200         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
12201         e500v2 target.
12202
12203 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12204
12205         PR plugins/44459
12206         * gcc-plugin.h: Encapsulate all declarations in extern "C".
12207
12208 2010-06-08  Jan Hubicka  <jh@suse.cz>
12209
12210         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
12211         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
12212
12213 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
12214
12215         PR tree-optimization/39874
12216         PR middle-end/28685
12217         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
12218         Declare.
12219         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
12220         same_bool_result_p): New.
12221         (and_var_with_comparison, and_var_with_comparison_1,
12222         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
12223         (or_var_with_comparison, or_var_with_comparison_1,
12224         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
12225         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
12226         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
12227         of combine_comparisons.
12228         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
12229
12230 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
12231
12232         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12233         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12234         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
12235         pdp11_function_value_regno_p): New functions.
12236         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12237         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12238
12239 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
12240
12241         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
12242         Thumb-2 in the MINUS case.
12243
12244 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12245
12246         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
12247
12248         * doc/gty.texi (GTY Options): Document typed GC allocation and
12249         variable_size GTY option.
12250
12251         * ggc-internal.h: New.
12252
12253         * ggc.h: Update copyright year.
12254         (digit_string): Move to stringpool.c.
12255         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
12256         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
12257         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
12258         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
12259         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
12260         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
12261         (ggc_force_collect, ggc_get_size, ggc_statistics)
12262         (ggc_print_common_statistics): Move to ggc-internal.h.
12263         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
12264         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
12265         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
12266         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
12267         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
12268         (ggc_alloc_zone_pass_stat): Remove.
12269         (ggc_internal_alloc_stat, ggc_internal_alloc)
12270         (ggc_internal_cleared_alloc_stat): New.
12271         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
12272         (ggc_internal_vec_alloc_stat)
12273         (ggc_internal_cleared_vec_alloc_stat)
12274         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
12275         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
12276         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
12277         (ggc_cleared_alloc_ptr_array_two_args): New.
12278         (htab_create_ggc, splay_tree_new_ggc): Redefine.
12279         (ggc_splay_alloc): Change the type of the first argument to
12280         enum gt_types_enum.
12281         (ggc_alloc_string): Make macro.
12282         (ggc_alloc_string_stat): New.
12283         (ggc_strdup): Redefine.
12284         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
12285         (ggc_alloc_rtvec_sized): New.
12286         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
12287         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
12288         (ggc_internal_cleared_alloc_zone_stat)
12289         (ggc_internal_zone_alloc_stat)
12290         (ggc_internal_zone_cleared_alloc_stat)
12291         (ggc_internal_zone_vec_alloc_stat)
12292         (ggc_alloc_zone_rtx_def_stat)
12293         (ggc_alloc_zone_tree_node_stat)
12294         (ggc_alloc_zone_cleared_tree_node_stat)
12295         (ggc_alloc_cleared_gimple_statement_d_stat): New.
12296
12297         * ggc-common.c: Include ggc-internal.h.
12298         (ggc_internal_cleared_alloc_stat): Rename from
12299         ggc_alloc_cleared_stat.
12300         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
12301         (ggc_calloc): Remove.
12302         (ggc_cleared_alloc_htab_ignore_args): New.
12303         (ggc_cleared_alloc_ptr_array_two_args): New.
12304         (ggc_splay_alloc): Add obj_type parameter.
12305         (init_ggc_heuristics): Formatting fixes.
12306
12307         * ggc-none.c: Update copyright year.
12308         (ggc_alloc_stat): Rename to ggc_alloc_stat.
12309         (ggc_alloc_cleared_stat): Rename to
12310         ggc_internal_cleared_alloc_stat.
12311         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12312
12313         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
12314         Remove references to ggc_alloc in comments.
12315         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
12316         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
12317         (new_ggc_zone, destroy_ggc_zone): Remove.
12318         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12319
12320         * ggc-zone.c: Include ggc-internal.h.  Remove references to
12321         ggc_alloc in comments.
12322         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
12323         (ggc_internal_alloc_zone_pass_stat): New.
12324         (ggc_internal_cleared_alloc_zone_stat): New.
12325         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
12326         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
12327         (new_ggc_zone, destroy_ggc_zone): Remove.
12328
12329         * stringpool.c: Update copyright year.  Include ggc-internal.h
12330         (digit_vector): Make static.
12331         (digit_string): Moved from ggc.h.
12332         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
12333         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
12334
12335         * Makefile.in (GGC_INTERNAL_H): New.
12336         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
12337         $(GGC_INTERNAL_H) to dependencies.
12338
12339         * gentype.c: Update copyright year.
12340         (walk_type): Accept variable_size GTY option.
12341         (USED_BY_TYPED_GC_P): New macro.
12342         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
12343         whitespace at the end of strings.
12344         (get_type_specifier, variable_size_p): New functions.
12345         (alloc_quantity, alloc_zone): New enums.
12346         (write_typed_alloc_def): New function.
12347         (write_typed_struct_alloc_def): Likewise.
12348         (write_typed_typed_typedef_alloc_def): Likewise.
12349         (write_typed_alloc_defns): Likewise.
12350         (output_typename, write_splay_tree_allocator_def): Likewise.
12351         (write_splay_tree_allocators): Likewise.
12352         (main): Call write_typed_alloc_defns and
12353         write_splay_tree_allocators.
12354
12355         * lto-streamer.h (lto_file_decl_data_ptr): New.
12356
12357         * passes.c (order): Define using cgraph_node_ptr.
12358
12359         * strinpool.c (struct string_pool_data): Declare nested_ptr using
12360         ht_identifier_ptr.
12361
12362         * gimple.h (union gimple_statement_d): Likewise.
12363
12364         * rtl.h (struct rtx_def): Likewise.
12365         (struct rtvec_def): Likewise.
12366
12367         * tree.h (union tree_node): Likewise.
12368
12369         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
12370
12371         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
12372
12373         * tree-scalar-evolution.c (scev_initialize): Likewise.
12374
12375         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
12376
12377         * dwarf2asm.c (dw2_force_const_mem): Likewise.
12378
12379         * omp-low.c (lower_omp_critical): Likewise.
12380
12381         * bitmap.h (struct bitmap_head_def): Update comment to not
12382         reference ggc_alloc.
12383
12384         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
12385
12386         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
12387
12388         * ipa-prop.c (duplicate_ggc_array): Rename to
12389         duplicate_ipa_jump_func_array.  Use typed GC allocation.
12390         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
12391
12392         * gimple.c (gimple_alloc_stat): Use
12393         ggc_alloc_cleared_gimple_statement_d_stat.
12394
12395         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
12396
12397         * tree.c (make_node_stat): Use
12398         ggc_alloc_zone_cleared_tree_node_stat.
12399         (make_tree_vec_stat): Likewise.
12400         (build_vl_exp_stat): Likewise.
12401         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
12402         (make_tree_binfo_stat): Likewise.
12403         (tree_cons_stat): Likewise.
12404
12405         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
12406         (shallow_copy_rtx_stat): Likewise.
12407         (make_node_stat): Likewise.
12408
12409         * lto-symtab.c: Fix comment.
12410
12411         * tree-cfg.c (create_bb): Update comment to not reference
12412         ggc_alloc_cleared.
12413         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
12414
12415         * varpool.c (varpool_node): Use typed GC allocation.
12416         (varpool_extra_name_alias): Likewise.
12417
12418         * varasm.c (emutls_decl): Likewise.
12419         (get_unnamed_section): Likewise.
12420         (get_noswitch_section): Likewise.
12421         (get_section): Likewise.
12422         (get_block_for_section): Likewise.
12423         (build_constant_desc): Likewise.
12424         (create_constant_pool): Likewise.
12425         (force_const_mem): Likewise.
12426
12427         * tree.c (build_vl_exp_stat): Likewise.
12428         (build_real): Likewise.
12429         (build_string): Likewise.
12430         (decl_debug_expr_insert): Likewise.
12431         (decl_value_expr_insert): Likewise.
12432         (type_hash_add): Likewise.
12433         (build_omp_clause): Likewise.
12434
12435         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
12436
12437         * tree-ssa.c (init_tree_ssa): Likewise.
12438
12439         * tree-ssa-structalias.c (heapvar_insert): Likewise.
12440
12441         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12442
12443         * tree-ssa-loop-niter.c (record_estimate): Likewise.
12444
12445         * tree-ssa-alias.c (get_ptr_info): Likewise.
12446
12447         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12448
12449         * tree-phinodes.c (allocate_phi_node): Likewise.
12450
12451         * tree-iterator.c (tsi_link_before): Likewise.
12452         (tsi_link_after): Likewise.
12453
12454         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12455
12456         * tree-dfa.c (create_var_ann): Likewise.
12457
12458         * tree-cfg.c (create_bb): Likewise.
12459
12460         * toplev.c (alloc_for_identifier_to_locale): Likewise.
12461         (general_init): Likewise.
12462
12463         * stringpool.c (stringpool_ggc_alloc): Likewise.
12464         (gt_pch_save_stringpool): Likewise.
12465
12466         * sese.c (if_region_set_false_region): Likewise.
12467
12468         * passes.c (do_per_function_toporder): Likewise.
12469
12470         * optabs.c (set_optab_libfunc): Likewise.
12471         (set_conv_libfunc): Likewise.
12472
12473         * lto-symtab.c (lto_symtab_register_decl): Likewise.
12474
12475         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12476         (input_eh_region): Likewise.
12477         (input_eh_lp): Likewise.
12478         (make_new_block): Likewise.
12479         (unpack_ts_real_cst_value_fields): Likewise.
12480
12481         * lto-section-in.c (lto_new_in_decl_state): Likewise.
12482
12483         * lto-cgraph.c (input_node_opt_summary): Likewise.
12484
12485         * loop-init.c (loop_optimizer_init): Likewise.
12486
12487         * lambda.h (lambda_vector_new): Likewise.
12488
12489         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
12490
12491         * ira.c (update_equiv_regs): Likewise.
12492
12493         * ipa.c (cgraph_node_set_new): Likewise.
12494         (cgraph_node_set_add): Likewise.
12495         (varpool_node_set_new): Likewise.
12496         (varpool_node_set_add): Likewise.
12497
12498         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
12499         (duplicate_ipa_jump_func_array): Likewise.
12500         (ipa_read_node_info): Likewise.
12501
12502         * ipa-cp.c (ipcp_create_replace_map): Likewise.
12503
12504         * integrate.c (get_hard_reg_initial_val): Likewise.
12505
12506         * gimple.c (gimple_alloc_stat): Likewise.
12507         (gimple_build_omp_for): Likewise.
12508         (gimple_seq_alloc): Likewise.
12509         (gimple_copy): Likewise.
12510
12511         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
12512         (gsi_insert_after_without_update): Likewise.
12513
12514         * function.c (add_frame_space): Likewise.
12515         (insert_temp_slot_address): Likewise.
12516         (assign_stack_temp_for_type): Likewise.
12517         (allocate_struct_function): Likewise.
12518         (types_used_by_var_decl_insert): Likewise.
12519
12520         * except.c (init_eh_for_function): Likewise.
12521         (gen_eh_region): Likewise.
12522         (gen_eh_region_catch): Likewise.
12523         (gen_eh_landing_pad): Likewise.
12524         (add_call_site): Likewise.
12525
12526         * emit-rtl.c (get_mem_attrs): Likewise.
12527         (get_reg_attrs): Likewise.
12528         (start_sequence): Likewise.
12529         (init_emit): Likewise.
12530
12531         * dwarf2out.c (new_cfi): Likewise.
12532         (queue_reg_save): Likewise.
12533         (dwarf2out_frame_init): Likewise.
12534         (new_loc_descr): Likewise.
12535         (find_AT_string): Likewise.
12536         (new_die): Likewise.
12537         (add_var_loc_to_decl): Likewise.
12538         (clone_die): Likewise.
12539         (clone_as_declaration): Likewise.
12540         (break_out_comdat_types): Likewise.
12541         (new_loc_list): Likewise.
12542         (loc_descriptor): Likewise.
12543         (add_loc_descr_to_each): Likewise.
12544         (add_const_value_attribute): Likewise.
12545         (tree_add_const_value_attribute): Likewise.
12546         (add_comp_dir_attribute): Likewise.
12547         (add_name_and_src_coords_attributes): Likewise.
12548         (lookup_filename): Likewise.
12549         (store_vcall_insn): Likewise.
12550         (dwarf2out_init): Likewise.
12551
12552         * dbxout.c (dbxout_init): Likewise.
12553
12554         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12555
12556         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12557
12558         * config/score/score7.c (score7_output_external): Likewise.
12559
12560         * config/score/score3.c (score3_output_external): Likewise.
12561
12562         * config/s390/s390.c (s390_init_machine_status): Likewise.
12563
12564         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12565         (rs6000_init_machine_status): Likewise.
12566         (output_toc): Likewise.
12567
12568         * config/pa/pa.c (pa_init_machine_status): Likewise.
12569         (get_deferred_plabel): Likewise.
12570
12571         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12572
12573         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12574
12575         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12576
12577         * config/mep/mep.c (mep_init_machine_status): Likewise.
12578         (mep_note_pragma_flag): Likewise.
12579
12580         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12581
12582         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12583
12584         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12585
12586         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12587         (i386_pe_maybe_record_exported_symbol): Likewise.
12588
12589         * config/i386/i386.c (get_dllimport_decl): Likewise.
12590         (ix86_init_machine_status): Likewise.
12591         (assign_386_stack_local): Likewise.
12592
12593         * config/frv/frv.c (frv_init_machine_status): Likewise.
12594
12595         * config/darwin.c (machopic_indirection_name): Likewise.
12596
12597         * config/cris/cris.c (cris_init_machine_status): Likewise.
12598
12599         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12600
12601         * config/avr/avr.c (avr_init_machine_status): Likewise.
12602
12603         * config/arm/arm.c (arm_init_machine_status): Likewise.
12604
12605         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12606         (alpha_need_linkage): Likewise.
12607         (alpha_use_linkage): Likewise.
12608
12609         * cgraph.c (cgraph_allocate_node): Likewise.
12610         (cgraph_create_edge_1): Likewise.
12611         (cgraph_create_indirect_edge): Likewise.
12612         (cgraph_add_asm_node): Likewise.
12613
12614         * cfgrtl.c (init_rtl_bb_info): Likewise.
12615
12616         * cfgloop.c (alloc_loop): Likewise.
12617         (rescan_loop_exit): Likewise.
12618
12619         * cfg.c (init_flow): Likewise.
12620         (alloc_block): Likewise.
12621         (unchecked_make_edge): Likewise.
12622
12623         * c-parser.c (c_parse_init): Likewise.
12624         (c_parse_file): Likewise.
12625
12626         * c-decl.c (bind): Likewise.
12627         (record_inline_static): Likewise.
12628         (push_scope): Likewise.
12629         (make_label): Likewise.
12630         (lookup_label_for_goto): Likewise.
12631         (finish_struct): Likewise.
12632         (finish_enum): Likewise.
12633         (c_push_function_context): Likewise.
12634
12635         * bitmap.c (bitmap_element_allocate): Likewise.
12636         (bitmap_gc_alloc_stat): Likewise.
12637
12638         * alias.c (record_alias_subset): Likewise.
12639         (init_alias_analysis): Likewise.
12640
12641 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
12642
12643         * fold-const.c (fold_comparison): Remove redundant parenthesis.
12644         * tree-inline.c (expand_call_inline): Pass translated return value of
12645         cgraph_inline_failed_string to diagnostic function.
12646
12647 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
12648             Shujing Zhao  <pearly.zhao@oracle.com>
12649
12650         PR c/37724
12651         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
12652         implicit bad conversions is initialization.
12653         (error_init): Use gmsgid instead of msgid for argument name and change
12654         the call for error.
12655         (pedwarn_init): Use gmsgid instead of msgid for argument name and
12656         change the call for pedwarn.
12657         (warning_init): Use gmsgid instead of msgid for argument name and
12658         change the call for warning.
12659
12660 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
12661
12662         * config/mips/mips-protos.h (mips_print_operand): Delete.
12663         (mips_print_operand_address): Delete.
12664         * config/mips/mips.h (mips_print_operand_punct): Delete.
12665         (PRINT_OPERAND): Delete.
12666         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12667         (PRINT_OPERAND_ADDRESS): Delete.
12668         * config/mips/mips.c (mips_print_operand_punct): Make static.
12669         (mips_print_operand_address): Make static.
12670         (mips_print_operand): Make static.  Call
12671         mips_print_operand_punct_valid_p.
12672         (mips_print_operand_punct_valid_p): New function.
12673         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12674         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12675
12676 2010-06-07  Jan Hubicka  <jh@suse.cz>
12677
12678         PR middle-end/44454
12679         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
12680         are allocated.
12681
12682 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12683
12684         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
12685         name of RECORD.
12686
12687 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12688
12689         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12690         attributes): Document gas.
12691
12692 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
12693
12694         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
12695         <TYPE_LEA>: Split instruction.
12696         <default>: Remove alternative 2 handling.
12697         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
12698         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
12699         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
12700
12701         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
12702         (ashift_zext lea splitter): Use DImode for multiplication.
12703
12704         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
12705         to generate addition.
12706
12707 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
12708
12709         * common.opt (fira-verbose): Use Var.
12710         (fpcc-struct-return): Use Init instead of VarExists.
12711         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
12712         toplev.c.
12713         * flags.h (flag_signed_char, flag_short_enums,
12714         flag_pcc_struct_return, flag_ira_verbose,
12715         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
12716         * toplev.c (flag_detailed_statistics, flag_signed_char,
12717         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
12718         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
12719         * toplev.h (flag_crossjumping, flag_if_conversion,
12720         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
12721         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
12722         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
12723         flag_cprop_registers, time_report, flag_ira_loop_pressure,
12724         flag_ira_coalesce, flag_ira_move_spills,
12725         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
12726
12727 2010-06-07  Jan Hubicka  <jh@suse.cz>
12728
12729         * df-core.c (df_analyze_problem): Do verification after allocation.
12730
12731         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
12732         (df_lr_alloc): Initialize problem data; move bitmaps to
12733         lr_bitmaps obstack.
12734         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
12735         (df_lr_verify_solution_start): Do not initialize problem data;
12736         allocate bitmaps in lr_bitmaps.
12737         (df_lr_verify_solution_end): Do not free problem data.
12738
12739 2010-06-07  Jan Hubicka  <jh@suse.cz>
12740
12741         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
12742         if caller is noreturn.
12743         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
12744         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
12745         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
12746         * ipa-pure-const.c (check_decl): Add IPA parameter.
12747         (state_from_flags): New function.
12748         (better_state, worse_state): New functions.
12749         (check_call): When in IPA mode, do not care about callees.
12750         (check_load, check_store): Update.
12751         (check_ipa_load, check_ipa_store): New.
12752         (check_stmt): When in IPA mode, use IPA checkers.
12753         (analyze_function): Use state_from_flags.
12754         (propagate): Check indirect edges and references.
12755
12756 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
12757
12758         PR rtl-optimization/44404
12759         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
12760         of count_occurrences to see if it's safe to modify mem_insn.
12761
12762 2010-06-07  Richard Guenther  <rguenther@suse.de>
12763
12764         * gimplify.c (gimplify_cleanup_point_expr): For empty body
12765         and EH-only cleanup drop the cleanup instead of inserting it
12766         unconditionally.
12767
12768 2010-06-07  Ira Rosen  <irar@il.ibm.com>
12769
12770         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
12771         documentation.
12772         * targhooks.c (default_builtin_vectorization_cost): New function.
12773         * targhooks.h (default_builtin_vectorization_cost): Declare.
12774         * target.h (enum vect_cost_for_stmt): Define.
12775         (builtin_vectorization_cost): Change argument and comment.
12776         * tree-vectorizer.h: Remove cost model macros.
12777         * tree-vect-loop.c: Include target.h.
12778         (vect_get_cost): New function.
12779         (vect_estimate_min_profitable_iters): Replace cost model macros with
12780         calls to vect_get_cost.
12781         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
12782         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
12783         default implementation.
12784         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
12785         calls to target hook builtin_vectorization_cost.
12786         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
12787         Likewise.
12788         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
12789         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
12790         implementation to return costs.
12791         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12792         * config/spu/spu.h: Remove vectorizer cost model macros.
12793         * config/i386/i386.h: Likewise.
12794         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
12795         a call to target hook builtin_vectorization_cost.
12796
12797 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
12798
12799         PR target/44319
12800         * config/i386/i386.c (override_options): Turn zee pass on for level 2
12801         and above and defer till target is known.
12802         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
12803         turn off otherwise.
12804
12805 2010-05-25  Jan Hubicka  <jh@suse.cz>
12806
12807         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
12808         (df_compact_blocks): Likewise.
12809         * df.h (struct df): Turn hardware_regs_used,
12810         regular_block_artificial_uses, eh_block_artificial_uses,
12811         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
12812         bitmap_head.
12813         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
12814         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
12815         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
12816         df_scan_blocks, df_insn_delete, df_insn_rescan,
12817         df_insn_rescan_debug_internal, df_insn_rescan_all,
12818         df_process_deferred_rescans, df_process_deferred_rescans,
12819         df_notes_rescan, df_get_call_refs, df_get_call_refs,
12820         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
12821         df_record_entry_block_defs, df_record_exit_block_uses,
12822         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
12823         df_scan_verify): Update.
12824
12825 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12826
12827         PR c++/44188
12828         * c-common.c (is_typedef_decl): Move this definition ...
12829         * tree.c (is_typedef_decl): ... here.
12830         (typdef_variant_p): Move definition here from cp/tree.c.
12831         * c-common.h (is_typedef_decl): Move this declaration ...
12832         * tree.h (is_typedef_decl): ... here.
12833         (typedef_variant_p): Move declaration here from cp/cp-tree.h
12834         * dwarf2out.c (is_naming_typedef_decl): New function.
12835         (gen_tagged_type_die): Split out of ...
12836         (gen_type_die_with_usage): ... this function. When an anonymous
12837         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12838         is emitted for the typedef.
12839         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12840         anonymous tagged types.
12841
12842 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12843
12844         PR c/20000
12845         * c-decl.c (grokdeclarator): Delete warning.
12846
12847 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12848
12849         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
12850         newly built CALL_EXPR.
12851         * tree-profile.c (tree_profiling): Don't profile functions produced
12852         for built-in stuff.
12853
12854 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
12855
12856         PR bootstrap/44427
12857         PR bootstrap/44428
12858         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
12859         endianness-independent.
12860
12861 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
12862
12863         * c-common.c: Move to c-family/.
12864         * c-common.def: Likewise.
12865         * c-common.h: Likewise.
12866         * c-cppbuiltin.c: Likewise.
12867         * c-dump.c: Likewise.
12868         * c-format.c: Likewise.
12869         * c-format.h : Likewise.
12870         * c-gimplify.c: Likewise.
12871         * c-lex.c: Likewise.
12872         * c-omp.c: Likewise.
12873         * c.opt: Likewise.
12874         * c-opts.c: Likewise.
12875         * c-pch.c: Likewise.
12876         * c-ppoutput.c: Likewise.
12877         * c-pragma.c: Likewise.
12878         * c-pragma.h: Likewise.
12879         * c-pretty-print.c: Likewise.
12880         * c-pretty-print.h: Likewise.
12881         * c-semantics.c: Likewise.
12882         * stub-objc.c: Likewise.
12883
12884         * gengtype.c (get_file_langdir): Special-case files in c-family/.
12885         (get_output_file_with_visibility): Fix name for c-common.h.
12886         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
12887
12888         * c-tree.h: Update include path for moved files.
12889         * c-lang.c: Likewise.
12890         * c-lang.h: Likewise.
12891         * c-parser.c: Likewise.
12892         * c-convert.c: Likewise.
12893         * c-decl.c: Likewise.
12894         * c-objc-common.c: Likewise.
12895         * configure.ac: Make sure c-family/ exists in the build directory.
12896         * configure: Regenerate.
12897         * Makefile.in: Update paths for moved files.  Regroup files per
12898         location and update dependencies.  Move generated_files down after
12899         ALL_GTFILES_H.
12900
12901         * config/spu/spu-c.c: Update paths for moved files.
12902         * config/mep/mep-pragma.c: Likewise.
12903         * config/darwin-c.c: Likewise.
12904         * config/i386/msformat-c.c: Likewise.
12905         * config/i386/i386-c.c: Likewise.
12906         * config/avr/avr-c.c: Likewise.
12907         * config/sol2-c.c: Likewise.
12908         * config/ia64/ia64-c.c: Likewise.
12909         * config/rs6000/rs6000-c.c: Likewise.
12910         * config/arm/arm.c: Likewise.
12911         * config/arm/arm-c.c: Likewise.
12912         * config/h8300/h8300.c: Likewise.
12913         * config/v850/v850-c.c: Likewise.
12914
12915         * config/t-darwin: Fix dependencies for moved files.
12916         * config/t-sol2: Fix dependencies for moved files.
12917         * config/mep/t-mep: Fix dependencies for moved files.
12918         * config/ia64/t-ia64: Fix dependencies for moved files.
12919         * config/rs6000/t-rs6000: Fix dependencies for moved files.
12920         * config/v850/t-v850: Fix dependencies for moved files.
12921         * config/v850/t-v850e: Fix dependencies for moved files.
12922
12923         * config/m32c/m32c-pragma.c
12924
12925         * po/exgettext: Look in c-family/ also.
12926
12927 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
12928
12929         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
12930         (mark_control_dependent_edges_necessary): Call it instead of marking
12931         the last statement manually.
12932         (propagate_necessity): Likewise.
12933
12934 2010-06-05  Jan Hubicka  <jh@suse.cz>
12935
12936         * basic-block.h (compute_dominance_frontiers): Updated.
12937         (compute_idf): Likewise.
12938
12939         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
12940         for dominance frontiers.
12941         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
12942         (insert_updated_phi_nodes_for): Likewise.
12943         (update_ssa): Likewise.
12944         * cfganal.c (compute_dominance_frontiers_1): Likewise.
12945         (compute_dominance_frontiers): Likewise.
12946         (compute_idf): Likewise.
12947         * df-problems.c (df_md_local_compute): Likewise.
12948
12949 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
12950
12951         * target.h (struct gcc_target): Add memory_move_cost field.
12952         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
12953         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
12954         * targhooks.c (default_memory_move_cost): New function.
12955         * targhooks.h (default_memory_move_cost): Declare function.
12956         * reload.h (memory_move_cost): Declare.
12957         (memory_move_secondary_cost): Change type of 'in' argument to bool.
12958         * reginfo.c (memory_move_cost): New function.
12959         (memory_move_secondary_cost): Change type of 'in' argument to bool.
12960         * ira.h (ira_memory_move_cost): Update comment.
12961         * ira.c (ira_memory_move_cost): Update comment.
12962         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
12963         with memory_move_cost.
12964         * postreload.c (reload_cse_simplify_set): (Ditto.).
12965         * reload1.c (choose_reload_regs): (Ditto.).
12966         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
12967         (MEMORY_MOVE_COST):  Revise documentation.
12968
12969         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12970         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12971         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
12972         type of 'in' argument to bool.
12973         (TARGET_MEMORY_MOVE_COST): Define.
12974
12975 2010-06-05  Jan Hubicka  <jh@suse.cz>
12976
12977         * ipa-pure-const.c (propagate): Fix typo in handling of functions
12978         that cannot return.  Be more careful when merging the results with
12979         previously known ones.
12980
12981 2010-06-05  Matthias Klose  <doko@ubuntu.com>
12982
12983         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
12984         function to add the -iplugindir option.
12985         (find_plugindir_spec_function): Add new declaration and function.
12986         (static_spec_func): Use it for "find-plugindir".
12987
12988 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
12989
12990         PR c++/44361
12991         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
12992         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
12993         statement expression.
12994
12995 2010-06-05  Jan Hubicka  <jh@suse.cz>
12996
12997         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
12998         (df_rd_problem_data): Convert sparse_invalidated_by_call,
12999         dense_invalidated_by_call to bitmap head.
13000         (df_rd_alloc, df_rd_bb_local_compute_process_def,
13001         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
13002         df_rd_start_dump, df_lr_verify_transfer_functions,
13003         df_live_verify_transfer_functions, df_chain_create_bb,
13004         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
13005         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
13006         df_simulate_one_insn_forwards, df_md_alloc,
13007         df_md_bb_local_compute_process_def,
13008         df_md_bb_local_compute_process_def, df_md_local_compute,
13009         df_md_transfer_function df_md_free): Update.
13010
13011 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
13012
13013         PR c/44322
13014         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
13015         target type for ADDR_EXPR; require no changes to qualifiers except
13016         for function types.
13017         * c-tree.h (c_build_type_variant): Remove.
13018
13019 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13020
13021         * genautomata.c (get_excl_set): Do work per element, not per char.
13022         (check_presence_pattern_sets): Similar.
13023         (check_absence_pattern_sets): Similar.
13024
13025 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13026
13027         * genautomata.c (curr_state_pass_num): Delete.
13028         (min_issue_delay_pass_states): Delete.
13029         (min_issue_delay): Delete.
13030         (initiate_min_issue_delay_pass_states): Delete.
13031         (output_min_issue_delay_table): Compute min_issue_delay_vect
13032         using a breadth-first search variant.
13033         (output_tables): Don't call initiate_min_issue_delay_pass_states.
13034
13035 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13036
13037         PR boostrap/44421
13038         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
13039         (df_byte_lr_bb_local_compute): Likewise.
13040
13041 2010-06-03  Jason Merrill  <jason@redhat.com>
13042
13043         Implement noexcept operator (5.3.7)
13044         * c-common.c (c_common_reswords): Add noexcept.
13045         * c-common.h (enum rid): Add RID_NOEXCEPT.
13046
13047 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
13048
13049         * config/darwin-driver.c (darwin_default_min_version): Use
13050         GCC-specific formats in diagnostics.
13051         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
13052         diagnostics.
13053         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
13054         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
13055         eval_spec_function, handle_braces, process_brace_body, main,
13056         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
13057         getenv_spec_function, compare_version_strings,
13058         version_compare_spec_function): Use GCC-specific formats in
13059         diagnostics.
13060
13061 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13062
13063         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
13064         that operand 0 and operand 1 are equal.
13065         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
13066         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
13067         and operand 1 are equal.
13068         <default>: Ditto.  Remove ??? comment.
13069         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
13070         and operand 1 are equal.
13071         <default>: Ditto.  Remove ??? comment.
13072         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
13073         are equal.
13074         (*add<mode>_4) <default>: Ditto.
13075         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
13076
13077 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
13078
13079         * config/i386/i386-protos.h (ix86_print_operand): Declare.
13080         * config/i386/i386.c (ix86_print_operand): Make non-static.
13081         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
13082         * output.h (output_operand): Declare.
13083         * final.c (output_operand): Make non-static.
13084
13085 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
13086
13087         PR rtl-optimization/44013
13088         * sched-deps.c (add_dependence_list_and_free): Don't free lists
13089         when processing debug insns.
13090
13091         PR debug/41371
13092         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
13093         recursing.  Check that recursion is bounded.  Rename inner var
13094         to avoid hiding incoming argument.
13095
13096 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13097
13098         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
13099         operands[2] == 255.
13100         (*addqi_3): Ditto.
13101         (*addqi_4): Ditto.
13102         (*addqi_5): Ditto.
13103         (*addqi_ext_1_rex64): Ditto.
13104         (*addqi_ext_1): Ditto.
13105
13106         (*addqi_4): Check for incdec_operand in QImode.
13107
13108         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
13109         using SWI mode iterator.
13110         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
13111         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
13112         mode iterator.
13113         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
13114         using SWI mode iterator.
13115
13116 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13117
13118         PR c/25880
13119         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
13120         * c-format.c (gcc_diag_flag_specs): Add hash.
13121         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
13122         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
13123         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
13124         pp_c_cv_qualifiers. Handle qualifiers spelling here.
13125         (pp_c_type_qualifier_list): Call the function above.
13126         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
13127         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
13128         (WARN_FOR_QUALIFIERS): New macro.
13129         (convert_for_assignment): Use it.
13130
13131 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
13132
13133         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
13134
13135 2010-06-04  Jan Hubicka  <jh@suse.cz>
13136
13137         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
13138         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
13139         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
13140         DF_BYTE_LR_OUT): Update for embedded bitmaps.
13141         * fwprop.c (single_def_use_enter_block): Likewise.
13142         * ddg.c (create_ddg_dep_from_intra_loop_link,
13143         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
13144         * loop-iv.c (latch_dominating_def): Likewise.
13145         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
13146         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
13147         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
13148         df_rd_transfer_function, df_rd_top_dump,
13149         df_rd_bottom_dump): Update.
13150         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
13151         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
13152         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
13153         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
13154         df_lr_verify_solution_start, df_lr_verify_solution_end,
13155         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
13156         df_live_free_bb_info, df_live_alloc, df_live_reset,
13157         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
13158         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
13159         df_live_verify_solution_start, df_live_verify_solution_end,
13160         df_live_verify_transfer_functions, df_chain_create_bb,
13161         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
13162         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13163         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13164         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
13165         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
13166         df_byte_lr_transfer_function, df_byte_lr_top_dump,
13167         df_byte_lr_bottom_dump, df_create_unused_note,
13168         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
13169         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
13170         df_md_transfer_function, df_md_init, df_md_confluence_0,
13171         df_md_confluence_n,
13172         df_md_top_dump, df_md_bottom_dump): Update.
13173         (struct df_lr_problem_data): Embedd bitmap headers.
13174
13175 2010-06-04  Jan Hubicka  <jh@suse.cz>
13176
13177         * dce.c (dce_process_block): Do not re-scan already marked
13178         instructions.
13179
13180 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
13181
13182         PR rtl-optimization/39871
13183         PR rtl-optimization/40615
13184         PR rtl-optimization/42500
13185         PR rtl-optimization/42502
13186         * ira.c (init_reg_equiv_memory_loc: New function.
13187         (ira): Call it twice.
13188         * reload.h (calculate_elim_costs_all_insns): Declare.
13189         * ira-costs.c: Include "reload.h".
13190         (regno_equiv_gains): New static variable.
13191         (init_costs): Allocate it.
13192         (finish_costs): Free it.
13193         (ira_costs): Call calculate_elim_costs_all_insns.
13194         (find_costs_and_classes): Take estimated elimination costs
13195         into account.
13196         (ira_adjust_equiv_reg_cost): New function.
13197         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
13198         * reload1.c (init_eliminable_invariants, free_reg_equiv,
13199         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
13200         (elim_bb): New static variable.
13201         (reload): Move code out of here into init_eliminable_invariants and
13202         free_reg_equiv.  Call them.
13203         (calculate_elim_costs_all_insns): New function.
13204         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
13205         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
13206         but call note_reg_elim_costly if we turned a valid memory address
13207         into an invalid one.
13208         * Makefile.in (ira-costs.o): Depend on reload.h.
13209
13210 2010-06-04  Julian Brown  <julian@codesourcery.com>
13211
13212         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
13213         for pool ranges.
13214
13215 2010-06-04  Richard Guenther  <rguenther@suse.de>
13216
13217         PR lto/41584
13218         * cgraph.h (struct varpool_node): Add lto_file_data field.
13219         * lto-cgraph.c (input_varpool_node): Initialize it.
13220
13221 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13222
13223         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
13224         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
13225         predicate in "type" attribute calculation.
13226         (*addsi_1_zext): Ditto.
13227         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
13228         (*addsi_2_zext): Ditto.
13229         (*add<mode>_3): Ditto.
13230         (*addsi_3_zext): Ditto.
13231         (*add<mode>_5): Ditto.
13232
13233 2010-06-03  Jan Hubicka  <jh@suse.cz>
13234
13235         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
13236         of bitmap_bit_p.
13237         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13238
13239 2010-06-03  Jan Hubicka  <jh@suse.cz>
13240
13241         * df-problems.c (df_create_unused_note, df_note_bb_compute):
13242         micro-optimize the checks when to add new note.
13243
13244 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
13245
13246         * final.c (output_asm_insn): Call
13247         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
13248         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
13249         (output_address): Call targetm.asm_out.print_operand_address.
13250         Update comments.
13251         * target.h (struct gcc_target): Add print_operand,
13252         print_operand_address, and print_operand_punct_valid_p fields.
13253         * targhooks.h (default_print_operand): Declare.
13254         (default_print_operand_address): Declare.
13255         (default_print_operand_punct_valid_p): Declare.
13256         * targhooks.c (default_print_operand): Define.
13257         (default_print_operand_address): Define.
13258         (default_print_operand_punct_valid_p): Define.
13259         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
13260         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
13261         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
13262         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
13263         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
13264         * vmsdbgout.c (addr_const_to_string): Update comment.
13265         * config/i386/i386.c (print_operand): Rename to...
13266         (ix86_print_operand): ...this.  Make static.
13267         (print_operand_address): Rename to...
13268         (ix86_print_operand_address): ...this.  Make static.  Call
13269         ix86_print_operand instead of PRINT_OPERAND.
13270         (ix86_print_operand_punct_valid_p): New function.
13271         (TARGET_PRINT_OPERAND): Define.
13272         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13273         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13274         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
13275         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13276         (PRINT_OPERAND): Delete.
13277         (PRINT_OPERAND_ADDRESS): Delete.
13278         * config/i386/i386-protos.h (print_operand): Delete prototype.
13279         (print_operand_address): Delete prototype.
13280
13281 2010-06-03  Richard Guenther  <rguenther@suse.de>
13282
13283         PR tree-optimization/44403
13284         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13285         Preserve pointer qualifiers.
13286         (vect_create_data_ref_ptr): Likewise.
13287
13288 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13289
13290         PR c++/44294
13291         * defaults.h (MAX_FIXED_MODE_SIZE): New.
13292
13293         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
13294
13295 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
13296
13297         PR debug/44375
13298         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
13299         return false if merging the bbs would lead to goto_locus
13300         location being lost from the IL.
13301
13302 2010-06-03  Jan Hubicka  <jh@suse.cz>
13303             Jakub Jelinek  <jakub@redhat.com>
13304
13305         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
13306         set->regs[i] is NULL or has just one entry.
13307
13308 2010-06-03  Jan Hubicka  <jh@suse.cz>
13309
13310         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
13311         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
13312
13313 2010-06-03  Paul Brook  <paul@codesourcery.com>
13314
13315         * config/arm/arm.c (FL_TUNE): Define.
13316         (arm_default_cpu, arm_cpu_select): Remove.
13317         (all_cores): Populate core field.
13318         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
13319         (arm_find_cpu): New function.
13320         (arm_handle_option): Lookup cpu/architecture names.
13321         (arm_override_options): Cleanup mcpu/march/mtune handling.
13322         (arm_file_start): Ditto.
13323
13324 2010-06-03  Alan Modra  <amodra@gmail.com>
13325
13326         PR target/44169
13327         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
13328         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
13329         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
13330         (rs6000_emit_load_toc_table): Likewise.
13331
13332 2010-06-02  Jan Hubicka  <jh@suse.cz>
13333
13334         * passes.c (init_optimization_passes): Put ipa reference
13335         after ipa pure-const.
13336
13337 2010-06-02  Jan Hubicka  <jh@suse.cz>
13338
13339         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
13340         calls_read_all and calls_write_all.
13341         (get_reference_optimization_summary): Fix formatting.
13342         (is_proper_for_analysis): Check that decl is not readonly.
13343         (propagate_bits): Check CONST/PURE/noreturn flags.
13344         (ipa_init): Move all_module_statics to optimization_summary_obstack.
13345         (analyze_function): Ignore indirect edges.
13346         (copy_global_bitmap): For all module statics, do nothing.
13347         (generate_summary): Do not print calls_read_all/calls_write_all.
13348         (read_write_all_from_decl): Take node as argument; check
13349         cgraph_node_cannot_return.
13350         (propagate): Reorganize read_all/write_all computation;
13351         check indirect edges; check ecf flags; use all_module_statics
13352         in the results; do not free all_module_statics.
13353         (stream_out_bitmap): Handle all_module_statics.
13354         (ipa_reference_write_optimization_summary): Likewise; use
13355         varpool/cgraph encoders to get boundaries.
13356         (ipa_reference_read_optimization_summary): Read in all_module_statics;
13357         use it when possible.
13358
13359 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13360
13361         PR target/44218
13362         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
13363         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
13364
13365         * doc/extend.texi (powerpc builtins): Document vec_recip,
13366         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
13367
13368         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
13369         (rs6000_emit_swrsqrt): Ditto.
13370         (rs6000_emit_swdivsf): Delete.
13371         (rs6000_emit_swdivdf): Ditto.
13372         (rs6000_emit_swrsqrtsf): Ditto.
13373
13374         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
13375         describe the reciprocal estimate support for each type.
13376         (recip_options): Map -mrecip=<opt> into option bits.
13377         (gen_2arg_fn_t): New typedef for binary rtx gen function.
13378         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
13379         reciprocal estimate instructions.
13380         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
13381         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
13382         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
13383         cost information if -mdebug=cost or -mdebug=reg.
13384         (rs6000_override_options): Set -mrecip-precision for power6, and
13385         power7 machines.  If -mvsx or -mdfp, enable various options that
13386         came in previous instruction set ISAs, unless the option was
13387         explicitly disabled by the command line option.  Parse
13388         -mrecip=<opt> options.
13389         (rs6000_builtin_vectorized_function): Add support for vectorizing
13390         the reciprocal estimate builtins and expansions.
13391         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
13392         (bdesc_2arg): Add reciprocal estimate builtins.
13393         (bdesc_1arg): Add reciprocal square root estimate builtins.
13394         (rs6000_expand_builtin): Rewrite to use a switch statement,
13395         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
13396         (rs6000_init_builtins): Create declarations for reciprocal
13397         estimate builtins.
13398         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
13399         sized, prefer traditional floating point registers, if integer
13400         vector types, prefer altivec registers.  Don't actually look at
13401         the memory address any more.
13402         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
13403         builtins.
13404         (rs6000_load_constant_and_splat): New helper function to load up
13405         the constant for reciprocal estimate instructions.
13406         (rs6000_emit_madd): New helper function for generating
13407         multiply/add type instructions, based on the current switches.
13408         (rs6000_emit_msub): Ditto.
13409         (rs6000_emit_mnsub): Ditto.
13410         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
13411         replace a divide with a reciprocal estimate and fixup, adding
13412         support for machines with high precision and vectors.
13413         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
13414         low precision machines.
13415         (rs6000_emit_swdiv): New common function to be called to replace a
13416         division with reciprocal estimate and fixup.
13417         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
13418         for double and vector types.  Add support for high precision machines.
13419
13420         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
13421         the reciprocal estimate instructions can be generated.
13422         (TARGET_FRE): Ditto.
13423         (TARGET_FRSQRTES): Ditto.
13424         (TARGET_FRSQRTE): Ditto.
13425         (RS6000_RECIP_*): New macros for reciprocal estimate support.
13426
13427         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
13428         square root estimate on vectors.
13429         (re<mode>2): New insn for reciprocal division estimate on vectors.
13430
13431         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
13432         New builtin.
13433         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
13434         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
13435         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
13436         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
13437         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
13438         (RS6000_BUILTIN_RSQRT): Ditto.
13439         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
13440         floating point builtin.
13441
13442         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13443         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
13444         __RECIP_PRECISION__ based on the command line switches.
13445         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
13446
13447         * config/rs6000/rs6000.opt (-mrecip): Document add support for
13448         replacing division instructions with reciprocal estimate and fixup.
13449         (-mrecip=<opt>): New option.
13450         (-mrecip-precision): Ditto.
13451
13452         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
13453         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
13454         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
13455         precision scalar.
13456
13457         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
13458         (UNSPEC_VREFP): Ditto.
13459         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
13460         conterparts with regard to support of -mno-fused-madd and -ffast-math.
13461         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
13462         reciprocal estimate instructions to be generated.
13463         (altivec_vrefp): Ditto.
13464
13465         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
13466         estimate support.
13467         (rreg): New mode attribute for reciprocal estimate support.
13468         (recip<mode>3): New insn for division using reciprocal estimate
13469         and fixup builtins.
13470         (divide define_split): New define_split to convert floating point
13471         division to use reciprocal estimate if the user used the
13472         appropriate options and the split is run when we can add new
13473         pseudo registers for the fixup.
13474         (rsqrt<mode>2): New insn for reciprocal square root support.
13475         (recipsf3): Move into recip<mode>3.
13476         (recipdf3): Ditto.
13477         (fres): Use TARGET_FRES.
13478         (rsqrtsf2): Move into rsqrt<mode>2.
13479         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
13480         (copysignsf3): Add support for VSX.
13481         (fred): Use TARGET_FRE.
13482         (fred_fpr): Ditto.
13483         (rsqrtdf_internal1): New function for frsqrte instruciton.
13484
13485         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
13486         (vec_rsqrt): Ditto.
13487
13488 2010-06-03  Richard Guenther  <rguenther@suse.de>
13489
13490         PR middle-end/44291
13491         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
13492         (set_user_assembler_libfunc): Likewise.
13493
13494 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13495
13496         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
13497         defaults.h.
13498         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
13499         to defaults.h
13500         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
13501         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
13502         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
13503         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
13504         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
13505         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
13506         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
13507         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
13508         * defaults.h: Updated for above mentioned changes.
13509
13510 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
13511
13512         * c-common.c: Remove header include of tm_p.h.
13513         * Makefile.in (c-common.o): Remove TM_P_H dependency.
13514
13515 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
13516
13517         * tree.h (struct tree_decl_map): New type.
13518         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
13519         (tree_decl_map_hash): New prototype.
13520         (debug_expr_for_decl, value_expr_for_decl): Change into
13521         tree_decl_map hashtab from tree_map.
13522         (init_ttree): Adjust initialization.
13523         (tree_decl_map_hash): New function.
13524         (decl_debug_expr_lookup, decl_debug_expr_insert,
13525         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
13526
13527 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13528
13529         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
13530         linker emulations.
13531         * configure: Regenerate.
13532         * config.in: Regenerate.
13533
13534         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
13535         (X86_64_EMULATION): Define.
13536         (TARGET_LD_EMULATION): Use them.
13537
13538         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
13539         (SPARC64_EMULATION): Define.
13540         (LINK_ARCH_SPEC): Use them.
13541
13542 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13543
13544         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
13545         smallest_mode_for_size for computing the precision types of new
13546         graphite IVs.  Do not call lang_hooks.types.type_for_size.
13547
13548 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13549
13550         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
13551         information.
13552         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
13553
13554 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13555
13556         PR middle-end/44363
13557         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
13558         return false instead.
13559
13560 2010-06-02  Jan Hubicka  <jh@suse.cz>
13561
13562         PR middle-end/44295
13563         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
13564         create new cgraph node to check callee.
13565
13566 2010-06-02  Richard Guenther  <rguenther@suse.de>
13567
13568         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
13569
13570 2010-06-02  Richard Guenther  <rguenther@suse.de>
13571
13572         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
13573         (lto_wrapper_cleanup): ... this.  Do not exit.
13574         (fatal): Adjust.  Exit here.
13575         (fatal_perror): Likewise.
13576         (fatal_signal): New function.
13577         (main): Set up signal handlers to cleanup temporary files.
13578         * Makefile.in (lto-wrapper.o): Adjust dependencies.
13579
13580 2010-06-02  Richard Guenther  <rguenther@suse.de>
13581
13582         PR tree-optimization/44377
13583         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
13584
13585 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13586
13587         * config/s390/2097.md (z10_fhex): Remove insn reservation.
13588         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
13589         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
13590         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
13591         instruction.
13592         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
13593
13594 2010-06-02  Jan Hubicka  <jh@suse.cz>
13595
13596         * bitmap.c (bitmap_descriptor): Add search_iter.
13597         (bitmap_find_bit): Increment it.
13598         (print_statistics): Print it.
13599
13600 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
13601
13602         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
13603         instead of gimple_build_call_vec.  Delete unnecessary local variable.
13604
13605 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13606
13607         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
13608         change from yesterday.
13609
13610 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13611
13612         * c-ada-spec.c: Clean up redundant includes.
13613
13614 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
13615
13616         * gimplify.c: Do not include except.h and optabs.h.
13617         (gimplify_body): Do not initialize RTL profiling.
13618         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
13619         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
13620         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
13621         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
13622         langhooks.h.
13623
13624         * tree-pretty-print.h: Include pretty-print.h.
13625         * gimple-pretty-print.h: Include pretty-print.h.
13626
13627         * tree-pretty-print.c: Do not include diagnostic.h.
13628         * tree-vrp.c: Likewise.
13629         * tree-tailcall.c: Likewise
13630         * tree-scalar-evolution.c: Likewise
13631         * tree-ssa-dse.c: Likewise
13632         * tree-chrec.c: Likewise
13633         * tree-ssa-sccvn.c: Likewise
13634         * tree-ssa-copyrename.c: Likewise
13635         * tree-nomudflap.c: Likewise
13636         * tree-call-cdce.c: Likewise
13637         * tree-stdarg.c: Likewise
13638         * tree-ssa-math-opts.c: Likewise
13639         * tree-nrv.c: Likewise
13640         * tree-ssa-sink.c: Likewise
13641         * tree-browser.c: Likewise
13642         * tree-ssa-loop-ivcanon.c: Likewise
13643         * tree-ssa-loop.c: Likewise
13644         * tree-parloops.c: Likewise
13645         * tree-ssa-address.c: Likewise
13646         * tree-ssa-ifcombine.c: Likewise
13647         * tree-if-conv.c: Likewise
13648         * tree-data-ref.c: Likewise
13649         * tree-affine.c: Likewise
13650         * tree-ssa-phiopt.c: Likewise
13651         * tree-ssa-coalesce.c: Likewise
13652         * tree-ssa-pre.c: Likewise
13653         * tree-ssa-live.c: Likewise
13654         * tree-predcom.c: Likewise
13655         * tree-ssa-forwprop.c: Likewise
13656         * tree-ssa-dce.c: Likewise
13657         * tree-ssa-ter.c: Likewise
13658         * tree-ssa-loop-prefetch.c: Likewise
13659         * tree-optimize.c: Likewise
13660         * tree-ssa-phiprop.c: Likewise
13661         * tree-object-size.c: Likewise
13662         * tree-outof-ssa.c: Likewise
13663         * tree-ssa-structalias.c: Likewise
13664         * tree-switch-conversion.c: Likewise
13665         * tree-ssa-reassoc.c: Likewise
13666         * tree-ssa-operands.c: Likewise
13667         * tree-vectorizer.c: Likewise
13668         * tree-vect-data-refs.c: Likewise
13669         * tree-vect-generic.c: Likewise
13670         * tree-vect-stmts.c: Likewise
13671         * tree-vect-patterns.c: Likewise
13672         * tree-vect-slp.c: Likewise
13673         * tree-vect-loop.c: Likewise
13674         * tree-ssa-loop-ivopts.c: Likewise
13675         * tree-ssa-loop-im.c: Likewise
13676         * tree-ssa-loop-niter.c: Likewise
13677         * tree-ssa-loop-unswitch.c: Likewise
13678         * tree-ssa-loop-manip.c: Likewise
13679         * tree-ssa-loop-ch.c: Likewise
13680         * tree-dump.c: Likewise
13681         * tree-complex.c: Likewise
13682
13683         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
13684         * tree-ssa-uninit.c: Likewise
13685         * tree-ssa-threadupdate.c: Likewise
13686         * tree-ssa-uncprop.c: Likewise
13687         * tree-ssa-ccp.c: Likewise
13688         * tree-ssa-dom.c: Likewise
13689         * tree-ssa-propagate.c: Likewise
13690         * tree-ssa-alias.c: Likewise
13691         * tree-dfa.c: Likewise
13692         * tree-cfgcleanup.c: Likewise
13693         * tree-sra.c: Likewise
13694         * tree-ssa-copy.c: Likewise
13695         * tree-ssa.c: Likewise
13696         * tree-profile.c: Likewise
13697         * tree-cfg.c: Likewise
13698         * tree-ssa-threadedge.c: Likewise
13699         * tree-vect-loop-manip.c: Likewise
13700
13701         * tree-inline.c: Do not include diagnostic.h and expr.h.
13702         Include rtl.h.
13703         (copy_decl_for_dup_finish): Do not use NULL_RTX.
13704
13705         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
13706         * tree-loop-distribution.c: Likewise.
13707
13708 2010-06-01  Jan Hubicka  <jh@suse.cz>
13709
13710         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
13711
13712 2010-06-01  Jan Hubicka  <jh@suse.cz>
13713
13714         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
13715         remove return value.
13716         (split_bbs_on_noreturn_calls) .... here.
13717         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
13718         * tree-flow.h (fixup_noreturn_call): New.
13719
13720 2010-06-01  Jan Hubicka  <jh@suse.cz>
13721
13722         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
13723
13724 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
13725
13726         * tree.h (build_nt_call_list): Delete.
13727         * tree.c (build_nt_call_list): Delete.
13728
13729 2010-06-01  Jan Hubicka  <jh@suse.cz>
13730
13731         * fwprop.c: Make emit-rtl.h include last.
13732         * rtlanal.c: Include emit-rtl.h.
13733         * genautomata.c: Output emit-rtl include into insn-automata.c
13734         * df-scan.c: Include emit-rtl.h.
13735         * haifa-sched.c: Indlude emit-rtl.h.
13736         * mode-switching.c: Indlude emit-rtl.h.
13737         * graph.c: Indlude emit-rtl.h.
13738         * sel-sched.c: Include emit-rtl.h.
13739         * sel-sched-ir.c: Include emit-rtl.h.
13740         * ira-build.c: Include emit-rtl.h.
13741         * emit-rtl.c (first_insn, last_insn): Remove defines.
13742         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
13743         Move to emit-rtl.h.
13744         (set_new_first_and_last_insn, get_last_insn_anywhere,
13745         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
13746         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
13747         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
13748         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
13749         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
13750         Use accessor functions.
13751         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13752          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13753         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13754         mem_expr_equal_p): Move here from rtl.h.
13755         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
13756         Move here from emit-rtl.c; make inline.
13757         * cfglayout.h: Include emit-rtl.h.
13758         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13759          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13760         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13761         mem_expr_equal_p, get_insns, set_first-insn,
13762         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
13763         * reg-stack.c: Include emit-rtl.h.
13764         * dce.c: Likewise.
13765
13766 2010-06-01  Jan Hubicka  <jh@suse.cz>
13767
13768         * cgraph.h (tree_function_versioning): Update prototype.
13769         (cgraph_function_versioning): Update prototype.
13770         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
13771         bitmap.
13772         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
13773         (cgraph_materialize_clone, save_inline_function_body): Update use of
13774         tree_function_versioning.
13775         * tree-inline.c (copy_bb): Look for previous copied block to link
13776         after; fix debug output.
13777         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
13778         (copy_body): Likewise.
13779         (expand_call_inline): Update use of copy_body.
13780         (tree_function_versioning): Update use of copy body; accept
13781         blocks_to_copy and new_entry.
13782
13783 2010-06-01  Jan Hubicka  <jh@suse.cz>
13784
13785         * gegenrtl.c: Remove unnecesary prototypes.
13786         (gendecl): Remove.
13787         (gendef): Produce static inline.
13788         (gencode): Remove.
13789         (main): Do not decode parameters; generate header only.
13790         * Makefile.in (genrtl.c): Remove.
13791
13792 2010-06-01  Jan Hubicka  <jh@suse.cz>
13793
13794         * tree-switch-conversion.c (build_one_array): Make it readonly.
13795
13796 2010-06-01  Richard Guenther  <rguenther@suse.de>
13797
13798         * optabs.c (init_optabs): Guard all accesses to reinit.
13799         * ipa-pure-const.c (propagate): Fix another typo.
13800         * opts.c (common_handle_option): Split assignment to bool.
13801         * c-opts.c (c_common_handle_option): Likewise.
13802
13803 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
13804             Matthew Gingell  <gingell@adacore.com>
13805
13806         * doc/invoke.texi: Mention -fdump-ada-spec.
13807         * tree-dump.c (dump_files): Add ada-spec.
13808         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
13809         * tree-pass.h (tree_dump_index): Add TDI_ada.
13810         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
13811         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
13812         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
13813         * c-decl.c: Include c-ada-spec.h.
13814         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
13815         functions.
13816         (c_write_global_declarations): Add handling of -fdump-ada-spec.
13817         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
13818         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
13819         * c-ada-spec.h, c-ada-spec.c: New files.
13820
13821 2010-06-01  Richard Guenther  <rguenther@suse.de>
13822
13823         PR lto/43853
13824         * ipa-pure-const.c (get_function_state): Hand back varying state
13825         if we do not have one.
13826         (has_function_state): New function.
13827         (duplicate_node_data): Adjust.
13828         (remove_node_data): Likewise.
13829         (pure_const_write_summary): Likewise.
13830         (propagate): Likewise.  Fix typo.
13831
13832 2010-06-01  Jan Hubicka  <jh@suse.cz>
13833
13834         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
13835         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
13836         (execute_all_ipa_transforms): Do not play with the states.
13837
13838 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13839
13840         * config/arm/t-linux-androideabi: New.
13841         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
13842
13843 2010-06-01  Jan Hubicka  <jh@suse.cz>
13844
13845         * tree-inline.c (estimate_num_insns): For stdarg functions look
13846         into call statement to count cost of argument passing.
13847
13848 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
13849
13850         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
13851         argument for fprintf.
13852         (ix86_output_addr_diff_elt): Likewise.
13853         (x86_function_profiler): Likewise.
13854         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
13855         (LPREFIX): Likewise.
13856         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
13857
13858 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13859
13860         PR target/44338
13861         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
13862         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
13863         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
13864         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
13865         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
13866         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
13867         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
13868         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
13869         TARGET_FUSED_MADD.
13870
13871 2010-05-31  Jan Hubicka  <jh@suse.cz>
13872
13873         * tree.h (tree_range_check_failed): Declare noreturn.
13874
13875 2010-05-31  Jan Hubicka  <jh@suse.cz>
13876
13877         * gimple.c (gimple_call_builtin_p): New function.
13878         * gimple.h (gimple_call_builtin_p): Declare.
13879         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
13880         to exit.
13881         (execute_warn_function_return): BUILT_IN_RETURN is return.
13882         (split_critical_edges): Return edges are not critical.
13883         (is_ctrl_altering_stmt): Builtin_in_return is altering.
13884         (gimple_verify_flow_info): Handle built_in_return.
13885         (execute_warn_function_return): Handle built_in_return.
13886         * ipa-pure-const.c (check_call): Ignore builtin_return.
13887
13888 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13889
13890         PR middle-end/44337
13891         * expr.c (expand_assignment): Don't store anything for out-of-bounds
13892         array accesses with non-MEM.
13893
13894         PR tree-optimization/44182
13895         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
13896         newly needs to end a bb is followed by debug stmts, instead return
13897         true from the function at the end.
13898         (maybe_move_debug_stmts_to_successors): New function.
13899         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
13900
13901 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
13902
13903         PR target/44161
13904         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
13905
13906 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
13907
13908         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
13909         for nested functions in non-optimized compilation.
13910
13911 2010-05-31  Richard Guenther  <rguenther@suse.de>
13912
13913         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
13914
13915 2010-05-30  Jan Hubicka  <jh@suse.cz>
13916
13917         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
13918
13919 2010-05-30  Richard Guenther  <rguenther@suse.de>
13920
13921         PR lto/42975
13922         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
13923         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
13924         no longer needed.
13925
13926 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
13927
13928         * config/darwin.c (output_objc_section_asm_op): Add comment.
13929         (name_needs_quotes): Add '_' to list of valid comment chars.
13930         (machopic_output_function_base_name): Remove unneeded quotes.
13931         (darwin_encode_section_info): Adjust asm whitespace.
13932         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
13933         (ASM_OUTPUT_LOCAL): Ditto.
13934         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
13935         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
13936         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
13937
13938 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
13939
13940         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
13941         RS6000_OUTPUT_BASENAME unconditionally.
13942         (rs6000_output_function_epilogue): Likewise.
13943
13944 2010-05-30  Jan Hubicka  <jh@suse.cz>
13945
13946         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
13947         nodes.
13948
13949 2010-05-30  Richard Guenther  <rguenther@suse.de>
13950
13951         * tree-cfg.c (verify_gimple_assign_single): Implement
13952         verification for COND_EXPR rhs.
13953
13954 2010-05-30  Jan Hubicka  <jh@suse.cz>
13955
13956         * cgraph.h (cgraph_dump_file): Declare.
13957         * cgraphunit.c (cgraph_dump_file): Export.
13958         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
13959
13960 2010-05-30  Jan Hubicka  <jh@suse.cz>
13961
13962         * dwarf2out.c (reference_to_unused,
13963         premark_types_used_by_global_vars_helper): Avoid creation of new
13964         varpool nodes.
13965
13966 2010-05-30  Jan Hubicka  <jh@suse.cz>
13967
13968         * cgraph.h (cgraph_node_cannot_return,
13969         cgraph_edge_cannot_lead_to_return): New functions.
13970         * cgraph.c (cgraph_node_cannot_return,
13971         cgraph_edge_cannot_lead_to_return): Use them.
13972         * ipa-pure-const.c (pure_const_names): New static var.
13973         (check_call): Handle calls not leading to return.
13974         (pure_const_read_summary): Dump info read.
13975         (propagate): Dump info about propagation process; ignore side effects
13976         of functions not leading to exit; fix handling of pure functions.
13977
13978 2010-05-30  Jan Hubicka  <jh@suse.cz>
13979
13980         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
13981         for tail call epilogues.
13982
13983 2010-05-30  Jan Hubicka  <jh@suse.cz>
13984
13985         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
13986         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
13987         dump files.
13988
13989 2010-05-29  Jan Hubicka  <jh@suse.cz>
13990
13991         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
13992         node; remove references in node we no longer keep in cgrpah but need
13993         body of.
13994
13995 2010-05-29  Jan Hubicka  <jh@suse.cz>
13996
13997         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
13998
13999 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14000
14001         PR target/44165
14002         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
14003
14004 2010-05-29  Jan Hubicka  <jh@suse.cz>
14005
14006         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
14007         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
14008         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
14009         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
14010         debug_names_replaced_by, debug_update_ssa): Likewise.
14011         * sbitmap.c (debug_sbitmap): Likewise.
14012         * genrecog.c (debug_decision, debug_decision_list): Likewise.
14013         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
14014         debug_tree_chain): Likewise.
14015         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
14016         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
14017         * optabs.c (debug_optab_libfuncs): Likewise.
14018         (verify_loop_closed_ssa): Likewise.
14019         * value-prof.c (verify_histograms): Likewise.
14020         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
14021         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
14022         * cfghooks.c (verify_flow_info): Likewise.
14023         * fold-const.c (debug_fold_checksum): Likewise.
14024         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
14025         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
14026         Likewise.
14027         * omega.c (debug_omega_problem): Likewise.
14028         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
14029         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
14030         * dominance.c (verify_dominators, debug_dominance_info,
14031         debug_dominance_tree): Likewise.
14032         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
14033         * df_regno_debug, df_ref_debug,
14034         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
14035         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
14036         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
14037         * sel-sched.c (debug_state): Likewise.
14038         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
14039         Likewise.
14040         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
14041         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
14042         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
14043         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
14044         Likewise.
14045         * c-pretty-print.c (debug_c_tree): Likewise.
14046         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
14047         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
14048         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
14049         * ebitmap.c (debug_ebitmap): Likewise.
14050         * function.c (debug_find_var_in_block_tree): Likewise.
14051         * print-rtl.c (debug_rtx): Likewise.
14052         (debug_rtx_count): Likewise.
14053         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
14054         * stor-layout.c (debug_rli): Likewise.
14055         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
14056         * tree-data-ref.c (debug_data_references,
14057         debug_data_dependence_relations, debug_data_reference,
14058         debug_data_dependence_relation, debug_rdg_vertex,
14059         debug_rdg_component, debug_rdg): Likewise.
14060         * tree-affine.c (debug_aff): Likewise.
14061         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
14062         Likewise.
14063         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
14064         * emit-rtl.c (verify_rtl_sharing): Likewise.
14065         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
14066         debug_value_expressions): Likewise.
14067         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
14068         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
14069         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
14070         * cfglayout.c (verify_insn_chain): Likewise.
14071         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
14072         debug_clast_stmt, debug_generated_program): Likewise.
14073         * ggc-page.c (debug_print_page_list): Likewise.
14074         * tree-ssa-ter.c (debug_ter): Likewise.
14075         * graphite-dependences.c (debug_pddr): Likewise.
14076         * sched-deps.c (debug_ds): Likewise.
14077         * tree-ssa.c (verify_ssa): Likewise.
14078         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
14079         debug_scattering_functions, debug_iteration_domains, debug_pdr,
14080         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
14081         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
14082         * tree-inline.c (debug_find_tree): Likewise.
14083         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
14084         debug_ppl_powerset_matrix): Likewise.
14085         * var-tracking.c (debug_dv): Likewise.
14086         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
14087         * cfgloop.c (verify_loop_structure): Likewise.
14088         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
14089         * c-common.c (verify_sequence_points): Likewise.
14090         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
14091         debug_candidates, debug_rgn_dependencies): Likewise.
14092         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
14093         * debug_constraint_graph, debug_solution_for_var,
14094         debug_sa_points_to_info): Likewise.
14095         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
14096         Likewie.
14097         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
14098         debug_loops, debug_loop, debug_loop_num): Likewise.
14099         * passes.c (debug_pass): Likewise.
14100         (dump_properties): Likewise; add cfglayout property.
14101         (debug_properties): Likewise.
14102         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
14103         * varpool.c (debug_varpool): Likewise.
14104         * regcprop.c (debug_value_data): Likewise.
14105         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
14106         debug_immediate_uses_for): Likewise.
14107
14108 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14109
14110         PR bootstrap/44315
14111         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
14112         Filter out insn-flags.h.
14113
14114 2010-05-29  Jan Hubicka  <jh@suse.cz>
14115
14116         * cgraph.h (struct varpool_node_set_def,
14117         struct cgraph_node_set_def): Remove unused AUX pointer.
14118         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
14119         VEC_empty macro.
14120
14121 2010-05-29  Jan Hubicka  <jh@suse.cz>
14122
14123         PR middle-end/44324
14124         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
14125
14126 2010-05-29  Richard Guenther  <rguenther@suse.de>
14127
14128         * lto-streamer.c (cached_bp): New global variable.
14129         (bitpack_create): Return the cached bitpack, if available.
14130         (bitpack_delete): Clear and cache the bitpack, if appropriate.
14131         (bp_pack_value): Remove redundant asserts.
14132
14133 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14134
14135         PR middle-end/44306
14136         * tree-if-conv.c (is_true_predicate): New.
14137         (is_predicated): Use is_true_predicate.
14138         (add_to_predicate_list): Same.  Do not use unshare_expr.
14139         (add_to_dst_predicate_list): Same.
14140
14141 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14142
14143         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
14144         field on edges.
14145         (predicate_bbs): Same.
14146         (clean_predicate_lists): Same.
14147         (find_phi_replacement_condition): Do not AND the predicate from
14148         edge->aux.
14149
14150 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14151
14152         PR bootstrap/44315
14153         * Makefile.in (build/gencondmd.o): Add a missing `\'.
14154
14155 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14156
14157         PR target/44261
14158         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
14159         (negdf2): Adjust expander pattern and use negdf2_slow.
14160         (negsf2): Likewise.
14161
14162 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
14163
14164         * basic-block.h (struct control_flow_graph): Move last_label_uid field
14165         up.
14166         * df.h (struct df_base_ref): Move regno field up.
14167         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
14168         * expr.h (struct separate_ops): Move location field up.
14169         * optabs.h (struct optab_d): Move libcall_basename field down.
14170         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
14171         * config/i386/i386.h (struct machine_function): Convert call_abi field
14172         into a bitfield.  Move cfa field to the end of the structure.
14173
14174 2010-05-29  Jan Hubicka  <jh@suse.cz>
14175
14176         * varpool.c (varpool_get_node): Fix lookup.
14177
14178 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14179
14180         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
14181         RTL specific prototypes with #ifdef RTX_CODE.
14182         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
14183         * config/spu/t-spu-elf: Fix dependencies.
14184
14185         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
14186
14187 2010-05-29  Mike Stump  <mikestump@comcast.net>
14188
14189         PR bootstrap/44315
14190         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
14191         TM_H when building to avoid dependency loops.
14192
14193 2010-05-29  Jan Hubicka  <jh@suse.cz>
14194
14195         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
14196         refs and body; not the whole node for masters of materialized clones.
14197
14198 2010-05-29  Mike Stump  <mikestump@comcast.net>
14199
14200         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
14201
14202 2010-05-29  Jan Hubicka  <jh@suse.cz>
14203
14204         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
14205         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
14206         use of clone_function_name.
14207         * cgraph.h (cgraph_create_virtual_clone,
14208         cgraph_function_versioning): update prototypes.
14209         (clone_function_name): Declare.
14210         * ipa-cp.c (ipcp_insert_stage): Update call of
14211         cgraph_create_virtual_clone.
14212         * omp-low.c (create_omp_child_function_name): Use
14213         cgraph_create_virtual_clone.
14214         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
14215         (cgraph_function_versioning): Take SUFFIX argument; produce new name
14216         and make decl local.
14217
14218 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14219
14220         * vec.h: Include statistics.h
14221         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
14222         with VEC_H.
14223
14224 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14225
14226         * c-lex.c: Do not include c-tree.h.
14227         * c-pretty-print.c: Likewise.
14228         * c-opts.c: Likewise.
14229         * c-gimplify.c: Likewise.
14230         * c-common.c: Likewise.
14231         * c-dump.c: Likewise.  Include c-common.h.
14232
14233 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14234
14235         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
14236         before including diagnostic-core.h.
14237         (c_cpp_error): New prototype moved from c-tree.h.
14238         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
14239         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
14240         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
14241         (c_cpp_error): Prototype moved to c-common.h.
14242         * Makefile.in: Update dependency for C_COMMON_H.
14243
14244 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14245
14246         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
14247         * c-common.c (c_register_addr_space): Remove here.
14248         * c-decl.c (c_register_addr_space): Re-add here.
14249
14250 2010-05-28  Mike Stump  <mikestump@comcast.net>
14251
14252         * config/darwin-c.c: Remove c-tree.h include.
14253
14254 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14255
14256         * gcc.c: Include diagnostic.h.
14257         (error_count): Remove.  All users changed to use errorcount.
14258         (programname): Remove.  All users changed to use progname.
14259         (fancy_abort, internal_error, fatal_error, error, warning, inform,
14260         fnotice): Remove.
14261         (execute): Don't include "Internal error" and bug reporting
14262         information in argument of internal_error call.
14263         (process_command): Don't increment error_count after calling
14264         perror_with_name.
14265         (input_filename): Rename to gcc_input_filename.  All users
14266         changed.
14267         (main): Call diagnostic_initialize.  Register delete_temp_files
14268         with atexit.  Use seen_error to test for errors.
14269         * gcc.h: Include diagnostic-core.h.
14270         (fatal_error, error, warning): Remove.
14271         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
14272         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
14273         (gcc.o): Update dependencies.
14274
14275 2010-05-28  Jeff Law  <law@redhat.com>
14276
14277         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
14278         functions.
14279         * ira.h (ira_bad_reload_regno): Declare
14280         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
14281
14282         * ira-color.c (update_curr_costs): Free updated hard reg costs.
14283         (ira_reassign_conflict_allocnos): Remove bogus asserts.
14284         (allocno_reload_assign): Likewise.
14285
14286 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
14287
14288         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
14289         build1_stat.
14290
14291 2010-05-28  Richard Guenther  <rguenther@suse.de>
14292
14293         PR lto/44312
14294         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
14295         Stream fixed-point constants mode.
14296         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
14297         and TYPE_PRECISION.
14298         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
14299         Stream fixed-point constants mode.
14300         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
14301         and TYPE_PRECISION.
14302
14303 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14304
14305         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
14306         only place it was called from.
14307         (number_of_latch_executions): Do not return chrec_dont_know when the
14308         may_be_zero is a runtime condition: instead, return a COND_EXPR
14309         including the may_be_zero condition.
14310         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
14311         of nb_iterations.
14312         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
14313         COND_EXPRs.
14314
14315 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14316
14317         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
14318         generate COND_EXPRs for degenerate_phi_result.
14319
14320 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14321
14322         PR middle-end/44293
14323         * tree-if-conv.c (if_convertible_loop_p): Check the
14324         if-convertibility of phi nodes in non predicated BBs.
14325
14326 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14327
14328         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
14329
14330 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14331
14332         PR driver/15303
14333         * gcc.c (inform, warning, inform): New functions.
14334         (fatal_ice): Rename to internal_error; change cmsgid parameter to
14335         gmsgid.  All callers changed.
14336         (notice): Rename to fnotice; add parameter fp.  All callers changed.
14337         (fatal_error): Rename to fatal_signal.  All users changed.
14338         (fatal): Rename to fatal_error; change cmsgid parameter to
14339         gmsgid.  All callers changed.
14340         (process_command): Use warning instead of error for warnings.
14341         (end_going_arg): Don't use _() around argument of error.
14342         (do_spec_1): Use inform for message from %n specs.  Use warning
14343         instead of error for warnings.
14344         (main): Use inform for comparison messages.  Use warning for
14345         message about unused linker input.
14346         (error): Increment error_count.  Print "error: ".
14347         * gcc.h (fatal): Change to fatal_error.
14348         (warning): Declare.
14349         * config/darwin-driver.c (darwin_default_min_version): Use warning
14350         instead of fprintf for warnings.
14351         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
14352
14353 2010-05-28  Julian Brown  <julian@codesourcery.com>
14354
14355         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
14356         (*thumb2_addsi3_compare0_scratch): New.
14357         * config/arm/constraints.md (Pv): New.
14358         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
14359         for ARM mode only.
14360         (*addsi3_compare0_scratch): Likewise.
14361
14362 2010-05-28  Jan Hubicka  <jh@suse.cz>
14363
14364         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
14365         check.
14366         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
14367         only on local statics.
14368
14369 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
14370
14371         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
14372
14373 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14374
14375         PR bootstrap/44314
14376         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
14377         (OPTION_GLIBC): Define.
14378
14379 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14380
14381         PR debug/41048
14382         * dwarf2out.c (double_int_type_size_in_bits): New function.
14383         (round_up_to_align): Change first argument and return value to
14384         double_int.
14385         (field_byte_offset): Work internally on double_ints.
14386
14387         PR target/43636
14388         * builtins.c (expand_movstr): Use a temporary pseudo instead
14389         of target even when target is not NULL and not const0_rtx, but
14390         fails movstr predicate.
14391         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
14392
14393 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14394
14395         * final.c (rest_of_clean_state): Use %m in errors instead of
14396         strerror (errno).
14397         * gengtype.c (read_input_list, close_output_files): Use xstrerror
14398         instead of strerror.
14399         * toplev.c (process_options): Use %m in errors instead of strerror
14400         (errno).
14401         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
14402         (errno).
14403
14404 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
14405
14406         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
14407         (ix86_canonical_va_list_type): Make static.  Add declaration.
14408         (ix86_enum_va_list): Make static.  Reindent.
14409         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
14410         (ix86_canonical_va_list_type): Ditto.
14411         (ix86_enum_va_list): Ditto.
14412
14413 2010-05-28  Richard Guenther  <rguenther@suse.de>
14414
14415         * lto-wrapper.c (run_gcc): With -save-temps generate a
14416         user-visible ltrans filename.  Fixup ltrans unit numbering.
14417
14418 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
14419
14420         * c-common.c (c_common_nodes_and_builtins): Replace use
14421         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
14422         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
14423         to ix86_enum_va_list.
14424         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
14425         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
14426         (TARGET_ENUM_VA_LIST_P): Add hook description.
14427         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
14428         * target.h (gcc_target): Add enum_va_list hook.
14429
14430         PR bootstrap/44299
14431         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
14432         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
14433         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
14434
14435 2010-05-28  Alan Modra  <amodra@gmail.com>
14436
14437         PR target/44266
14438         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14439         emit_library_call machinery to set up __tls_get_addr calls.
14440
14441 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14442
14443         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
14444
14445 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
14446
14447         Revert fix for PR c++/44188
14448         * c-common.c (is_typedef_decl): Revert the moving of  this
14449         definition ...
14450         * tree.c (is_typedef_decl): ... here.
14451         (typdef_variant_p): Revert the moving of this  definition
14452         here from cp/tree.c.
14453         * c-common.h (is_typedef_decl): Revert the moving of this
14454         declaration ...
14455         * tree.h (is_typedef_decl): ... here.
14456         (typedef_variant_p): Revert the moving of this  declaration here
14457         from cp/cp-tree.h
14458         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
14459         (gen_tagged_type_die): Revert the splitting out of ...
14460         (gen_type_die_with_usage): ... this function. Revert the anonymous
14461         tagged type handling.
14462         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
14463         typedefs naming anonymous tagged types.
14464
14465 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14466
14467         * config/rs6000/rs6000-modes.def (PSImode): Delete.
14468
14469 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14470
14471         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
14472         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
14473         throughout.
14474         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
14475         "xer" to "ca".
14476         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
14477         XER_REGS to CA_REGS throughout.
14478         * config/rs6000/rs6000.h: Same.
14479         (ADDITIONAL_REGISTER_NAMES): Add "xer".
14480         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
14481         that mode_iterator "P" is the size for arithmetic carries as well.
14482         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
14483
14484 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14485
14486         PR bootstrap/44255
14487         * combine.c (struct rtx_subst_pair): Define unconditionally.
14488         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
14489         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
14490         Call make_compound_operation on pair->to.
14491         (propagate_for_debug): Don't call make_compound_operation here.
14492         Always use simplify_replace_fn_rtx.
14493
14494 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
14495
14496         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
14497         * config/xtensa/xtensa.c (override_options): Check
14498           TARGET_FORCE_NO_PIC and set flag_pic.
14499         * config/xtensa/xtensa.opt: Document -mforce-no-pic
14500
14501 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14502
14503         PR bootstrap/44299
14504         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
14505         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
14506
14507 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14508
14509         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
14510         toplev.h.
14511         * diagnostic.c: Don't include toplev.h.
14512         (progname): Define.  Moved from toplev.c.
14513         (seen_error): New function.
14514         * diagnostic.h: Include diagnostic-core.h.
14515         (diagnostic_t, emit_diagnostic): Don't declare here.
14516         * toplev.c (progname): Move to toplev.c.
14517         (emit_debug_global_declarations, compile_file, finalize,
14518         do_compile, toplev_main): Use seen_error.
14519         * toplev.h: Include diagnostic-core.h.
14520         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
14521         internal_error, warning, warning_at, error, error_n, error_at,
14522         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
14523         verbatim, fnotice, progname): Move to diagnostic-core.h.
14524         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
14525         (expand_builtin_expect): Use seen_error.
14526         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
14527         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
14528         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
14529         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
14530         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
14531         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
14532         errorcount for errors.
14533         * c-opts.c (c_common_finish): Use seen_error.
14534         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14535         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
14536         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
14537         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
14538         (get_coverage_counts): Use seen_error.
14539         * dwarf2out.c (dwarf2out_finish): Use seen_error.
14540         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
14541         gimplify_body): Use seen_error.
14542         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
14543         * ipa-pure-const.c (gate_pure_const): Use seen_error.
14544         * ipa-reference.c (gate_reference): Use seen_error.
14545         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
14546         * lambda-code.c: Include diagnostic-core.h instead of
14547         diagnostic.h.
14548         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14549         * lto-compress.c: Include diagnostic-core.h instead of
14550         diagnostic.h.
14551         * lto-section-in.c: Include diagnostic-core.h instead of
14552         diagnostic.h.
14553         * lto-streamer-out.c: Include diagnostic-core.h instead of
14554         diagnostic.h.
14555         * lto-streamer.c: Include diagnostic-core.h instead of
14556         diagnostic.h.
14557         (gate_lto_out): Use seen_error.
14558         * matrix-reorg.c: Include diagnostic-core.h instead of
14559         diagnostic.h.
14560         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
14561         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
14562         (gate_expand_omp, lower_omp_1): Use seen_error.
14563         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
14564         (rest_of_decl_compilation, rest_of_type_compilation,
14565         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
14566         * tree-cfg.c (label_to_block_fn): Use seen_error.
14567         * tree-inline.c (optimize_inline_calls): Use seen_error.
14568         * tree-mudflap.c (mudflap_finish_file): Use
14569         seen_error.
14570         * tree-optimize.c (gate_all_optimizations,
14571         gate_all_early_local_passes, gate_all_early_optimizations): Use
14572         seen_error.
14573         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
14574         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
14575         (varpool_remove_unreferenced_decls,
14576         varpool_assemble_pending_decls): Use seen_error.
14577         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
14578         (TOPLEV_H, DIAGNOSTIC_H): Update.
14579         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
14580         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
14581         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
14582         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
14583         coverage.o, lambda-code.o): Update dependencies.
14584
14585 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
14586
14587         PR c++/44188
14588         * c-common.c (is_typedef_decl): Move this definition ...
14589         * tree.c (is_typedef_decl): ... here.
14590         (typdef_variant_p): Move definition here from cp/tree.c.
14591         * c-common.h (is_typedef_decl): Move this declaration ...
14592         * tree.h (is_typedef_decl): ... here.
14593         (typedef_variant_p): Move declaration here from cp/cp-tree.h
14594         * dwarf2out.c (is_naming_typedef_decl): New function.
14595         (gen_tagged_type_die): Split out of ...
14596         (gen_type_die_with_usage): ... this function. When an anonymous
14597         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
14598         is emitted for the typedef.
14599         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
14600         anonymous tagged types.
14601
14602 2010-05-27  Jason Merrill  <jason@redhat.com>
14603
14604         * print-tree.c (debug_vec_tree): New fn.
14605         (print_vec_tree): New fn.
14606         * tree.h: Declare them.
14607         * gdbinit.in (pvt): New command.
14608
14609         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
14610
14611         * gdbinit.in (pdd): New command.
14612
14613 2010-05-27  Jan Hubicka  <jh@suse.cz>
14614
14615         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
14616         (update_caller_keys): Return early if there are no callers;
14617         only update fibheap when decresing the key.
14618         (update_callee_keys): Avoid recursion.
14619         (decide_inlining_of_small_functions): When badness does not match;
14620         re-insert into fibheap.
14621
14622 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
14623
14624         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
14625         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
14626         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
14627         (ALL_HOST_OBJS): Now a union of the above two.
14628         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
14629         all files in ALL_HOST_FRONTEND_OBJS.
14630         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
14631
14632         * c-common.c: Pretend to be a backend file by undefining
14633         IN_GCC_FRONTEND (still need rtl.h here).
14634
14635 2010-05-27  Jan Hubicka  <jh@suse.cz>
14636
14637         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
14638         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
14639
14640 2010-05-27  Jan Hubicka  <jh@suse.cz>
14641
14642         * sched-ebb.c: Rename struct deps to struct deps_desc.
14643         * ddg.c: Likewise.
14644         * sel-sched-ir.c: Likewise.
14645         * sched-deps.c: Likewise.
14646         * sched-int.h: Likewise.
14647         * sched-rgn.c: Likewise.
14648
14649 2010-05-27  Jon Beniston  <jon@beniston.com>
14650
14651         PR 43726
14652         * config/lm32/lm32.h: Remove definition of
14653         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
14654
14655 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14656
14657         PR lto/44230
14658         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
14659
14660 2010-05-27  Richard Guenther  <rguenther@suse.de>
14661
14662         PR tree-optimization/44284
14663         * tree-vect-stmts.c (vectorizable_assignment): Handle
14664         sign-changing conversions as simple copy.
14665
14666 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14667
14668         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
14669         Bionic C library.
14670         (__gthread_active_p): Check for pthread_create if compiling against
14671         Bionic C library.
14672
14673 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14674
14675         Support compilation for Android platform.  Reimplement -mandroid.
14676
14677         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
14678         (*android*): Set ANDROID_DEFAULT.
14679         (arm*-*-linux*): Include linux-android.h.
14680         (arm*-*-eabi*): Don't include previous -mandroid implementation.
14681         * config/arm/eabi.h: Remove, move Android-specific parts ...
14682         * config/linux-android.h: ... here.  New file.
14683         * config/arm/eabi.opt: Rename to ...
14684         * config/linux-android.opt: ... this.
14685         (mandroid): Allow -mno-android option.  Initialize based on
14686         ANDROID_DEFAULT.
14687         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
14688         Move logic to corresponding LINUX_TARGET_* macros.
14689         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
14690         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
14691         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
14692         Android definitions.
14693         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
14694         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
14695         Document.
14696
14697 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14698
14699         Add support for Bionic C library
14700
14701         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
14702         macro.
14703         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
14704         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
14705
14706         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
14707         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
14708         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
14709         to support multiple C libraries.  Handle Bionic.
14710         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
14711         (BIONIC_DYNAMIC_LINKER64): Define.
14712         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
14713         Update.
14714         (TARGET_HAS_SINCOS): Enable for Bionic.
14715
14716         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
14717         the last option specified on command line take effect.
14718         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
14719         (mbionic): New.
14720         (mglibc, muclibc): Update.
14721
14722         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
14723         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
14724         DEFAULT_LIBC.
14725
14726         * doc/invoke.texi (-mglibc, -muclibc): Update.
14727         (-mbionic): Document.
14728
14729 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14730
14731         * c-common.h (c_register_addr_space): Add prototype.
14732         (ADDR_SPACE_KEYWORD): Remove.
14733         * c-common.c (c_register_addr_space): New function.
14734         (c_addr_space_name): Reimplement.
14735         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
14736
14737         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
14738         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
14739
14740         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
14741         Remove TARGET_ADDR_SPACE_KEYWORDS.
14742
14743 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14744
14745         * input.c: New file.
14746         * input.h (main_input_filename): Move declaration to toplev.h.
14747         * toplev.c (input_location, line_table): Move to input.c
14748         * toplev.h (main_input_filename): Move declaration from input.h.
14749         * tree.c (expand_location): Move to input.c.
14750         * Makefile.in (OBJS-common): Add input.o.
14751         (input.o): Add dependencies.
14752
14753 2010-05-27  Richard Guenther  <rguenther@suse.de>
14754
14755         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
14756         for non-existant files.
14757         (fork_execute): Mark args_name file as deleted.
14758
14759 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14760
14761         PR bootstrp/44287
14762         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
14763         (narrow_signed_type): Likewise.
14764
14765 2010-05-26  Jan Hubicka  <jh@suse.cz>
14766
14767         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
14768         edge only when checking is enabled; check using former_clone_of;
14769         check inline clones too.
14770         (cgraph_materialize_clone): Record former_clone_of pointer.
14771         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
14772         combining redirections; dump args_to_skip bitmap
14773         (cgraph_materialize_all_clones): Do no redirection here.
14774         * ipa-inline.c (inline_transform): Do redirection here.
14775         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
14776         cheking only).
14777
14778 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14779
14780         * config/avr/avr-c.c: Do not include regs.h.
14781         Include cpplib.h for cpp_define and tree.h for c-common.h.
14782         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
14783         * config/avr/t-avr: Fix dependencies for avr-c.o.
14784
14785 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14786
14787         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
14788         string instead of SYMBOL_REF rtx.
14789         * rtl.h (set_stack_check_libfunc): Move prototype from here...
14790         * libfuncs.h: ...to here.  Adjust for explow.c change.
14791
14792 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14793
14794         * pretty-print.c: Don't include ggc.h.
14795         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
14796         (identifier_to_locale): Use them for allocation.
14797         * pretty-print.h (identifier_to_locale_alloc,
14798         identifier_to_locale_free): Declare.
14799         * toplev.c (alloc_for_identifier_to_locale): New.
14800         (general_init): Set identifier_to_locale_alloc and
14801         identifier_to_locale_free.
14802         * Makefile.in (pretty-print.o): Update dependencies.
14803
14804 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14805
14806         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
14807         pointer types if they have different alignment or mode.
14808
14809 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
14810
14811         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14812         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14813         * config/sparc/sparc-protos.h (function_value): Remove declaration.
14814         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
14815         sparc_function_value_regno_p): New functions.
14816         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14817         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14818         (function_value): Rename to...
14819         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
14820         argument to 'outgoing'.
14821         (function_arg_record_value, function_arg_union_value,
14822         function_arg_vector_value): Update comment.
14823
14824 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14825
14826         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
14827         (fde_needed_for_eh_p): New predicate.
14828         (output_call_frame_info): Use it throughout to decide whether FDEs
14829         are needed for EH purpose.
14830         (dwarf2out_begin_prologue): Reorder assignments.
14831
14832 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14833
14834         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
14835         special case loop->header.
14836         (is_predicated): New.
14837         (if_convertible_loop_p): Call it.
14838
14839 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14840
14841         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
14842         iterator in parameter.  Do not generate code during the analysis.
14843         (tree_if_convert_cond_stmt): Removed.
14844         (tree_if_convert_stmt): Removed.
14845         (predicate_bbs): New.
14846         (if_convertible_loop_p): Call predicate_bbs.
14847         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
14848         now contains all the analysis part.
14849
14850 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14851
14852         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
14853         statements in the analysis part.
14854         (tree_if_convert_stmt): Update comment.
14855         (remove_conditions_and_labels): New.
14856         (combine_blocks): Call remove_conditions_and_labels.
14857         (tree_if_conversion): Update comment.
14858
14859 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14860
14861         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
14862         than 2 predecessors or more than 2 successors.
14863
14864 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14865
14866         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
14867         of loops in which the data dependence analysis fails.
14868
14869 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14870
14871         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
14872         CDI_POST_DOMINATORS.
14873         (tree_if_conversion): Same.
14874
14875 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14876
14877         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
14878
14879 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14880
14881         * tree-if-conv.c: Update copyright years.  Fix comments.
14882         Fix indentation.
14883
14884 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
14885
14886         * builtin-types.def (BT_INT128): New primitive type.
14887         (BT_UINT128): Likewise.
14888         * c-common.c (c_common_r): Add __int128 keyword.
14889         (c_common_type_for_size): Handle __int128.
14890         (c_common_type_for_mode): Likewise.
14891         (c_common_signed_or_unsigned_type): Likewise.
14892         (c_common_nodes_and_builtins): Add builtin type
14893         if target supports 128-bit integer scalar.
14894         * c-common.h (enum rid): Add RID_INT128.
14895         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
14896         if target supports 128-bit integer scalar.
14897         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
14898         (finish_declspecs): Likewise.
14899         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
14900         (c_token_starts_declspecs): Likewise.
14901         (c_parser_declspecs): Likewise.
14902         (c_parser_attributes): Likewise.
14903         (c_parser_objc_selector): Likewise.
14904         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
14905         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
14906         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
14907         * tree.c (make_or_reuse_type): Likewise.
14908         (make_unsigned_type): Likewise.
14909         (build_common_tree_nodes_2): Likewise.
14910         * tree.h (enum integer_type_kind): Add itk_int128 and
14911         itk_unsigned_int128.
14912         (int128_integer_type_node): New define.
14913         (int128_unsigned_type_node): New define.
14914         * doc/extend.texi: Add documentation about __int128 type.
14915
14916 2010-05-26  Richard Guenther  <rguenther@suse.de>
14917
14918         * tree-ssa-sccvn.c (copy_nary): Adjust.
14919         (copy_phis): Rename to ...
14920         (copy_phi): ... this.  Adjust.
14921         (copy_references): Rename to ...
14922         (copy_reference): ... this.  Adjust.
14923         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
14924         result into the valid table.
14925
14926 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14927
14928         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
14929         insn-config.h, insn-codes.h, recog.h, and optabs.h.
14930
14931 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14932
14933         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
14934
14935 2010-05-26  Richard Guenther  <rguenther@suse.de>
14936
14937         * opts.c (common_handle_option): Handle OPT_Ofast.
14938
14939 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14940
14941         * diagnostic.c: Don't include opts.h.
14942         (permissive_error_option): Define.
14943         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
14944         for classify_diagnostic.  Don't use memset for
14945         classify_diagnostic.  Initialize new and recently added fields.
14946         (diagnostic_classify_diagnostic): Use context->n_opts instead of
14947         N_OPTS.
14948         (diagnostic_report_diagnostic): Pass context parameter to
14949         diagnostic_report_warnings_p.  Use option_enabled and option_name
14950         hooks from context.
14951         (emit_diagnostic): Use permissive_error_option.
14952         (permerror): Likewise.
14953         * diagnostic.h: Don't include options.h.
14954         (struct diagnostic_context): Add n_opts, opt_permissive,
14955         inhibit_warnings, warn_system_headers, option_enabled and
14956         option_name fields.  Change classify_diagnostic to a pointer.
14957         * opts-diagnostic.h: New file.
14958         * opts.c: Include opts-diagnostic.h.
14959         (common_handle_option): Set global_dc fields for -Wfatal-errors,
14960         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
14961         (option_name): New function.
14962         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
14963         (c_common_handle_option): Set global_dc->permissive for
14964         -fpermissive.
14965         * c-common.c (c_cpp_error): Save and restore
14966         global_dc->warn_system_headers, not variable warn_system_headers.
14967         * toplev.c: Include opts-diagnostic.h.
14968         (general_init): Update call to diagnostic_initialize.  Set
14969         global_dc->show_column, global_dc->option_enabled and
14970         global_dc->option_name.
14971         (process_options): Don't set global_dc fields here.
14972         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
14973         (diagnostic.o, opts.o, toplev.o): Update dependencies.
14974
14975 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14976
14977         * config/picochip/picochip.md (movsi): Split a movsi from a
14978         const after reload.
14979
14980 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14981
14982         * ggc-zone.c: Update copyright year.
14983         (poison_region): Mark memory for Valgrind as undefined before
14984         memset () call and inaccessible afterwards.
14985         (ggc_pch_total_size): Change type of i to int.
14986
14987 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14988
14989         * ggc-common.c (ggc_free_overhead): Allow empty slot.
14990
14991 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14992
14993         * ggc-common.c: Update copyright year.
14994         (ggc_rlimit_bound): Remove prototype.  Compile only if
14995         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
14996         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
14997         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
14998         (ggc_min_heapsize_heuristic): Likewise.
14999
15000 2010-05-26  Richard Guenther  <rguenther@suse.de>
15001
15002         PR rtl-optimization/44164
15003         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
15004         no-common access-path disambiguation.
15005         (indirect_ref_may_alias_decl_p): Adjust.
15006         (indirect_refs_may_alias_p): Likewise.
15007         (refs_may_alias_p_1): Likewise.
15008
15009 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15010
15011         * c-typeck.c: Do not include expr.h.
15012
15013 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15014
15015         * rtl.h (decl_default_tls_model): Move prototype from here...
15016         * output.h: ...to here.
15017         * c-decl.c: Do not include rtl.h.
15018         * c-pragma.c: Likewise.
15019         * c-parser.c: Likewise.
15020         * c-gimplify.c: Likewise.  And also not hard-reg-set.
15021         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
15022         FIXME note for it.  Add a FIXME note for expr.h.
15023         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
15024         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
15025         defined.
15026
15027 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
15028
15029         PR target/44199
15030         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
15031         or total_size is larger than red zone size for non-V4 ABI, emit a
15032         stack_tie resp. frame_tie insn before stack pointer restore.
15033         * config/rs6000/rs6000.md (frame_tie): New insn.
15034
15035 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15036
15037         * function.h (struct function): Add can_throw_non_call_exceptions bit.
15038         * lto-streamer-in.c (input_function): Stream it in.
15039         * lto-streamer-out.c (output_function): Stream it out.
15040         * function.c (allocate_struct_function): Set it.
15041         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
15042         for flag_non_call_exceptions.
15043         * cfgbuild.c (control_flow_insn_p): Likewise.
15044         (make_edges): Likewise.
15045         * cfgexpand.c (expand_stack_alignment): Likewise.
15046         * combine.c (distribute_notes): Likewise.
15047         * cse.c (cse_extended_basic_block): Likewise.
15048         * except.c (insn_could_throw_p): Likewise.
15049         * gcse.c (simple_mem): Likewise.
15050         * ipa-pure-const.c (check_call): Likewise.
15051         (check_stmt ): Likewise.
15052         * lower-subreg.c (lower-subreg.c): Likewise.
15053         * optabs.c (emit_libcall_block): Likewise.
15054         (prepare_cmp_insn): Likewise.
15055         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
15056         * postreload.c (rest_of_handle_postreload): Likewise.
15057         * reload1.c (reload_as_needed): Likewise.
15058         (emit_input_reload_insns): Likewise.
15059         (emit_output_reload_insns): Likewise.
15060         (fixup_abnormal_edges): Likewise.
15061         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
15062         * store-motion.c (find_moveable_store): Likewise.
15063         * tree-eh.c (stmt_could_throw_p): Likewise.
15064         (tree_could_throw_p): Likewise.
15065         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15066         * config/arm/arm.c (arm_expand_prologue): Likewise.
15067         (thumb1_expand_prologue): Likewise.
15068         * config/rx/rx.md (cbranchsf4): Likewise.
15069         (cmpsf): Likewise.
15070         * config/s390/s390.c (s390_emit_prologue): Likewise.
15071         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
15072         (inline_forbidden_into_p): New predicate.
15073         (expand_call_inline): Use it to forbid inlining.
15074         (tree_can_inline_p): Likewise.
15075
15076 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15077
15078         * config/i386/i386-c.c: Do not include rtl.h.
15079         * config/i386/t-i386: Update dependencies.
15080
15081 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15082
15083         * attribs.c: Do not include rtl.h.
15084         * Makefile.in: Update dependencies.
15085
15086 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
15087
15088         * double-int.h (double_int_and): New.
15089         * combine.c (try_combine): Clean up, use double_int_* and
15090         immed_double_int_const functions.
15091
15092 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15093
15094         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
15095         stderr to /dev/null instead of grep -q.
15096         * configure: Regenerate.
15097
15098 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15099
15100         * Makefile.in (EXCEPT_H): Fix typo.
15101
15102 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
15103
15104         * ira-build.c (update_conflict_hard_reg_costs): New.
15105         (ira_build): Call update_conflict_hard_reg_costs.
15106
15107 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15108
15109         PR debug/41371
15110         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
15111         ENABLE_CHECKING.
15112         (intersect_loc_chains): Walk the s2var's loc_chain together
15113         with s1node chain as long as the locations are equal, don't
15114         call find_loc_in_1pdv in that case.
15115
15116         PR debug/42801
15117         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
15118         (copy_bind_expr): ... instead of here.
15119         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
15120         if the block hasn't been remapped.
15121         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
15122         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
15123
15124 2010-05-25  Richard Guenther  <rguenther@suse.de>
15125
15126         PR middle-end/44069
15127         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
15128         out-of-bounds array accesses.
15129
15130 2010-05-25  Richard Guenther  <rguenther@suse.de>
15131
15132         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
15133         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
15134         (run_gcc): Re-organize to make cleanup easier.
15135
15136 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15137
15138         * config/s390/s390.c (optimization_options): Fix and move the
15139         flag_prefetch_loop_arrays override ...
15140         (override_options): ... here.
15141
15142 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
15143
15144         * diagnostic.c: Don't include plugin.h.
15145         (diagnostic_report_diagnostic): Don't handle plugins specially
15146         here.  Pass context to internal_error callback.
15147         * diagnostic.h (struct diagnostic_context): Add context parameter
15148         to internal_error callback.
15149         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
15150         * plugin.h (struct diagnostic_context): Declare.
15151         (warn_if_plugins, plugins_internal_error_function): Declare.
15152         * toplev.c (general_init): Set global_dc->internal_error.
15153         * Makefile.in (diagnostic.o): Update dependencies.
15154
15155 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
15156
15157         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
15158         * config/rs6000/t-darwin64: New.
15159         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
15160         build crt2.
15161
15162 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
15163
15164         PR 44203
15165         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
15166         match the original (and intended) behaviour before r159557.  This
15167         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
15168         in two ways.
15169
15170 2010-05-25  Richard Guenther  <rguenther@suse.de>
15171
15172         * doc/invoke.texi: Document -Ofast.
15173         * target.h (struct gcc_target): Add handle_ofast.
15174         * target-def.h (TARGET_HANDLE_OFAST): Add.
15175         (TARGET_INITIALIZER): Adjust.
15176         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
15177         * common.opt (Ofast): Add.
15178
15179 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15180
15181         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
15182         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
15183
15184 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15185
15186         PR target/43610
15187         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
15188         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
15189         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
15190         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
15191
15192 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15193
15194         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
15195         DW_OP_minus with negated offset instead of DW_OP_plus.
15196         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
15197
15198 2010-05-25  Wei Guozhi  <carrot@google.com>
15199
15200         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
15201         tst instruction and a new alternative.
15202         * config/arm/constraints.md (Pu): New constraint.
15203
15204 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
15205
15206         * function.c (assign_stack_local_1): Initialize variable
15207         to avoid warning when bootstrapping at -O3.
15208
15209 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
15210
15211         * configure.ac (all_lang_makefiles): Remove everything related to it.
15212         * configure: Regenerate.
15213         * Makefile.in: Fix reference to ada Make-lang.in.
15214         Remove support for LANG_MAKEFILES.
15215
15216 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
15217             Sandra Loosemore  <sandra@codesourcery.com>
15218
15219         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
15220         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
15221         description.  Add arm_neon_fp16_ok.
15222         (Add Options): Add arm_neon and arm_neon_fp16.
15223
15224 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
15225
15226         * diagnostic.c: Don't include flags.h.
15227         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
15228         context parameters.  Check flags in the context passed as a parameter.
15229         (diagnostic_build_prefix): Add context parameter.  Check
15230         show_column flag in context.
15231         (diagnostic_action_after_output): Check fatal_errors flag in context.
15232         (diagnostic_report_current_module): Check show_column flag in context.
15233         (default_diagnostic_starter): Update call to
15234         diagnostic_build_prefix.
15235         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
15236         (emit_diagnostic): Pass context to permissive_error_kind.
15237         (permerror): Pass context to permissive_error_kind.
15238         * diagnostic.h (struct diagnostic_context): Add show_column,
15239         pedantic_errors, permissive and fatal_errors fields.
15240         (diagnostic_build_prefix): Update prototype.
15241         * langhooks.c
15242         * toplev.c (process_options): Set flags in global_dc from
15243         flag_show_column, flag_pedantic_errors, flag_permissive,
15244         flag_fatal_errors.
15245         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
15246         to diagnostic_build_prefix.
15247         * Makefile.in (diagnostic.o): Update dependencies.
15248
15249 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15250
15251         * config/i386/ia32intrin.h (__crc32q): Define only if
15252         __SSE4_2__ is defined.
15253
15254 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
15255
15256         PR target/44132
15257         PR middle-end/43602
15258         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
15259         DECL_VISIBILITY_SPECIFIED.
15260         (emutls_decl): Set DECL_PRESERVE_P and copy
15261         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
15262         (emutls_finalize_control_var): New callback.
15263         (emutls_finish): Finalize emutls control variables.
15264         * toplev.c (compile_file): Move the call to emutls_finish ()
15265         before varpool_assemble_pending_decls ().
15266
15267 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
15268
15269         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
15270         added to the preprocessor condition.
15271
15272 2010-05-24  Paul Brook  <paul@codesourcery.com>
15273
15274         * gengtype-lex.l: Add HARD_REG_SET.
15275         * expr.c (expand_expr_real_1): Record writes to hard registers.
15276         * function.c (rtl_data): Add asm_clobbers.
15277         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
15278         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
15279         Use crtl->asm_clobbers.
15280
15281 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15282
15283         * doc/makefile.texi (Makefile): Mention stages 'profile'
15284         and 'feedback' for profiledbootstrap.
15285
15286 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15287
15288         PR target/44245
15289         * config/i386/i386.c (def_builtin): Properly check
15290         OPTION_MASK_ISA_64BIT.
15291
15292 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
15293
15294         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
15295         typedefs with different but compatible types.  Allow duplicate
15296         typedefs with the same type except for pedantic non-C1X, but give
15297         warning for variably modified types.
15298         * c-typeck.c (tagged_types_tu_compatible_p,
15299         function_types_compatible_p, type_lists_compatible_p,
15300         comptypes_internal): Add parameter different_types_p; set
15301         *different_types_p for different but compatible types.  All
15302         callers changed.
15303         (comptypes_check_different_types): New.
15304         * c-tree.h (comptypes_check_different_types): Declare.
15305
15306 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15307
15308         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
15309         * jump.c: Include basic-block.h.
15310         * profile.c: Likewise.
15311         * tree-profile.c: Likewise.
15312         * coverage.c: Likewise.
15313         * basic-block.h (optimize_function_for_size_p): Move to function.h.
15314         (optimize_function_for_speed_p): Likewise.
15315         * function.h (optimize_function_for_size_p,
15316         optimize_function_for_speed_p): Moved here from basic-block.h.
15317         * Makefile.in: Update dependencies.
15318
15319 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15320
15321         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
15322         before calling make; allow override through $MAKE.
15323         * doc/invoke.texi (Optimize Options): Document override.
15324
15325 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
15326
15327         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
15328         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15329         (rs6000_mode_dependent_address_ptr): Make static.
15330         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15331         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
15332         Remove.
15333
15334 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
15335
15336         PR target/43869
15337         * config/i386/i386.c: Make sure that the correct regparm is passed.
15338
15339 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15340
15341         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
15342         * sbitmap.c: ...to here to internalize sbitmap element access.
15343         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
15344         Explain why basic-block.h is included.
15345         * function.h: Include tm.h for CUMULATIVE_ARGS.
15346         * Makefile.in: Update dependencies.
15347
15348 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15349
15350         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
15351         New core types.
15352         * sbitmap.h (struct sbitmap_def): Do not typedef here.
15353         * sbitmap.c: Include sbitmap.h.
15354         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
15355         hard-reg-set.h.  Split everything related to regsets out from here...
15356         * regset.h: ...to here.  New file.
15357         * df.h: Include regset.h and sbitmap.h.
15358         * tree-flow.h: Likewise.
15359         * cfgloop.h: Likewise.
15360         * except.h: Do not include sbitmap.h.  Include hashtab.h.
15361         * cgraph.h: Include vec.h and function.h.
15362         * reload.h (struct insn_chain): Change types of live_throughout
15363         and dead_or_set from regset_head to bitmap_head.
15364         (compute_use_by_pseudos): Be defined also if regset.h is not included.
15365         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
15366         spilled_regs from regset_head to bitmap_head to avoid dependency
15367         in regset.h.
15368         * sel-sched-ir.h: Include regset.h.
15369         * reload.c: Include df.h before reload.h.
15370         * caller-save.c: Likewise.
15371         * reload1.c: Likewise.
15372         * ira.c: Likewise.
15373         (mark_elimination): Update type of r to bitmap, consistent with
15374         DF_LR_IN.
15375         * dominance.c: Include bitmap.h.
15376         * modulo-sched.c: Include df.h.
15377         * cfganal.c: Include bitmap.h and sbitmap.h.
15378         * cfgbuild.c: Include sbitmap.h.
15379         * lcm.c: Include sbitmap.h.
15380         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
15381         * domwalk.c: Include sbitmap.h, exclude ggc.h.
15382         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
15383         * cselib.c: Include bitmap.h.
15384         * tree-optimize.c: Include regset.h.
15385         * stmt.c: Include bitmap.h.
15386         * Makefile.in: Update dependencies.
15387
15388 2010-05-22  Jan Hubicka  <jh@suse.cz>
15389
15390         * cgraph.h (struct varpool_node): Add same_comdat_group.
15391         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
15392         pointer.
15393         (output_varpool): Update call of lto_output_varpool_node.
15394         (input_varpool): Read same_comdat_group pointer.
15395         (input_varpool_1): Fixup same_comdat_group pointer.
15396         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
15397         group is needed, all are.
15398         * varpool.c (varpool_remove_node): Remove node from same comdat group
15399         linklist too.
15400         (varpool_analyze_pending_decls): Walk same comdat groups.
15401
15402 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15403
15404         * rtl.h (union rtunion_def): Remove rt_bit member.
15405         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
15406         * print-rtl (print_rtx): Do not print the member.
15407         * gengtype.c (adjust_field_rtx_def): Do not handle it.
15408         * gengenrtl.c (type_from_format): Likewise.
15409         (accessor_from_format): Likewise.
15410
15411 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
15412
15413         * dbgcnt.c: Include toplev.h instead of errors.h.
15414         * ira-emit.c: Don't include errors.h.
15415         * ira.c: Include toplev.h instead of errors.h.
15416         * lto-compress.c: Include toplev.h instead of errors.h.
15417         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
15418         ira.o, dbgcnt.o): Update dependencies.
15419
15420 2010-05-22  Richard Guenther  <rguenther@suse.de>
15421
15422         * gimple.c (gimple_types_compatible_p): Check type qualifications
15423         before merging pointer to complete and pointer to incomplete type.
15424         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
15425         we use our own resolution algorithm.  The gold linker plugin
15426         doesn't do the job we want it to do here.
15427
15428 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
15429
15430         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15431         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15432         (sparc_mode_dependent_address_p): New function.
15433
15434 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15435
15436         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
15437
15438         * timevar.c: Do not include any core headers.
15439         (timevar_print): De-i18n-ize.
15440         (print_time): Likewise.
15441         * timevar.h (timevar_push, timevar_pop): Make inline functions.
15442
15443 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
15444
15445         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
15446         langhooks-def.h.
15447         (diagnostic_initialize): Initialize x_data not last_function.
15448         (diagnostic_report_current_function): Move to tree-diagnostic.c.
15449         (default_diagnostic_starter): Call
15450         diagnostic_report_current_module not
15451         diagnostic_report_current_function.
15452         (diagnostic_report_diagnostic): Initialize x_data not
15453         abstract_origin.
15454         (verbatim): Likewise.
15455         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
15456         x_data.
15457         (struct diagnostic_context): Change last_function to x_data.
15458         (diagnostic_auxiliary_data): Replace with
15459         diagnostic_context_auxiliary_data and
15460         diagnostic_info_auxiliary_data.
15461         (diagnostic_last_function_changed, diagnostic_set_last_function,
15462         diagnostic_report_current_function): Move to tree-diagnostic.h.
15463         (print_declaration, dump_generic_node, print_generic_stmt,
15464         print_generic_stmt_indented, print_generic_expr,
15465         print_generic_decl, debug_c_tree, dump_omp_clauses,
15466         print_call_name, debug_generic_expr, debug_generic_stmt,
15467         debug_tree_chain, default_tree_printer): Move to
15468         tree-pretty-print.h.
15469         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
15470         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
15471         gimple-pretty-print.h.
15472         * pretty-print.c: Don't include tree.h
15473         (pp_base_format): Don't handle %K here.
15474         (pp_base_tree_identifier): Move to tree-pretty-print.c.
15475         * pretty-print.h (text_info): Change abstract_origin to x_data.
15476         (pp_tree_identifier, pp_unsupported_tree,
15477         pp_base_tree_identifier): Move to tree-pretty-print.h.
15478         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
15479         tree-pretty-print.h: New files.
15480         * tree-pretty-print.c: Include tree-pretty-print.h.
15481         (percent_K_format): New.  Moved from pretty-print.c.
15482         (pp_base_tree_identifier): Move from pretty-print.c.
15483         * c-objc-common.c: Include tree-pretty-print.h.
15484         (c_tree_printer): Handle %K here.
15485         * langhooks.c: Include tree-diagnostic.h.
15486         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
15487         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
15488         (default_tree_printer): Handle %K using percent_K_format.
15489         (general_init): Use default_tree_diagnostic_starter.
15490         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
15491         (free_lang_data): Use default_tree_diagnostic_starter.
15492         * c-pretty-print.c: Include tree-pretty-print.h.
15493         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15494         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15495         * dwarf2out.c: Include tree-pretty-print.h.
15496         * except.c: Include tree-pretty-print.h.
15497         * gimple-pretty-print.c: Include tree-pretty-print.h and
15498         gimple-pretty-print.h.
15499         * gimplify.c: Include tree-pretty-print.h.
15500         * graphite-poly.c: Include tree-pretty-print.h and
15501         gimple-pretty-print.h.
15502         * ipa-cp.c: Include tree-pretty-print.h.
15503         * ipa-inline.c: Include gimple-pretty-print.h.
15504         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15505         * ipa-pure-const.c: Include gimple-pretty-print.h.
15506         * ipa-struct-reorg.c: Include tree-pretty-print.h and
15507         gimple-pretty-print.h.
15508         * ipa-type-escape.c: Include tree-pretty-print.h.
15509         * print-rtl.c: Include tree-pretty-print.h.
15510         * print-tree.c: Include gimple-pretty-print.h.
15511         * sese.c: Include tree-pretty-print.h.
15512         * tree-affine.c: Include tree-pretty-print.h.
15513         * tree-browser.c: Include tree-pretty-print.h.
15514         * tree-call-cdce.c: Include gimple-pretty-print.h.
15515         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15516         * tree-chrec.c: Include tree-pretty-print.h.
15517         * tree-data-ref.c: Include tree-pretty-print.h and
15518         gimple-pretty-print.h.
15519         * tree-dfa.c: Include tree-pretty-print.h.
15520         * tree-if-conv.c: Include tree-pretty-print.h and
15521         gimple-pretty-print.h.
15522         * tree-inline.c: Include tree-pretty-print.h.
15523         * tree-into-ssa.c: Include tree-pretty-print.h and
15524         gimple-pretty-print.h.
15525         * tree-nrv.c: Include tree-pretty-print.h.
15526         * tree-object-size.c: Include tree-pretty-print.h and
15527         gimple-pretty-print.h.
15528         * tree-outof-ssa.c: Include tree-pretty-print.h and
15529         gimple-pretty-print.h.
15530         * tree-parloops.c: Include tree-pretty-print.h and
15531         gimple-pretty-print.h.
15532         * tree-predcom.c: Include tree-pretty-print.h and
15533         gimple-pretty-print.h.
15534         * tree-scalar-evolution.c: Include tree-pretty-print.h and
15535         gimple-pretty-print.h.
15536         * tree-sra.c: Include tree-pretty-print.h.
15537         * tree-ssa-address.c: Include tree-pretty-print.h.
15538         * tree-ssa-alias.c: Include tree-pretty-print.h.
15539         * tree-ssa-ccp.c: Include tree-pretty-print.h and
15540         gimple-pretty-print.h.
15541         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
15542         * tree-ssa-copy.c: Include tree-pretty-print.h and
15543         gimple-pretty-print.h.
15544         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
15545         * tree-ssa-dce.c: Include tree-pretty-print.h and
15546         gimple-pretty-print.h.
15547         * tree-ssa-dom.c: Include tree-pretty-print.h and
15548         gimple-pretty-print.h.
15549         * tree-ssa-dse.c: Include gimple-pretty-print.h.
15550         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
15551         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
15552         * tree-ssa-live.c: Include tree-pretty-print.h and
15553         gimple-pretty-print.h.
15554         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
15555         gimple-pretty-print.h.
15556         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
15557         gimple-pretty-print.h.
15558         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
15559         gimple-pretty-print.h.
15560         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
15561         gimple-pretty-print.h.
15562         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
15563         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
15564         * tree-ssa-operands.c: Include tree-pretty-print.h and
15565         gimple-pretty-print.h.
15566         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
15567         gimple-pretty-print.h.
15568         * tree-ssa-pre.c: Include tree-pretty-print.h and
15569         gimple-pretty-print.h.
15570         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
15571         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
15572         gimple-pretty-print.h.
15573         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
15574         gimple-pretty-print.h.
15575         * tree-ssa-sink.c: Include gimple-pretty-print.h.
15576         * tree-ssa-ter.c: Include tree-pretty-print.h and
15577         gimple-pretty-print.h.
15578         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
15579         * tree-ssa.c: Include tree-pretty-print.h and
15580         gimple-pretty-print.h.
15581         * tree-stdarg.c: Include gimple-pretty-print.h.
15582         * tree-switch-conversion.c: Include gimple-pretty-print.h.
15583         * tree-tailcall.c: Include tree-pretty-print.h and
15584         gimple-pretty-print.h.
15585         * tree-vect-data-refs.c: Include tree-pretty-print.h and
15586         gimple-pretty-print.h.
15587         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
15588         gimple-pretty-print.h.
15589         * tree-vect-loop.c: Include tree-pretty-print.h and
15590         gimple-pretty-print.h.
15591         * tree-vect-patterns.c: Include gimple-pretty-print.h.
15592         * tree-vect-slp.c: Include tree-pretty-print.h and
15593         gimple-pretty-print.h.
15594         * tree-vect-stmts.c: Include tree-pretty-print.h and
15595         gimple-pretty-print.h.
15596         * tree-vectorizer.c: Include tree-pretty-print.h.
15597         * tree-vrp.c: Include tree-pretty-print.h and
15598         gimple-pretty-print.h.
15599         * value-prof.c: Include tree-pretty-print.h and
15600         gimple-pretty-print.h.
15601         * var-tracking.c: Include tree-pretty-print.h.
15602         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
15603         (tree-diagnostic.o): New dependencies.
15604         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
15605         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
15606         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
15607         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
15608         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
15609         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
15610         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
15611         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
15612         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
15613         tree-ssa-address.o, tree-ssa-loop-niter.o,
15614         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
15615         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
15616         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
15617         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
15618         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
15619         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
15620         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
15621         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
15622         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
15623         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
15624         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
15625         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
15626         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
15627         tree-switch-conversion.o, var-tracking.o, value-prof.o,
15628         cfgexpand.o, pretty-print.o): Update dependencies.
15629
15630 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
15631
15632         * tree-ssa-structalias.c: Remove tm_p.h from include.
15633
15634 2010-05-21  Jeff Law  <law@redhat.com>
15635
15636         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
15637
15638 2010-05-21  Jason Merrill  <jason@redhat.com>
15639
15640         * tree-eh.c (cleanup_is_dead_in): New.
15641         (lower_try_finally): Don't generate a dead cleanup region.
15642         (lower_cleanup): Likewise.
15643
15644 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15645
15646         PR debug/44223
15647         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
15648         unchain each use from the cyclic next_regno_use chain first.
15649
15650 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15651
15652         * real: Do not include gmp.h, mpfr.h, and mpc.h.
15653         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
15654         (real_value_negate, real_value_abs): New prototypes.
15655         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
15656         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
15657         new include file for interface between MPFR and REAL_VALUE_TYPE.
15658         * real.c: Include realmpfr.h.
15659         (real_arithmetic2): Remove legacy function.
15660         (real_value_negate): New.
15661         (real_value_abs): New.
15662         (mfpr_from_real, real_from_mpfr): Move from here...
15663         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15664         * builtins.c: Include realmpfr.h.
15665         * fold-const.c: Include realmpfr.h.
15666         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
15667         (fold_negate_const): Likewise.
15668         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
15669         * toplev.c: Include realmpfr.h.
15670         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
15671         and real_value_negate.
15672         * fixed-value.c (check_real_for_fixed_mode): Likewise.
15673         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
15674         (vfp3_const_double_index): Likewise.
15675         (arm_print_operand): Likewise.
15676         * Makefile.in: Update dependencies.
15677
15678 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15679
15680         * config/s390/s390.c (override_options): Increase the default
15681         of max-completely-peel-times.
15682
15683 2010-05-21  Julian Brown  <julian@codesourcery.com>
15684             Mark Mitchell  <mark@codesourcery.com>
15685
15686         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
15687         sibling calls for Thumb-1.
15688         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
15689         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
15690         Thumb-2.
15691         (*call_insn, *call_value_insn): Don't use for Thumb-2.
15692         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
15693         for Thumb-2.
15694         (return): New expander.
15695         (*arm_return): New name for ARM return insn.
15696         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
15697
15698 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
15699
15700         * config.gcc (sparc64-*-rtems*): New target.
15701
15702 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15703
15704         * tree.c (build_function_decl_skip_args): Fix grammar.
15705         (build_function_type_list_1): Fix typos, adjust formatting.
15706
15707 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15708
15709         * tree.h: Include real.h and fixed-value.h as basic datatypes.
15710         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
15711         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
15712         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
15713         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
15714         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
15715         tree-pretty-print.c, tree-loop-distribution.c,
15716         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
15717         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
15718         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
15719         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
15720         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
15721         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
15722         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
15723         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
15724         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
15725         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
15726         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
15727         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
15728         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
15729         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
15730         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
15731         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
15732         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
15733         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
15734         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
15735         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
15736         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
15737         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
15738         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
15739         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
15740         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
15741         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
15742         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
15743         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
15744         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
15745         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
15746         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
15747         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
15748         config/score/score7.c, config/score/score.c, config/arm/arm.c,
15749         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
15750         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
15751         config/bfin/bfin.c: Clean up redundant includes.
15752         * Makefile.in: Update accordingly.
15753
15754 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15755
15756         PR middle-end/44204
15757         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
15758         statement has no arguments.
15759
15760 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
15761
15762         PR/44139
15763         * varasm.c (emutls_decl): Merge attributes to new decl.
15764
15765 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15766
15767         PR middle-end/44101
15768         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
15769         around the uniquized constructor if its type requires a conversion.
15770
15771 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15772
15773         PR debug/44205
15774         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
15775         at -O0 goto_locus of any of the incoming edges differs from
15776         goto_locus of outgoing edge, or gimple_location of any of the
15777         labels differs.
15778
15779 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
15780
15781         * ira.c (ira_non_ordered_class_hard_regs): Define.
15782         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
15783         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
15784         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
15785         cost of unaligned hard regs when allocating multi-reg pseudos.
15786
15787 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
15788
15789         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
15790         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
15791         for TARGET_NO_FLOAT.
15792         * config/mips/mips.c (mips_file_start): Expand conditional expression
15793         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
15794         (mips_override_options): Move -mno-float override -msoft-float and
15795         -mhard-float.
15796         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
15797         Condition(TARGET_SUPPORTS_NO_FLOAT).
15798         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
15799         __mips_no_float here.
15800         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
15801         (TARGET_SUPPORTS_NO_FLOAT): Define.
15802         * config/mips/sdemtk.opt: Delete.
15803
15804 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
15805
15806         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
15807
15808 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
15809
15810         PR target/43733
15811         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
15812         * configure: Regenerate.
15813         * config.in: Regenerate.
15814         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
15815         instead of sahf only for 64bit targets.
15816
15817 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15818
15819         PR debug/44178
15820         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
15821         setup_ref_regs for DEBUG_INSNs.
15822
15823 2010-05-20  Jan Hubicka  <jh@suse.cz>
15824
15825         PR middle-end/44197
15826         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
15827
15828 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15829
15830         PR bootstrap/43870
15831         * df-scan.c (df_ref_compare): Stabilize sort.
15832
15833 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15834
15835         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
15836         argument.  Don't use DW_OP_piece if offset is non-zero,
15837         put offset into second DW_OP_bit_piece argument.
15838         (dw_sra_loc_expr): Adjust callers.  For memory expressions
15839         compute offset.
15840
15841 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
15842
15843         PR target/44202
15844         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
15845         settings for 16-bit-constant "addo" alternative.
15846
15847 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
15848
15849         * config/mips/mips-dsp.md (add<DSPV:mode>3,
15850         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
15851
15852         PR target/43764
15853         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
15854         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
15855         Use it.
15856
15857 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
15858
15859         * diagnostic.c (FLOAT, FFS): Don't undefine.
15860         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
15861         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
15862         include ordering.
15863
15864 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15865
15866         * combine.c (propagate_for_debug): Call make_compound_operation
15867         on the source value.
15868         (try_combine): When implementing a split chosen by find_split_point,
15869         either copy i2src or set it to null.  Assert that i2src is not null
15870         before substituting into CALL_INSN_FUNCTION_USAGE.
15871
15872 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
15873
15874         * double-int.h (double_int_ior): New function.
15875         * tree.h (build_int_cst_wide_type): Remove.
15876         * tree.c (build_int_cst_wide_type): Remove.
15877         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
15878         of build_int_cst_wide_type.
15879         * stor-layout.c (set_sizetype): (Ditto.).
15880         * dojump.c (do_jump): Use build_int_cstu instead of
15881         build_int_cst_wide_type.
15882
15883 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15884
15885         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
15886         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
15887         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
15888         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
15889         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
15890         propagate the 'data' argument to copy_tree_r.
15891         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
15892         Propagate 'data' argument to walk_tree.
15893         (copy_if_shared): New function.
15894         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
15895         (unmark_visited): New function.
15896         (unshare_body): Call copy_if_shared instead of doing it manually.
15897         (unvisit_body): Call unmark_visited instead of doing it manually.
15898
15899 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
15900
15901         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
15902         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
15903         * hooks.c: Likewise.
15904         * target-def.h (TARGET_FOLD_BUILTIN): Define to
15905         hook_tree_tree_int_treep_bool_null.
15906         * target.h (struct gcc_target): Update signature of fold_builtin
15907         field.
15908         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
15909         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
15910         instead of the call expression.
15911         (fold_builtin_call_array): Pass n and argarray directly.
15912         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
15913         consing a list.
15914         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
15915         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
15916         `i' and use it in place of `arity'.
15917         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
15918         Dereference `args' directly.
15919         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
15920
15921 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15922
15923         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15924         3dnow, sse3, sse2.
15925         (Directives): Document optional dg-require-effective-target
15926         selector.
15927
15928 2010-05-19  Richard Guenther  <rguenther@suse.de>
15929
15930         PR lto/44196
15931         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
15932
15933 2010-05-19  Richard Guenther  <rguenther@suse.de>
15934
15935         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
15936         * common.opt (fwhopr=): New.
15937         * opts.c (common_handle_option): Handle OPT_fwhopr.
15938         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
15939         * collect2.c (main): Match -fwhopr*.
15940         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
15941         Execute ltrans stage in parallel when jobs is bigger than 1.
15942
15943 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15944
15945         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15946         pentiumpro on Solaris 8/x86 with Sun as.
15947         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
15948         hidden alias bug.
15949         (gcc_cv_as_ix86_quad): Check for .quad directive.
15950         * configure: Regenerate.
15951         * config.in: Regenerate.
15952         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
15953
15954 2010-05-19  Martin Jambor  <mjambor@suse.cz>
15955
15956         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
15957         also for indirect edges.  Actual printing moved...
15958         (ipa_print_node_jump_functions_for_edge): ...here.
15959         (ipa_compute_jump_functions): Renamed to
15960         ipa_compute_jump_functions_for_edge and made static.
15961         (ipa_compute_jump_functions): New function.
15962         (make_edge_direct_to_target): Check if the number of arguments on
15963         the newly direct edge is the same as the number of parametrs of
15964         the callee.
15965         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
15966         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
15967         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15968         analysis functions unconditionally, call the new
15969         ipa_analyze_params_uses on the node instead of every edge.
15970
15971 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
15972
15973         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
15974         to tree.
15975         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
15976         also checks for a constant int vs.  non-constant but
15977         loop-invariant steps.
15978         (find_or_create_group): Change the sort algorithm to only consider
15979         steps that are constant ints.
15980         (idx_analyze_ref): Adopt code to handle a tree instead of a
15981         HOST_WIDE_INT for step.
15982         (gather_memory_references_ref): Handle tree instead of int and be
15983         prepared to see a NULL_TREE.
15984         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
15985         prefetches if the step cannot be calculated at compile time.
15986         (issue_prefetch_ref): Issue prefetches for non-constant but
15987         loop-invariant steps.
15988
15989 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15990
15991         Revert:
15992         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15993
15994         * tree.h (build_call_list): Remove.
15995         * tree.c (build_call_list): Remove.
15996
15997 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15998
15999         * tree.h (build_call_list): Remove.
16000         * tree.c (build_call_list): Remove.
16001
16002 2010-05-18  Jan Hubicka  <jh@suse.cz>
16003
16004         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
16005
16006 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
16007
16008         PR rtl-optimization/43332
16009         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
16010
16011 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
16012
16013         * tree.h (build_int_cstu): Implement as static inline.
16014         * tree.c (build_int_cstu): Remove function.
16015         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
16016         sign extended.
16017
16018 2010-05-18  Richard Guenther  <rguenther@suse.de>
16019
16020         PR lto/44143
16021         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
16022         (debug): Initialize from -save-temps.
16023         (collect_execute): Print command-line when verbose.
16024         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
16025         for ltrans invocation.  Produce -dumpbase flag again.
16026         (process_args): Remove.
16027         (main): Simplify.
16028         * collect2.c (maybe_run_lto_and_relink): Only pass object
16029         files to lto-wrapper.
16030         * gcc.c (LINK_COMMAND_SPEC): Likewise.
16031
16032 2010-05-18  Jan Hubicka  <jh@suse.cz>
16033
16034         * opts.c (decode_options): Do not disable whopr at ipa_cp.
16035         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
16036
16037 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16038
16039         PR lto/44184
16040         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
16041         in a GIMPLE_ASM.
16042         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
16043         in a GIMPLE_ASM.
16044
16045 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
16046
16047         PR debug/41371
16048         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
16049         rtx_equal_p inline.
16050
16051 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16052
16053         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
16054         lto-macho as lto_binary_reader.
16055
16056         * darwin.c (darwin_asm_named_section): Do not add assembler comment
16057         after .section directive; just print it before the directive instead.
16058
16059 2010-05-17  Jan Hubicka  <jh@suse.cz>
16060
16061         * cgraph.c (cgraph_create_virtual_clone): Only check
16062         versionable_function_p when not in wpa and checking is enabled.
16063         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
16064         there are no more functions to materialize.
16065
16066 2010-05-17  Jan Hubicka  <jh@suse.cz>
16067
16068         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
16069         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
16070         New functions.
16071         (output_cgraph): Call output_cgraph_opt_summary.
16072         (input_cgrpah): Call input_cgraph_opt_summary.
16073         (output_cgraph_opt_summary_p, output_node_opt_summary,
16074         input_node_opt_summary, input_cgraph_opt_section): New functions.
16075         * lto-section-in.c (lto_section_name): Add cgraphopt.
16076         * tree-inline.c (tree_function_versioning): Handle parm_num.
16077         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
16078         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
16079
16080 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16081
16082         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
16083         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
16084         the insn to prefetch ratio heuristic to loops with known trip count.
16085
16086 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16087
16088         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
16089         (schedule_prefetches): Do not generate a prefetch if the unroll factor
16090         is far from what is required by the prefetch.
16091
16092 2010-05-17  Jan Hubicka  <jh@suse.cz>
16093
16094         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
16095         (ipcp_estimate_growth): Likewise.
16096         (ipcp_const_param_count): Likewise.
16097         (ipcp_insert_stage): Likewise.
16098         * ipa-prop.c (visit_load_for_mod_analysis): New function.
16099         (visit_store_addr_for_mod_analysis): Set used flag.
16100         (ipa_detect_param_modifications): Set used flag for SSE params;
16101         update use of walk_stmt_load_store_addr_ops.
16102         (ipa_print_node_params): Print used flag.
16103         (ipa_write_node_info): Stream used flag.
16104         (ipa_read_node_info): Likewise.
16105         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
16106         (ipa_is_param_used): New function.
16107         (lto_ipa_fixup_call_notes): Remove unused declaration.
16108
16109 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16110
16111         PR target/44074
16112         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
16113         * configure: Regenerate.
16114         * config.in: Regenerate.
16115         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
16116         !HAVE_AS_IX86_REP_LOCK_PREFIX.
16117         Don't emit whitespace.
16118         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
16119         (*rep_movsi): Likewise.
16120         (*rep_movsi_rex64): Likewise.
16121         (*rep_movqi): Likewise.
16122         (*rep_movqi_rex64): Likewise.
16123         (*rep_stosdi_rex64): Likewise.
16124         (*rep_stossi): Likewise.
16125         (*rep_stossi_rex64): Likewise.
16126         (*rep_stosqi): Likewise.
16127         (*rep_stosqi_rex64): Likewise.
16128         (*cmpstrnqi_nz_1): Use {%;} after repz.
16129         (*cmpstrnqi_nz_rex_1): Likewise.
16130         (*cmpstrnqi_1): Likewise.
16131         (*cmpstrnqi_rex_1): Likewise.
16132         (*strlenqi_1): Use {%;} after repnz.
16133         (*strlenqi_rex_1): Likewise.
16134         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
16135         (*sync_compare_and_swap<mode>): Likewise.
16136         (sync_double_compare_and_swap<mode>): Likewise.
16137         (*sync_double_compare_and_swapdi_pic): Likewise.
16138         (sync_old_add<mode>): Likewise.
16139         (sync_add<mode>): Likewise.
16140         (sync_sub<mode>): Likewise.
16141         (sync_<code><mode>): Likewise.
16142
16143 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16144
16145         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
16146         otr_token and polymorphic.
16147         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
16148         (cgraph_clone_edge): Copy the above fields.
16149         * tree.c (get_binfo_at_offset): New function.
16150         * tree.h (get_binfo_at_offset): Declare.
16151         * ipa-prop.h (enum jump_func_type): Added known_type jump function
16152         type, reordered items, updated comments.
16153         (union jump_func_value): Added base_type field, reordered fields.
16154         (enum ipa_lattice_type): Moved down in the file.
16155         (struct ipa_param_descriptor): New field polymorphic.
16156         (ipa_is_param_polymorphic): New function.
16157         * ipa-prop.c: Include gimple.h and gimple-fold.h.
16158         (ipa_print_node_jump_functions): Print known type jump functions.
16159         (compute_complex_pass_through): Renamed to...
16160         (compute_complex_assign_jump_func): this.
16161         (compute_complex_ancestor_jump_func): New function.
16162         (compute_known_type_jump_func): Likewise.
16163         (compute_scalar_jump_functions): Create known type and complex ancestor
16164         jump functions.
16165         (ipa_note_param_call): New parameter polymorphic, set the corresponding
16166         flag in the call note accordingly.
16167         (ipa_analyze_call_uses): Renamed to...
16168         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
16169         variable var only in the block where it is used.
16170         (ipa_analyze_virtual_call_uses): New function.
16171         (ipa_analyze_call_uses): Likewise.
16172         (combine_known_type_and_ancestor_jfs): Likewise.
16173         (update_jump_functions_after_inlining): Implemented handling of a
16174         number of new jump function types combination.
16175         (print_edge_addition_message): Removed.
16176         (make_edge_direct_to_target): New function.
16177         (try_make_edge_direct_simple_call): Likewise.
16178         (try_make_edge_direct_virtual_call): Likewise.
16179         (update_call_notes_after_inlining): Renamed to...
16180         (update_indirect_edges_after_inlining): this.  Moved edge creation for
16181         indirect calls to try_make_edge_direct_simple_call, also calls
16182         try_make_edge_direct_virtual_call for virtual calls.
16183         (ipa_print_node_params): Changed the header message.
16184         (ipa_write_jump_function): Stream also known type jump functions.
16185         (ipa_read_jump_function): Likewise.
16186         (ipa_write_indirect_edge_info): Stream new fields in
16187         cgraph_indirect_call_info.
16188         (ipa_read_indirect_edge_info): Likewise.
16189         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
16190         GIMPLE_FOLD_H.
16191
16192 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16193
16194         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
16195
16196 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16197
16198         * tree.h (CALL_EXPR_ARGS): Delete.
16199         (call_expr_arglist): Delete.
16200         * tree.c (call_expr_arglist): Delete.
16201         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
16202         targetm.fold_builtin.
16203         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
16204         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
16205         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
16206         arglist parameter.  Use CALL_EXPR_ARG.
16207         (picochip_expand_builtin_3op): Likewise.
16208         (picochip_expand_builtin_2opvoid): Likewise.
16209         (picochip_expand_array_get): Likewise.
16210         (picochip_expand_array_put): Likewise.
16211         (picochip_expand_array_testport): Likewise.
16212         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
16213         rather than arglist.
16214         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
16215         CALL_EXPR_ARGS.
16216         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
16217         than TREE_VALUE and TREE_CHAIN.
16218         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16219         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
16220         the arglist.
16221
16222 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16223
16224         PR bootstrap/42347
16225         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
16226         to have no fallthru edge.
16227
16228         PR middle-end/44102
16229         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
16230         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
16231         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
16232         add BARRIER after previous bb if needed.
16233
16234 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16235
16236         * tree.c (build_function_type_list_1): Remove bogus assert condition.
16237
16238 2010-05-17  Alan Modra  <amodra@gmail.com>
16239
16240         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
16241         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
16242         with copy_reg rtx param.
16243         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
16244         Correct cases where code for ABI_V4 did not initialise the reg
16245         used to access frame.  Also leave frame_reg_rtx as sp for large
16246         frames that save no regs.
16247
16248 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16249
16250         PR middle-end/44133
16251         * tree-sra.c (create_access_replacement): New parameter rename, mark
16252         the replaement for renaming only when it is true.
16253         (get_access_replacement): Pass true in the rename parameter of
16254         create_access_replacement.
16255         (get_unrenamed_access_replacement): New function.
16256         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
16257         replacement declaration from it.
16258
16259 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
16260
16261         * function.c (try_fit_stack_local, add_frame_space): New static
16262         functions.
16263         (assign_stack_local_1): Use them.  Look for opportunities to use
16264         space previously wasted on alignment.
16265         * function.h (struct frame_space): New.
16266         (struct rtl_data): Add FRAME_SPACE_LIST member.
16267         * reload1.c (something_was_spilled): New static variable.
16268         (alter_reg): Set it.
16269         (reload): Test it in addition to testing if the frame size changed.
16270
16271 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
16272
16273         * config/s390/s390.c: Define sane prefetch settings and activate
16274         flag_prefetch_loop_arrays on -O3.
16275         * config/s390/s390.h: Declare that read can use write prefetch.
16276
16277 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16278
16279         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
16280         build.
16281
16282 2010-05-16  Jan Hubicka  <jh@suse.cz>
16283
16284         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
16285         function body; do not check stdarg field of struct function.
16286
16287 2010-05-16  Jan Hubicka  <jh@suse.cz>
16288
16289         * cgraph.c (dump_cgraph_node): Dump versionable flag.
16290         * cgraph.h (cgraph_local_info): Add versionable flag.
16291         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
16292         (ipcp_versionable_function_p): Use it.
16293         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16294         versionable flag.
16295
16296 2010-05-16  Jan Hubicka  <jh@suse.cz>
16297
16298         * cgraph.c (cgraph_clone_node): Take decl argument and insert
16299         clone into hash when it is different from orig.
16300         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
16301         * cgraph.h (cgraph_clone_node): Update prototype.
16302         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
16303         (lto_cgraph_encoder_delete): Delete body map.
16304         (lto_cgraph_encoder_size): Move to header.
16305         (lto_cgraph_encoder_encode_body_p,
16306         lto_set_cgraph_encoder_encode_body): New.
16307         (lto_output_node): Do not take written_decls argument; output clone_of
16308         pointer.
16309         (add_node_to): Add include_body_argument; call
16310         lto_set_cgraph_encoder_encode_body on master of the clone.
16311         (add_references): Update use of add_node_to.
16312         (compute_ltrans_boundary): Likewise.
16313         (output_cgraph): Do not create written_decls bitmap.
16314         (input_node): Take nodes argument; stream in clone_of correctly.
16315         (input_cgraph_1): Update use of input_node.
16316         * lto-streamer-out.c (lto_output): Use encoder info to decide
16317         what bodies to output.
16318         * ipa-inline.c (cgraph_clone_inlined_nodes,
16319         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
16320         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
16321         (lto_cgraph_encoder_size): Define here.
16322         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
16323         Declare.
16324
16325 2010-05-16  Richard Guenther  <rguenther@suse.de>
16326
16327         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
16328         -fipa-type-escape.
16329         * ipa-type-escape.c (gate_type_escape_vars): Run when
16330         -fipa-struct-reorg runs.
16331         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
16332         * common.opt (fipa-type-escape): Remove.
16333
16334 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16335
16336         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
16337         (decode_options): Likewise.
16338         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
16339
16340 2010-05-16  Jan Hubicka  <jh@suse.cz>
16341
16342         * ipa.c (function_and_variable_visibility): Also bring local all
16343         aliases.
16344
16345 2010-05-16  Richard Guenther  <rguenther@suse.de>
16346
16347         * alias.c (nonoverlapping_memrefs_p): Remove use of
16348         IPA type-escape information.
16349
16350 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
16351
16352         * c-common.c (c_common_reswords): Add _Static_assert for C.
16353         * c-parser.c (c_token_starts_declaration,
16354         c_parser_next_token_starts_declaration,
16355         c_parser_static_assert_declaration_no_semi,
16356         c_parser_static_assert_declaration): New.
16357         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
16358         Handle static assertions if static_assert_ok.
16359         (c_parser_external_declaration, c_parser_declaration_or_fndef,
16360         c_parser_compound_statement_nostart, c_parser_label,
16361         c_parser_for_statement, c_parser_objc_methodprotolist,
16362         c_parser_omp_for_loop): All callers of
16363         c_parser_declaration_or_fndef changed.
16364         (c_parser_struct_declaration): Handle static assertions.
16365         (c_parser_compound_statement_nostart): Use
16366         c_parser_next_token_starts_declaration and
16367         c_token_starts_declaration to detect start of declarations.
16368         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
16369         Likewise.
16370
16371 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
16372
16373         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16374         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16375         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16376         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16377         (mmix_function_outgoing_value): Rename to...
16378         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
16379         (mmix_function_value_regno_p): Make static.
16380         (mmix_libcall_value): New function.
16381         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
16382         mmix_function_value_regno_p): Remove declaration.
16383
16384 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16385
16386         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
16387         BUILT_IN_ALLOCA if stack checking is enabled.
16388
16389 2010-05-16  Richard Guenther  <rguenther@suse.de>
16390
16391         * var-tracking.c (vars_copy_1): Inline ...
16392         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16393         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
16394         (variable_merge_over_cur): Adjust.  Merge asserts.
16395         (variable_merge_over_src): Likewise.
16396         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
16397         (variable_post_merge_new_vals): Merge asserts.
16398         (variable_post_merge_perm_vals): Likewise.
16399         (find_mem_expr_in_1pdv): Likewise.
16400         (dataflow_set_different_value): Remove.
16401         (onepart_variable_different_p): Merge asserts.
16402         (variable_different_p): Likewise.
16403         (dataflow_set_different_1): Inline ...
16404         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16405         (emit_notes_for_differences_1): Merge asserts.
16406
16407 2010-05-16  Richard Guenther  <rguenther@suse.de>
16408
16409         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
16410         * optabs.c (libfunc_decl_hash): Likewise.
16411         * varasm.c (emutls_decl): Likewise.
16412
16413 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
16414
16415         * c-decl.c: Don't include gimple.h.
16416         (merge_decls): Do not copy gimple_body.
16417
16418 2010-05-15  Jason Merrill  <jason@redhat.com>
16419
16420         * c.opt: Add -fnothrow-opt.
16421
16422 2010-05-15  Jan Hubicka  <jh@suse.cz>
16423
16424         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
16425         analyzed.
16426         * passes.c (ipa_write_summaries): Write all analyzed nodes.
16427
16428 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
16429
16430         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
16431         * Makefile.in: Add it.
16432         Fix all other Makefile dependencies for changes below.
16433         * tree.h: Include it instead of defining VEC primitives here.
16434         * gimple.h: Likewise.
16435         * rtl.h: Likewise.
16436         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
16437         * except.h: Include vecir.h, break dependence on tree.h.
16438
16439         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
16440         Move from here...
16441         * tree-iterator.c: ...to here.
16442         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
16443
16444         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
16445         tm_p.h.
16446         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
16447         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
16448         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
16449         tree-mudflap.h, and target.h.
16450         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
16451         predict.h, tree-inline.h, gimple.h, and langhooks.h.
16452         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
16453         Add FIXME for why gimple.h is still included (should be unnecessary
16454         since GCC 4.5 gimplification unit-at-a-time).
16455         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
16456         * c-pragma.c: Add FIXME for why function.h needs to be included just
16457         for cfun, at front-end level.
16458         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
16459         Do not include ggc.h, but include vecprim.h for VEC(char).
16460         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
16461         Explain why target.h is included.
16462         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
16463         Explain why gimple.h is included.
16464         * c-ppoutput.c: Do not include tm.h.
16465         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
16466         * c-parses.c: Explain why rtl.h is included, and that this (and only
16467         this) is also why tm.h must be included.
16468         Do not include except.h.
16469         * c-lang.c: Do not include ggc.h.
16470
16471 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
16472
16473         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
16474
16475 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
16476
16477         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
16478         unions by default if those structs and unions have no tags.  Do
16479         not condition anonymous struct and unions handling on flag_iso.
16480         Allow anonymous structs and unions for C1X.
16481         (finish_struct): Do not diagnose lack of named fields when
16482         anonymous structs and unions present for C1X.  Accept flexible
16483         array members in structure with anonymous structs or unions but no
16484         directly named fields.
16485         * doc/extend.texi (Unnamed Fields): Update.
16486
16487 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16488
16489         * gimple.h (compare_field_offset): Rename into...
16490         (gimple_compare_field_offset): ...this.
16491         * gimple.c (compare_field_offset): Rename into...
16492         (gimple_compare_field_offset): ...this.  Compare the full access if
16493         the offset is self-referential.
16494         (gimple_types_compatible_p): Adjust for above renaming.
16495         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
16496         DECL_NONADDRESSABLE_P flag of fields before merging them.
16497
16498 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
16499
16500         * tree.h (ctor_to_list): Delete.
16501         * tree.c (ctor_to_list): Delete.
16502
16503 2010-05-15  Jan Hubicka  <jh@suse.cz>
16504
16505         * ipa-reference.c: Include toplev.h
16506         (is_proper_for_analysis): Only add to all_module_statics
16507         if it is allocated.
16508         (write_node_summary_p, stream_out_bitmap,
16509         ipa_reference_write_optimization_summary,
16510         ipa_reference_read_optimization_summary): New.
16511         (struct ipa_opt_pass_d pass_ipa_reference): Add
16512         optimization summary streaming.
16513         * lto-cgraph.c (referenced_from_this_partition_p,
16514         reachable_from_this_partition_p): New functions.
16515         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
16516         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
16517         * opts.c (decode_options): Enable ipa_reference.
16518         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
16519         * lto-streamer.h (referenced_from_this_partition_p,
16520         reachable_from_this_partition_p): Declare.
16521
16522 2010-05-15  Richard Guenther  <rguenther@suse.de>
16523
16524         PR tree-optimization/44038
16525         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
16526         taking the address of a V_C_E of a constant.
16527
16528 2010-05-14  Jan Hubicka  <jh@suse.cz>
16529
16530         * tree.h (memory_identifier_string): Remove.
16531         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
16532         (ipa_reference_global_vars_info_d): Remove statics_not_read and
16533         statics_not_written.
16534         (ipa_reference_optimization_summary_d): New structure.
16535         (ipa_reference_optimization_summary_t): New type and vector.
16536         (ipa_reference_vars_info_d): Embedd structures instead of using
16537         pointers.
16538         (reference_vars_to_consider): Remove out of GGC space.
16539         (module_statics_escape): Remove.
16540         (global_info_obstack): Rename to ...
16541         (optimization_summary_obstack): ... this one.
16542         (initialization_status_t): Remove.
16543         (memory_identifier_string): Remove.
16544         (get_reference_vars_info): Fix indenting.
16545         (set_reference_vars_info): Likewise.
16546         (get_reference_optimization_summary): New.
16547         (set_reference_optimization_summary): New.
16548         (get_global_reference_vars_info): Remove.
16549         (ipa_reference_get_read_global): Remove.
16550         (ipa_reference_get_written_global): Remove.
16551         (ipa_reference_get_not_read_global): Update.
16552         (ipa_reference_get_not_written_global): Update.
16553         (is_proper_for_analysis): Outlaw addressable.
16554         (propagate_bits): Update for new datastructures.
16555         (analyze_variable): Remove.
16556         (init_function_info): Update for new datastructures.
16557         (clean_function_local_data): Remove.
16558         (clean_function): Remove.
16559         (copy_global_bitmap): Use optimizations_summary_obstack.
16560         (duplicate_node_data): Duplicate optimization summary only.
16561         (remove_node_data): Remove optimization summary only.
16562         (generate_summary): Do not analyze variables; do not compute
16563         module_statics_escape; do not prune solutions by it.
16564         (read_write_all_from_decl): Fix typos in comments.
16565         (propagate): Doscover readonly and nonaddressable first;
16566         update for new datastructures; share global bitmaps.
16567         * ipa-reference.h (ipa_reference_get_read_global,
16568         ipa_reference_get_written_global): Remove.
16569         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
16570         * Makefile.in: Remove ipa-refereference from GT files.
16571
16572 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16573
16574         PR debug/44112
16575         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
16576         for all SYMBOL_REF_DECLs.
16577
16578 2010-05-14  Jan Hubicka  <jh@suse.cz>
16579
16580         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
16581         (varpool_all_refs_explicit_p): New inline function.
16582         * ipa-reference.c: Update comment.
16583         (module_statics_written): Remove.
16584         (get_static_decl): Remove.
16585         (ipa_init): Do not initialize module_statics_written.
16586         (analyze_function): Likewise.
16587         (generate_summary): Likewise; do not compute module_statics_readonly
16588         and do not update variable flags.
16589         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
16590         * ipa.c: Inlucde flags.h
16591         (cgraph_local_node_p): New.
16592         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
16593         promote functions to local.
16594         (ipa_discover_readonly_nonaddressable_vars): New function.
16595         (function_and_variable_visibility): Use cgraph_local_node_p.
16596         * varpool.c (varpool_finalize_decl): Set force_output for
16597         DECL_PRESERVE_P vars.
16598
16599 2010-05-14  Jan Hubicka  <jh@suse.cz>
16600
16601         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
16602
16603 2010-05-14  Richard Guenther  <rguenther@suse.de>
16604
16605         PR tree-optimization/44119
16606         * tree-ssa-pre.c (eliminate): Properly mark replacement of
16607         a PHI node necessary.
16608
16609 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16610
16611         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
16612
16613 2010-05-14  Jason Merrill  <jason@redhat.com>
16614
16615         PR c++/44127
16616         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
16617         (gimple_call_set_nothrow): New.
16618         * gimple.c (gimple_build_call_from_tree): Call it.
16619         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
16620
16621         PR c++/44127
16622         * gimplify.c (gimplify_seq_add_stmt): No longer static.
16623         * gimple.h: Declare it.
16624         * gimple.c (gimple_build_eh_filter): No ops.
16625
16626 2010-05-14  Jan Hubicka  <jh@suse.cz>
16627
16628         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
16629         nodes already in queue.
16630         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
16631         re-enqueueing node.
16632
16633 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16634
16635         PR debug/44136
16636         * cfgexpand.c (expand_debug_expr): If non-memory op0
16637         has BLKmode, return NULL.
16638
16639 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
16640
16641         * config.gcc: Add support for --with-cpu option for bdver1.
16642         * config/i386/i386.h (TARGET_BDVER1): New macro.
16643         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
16644         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16645         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
16646         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16647         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
16648         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
16649         (processor_type): Add PROCESSOR_BDVER1.
16650         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
16651         processor_type in config/i386/i386.h.
16652         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
16653         movaps <reg, reg> instead of movapd <reg, reg> when replacing
16654         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
16655         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
16656         to emit packed xor instead of packed double/packed integer
16657         xor for SSE and AVX when moving a zero value.
16658         * config/i386/sse.md: Add check for
16659         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
16660         movapd/movdqa for SSE and AVX.
16661         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
16662         single logical operations i.e and, or and xor instead of packed double
16663         logical operations for SSE and AVX.
16664         * config/i386/i386-c.c (ix86_target_macros_internal):
16665         Add PROCESSOR_BDVER1.
16666         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
16667         (has_fma4, has_xop): New.
16668         * config/i386/i386.c (bdver1_cost): New variable.
16669         (m_BDVER1): New macro.
16670         (m_AMD_MULTIPLE): Add m_BDVER1.
16671         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
16672         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
16673         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
16674         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
16675         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
16676         x86_tune_sse_partial_reg_dependency,
16677         x86_tune_sse_unaligned_load_optimal,
16678         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
16679         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
16680         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
16681         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
16682         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
16683         Enable/disable for bdver1.
16684         (processor_target_table): Add bdver1_cost.
16685         (cpu_names): Add bdver1.
16686         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
16687          processor_alias_table.
16688         (ix86_expand_vector_move_misalign): Change.
16689         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
16690         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
16691         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
16692         of movupd/movdqu for SSE and AVX.
16693         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
16694         (ix86_tune_adjust_cost): Add code for bdver1.
16695         (standard_sse_constant_opcode): Add check for
16696         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
16697         of packed double xor for SSE and AVX.
16698
16699 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
16700
16701         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
16702         result to unsigned.
16703
16704 2010-05-14  Tristan Gingold  <gingold@adacore.com>
16705
16706         * toplev.c (default_debug_hooks): Remove this variable.
16707         (process_options): Remove assignments to default_debug_hooks.
16708
16709 2010-05-14  Martin Jambor  <mjambor@suse.cz>
16710
16711         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
16712         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
16713         * langhooks.h (struct lang_hooks_for_decls): Removed field
16714         fold_obj_type_ref.
16715         * tree.c (free_lang_data): Remove assignment to
16716         lang_hooks.fold_obj_type_ref.
16717         * tree.def (OBJ_TYPE_REF): Update comment.
16718
16719 2010-05-14  Richard Guenther  <rguenther@suse.de>
16720
16721         PR tree-optimization/44124
16722         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
16723
16724 2010-05-14  Alan Modra  <amodra@gmail.com>
16725
16726         PR target/44075
16727         * config/rs6000/rs6000.c (struct machine_function): Reorder
16728         fields for better packing.  Add lr_save_state.
16729         (rs6000_ra_ever_killed): Return lr_save_state if set.
16730         (rs6000_emit_eh_reg_restore): Set lr_save_state.
16731
16732 2010-05-13  Jan Hubicka  <jh@suse.cz>
16733
16734         * varpool.c (decide_is_variable_needed): Drop code checking
16735         TREE_SYMBOL_REFERENCED.
16736
16737 2010-05-13  Jan Hubicka  <jh@suse.cz>
16738
16739         * final.c (output_addr_const): Do not call mark_decl_referenced.
16740         * cgraphunit.c (process_function_and_variable_attributes): Use
16741         mark_needed_node dirrectly.
16742         (assemble_thunk): Do not call mark_decl_referenced.
16743
16744 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
16745
16746         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
16747
16748 2010-05-13  Jeff Law  <law@redhat.com>
16749
16750         * ira-conflicts.c (print_allocno_conflicts): New function broken out
16751         from...
16752         (print_conflicts): Call print_allocno_conflicts.
16753
16754 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16755
16756         PR debug/44104
16757         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
16758         if it is NULL.
16759
16760 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
16761
16762         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
16763         t-mingw-w64 or t-mingw-w32 for multilib configuration.
16764         * config/i386/t-mingw-w32: New.
16765         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
16766
16767 2010-05-13  Martin Jambor  <mjambor@suse.cz>
16768
16769         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
16770         gimple-fold.c).
16771         * gimple-fold.c (get_base_binfo_for_type): New function.
16772         (gimple_get_relevant_ref_binfo): Likewise.
16773         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16774         (gimple_fold_obj_type_ref): Likewise.
16775         (fold_gimple_call): Simplify condition for folding virtual calls
16776         and call gimple_fold_obj_type_ref.
16777         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
16778         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16779
16780 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
16781
16782         * config/rs6000/rs6000-protos.h
16783         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
16784         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
16785         (rs6000_debug_mode_dependent_address)
16786         (rs6000_mode_dependent_address_ptr): Likewise.
16787
16788 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16789
16790         PR debug/43983
16791         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
16792         by SRA.
16793         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
16794         * tree-sra.c (create_access_replacement): Call unshare_expr before
16795         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
16796         * dwarf2out.c: Include tree-flow.h.
16797         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
16798         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
16799         Handle DW_OP_bit_piece.
16800         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
16801         construct_piece_list, adjust_piece_list): New functions.
16802         (add_var_loc_to_decl): Handle SRA optimized variables.
16803         Adjust for var_loc_note to loc field renaming.
16804         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
16805         in VAR_LOCATION note.
16806         (new_loc_descr_op_bit_piece): New function.
16807         (dw_sra_loc_expr): New function.
16808         (dw_loc_list): Use it.  Don't handle the last range after the
16809         loop, handle it inside of the loop.  Adjust for var_loc_note
16810         to loc field renaming.
16811         (add_location_or_const_value_attribute): Only special case
16812         single entry loc lists if loc is NOTE_P.  Adjust for
16813         var_loc_note to loc field renaming.
16814         (dwarf2out_var_location): Don't set newloc->var_loc_note
16815         and newloc->next here.
16816
16817 2010-05-12  Jan Hubicka  <jh@suse.cz>
16818
16819         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
16820         flag.
16821         * cgraph.h (cgraph_only_called_directly_p,
16822         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
16823         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
16824         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
16825         (assemble
16826         * ipa.c (cgraph_remove_unreachable_nodes): Use
16827         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
16828         flags.
16829         * tree-inline.c (copy_bb): Check address_taken flag.
16830         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
16831         externally_visible flag.
16832
16833 2010-05-12  Jason Merrill  <jason@redhat.com>
16834
16835         PR bootstrap/44048
16836         PR target/44099
16837         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
16838         * sdbout.c (plain_type_1): Likewise.
16839         * dwarf2out.c (is_base_type): Likewise.
16840         (gen_type_die_with_usage): Likewise.  Generate
16841         DW_TAG_unspecified_type for any LANG_TYPE.
16842
16843 2010-05-12  Jan Hubicka  <jh@suse.cz>
16844
16845         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
16846         indrect edges too.
16847         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
16848         (cgraph_clone_edge): Update.
16849         (cgraph_node_remove_callees): Remove indirect calls too.
16850         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
16851         (cgraph_create_indirect_edge): Update prototype.
16852         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
16853         is_proper_for_analysis.
16854         (add_new_function, visited_nodes, function_insertion_hook_holder,
16855         get_local_reference_vars_info, mark_address_taken, mark_address,
16856         mark_load, mark_store, check_asm_memory_clobber, check_call,
16857         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
16858         (ipa_init): Do not initialize visited_nodes;
16859         function_insertion_hook_holder.
16860         (analyze_variable): Rewrite.
16861         (analyze_function): Rewrite.
16862         (copy_local_bitmap): Remove.
16863         (duplicate_node_dat): Do not duplicate local info.
16864         (generate_summary): Simplify to only walk cgraph.
16865         (write_node_summary_p, ipa_reference_write_summary,
16866         ipa_reference_read_summary): Remove.
16867         (propagate): Do not remove function insertion;
16868         generate summary.
16869         (pass_ipa_reference): NULLify summary handling fields.
16870         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
16871         (input_edge): Input ecf_flags.
16872         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
16873         (update_indirect_edges_after_inlining): Ignore edges with unknown
16874         param.
16875
16876 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
16877
16878         * implicit-zee.c: New file.
16879         * tree-pass.h (pass_implicit_zee): Declare.
16880         * passes.c (init_optimization_passes): Add zee pass.
16881         * common.opt (fzee): New flag.
16882         * timevar.def (TV_ZEE): Define.
16883         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
16884         and beyond.
16885         * Makefile.in (implicit-zee.o): Add new build file.
16886
16887 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16888             Nathan Froyd  <froydnj@codesourcery.com>
16889
16890         * c-common.c (sync_resolve_params): Remove write-only variable.
16891
16892 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
16893
16894         * target.h (struct gcc_target): Add mode_dependent_address_p field.
16895         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16896         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
16897         * targhooks.c (default_mode_dependent_address_p): New function.
16898         * targhooks.h (default_mode_dependent_address_p): Declare function.
16899         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16900         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
16901         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
16902         target hook. Change return type to bool.
16903         * recog.h (mode_dependent_address_p): Change return type to bool.
16904
16905 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16906             Nathan Froyd  <froydnj@codesourcery.com>
16907
16908         * tree-mudflap.c (build_function_type_0, build_function_type_1,
16909         build_function_type_2, build_function_type_3): Remove.
16910         (mudflap_init): Use build_function_type_list.
16911
16912 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16913             Nathan Froyd  <froydnj@codesourcery.com>
16914
16915         * coverage.c (build_fn_info_value): Call build_constructor instead of
16916         build_constructor_from_list.
16917         (build_ctr_info_value): Likewise.
16918         (build_gcov_info): Likewise.
16919
16920 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
16921
16922         * tree.c (build_constructor): Compute TREE_CONSTANT for the
16923         resultant constructor.
16924         (build_constructor_single): Don't set TREE_CONSTANT.
16925         (build_constructor_from_list): Don't compute TREE_CONSTANT.
16926
16927 2010-05-12  Jan Hubicka  <jh@suse.cz>
16928
16929         * cgraph.h (struct varpool_node): Add aux.
16930         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
16931         * varpool.c (varpool_remove_node): Do not remove initializer.
16932         (varpool_reset_queue): Export.
16933         (varpool_finalize_decl): Volatile vars are forced to be output.
16934         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
16935         replaced decl.
16936         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
16937         process_references, varpool_can_remove_if_no_refs): New functions.
16938         (cgraph_remove_unreachable_nodes): Handle variables too.
16939
16940 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16941
16942         PR target/44088
16943         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
16944
16945 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
16946
16947         PR middle-end/44085
16948         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
16949         change value of ORT_TASK.
16950         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
16951         (omp_notice_threadprivate_variable): New function.
16952         (omp_notice_variable): Call it for threadprivate variables.
16953         If enclosing ctx is a task, print enclosing task rather than
16954         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
16955         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
16956         if task has untied clause.
16957
16958         PR debug/42278
16959         * dwarf2out.c (base_type_die): Don't add name attribute here.
16960         (modified_type_die): Instead of sizetype use
16961         its underlying original type.  If a DW_TAG_base_type doesn't
16962         have name added, add __unknown__.
16963         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
16964         always call force_type_die instead.
16965
16966 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
16967
16968         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
16969         for __stack_chk_guard.
16970
16971 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
16972
16973         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
16974         don't call start_source_file debug hook here...
16975         (finish_options): ... but here, after outputting predefined and
16976         command line defines and undefs.
16977
16978         PR middle-end/44071
16979         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
16980         no fallthru edge.
16981         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
16982         optimizing away empty bb with no successors, move over its
16983         footer chain to fallthru predecessor.
16984         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
16985         (rtl_split_edge): For asm goto call patch_jump_insn even if
16986         splitting fallthru edge.
16987
16988         PR c++/44059
16989         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
16990         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
16991         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
16992         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
16993         on DW.ref.* decls.
16994
16995         PR c++/44062
16996         * c-parser.c (c_parser_expression): Mark LHS of a comma
16997         expression as read if it is a decl, handled component or
16998         COMPOUND_EXPR with that on the RHS.
16999         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
17000         if it is a decl or handled component.
17001
17002 2010-05-11  Jan Hubicka  <jh@suse.cz>
17003
17004         * lto-symtab.c (lto_symtab_free): New function.
17005         * lto-streamer.h (lto_symtab_free): Declare.
17006
17007 2010-05-11  Jan Hubicka  <jh@suse.cz>
17008
17009         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
17010         that if function is needed it is reachable.
17011         (lto_output_node): See if it the function is reachable or referenced.
17012         (output_cgraph): Update call of lto_output_node.
17013         * lto-streamer.h (reachable_from_other_partition_p): Declare.
17014
17015 2010-05-11  Jan Hubicka  <jh@suse.cz>
17016
17017         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
17018         Mark as used.
17019
17020 2010-05-11  Jan Hubicka  <jh@suse.cz>
17021
17022         PR tree-optimize/44063
17023         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
17024         queue.
17025         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
17026         limits.
17027         (estimate_function_body_sizes): Compute sizes even when disregarding.
17028
17029 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
17030
17031         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
17032
17033 2010-05-11  Jan Hubicka  <jh@suse.cz>
17034
17035         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
17036         into every boundary.
17037
17038 2010-05-11  Jan Hubicka  <jh@suse.cz>
17039
17040         * matrix-reorg.c (matrix_reorg): Rebuild edges.
17041
17042 2010-05-11  Jan Hubicka  <jh@suse.cz>
17043
17044         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
17045         lto_streamer_cache_delete): Put nodes into heap.
17046         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
17047         heap.
17048
17049 2010-05-11  Jan Hubicka  <jh@suse.cz>
17050
17051         * cgraphbuild.c (cgraph_rebuild_references): New.
17052         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
17053         out extern inlines.
17054         * cgraph.h (cgraph_rebuild_references): Declare.
17055         * tree-inline.c (tree_function_versioning): Use it.
17056         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
17057
17058 2010-05-11  Jan Hubicka  <jh@suse.cz>
17059
17060         * cgraph.c: Include ipa-utils.h
17061         (cgraph_create_virtual_clone): Update references.
17062         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
17063
17064 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17065
17066         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
17067         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
17068         cache size.
17069
17070 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17071
17072         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
17073
17074 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17075
17076         * gcc.c (execute): For -### don't quote arguments that
17077         contain just alphanumerics and _/-. characters.
17078         * doc/invoke.texi: Document that change for -###.
17079
17080         PR debug/44023
17081         * df-problems.c (struct dead_debug): Add to_rescan field.
17082         (dead_debug_init): Clear to_rescan field.
17083         (dead_debug_finish): Rescan all debug insns in to_rescan
17084         bitmap and free the bitmap.
17085         (dead_debug_insert_before): Instead of rescanning debug insns
17086         immediately queue their rescanning until dead_debug_finish.
17087         (df_note_bb_compute): After dead_debug_add do continue instead
17088         of break.
17089
17090 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
17091
17092         PR debug/44028
17093         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
17094         clear also INSN_REG_USE_LIST.
17095
17096 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17097
17098         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
17099
17100 2010-05-10  Jan Hubicka  <jh@suse.cz>
17101
17102         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
17103         commited change.
17104
17105 2010-05-10  Jan Hubicka  <jh@suse.cz>
17106
17107         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
17108         Allocate encoders.
17109         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
17110         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
17111         (lto_streamer_cache_create): Init alloc pool.
17112         (lto_streamer_cache_delete): Free alloc pool.
17113         * lto-streamer.h: Include alloc pool.
17114         (lto_streamer_cache_d): Use alloc pool.
17115         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
17116
17117 2010-05-10  Jan Hubicka  <jh@suse.cz>
17118
17119         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
17120         * cgraphbuild.c: Include except.h
17121         (record_type_list, record_eh_tables): New function.
17122         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
17123
17124 2010-05-10  Jan Hubicka  <jh@suse.cz>
17125
17126         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
17127         __frame_dummy_init_array_entry, force_to_data): Attribute as used
17128         rather than unused.
17129
17130 2010-05-10  Michael Matz  <matz@suse.de>
17131
17132         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
17133         (can_reassociate_p): Use FLOAT_TYPE_P.
17134         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
17135         (vect_force_simple_reduction): ... this.
17136         * tree-parloops.c (gather_scalar_reductions): Use
17137         vect_force_simple_reduction.
17138         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
17139         vect_is_simple_reduction, add modify argument, if true rewrite
17140         "a-b" into "a+(-b)".
17141         (vect_is_simple_reduction, vect_force_simple_reduction): New
17142         functions.
17143         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
17144
17145 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17146             Vladimir Makarov  <vmakarov@redhat.com>
17147
17148         PR rtl-optimization/44012
17149         * ira-build.c (remove_unnecessary_allocnos): Nullify
17150         regno_allocno_map of the removed allocno.
17151
17152 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17153
17154         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
17155         to /dev/null.
17156         * configure: Regenerate.
17157
17158 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17159
17160         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
17161         unused.
17162         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
17163         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
17164         support in Sun ld.
17165         * configure: Regenerate.
17166
17167 2010-05-10  Richard Guenther  <rguenther@suse.de>
17168
17169         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
17170         marked if the entry identifier is marked.
17171
17172 2010-05-10  Richard Guenther  <rguenther@suse.de>
17173
17174         * c-common.c (struct c_common_attributes): Add fnspec attribute.
17175         (handle_fnspec_attribute): New function.
17176         * gimple.h (gimple_call_return_flags): Declare.
17177         (gimple_call_arg_flags): Likewise.
17178         * gimple.c (gimple_call_arg_flags): New function.
17179         (gimple_call_return_flags): Likewise.
17180         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
17181         New argument flags.
17182         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
17183         return value flags.
17184         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
17185         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
17186         main work to ...
17187         (make_heapvar_for): ... this new function.
17188         (handle_rhs_call): Handle fnspec attribute argument specifiers.
17189         (handle_lhs_call): Likewise.
17190         (find_func_aliases): Adjust.
17191
17192 2010-05-10  Richard Guenther  <rguenther@suse.de>
17193
17194         PR tree-optimization/44050
17195         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
17196
17197 2010-05-10  Wei Guozhi  <carrot@google.com>
17198
17199         PR target/42879
17200         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
17201
17202 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17203
17204         PR c/10676
17205         * c-typeck.c (lookup_field): Take a type directly.  Update
17206         recursive calls.
17207         (build_component_ref): Update call to lookup_field.
17208         (set_init_label): Use lookup_field to find initialized field.
17209         Handle returned list of fields like a sequence of designators.
17210
17211 2010-05-09  Richard Guenther  <rguenther@suse.de>
17212
17213         PR middle-end/44024
17214         * fold-const.c (tree_single_nonzero_warnv_p): Properly
17215         handle &FUNCTION_DECL.
17216
17217 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17218
17219         PR c/4784
17220         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
17221         structures and unions recursively.
17222         (detect_field_duplicates): Move duplicate detection with a hash to
17223         detect_field_duplicates_hash.  Always use a hash if anonymous
17224         structures or unions are present.
17225         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
17226         give errors.
17227
17228 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17229
17230         PR target/44046
17231         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
17232         detect Atom, Core 2 and Core i7.
17233
17234 2010-05-09  Richard Guenther  <rguenther@suse.de>
17235
17236         * gcc.c (store_arg): Handle temporary file deletion for
17237         joined arguments.
17238
17239 2010-05-09  Richard Guenther  <rguenther@suse.de>
17240
17241         PR middle-end/44043
17242         * ipa-inline.c (estimate_function_body_sizes): Return after
17243         disregarding inline limits.
17244
17245 2010-05-09  Richard Guenther  <rguenther@suse.de>
17246
17247         * gcc.c (store_arg): Revert last change.
17248
17249 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
17250
17251         PR middle-end/28685
17252         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
17253         (optimize_ops_list): Call it.
17254
17255 2010-05-08  Richard Guenther  <rguenther@suse.de>
17256
17257         PR tree-optimization/44030
17258         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
17259         NECESSARY flag if we propagate from a inserted expression.
17260
17261 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17262
17263         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
17264         domain types as equal if they are both PLACEHOLDER_EXPRs.
17265
17266 2010-05-08  Richard Guenther  <rguenther@suse.de>
17267
17268         * lto-wrapper.c (run_gcc): Remove linker output from
17269         command line for LTRANS invocation.
17270
17271 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17272
17273         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17274         lto-macho as lto_binary_reader.
17275         * target.h (struct gcc_target): New hooks lto_start and lto_end.
17276         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
17277         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
17278         in lto_start and lto_end calls.
17279         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
17280         magic numbers.
17281         (scan_prog_file): Update is_elf_or_coff call.
17282         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
17283
17284         * collect2.c (main): Fix enum comparison.
17285
17286         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
17287         Add prototypes.
17288         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
17289         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
17290         and TARGET_ASM_LTO_END.
17291         * darwin.c: Include obstack.h and lto-streamer.h.
17292         (lto_section_names_offset, lto_section_names_obstack,
17293         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
17294         global variables.
17295         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
17296         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
17297         to a temporary file.
17298         (darwin_asm_lto_end): New function.  Restore asm_out_file.
17299         (darwin_asm_named_section): For LTO sections, replace the name with
17300         the offset of the section name in a string table, and build this
17301         table.
17302         (darwin_file_start): Initialize global vars for LTO support.
17303         (darwin_file_end): If output to asm_out_file was redirected, append it
17304         to the proper asm_out_file here.  Add the section names section.
17305
17306 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17307
17308         * c-pragma.c (pending_weak_d, pending_weak): New.
17309         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
17310         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
17311         handle_pragma_weak): Update the uses of pending_weaks.
17312
17313 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17314
17315         PR documentation/44016
17316         * doc/standards.texi (Standards): Link to unversioned
17317         cxx0x_status.html page.
17318
17319 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
17320
17321         PR target/43708
17322         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
17323         in addition to TREE_USED, to avoid "set but unused" warnings.
17324
17325 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17326
17327         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
17328         (is_loop_prefetching_profitable): Do not insert prefetches
17329         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
17330         times the prefetch ahead distance.
17331
17332 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17333
17334         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
17335         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
17336         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
17337         the unroll_factor.
17338
17339 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17340
17341         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
17342         a diagnostic info when the insn-to-mem ratio is too small.
17343
17344 2010-05-07  Richard Guenther  <rguenther@suse.de>
17345
17346         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
17347         the linker plugin.
17348         (store_arg): Queue temp_filename for deletion instead of
17349         the whole argument.
17350
17351 2010-05-07  Richard Guenther  <rguenther@suse.de>
17352
17353         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
17354         (run_gcc): Handle LTRANS phase invocation.
17355         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
17356
17357 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
17358
17359         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
17360         this is also meaningful on PARM_DECLs and RESULT_DECLs.
17361
17362 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17363
17364         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
17365
17366 2010-05-07  Richard Guenther  <rguenther@suse.de>
17367
17368         PR tree-optimization/44020
17369         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
17370         code when PRE is not yet initialized.
17371
17372 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17373
17374         * config/mips/dbxmdebug.h: Remove.
17375         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
17376
17377 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
17378
17379         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
17380         with null pointer and also warn about ordered comparison of zero with
17381         pointer if -Wextra.
17382
17383 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17384
17385         * graphite-blocking.c
17386         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
17387         * graphite-clast-to-gimple.c
17388         (clast_to_gcc_expression): Same.
17389         (precision_for_value): Same.
17390         (precision_for_interval): Same.
17391         (gcc_type_for_interval): Same.
17392         (graphite_create_new_guard): Same.
17393         (compute_bounds_for_level): Same.
17394         (graphite_create_new_loop_guard): Same.
17395         * graphite-interchange.c
17396         (build_linearized_memory_access): Same.
17397         (pdr_stride_in_loop): Same.
17398         (memory_strides_in_loop_1): Same.
17399         (memory_strides_in_loop): Same.
17400         (extend_scattering): Same.
17401         (psct_scattering_dim_for_loop_depth): Same.
17402         (pbb_number_of_iterations): Same.
17403         * graphite-poly.h
17404         (debug_iteration_domains): Same.
17405         * graphite-ppl.c
17406         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17407         (ppl_set_inhomogeneous_gmp): Same.
17408         (ppl_strip_loop): Same.
17409         (ppl_lexico_compare_linear_expressions): Same.
17410         (ppl_read_polyhedron_matrix): Same.
17411         (ppl_max_for_le_pointset): Same.
17412         * graphite-ppl.h
17413         (ppl_read_polyhedron_matrix): Same.
17414         (tree_int_to_gmp): Same.
17415         (gmp_cst_to_tree): Same.
17416         (ppl_set_inhomogeneous): Same.
17417         (ppl_set_inhomogeneous_tree): Same.
17418         (ppl_set_coef): Same.
17419         (ppl_set_coef_tree): Same.
17420         * graphite-sese-to-poly.c
17421         (build_pbb_scattering_polyhedrons): Same.
17422         (build_scop_scattering): Same.
17423         (scan_tree_for_params_right_scev): Same.
17424         (scan_tree_for_params): Same.
17425         (find_params_in_bb): Same.
17426         (find_scop_parameters): Same.
17427         (add_upper_bounds_from_estimated_nit): Same.
17428         (build_loop_iteration_domains): Same.
17429         (add_condition_to_domain): Same.
17430         (pdr_add_memory_accesses): Same.
17431
17432 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17433
17434         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
17435         CLooG's value_* macros to their respective mpz_* counterparts.
17436         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
17437         (graphite_create_new_loop_guard): Same.
17438         * graphite-interchange.c (build_linearized_memory_access): Same.
17439         (pdr_stride_in_loop): Same.
17440         (memory_strides_in_loop_1): Same.
17441         (1st_interchange_profitable_p): Same.
17442         * graphite-poly.c (extend_scattering): Same.
17443         (psct_scattering_dim_for_loop_depth): Same.
17444         (pbb_number_of_iterations): Same.
17445         (pbb_number_of_iterations_at_time): Same.
17446         * graphite-poly.h (new_1st_loop): Same.
17447         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
17448         (oppose_constraint): Same.
17449         (insert_constraint_into_matrix): Same.
17450         (ppl_set_inhomogeneous_gmp): Same.
17451         (ppl_set_coef_gmp): Same.
17452         (ppl_strip_loop): Same.
17453         (ppl_lexico_compare_linear_expressions): Same.
17454         (ppl_max_for_le_pointset): Same.
17455         (ppl_min_for_le_pointset): Same.
17456         (ppl_build_realtion): Same.
17457         * graphite-ppl.h (gmp_cst_to_tree): Same.
17458         (ppl_set_inhomogeneous): Same.
17459         (ppl_set_inhomogeneous_tree): Same.
17460         (ppl_set_coef): Same.
17461         (ppl_set_coef_tree): Same.
17462         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17463         (build_scop_scattering): Same.
17464         (add_value_to_dim): Same.
17465         (scan_tree_for_params_right_scev): Same.
17466         (scan_tree_for_params_int): Same.
17467         (scan_tree_for_params): Same.
17468         (find_params_in_bb): Same.
17469         (find_scop_parameters): Same.
17470         (add_upper_bounds_from_estimated_nit): Same.
17471         (build_loop_iteration_domains): Same.
17472         (create_linear_expr_from_tree): Same.
17473         (add_condition_to_domain): Same.
17474         (pdr_add_memory_accesses): Same.
17475
17476 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
17477             Jason Merrill  <jason@redhat.com>
17478
17479         * c-common.c (c_common_reswords): Add nullptr.
17480         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
17481         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
17482         (gen_type_die_with_usage): Likewise.
17483         * dbxout.c (dbxout_type): Likewise.
17484         * sdbout.c (plain_type_1): Likewise.
17485
17486 2010-05-06  Jason Merrill  <jason@redhat.com>
17487
17488         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
17489         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
17490         ret appropriately.
17491         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
17492
17493         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
17494         stripping WITH_SIZE_EXPR.
17495         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
17496         change.
17497
17498 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17499
17500         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
17501         list of obsolete configurations.
17502         Disabled check for obsolete configurations.
17503         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
17504         Removed support for previous versions.
17505         * config/mips/iris.h: Removed.
17506         * config/mips/iris5.h: Removed.
17507         * config/mips/iris6.h: Merged old iris.h contents.
17508         (TARGET_IRIX): Removed.
17509         (DRIVER_SELF_SPECS): Removed mabi=32.
17510         (IDENT_ASM_OP): Removed undef.
17511         (STARTFILE_SPEC): Removed mabi=32.
17512         (ENDFILE_SPEC): Likewise.
17513         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
17514         (MACHINE_TYPE): Update for IRIX 6.5.
17515         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
17516         TARGET_IRIX by TARGET_IRIX6.
17517         (mips_file_start): Likewise.
17518         (mips_output_external): Remove IRIX 5/6 O32 support.
17519         (mips_output_function_prologue): Likewise.
17520         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
17521         TARGET_IRIX6.
17522         (TARGET_CPU_CPP_BUILTINS): Likewise.
17523         (TARGET_IRIX): Removed.
17524         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
17525         (MULTILIB_DIRNAMES): Removed 32.
17526         (MULTILIB_OSDIRNAMES): Removed ../lib.
17527         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
17528         (Specific, mips-sgi-irix5): Document removal.
17529         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
17530         Remove references to older IRIX 6 releases and the O32 ABI.
17531
17532 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
17533
17534         PR bootstrap/43994
17535         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
17536         instead of DF_REF_REAL_REG.
17537
17538 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17539
17540         PR target/43888
17541         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
17542         handling to still return true for x64 targets.
17543
17544 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17545
17546         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
17547
17548 2010-05-06  Jan Hubicka  <jh@suse.cz>
17549
17550         PR tree-optimization/43791
17551         * ipa-inline.c (update_caller_keys): Remove bogus
17552         disregard_inline_limits check.
17553
17554 2010-05-06  Michael Matz  <matz@suse.de>
17555
17556         PR tree-optimization/43984
17557         * tree-ssa-pre.c (inserted_phi_names): Remove.
17558         (inserted_exprs): Change to bitmap.
17559         (create_expression_by_pieces): Set bits, don't append to vector.
17560         (insert_into_preds_of_block): Don't handle inserted_phi_names.
17561         (eliminate): Don't look at inserted_phi_names, remove deleted
17562         insns from inserted_exprs.
17563         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
17564         (init_pre, fini_pre): Allocate and free bitmaps.
17565         (execute_pre): Insert insns on edges before elimination.
17566
17567 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17568
17569         * tree.c (initializer_zerop): Handle STRING_CST.
17570
17571 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17572
17573         PR 40989
17574         * doc/invoke.texi (Wimplicit): Document as C only.
17575         * opts.c (common_handle_option): Add argument kind.
17576         (handle_option): Rename as read_cmdline_option. Factor out code to...
17577         (handle_option): ... here. New.
17578         (handle_options): Rename as read_cmdline_options.
17579         (decode_options): Update call.
17580         (set_option): Use option index instead of option pointer. Classify
17581         diagnostics correctly.
17582         (enable_warning_as_error): Call handle_option.
17583         * opts.h (set_option): Update declaration.
17584         (handle_option): Declare.
17585         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
17586         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
17587         * c-opts.c (set_Wimplicit): Delete.
17588         (c_family_lang_mask): New static constant.
17589         (c_common_handle_option): Add argument kind. Use handle_option
17590         instead of set_Wimplicit.
17591         (c_common_post_options): warn_implicit and warn_implicit_int
17592         are disabled by default.
17593         * c-common.c (warn_implicit): Do not define here.
17594         * c-common.h (warn_implicit): Do not declare here.
17595         (c_common_handle_option): Update declaration.
17596         * lto-opts.c (lto_reissue_options): Update call to set_option.
17597
17598 2010-05-06  Richard Guenther  <rguenther@suse.de>
17599
17600         PR tree-optimization/43571
17601         * domwalk.c (walk_dominator_tree): Walk the dominator
17602         sons in more optimal order.
17603
17604 2010-05-06  Richard Guenther  <rguenther@suse.de>
17605
17606         PR tree-optimization/43934
17607         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
17608         (stmt_cost): Likewise.
17609         (extract_true_false_args_from_phi): New helper.
17610         (determine_max_movement): For PHI nodes verify we can hoist them
17611         and compute their cost.
17612         (determine_invariantness_stmt): Handle PHI nodes.
17613         (move_computations_stmt): Likewise.  Hoist PHI nodes in
17614         if-converted form using COND_EXPRs.
17615         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
17616         (tree_ssa_lim): Likewise.
17617         * tree-flow.h (tree_ssa_lim): Adjust prototype.
17618         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
17619
17620 2010-05-06  Richard Guenther  <rguenther@suse.de>
17621
17622         PR tree-optimization/43987
17623         * tree-ssa-structalias.c (could_have_pointers): For possibly
17624         address-taken variables force pointers to be recorded.
17625         (create_variable_info_for_1): Likewise.
17626         (push_fields_onto_fieldstack): Pass in wheter all fields
17627         must have pointers.
17628         (find_func_aliases): Query types instead of vars whether
17629         they contain pointers where appropriate.
17630
17631 2010-05-06  Jan Hubicka  <jh@suse.cz>
17632
17633         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
17634         (record_reference, mark_address, mark_load, mark_store): Record
17635         references.
17636         (record_references_in_initializer): Update call of record_references.
17637         (rebuild_cgraph_edges): Remove all references before rebuiding.
17638         * cgraph.c (cgraph_create_node): Clear ref list.
17639         (cgraph_remove_node): Remove references.
17640         (dump_cgraph_node): Dump references.
17641         (cgraph_clone_node): Clone references.
17642         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
17643         (struct cgraph_node, varpool_node): Add ref_lst.
17644         * ipa-ref.c: New file.
17645         * ipa-ref.h: New file.
17646         * ipa-ref-inline.h: New file.
17647         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
17648         (referenced_from_other_partition_p): New function.
17649         (lto_output_varpool_node): Take set arugment; call
17650         referenced_from_other_partition.
17651         (lto_output_ref): New.
17652         (add_references): New.
17653         (output_refs): New.
17654         (output_cgraph): Compute boundary based on references; output refs.
17655         (output_varpool): Accept cgraph_node_set argument.
17656         (input_ref): New.
17657         (input_refs): New.
17658         (input_cgraph): Call input_refs.
17659         * lto-section-in.c (lto_section_name): Add refs.
17660         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
17661         (ipa-ref.o): New file.
17662         * varpool.c (varpool_node): Clear ipa ref list.
17663         (varpool_remove_node): Remove references.
17664         (dump_varpool_node): Dump references.
17665         (varpool_assemble_decl): Only compile finalized ones.
17666         (varpool_extra_name_alias): Initialize ref list.
17667         * lto-streamer.c (lto-get_section_name): Add .refs section.
17668         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
17669         (referenced_from_other_partition_p): Declared.
17670
17671 2010-05-06  Ira Rosen  <irar@il.ibm.com>
17672
17673         PR tree-optimization/43901
17674         * tree-vect-stmts.c (vectorizable_call): Assert that vector
17675         type is not NULL if it's transformation phase, and return
17676         FALSE if it's analysis.
17677         (vectorizable_conversion, vectorizable_operation,
17678         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
17679
17680 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
17681
17682         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17683         Delete.
17684         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17685         New define.
17686         * config/mips/mips-protos.h
17687         (mips_small_register_classes_for_mode_p): Delete prototype.
17688
17689 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
17690
17691         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
17692         * config/arm/arm.c (multiple_operation_profitable_p,
17693         compute_offset_order): New static functions.
17694         (load_multiple_sequence, store_multiple_sequence): Use them.
17695         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
17696         memory offsets, not register numbers.
17697         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
17698
17699 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
17700
17701         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
17702         (get_pending_sizes, put_pending_size, put_pending_sizes):
17703         Update the uses of pending_sizes.
17704         * c-decl.c (store_parm_decls): Likewise.
17705         * c-tree.h (struct c_arg_info): Likewise.
17706         * tree.h: Update the prototype for get_pending_sizes and
17707         put_pending_sizes.
17708
17709 2010-05-05  Jason Merrill  <jason@redhat.com>
17710
17711         PR debug/43370
17712         * c-common.c (handle_aligned_attribute): Respect
17713         ATTR_FLAG_TYPE_IN_PLACE.
17714
17715         PR testsuite/43758
17716         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
17717         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17718         (TARGET_INITIALIZER): Use it.
17719         * c-common.c (attribute_takes_identifier_p): Call it.
17720         * c-common.h: Update prototype.
17721         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
17722         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17723
17724 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17725
17726         PR debug/43950
17727         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
17728         DW_ID_down_case for Fortran compilation units.
17729
17730 2010-05-05  Jan Hubicka  <jh@suse.cz>
17731
17732         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
17733         handle aliases.
17734
17735 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17736
17737         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
17738         a variable-sized RESULT_DECL.
17739
17740 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
17741
17742         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
17743
17744 2010-05-05  Jason Merrill  <jason@redhat.com>
17745
17746         PR c++/43787
17747         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
17748         returns GS_OK.
17749         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
17750
17751 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
17752             Jakub Jelinek  <jakub@redhat.com>
17753
17754         PR debug/43478
17755         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
17756         (dead_debug_init, dead_debug_finish): New functions.
17757         (dead_debug_add, dead_debug_insert_before): Likewise.
17758         (df_note_bb_compute): Initialize a dead_debug object, add dead
17759         debug uses to it, insert debug bind insns before death insns,
17760         reset debug insns that refer to pending uses at the end.
17761         * rtl.h (make_debug_expr_from_rtl): New prototype.
17762         * varasm.c (make_debug_expr_from_rtl): New function.
17763
17764 2010-05-05  Jan Hubicka  <jh@suse.cz>
17765
17766         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
17767         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
17768         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
17769         lto_varpool_encoder_deref, lto_varpool_encoder_size,
17770         lto_varpool_encoder_encode_initializer_p,
17771         lto_set_varpool_encoder_encode_initializer): New functions.
17772         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
17773         call output_varpool.
17774         (input_varpool_node): Do not always set analyzed.
17775         (input_cgraph_1): Return vector of cgraph nodes.
17776         (input_varpool_1): Return vector of varpools.
17777         (input_cgraph): Free the vectors.
17778         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17779         output only initializers needed.
17780         (lto_output): Only call output_cgraph.
17781         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
17782         * lto-section-out.c (lto_new_out_decl_state): Initialize
17783         state->varpool_node_encoder.
17784         * lto-streamer.h (lto_varpool_encoder_d): New.
17785         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
17786         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
17787         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
17788         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
17789         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
17790         Declare.
17791         (output_varpool, input_varpool): Remove declarations.
17792
17793 2010-05-05  Jan Hubicka  <jh@suse.cz>
17794
17795         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
17796         with body can prevail.
17797
17798 2010-05-05  Jan Hubicka  <jh@suse.cz>
17799
17800         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
17801         size.
17802
17803 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17804
17805         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
17806
17807         * gengtype.h (erro_at_line): Constify pos argument.
17808
17809         * gengtype.c: Include hashtab.h.
17810         (enum gc_used): Document GC_MAYBE_POINTED_TO.
17811         (error_at_line): Constify pos argument.
17812         (do_typedef): Initialize p->opt field.
17813         (get_file_gtfilename): Fix comment typo.
17814         (struct walk_type_data): Constify line field.
17815         (get_output_file_for_structure): New function.
17816         (write_local_func_for_structure): Constify orig_s argument.
17817         Use get_output_file_for_structure.
17818         (write_func_for_structure): Use get_output_file_for_structure.
17819         (INDENT): New define.
17820         (dump_pair, dump_type, dump_type_list, dump_typekind)
17821         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
17822         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
17823         functions.
17824         (seen_types): New variable.
17825         (main): New variable do_dump.  Process "-d" command line option.
17826         Call dump_everything if dump requested.
17827
17828 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17829
17830         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
17831         in a temporary instead of invoking the macro multiple times.
17832         (track_expr_p): Likewise.
17833
17834 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
17835
17836         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
17837         per new semantics.
17838         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
17839         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
17840         conditions for printing notes.
17841         * common.opt (-Wcoverage-mismatch): Allow negative, default to
17842         true, update documentation.
17843         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
17844
17845 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
17846
17847         PR c/43981
17848         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
17849         on dimen.
17850
17851 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17852
17853         PR target/43799
17854         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
17855         (*sse_prologue_save_insn1): Likewise.
17856         (SSE prologue save splitter): Likewise.
17857
17858 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17859
17860         * tree.c (free_lang_data_in_one_sizepos): New inline function.
17861         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
17862         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
17863         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
17864         all decls.  Call it on DECL_FIELD_OFFSET of fields.
17865         (find_decls_types_r): Follow DECL_VALUE_EXPR.
17866         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
17867
17868 2010-05-04  Martin Jambor  <mjambor@suse.cz>
17869
17870         * tree-sra.c (build_access_from_expr_1): The first parameter type
17871         changed to simple tree.
17872         (build_access_from_expr): Likewise, gsi parameter was eliminated.
17873         (scan_assign_result): Renamed to assignment_mod_result, enum elements
17874         renamed as well.
17875         (build_accesses_from_assign): Removed all parameters except for a
17876         simple gimple statement.  Now returns a simple bool.
17877         (scan_function): All non-analysis parts moved to separate functions
17878         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
17879         parameters and updated both callers.
17880         (sra_modify_expr): Removed parameter data.
17881         (sra_modify_function_body): New function.
17882         (perform_intra_sra): Call sra_modify_function_body to modify the
17883         function body.
17884         (replace_removed_params_ssa_names): Parameter data changed into
17885         adjustments vector.
17886         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
17887         changed the parameter dont_convert to convert with the opposite
17888         meaning.
17889         (sra_ipa_modify_assign): Parameter data changed into adjustments
17890         vector, return value changed to bool.
17891         (ipa_sra_modify_function_body): New function.
17892         (sra_ipa_reset_debug_stmts): Updated a comment.
17893         (modify_function): Use ipa_sra_modify_function_body to modify function
17894         body.
17895
17896 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17897
17898         PR middle-end/43671
17899         * alias.c (true_dependence): Handle the same VALUE in x and mem.
17900         (canon_true_dependence): Likewise.
17901         (write_dependence_p): Likewise.
17902
17903 2010-05-04  Jan Hubicka  <jh@suse.cz>
17904
17905         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
17906         * cgraphbuild.c: Include ipa-utils.h
17907         (record_reference_ctx): New struct.
17908         (record_reference): Simplify to work on initializers; not statements.
17909         (mark_address, mark_load, mark_store): New.
17910         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17911         walk PHI nodes too.
17912         (record_references_in_initializer): Update use of record_reference.
17913         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17914         walk PHI nodes too.
17915
17916 2010-05-04  Jan Hubicka  <jh@suse.cz>
17917
17918         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
17919         node will be removed anyway.
17920         (lto_varpool_replace_node): Allow also unanalyzed nodes;
17921         relink aliases of node into prevailing node.
17922         * varpool.c (varpool_remove_node): Remove aliases properly;
17923         when removing node, remove all its aliases too; remove DECL_INITIAL
17924         of removed node; ggc_free the varpool node.
17925
17926 2010-05-04  Richard Guenther  <rguenther@suse.de>
17927
17928         PR tree-optimization/43879
17929         * tree-ssa-structalias.c (alias_get_name): Use
17930         DECL_ASSEMBLER_NAME if available.
17931         (create_function_info_for): Return the varinfo node.
17932         (ipa_pta_execute): Associate same-body aliases and extra names
17933         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
17934
17935 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17936
17937         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
17938
17939 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
17940
17941         PR bootstrap/43964
17942         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
17943         only if HONOR_REG_ALLOC_ORDER is not defined.
17944
17945 2010-05-04  Richard Guenther  <rguenther@suse.de>
17946
17947         PR tree-optimization/43949
17948         * tree-vrp.c (extract_range_from_binary_expr): Only handle
17949         TRUNC_MOD_EXPR.
17950
17951 2010-04-26  Jason Merrill  <jason@redhat.com>
17952
17953         * c.opt (-fstrict-enums): New.
17954         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
17955
17956 2010-05-03  David Ung  <davidu@mips.com>
17957             James E. Wilson  <wilson@codesourcery.com>
17958
17959         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
17960         emit the trap instruction before the divide for TUNE_74K.
17961
17962 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
17963
17964         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
17965         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
17966         based on the above, for new target hook.
17967
17968         * hooks.c (hook_bool_mode_true): New generic hook.
17969         * hooks.h (hook_bool_mode_true): Add prototype.
17970
17971         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
17972         target hook.
17973         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
17974         target hook, set to hook_bool_mode_false.
17975         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
17976         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
17977         with targetm.small_register_classes_for_mode_p.
17978         (find_reusable_reload): Likewise.
17979         (combine_reloads): Likewise.
17980         * reload1.c (reload_as_needed): Likewise.
17981         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
17982         * ifcvt.c (noce_process_if_block, check_cond_move_block,
17983         dead_or_predicable): Likewise.
17984         * regmove.c (optimize_reg_copy_1): Likewise.
17985         * calls.c (prepare_call_address): Likewise.
17986         (precompute_register_parameters): Likewise.
17987
17988         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
17989         hook definition.
17990         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
17991         implementation of the hook that considers all register classes
17992         small except for SH64.
17993         (sh_override_options): Use the new hook.
17994         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
17995         Add prototype.
17996
17997         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
17998         hook definition.
17999         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
18000         implementation of the hook that considers all register classes
18001         small for THUMB1.
18002         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
18003         Add prototype.
18004
18005         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
18006         hook definition.
18007         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
18008         implementation of the hook that considers all register classes
18009         small for MIPS16.
18010         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
18011         Add prototype.
18012
18013         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
18014         hook definition.
18015         * config/m32c/m32c.h: Likewise.
18016         * config/pdp11/pdp11.h: Likewise.
18017         * config/avr/avr.h: Likewise.
18018         * config/xtensa/xtensa.h: Likewise.
18019         * config/m68hc11/m68hc11.h: Likewise.
18020         * config/mn10300/mn10300.h: Likewise.
18021         * config/mcore/mcore.h: Likewise.
18022         * config/h8300/h8300.h: Likewise.
18023         * config/bfin/bfin.h: Likewise.
18024
18025         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
18026         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
18027
18028 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
18029
18030         * double-int.h (tree_to_double_int): Remove macro.
18031         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
18032         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18033         (tree_to_double_int): New function.
18034         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
18035         Move ...
18036         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18037
18038 2010-05-03  Richard Guenther  <rguenther@suse.de>
18039
18040         PR tree-optimization/43971
18041         * tree-ssa-structalias.c (get_constraint_for_1): Fix
18042         constraints in the !flag_delete_null_pointer_checks case.
18043
18044 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
18045
18046         PR debug/43972
18047         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
18048         result mode matches original rtl mode.
18049
18050 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
18051
18052         PR target/43888
18053         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
18054
18055 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18056
18057         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
18058         when processing flag options.
18059
18060 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18061
18062         * gcov-iov.c (main): Change format string placeholder
18063         from %#08x to 0x%08x.
18064         * genchecksum.c (dosum): Change format string placeholder
18065         from %#02x to 0x%02x.
18066
18067 2010-05-02  Richard Guenther  <rguenther@suse.de>
18068
18069         PR tree-optimization/43879
18070         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
18071
18072 2010-05-02  Bruno Haible  <bruno@clisp.org>
18073
18074         * doc/extend.texi (Function Attributes): Fix a typo.
18075
18076 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18077
18078         Revert:
18079         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
18080         placeholder from 0x%x to %#x.
18081         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18082         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18083         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18084         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18085         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18086         * config/i386/i386.c (ix86_target_string): Ditto.
18087         * config/i386/i386.c (output_pic_addr_const): Ditto.
18088         (print_operand): Ditto.
18089
18090 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18091
18092         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
18093         placeholder from 0x%x to %#x.
18094         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
18095         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
18096         (ASM_OUTPUT_DEBUG_DATA): Ditto.
18097         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
18098         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
18099         * optc-gen.awk: Ditto.
18100         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
18101         (HOST_WIDE_INT_PRINT_HEX): Ditto.
18102         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
18103         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18104
18105 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18106
18107         * target.h (struct calls): Add function_value_regno_p field.
18108         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
18109         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
18110         * targhooks.c (default_function_value_regno_p): New function.
18111         * targhooks.h (default_function_value_regno_p): Declare function.
18112         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
18113         * builtins.c. (apply_result_size): (Ditto.).
18114         * combine.c. (likely_spilled_retval_p): (Ditto.).
18115         * mode-switching.c. Include 'target.h'.
18116         (create_pre_exit): Use function_value_regno_p hook.
18117         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
18118         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
18119         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
18120
18121         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
18122         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
18123         (ix86_function_value_regno_p): Declare as static, change argument
18124         type to const unsigned int.
18125         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
18126
18127 2010-05-01  Richard Guenther  <rguenther@suse.de>
18128
18129         PR tree-optimization/43949
18130         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
18131         types.
18132         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
18133
18134 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18135
18136         * rtl.h (CONST_DOUBLE_P): Define.
18137         (rtx_to_double_int): Declare.
18138         * emit-rtl.c (rtx_to_double_int): New function.
18139         * dwarf2out.c (insert_double): New function.
18140         (loc_descriptor, add_const_value_attribute): Clean up, use
18141         rtx_to_double_int and insert_double functions.
18142
18143 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
18144
18145         * doc/extend.texi (Inline): Add missing return keyword to examples.
18146         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
18147         "command-line".
18148
18149 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18150
18151         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
18152         the variable part of the offset as well.  Use highest_pow2_factor for
18153         all alignment checks.
18154
18155 2010-04-30  Richard Guenther  <rguenther@suse.de>
18156
18157         PR tree-optimization/43879
18158         * tree-ssa-structalias.c (type_could_have_pointers): Functions
18159         can have pointers.
18160
18161 2010-04-30  Jan Hubicka  <jh@suse.cz>
18162
18163         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
18164         varpool.
18165         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
18166
18167 2010-04-30  Jan Hubicka  <jh@suse.cz>
18168
18169         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
18170         New.
18171         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
18172         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
18173         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
18174         cgraph_node_set_needs_ltrans_p): Remove.
18175
18176 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18177
18178         * sdbout.c: Include vec.h, do not include varray.h.
18179         (deferred_global_decls, sdbout_global_decl,
18180         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
18181         * toplev.c: Do not include varray.h.
18182         (dump_memory_report): Do not dump VARRAY statistics.
18183         * gengtype.c (open_base_file): Ignore varray.h.
18184         * Makefile.in: Update for abovementioned changes.
18185         Remove all traces of varray.c and varray.h.
18186         * varray.c: Remove file.
18187         * varray.h: Remove file.
18188
18189 2010-04-30  Jan Hubicka  <jh@suse.cz>
18190
18191         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
18192         references.
18193
18194 2010-04-30  Jan Hubicka  <jh@suse.cz>
18195
18196         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
18197         needed.
18198
18199 2010-04-30  Richard Guenther  <rguenther@suse.de>
18200
18201         * tree-ssa-structalias.c (get_constraint_for_1): Generate
18202         constraints for CONSTRUCTOR.
18203
18204 2010-04-30  Richard Guenther  <rguenther@suse.de>
18205
18206         PR lto/43946
18207         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
18208         first after all lowering passes.
18209
18210 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18211
18212         * toplev.c: Include varray.h for statistics dumping.
18213         * tree.h: Do not declare varray_head_tag.
18214         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
18215         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
18216         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
18217         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
18218         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
18219         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
18220         c-common.c, c-common.h, reg-stack.c, basic-block.h,
18221         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
18222         include varray.h.
18223         * Makefile.in: Update for abovementioned changes.
18224
18225 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
18226
18227         PR debug/43942
18228         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
18229
18230 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18231
18232         * config/picochip/picochip.c (picochip_legitimize_address): Define.
18233         Use this function to do machine-specific conversion.
18234         (picochip_legitimize_reload_address): Likewise.
18235         (picochip_legitimate_address_p): Check valid base register only if
18236         strict.
18237         (picochip_check_conditional_copy): Check for modw only if opnd is
18238         register.
18239         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
18240         to call the function in c.
18241         * config/picochip/picochip-protos.h
18242         (picochip_legitimize_reload_address): Define.
18243         * config/picochip/picochip.md (supported_compare1): Define.
18244
18245 2010-04-30  Jan Hubicka  <jh@suse.cz>
18246
18247         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
18248         (cgraph_global_info): Remove inlined.
18249         (LTO_cgraph_tag_names): Remove.
18250         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
18251         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
18252         simplify cgraph tags and document.
18253         (lto_output_node): Use only LTO_cgraph_unavail_node and
18254         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
18255         for_functions_valid, global info, process and output flags.
18256         (input_overwrite_node): Initialize estimated stack size and
18257         estimated growth.  Do not read flags we no longer store.
18258         (input_node): Likewise do not read info no longer stored.
18259         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
18260         flag.
18261
18262 2010-04-30  Richard Guenther  <rguenther@suse.de>
18263
18264         PR tree-optimization/43879
18265         * tree-ssa-structalias.c (get_constraint_for_1): Properly
18266         handle non-zero initializers.
18267
18268 2010-04-30  Richard Guenther  <rguenther@suse.de>
18269
18270         * builtins.c (fold_builtin_1): Delete free (0).
18271
18272 2010-04-29  Jan Hubicka  <jh@suse.cz>
18273
18274         * gengtype.c (open_base_files): Add lto-streamer.h
18275         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
18276         (pass_ipa_cp): GGC collect.
18277         * toplev. (compile_file): Do not output symbols.
18278         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
18279         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
18280         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
18281         * lto-section-in.c: Include ggc.h
18282         (lto_new_in_decl_state): Alloc in GGC.
18283         (lto_delete_in_decl_state): Likewise.
18284         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
18285         Collect.
18286
18287 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18288
18289         PR target/42895
18290         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
18291         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
18292         (HONOR_REG_ALLOC_ORDER): Describe new macro.
18293         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
18294         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
18295         account only if HONOR_REG_ALLOC_ORDER is not defined.
18296         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
18297         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
18298
18299 2010-04-29  Jon Grant  <04@jguk.org>
18300
18301         * collect2.c (vflag): Change type from int to bool.
18302         (debug): Likewise.
18303         (helpflag): New global bool.
18304         (main): Set vflag and debug with boolean, not integer truth values.
18305         Accept new "--help" option and output usage text if found.
18306         * collect2.h (vflag): Update prototype.
18307         (debug): Likewise.
18308
18309 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18310
18311         PR bootstrap/43936
18312         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
18313
18314 2010-04-29  Richard Guenther  <rguenther@suse.de>
18315
18316         PR bootstrap/43935
18317         * plugin.h (invoke_plugin_callbacks): Annotate arguments
18318         with ATTRIBUTE_UNUSED.
18319
18320 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18321
18322         PR target/43921
18323         * config/i386/i386.c (get_some_local_dynamic_name): Replace
18324         INSN_P with NONDEBUG_INSN_P.
18325         (distance_non_agu_define): Likewise.
18326         (distance_agu_use): Likewise.
18327
18328 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18329
18330         From Dominique d'Humieres  <dominiq@lps.ens.fr>
18331         PR bootstrap/43858
18332         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
18333         test_set.
18334
18335 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
18336
18337         * plugin.h (invoke_plugin_callbacks): New inline function.
18338         * plugin.c (flag_plugin_added): New global flag.
18339         (add_new_plugin): Initialize above flag.
18340         (invoke_plugin_callbacks): Rename to ...
18341         (invoke_plugin_callbacks_full): ... this.
18342
18343 2010-04-28  Jan Hubicka  <jh@suse.cz>
18344
18345         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
18346         (lto_varpool_replace_node): New.
18347         (lto_symtab_resolve_symbols): Resolve varpool nodes.
18348         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
18349         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
18350         * cgraph.h (varpool_node_ptr): New type.
18351         (varpool_node_ptr): New vector.
18352         (varpool_node_set_def): New structure.
18353         (varpool_node_set): New type.
18354         (varpool_node_set): New vector.
18355         (varpool_node_set_element_def): New structure.
18356         (varpool_node_set_element, const_varpool_node_set_element): New types.
18357         (varpool_node_set_iterator): New type.
18358         (varpool_node): Add prev pointers, add used_from_other_partition,
18359         in_other_partition.
18360         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
18361         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
18362         varpool_get_node, varpool_remove_node): Declare.
18363         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
18364         varpool_node_set_size): New inlines.
18365         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
18366         * tree-pass.h (varpool_node_set_def): Forward declare.
18367         (ipa_opt_pass_d): Summary writting takes vnode sets too.
18368         (ipa_write_optimization_summaries): Update prototype.
18369         * ipa-cp.c (ipcp_write_summary): Update.
18370         * ipa-reference.c (ipa_reference_write_summary): Update.
18371         * lto-cgraph.c (lto_output_varpool_node): New static function.
18372         (output_varpool): New function.
18373         (input_varpool_node): New static function.
18374         (input_varpool_1): New function.
18375         (input_cgraph): Input varpool.
18376         * ipa-pure-const.c (pure_const_write_summary): Update.
18377         * lto-streamer-out.c (lto_output): Update, output varpool too.
18378         (write_global_stream): Kill WPA hack.
18379         (produce_asm_for_decls): Update.
18380         (output_alias_pair_p): Handle variables.
18381         (output_unreferenced_globals): Output only needed partition of varpool.
18382         * ipa-inline.c (inline_write_summary): Update.
18383         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
18384         cgraph.
18385         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
18386         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
18387         varpool_node_set_new, varpool_node_set_add,
18388         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
18389         debug_varpool_node_set): New functions.
18390         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
18391         (execute_one_pass): Process new decls too.
18392         (ipa_write_summaries_2): Pass around vsets.
18393         (ipa_write_summaries_1): Likewise.
18394         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
18395         to add.
18396         (ipa_write_optimization_summaries_1): Pass around vsets.
18397         (ipa_write_optimization_summaries): Likewise.
18398         * varpool.c (varpool_get_node): New.
18399         (varpool_node): Update doubly linked lists.
18400         (varpool_remove_node): New.
18401         (dump_varpool_node): More dumping.
18402         (varpool_enqueue_needed_node): Update doubly linked lists.
18403         (decide_is_variable_needed): Kill ltrans hack.
18404         (varpool_finalize_decl): Kill lto hack.
18405         (varpool_assemble_decl): Skip decls in other partitions.
18406         (varpool_assemble_pending_decls): Update doubly linkes lists.
18407         (varpool_empty_needed_queue): Likewise.
18408         (varpool_extra_name_alias): Likewise.
18409         * lto-streamer.c (lto_get_section_name): Add vars section.
18410         * lto-streamer.h (lto_section_type): Update.
18411         (output_varpool, input_varpool): Declare.
18412
18413 2010-04-28  Mike Stump  <mikestump@comcast.net>
18414
18415         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
18416
18417 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18418
18419         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
18420         record or union type with RECORD_OR_UNION_TYPE_P predicate.
18421         (lto_input_ts_type_tree_pointers): Likewise.
18422         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
18423         (lto_output_ts_type_tree_pointers): Likewise.
18424
18425 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18426
18427         Uniquization of constants at the Tree level
18428         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
18429         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
18430         bit to the end.
18431         (tree_output_constant_def): Declare.
18432         * gimplify.c (gimplify_init_constructor): When using block copy, first
18433         uniquize the constant constructor on the RHS.
18434         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
18435         DECL_IN_CONSTANT_POOL flag.
18436         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
18437         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
18438         constant pool.
18439         (assemble_variable): Deal with symbols belonging to the tree constant
18440         pool.
18441         (get_constant_section): Add ALIGN parameter and simplify.
18442         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
18443         (assemble_constant_contents): Use the expression of the VAR_DECL.
18444         (output_constant_def_contents): Use the alignment of the VAR_DECL.
18445         (tree_output_constant_def): New global function.
18446         (mark_constant): Use the expression of the VAR_DECL.
18447         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
18448         its expression.
18449         (output_object_block): Likewise and assemble the expression.
18450
18451 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18452
18453         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
18454         hash_tree, eq_tree): New tree hash table.
18455         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
18456         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
18457         lto_orig_address_remove): Reimplement.
18458
18459 2010-04-28  Xinliang David Li  <davidxl@google.com>
18460
18461         PR c/42643
18462         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
18463         (compute_uninit_opnds_pos): New function.
18464         (is_non_loop_exit_postdominating): New function.
18465         (compute_control_dep_chain): New function.
18466         (find_pdom): New function.
18467         (convert_control_dep_chain_into_preds): New function.
18468         (find_predicates): New function.
18469         (find_control_equiv_block): New function.
18470         (collect_phi_def_edges): New function.
18471         (find_def_preds): New function.
18472         (find_dom): New function.
18473         (dump_predicates): New function.
18474         (get_cmp_code): New function.
18475         (is_value_included_in): New function.
18476         (find_matching_predicate_in_rest_chains): New function.
18477         (use_pred_not_overlap_with_undef_path_pred): New function.
18478         (is_use_properly_guarded): New function.
18479         (normalize_cond_1): New function.
18480         (is_and_or_or): New function.
18481         (normalize_cond): New function.
18482         (is_gcond_subset_of): New function.
18483         (is_subset_of_any): New function.
18484         (is_or_set_subset_of): New function.
18485         (is_and_set_subset_of): New function.
18486         (is_norm_cond_subset_of): New function.
18487         (is_pred_expr_subset_of): New function.
18488         (is_pred_chain_subset_of): New function.
18489         (is_included_in): New function.
18490         (is_superset_of): New function.
18491         (find_uninit_use): New function.
18492         (warn_uninitialized_phi): New function.
18493         (compute_possibly_undefined_names): New function.
18494         (ssa_undefined_value_p): New function.
18495         (execute_late_warn_uninitialized): New function.
18496         * tree-ssa.c (ssa_undefined_value_p): Removed.
18497         (warn_uninit): Changed to extern.
18498         (warn_uninitialized_phi): Removed.
18499         (warn_uninitialized_vars): Changed to extern.
18500         (execute_late_warn_uninitialized): Removed
18501         * tree-flow.h: Add new prototypes.
18502         * timevar.def: Add new time variable.
18503         * Makefile.in: Add new build file.
18504
18505 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
18506
18507         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
18508         type if available.
18509
18510 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18511
18512         PR target/22224
18513         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
18514
18515 2010-04-28  Martin Jambor  <mjambor@suse.cz>
18516
18517         * cgraph.h (struct cgraph_node): New field indirect_calls.
18518         (struct cgraph_indirect_call_info): New type.
18519         (struct cgraph_edge): Removed field indirect_call. New fields
18520         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
18521         (cgraph_create_indirect_edge): Declare.
18522         (cgraph_make_edge_direct): Likewise.
18523         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
18524         * ipa-prop.h (struct ipa_param_call_note): Removed.
18525         (struct ipa_node_params): Removed field param_calls.
18526         (ipa_create_all_structures_for_iinln): Declare.
18527         * cgraph.c: Described indirect edges and uids in initial comment.
18528         (cgraph_add_edge_to_call_site_hash): New function.
18529         (cgraph_edge): Search also among the indirect edges, use
18530         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
18531         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
18532         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
18533         site hash.
18534         (initialize_inline_failed): Assign a reason to indirect edges.
18535         (cgraph_create_edge_1): New function.
18536         (cgraph_create_edge): Moved some functionality to
18537         cgraph_create_edge_1.
18538         (cgraph_create_indirect_edge): New function.
18539         (cgraph_edge_remove_callee): Add an assert checking for
18540         non-indirectness.
18541         (cgraph_edge_remove_caller): Special-case indirect edges.
18542         (cgraph_remove_edge): Likewise.
18543         (cgraph_set_edge_callee): New function.
18544         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
18545         (cgraph_make_edge_direct): New function.
18546         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
18547         the declaration of the call statement matches.
18548         (cgraph_node_remove_callees): Special-case indirect edges.
18549         (cgraph_clone_edge): Likewise.
18550         (cgraph_clone_node): Clone also the indirect edges.
18551         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
18552         indirect_call, dump count of indirect_calls edges.
18553         * ipa-prop.c (iinlining_processed_edges): New variable.
18554         (ipa_note_param_call): Create indirect edges instead of
18555         creating notes.  New parameter node.
18556         (ipa_analyze_call_uses): New parameter node, pass it on to
18557         ipa_note_param_call.
18558         (ipa_analyze_stmt_uses): Likewise.
18559         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
18560         (print_edge_addition_message): Work on edges rather than on notes.
18561         (update_call_notes_after_inlining): Likewise, renamed to
18562         update_indirect_edges_after_inlining.
18563         (ipa_create_all_structures_for_iinln): New function.
18564         (ipa_free_node_params_substructures): Do not free notes.
18565         (ipa_edge_duplication_hook): Propagate bits within
18566         iinlining_processed_edges bitmap.
18567         (ipa_node_duplication_hook): Do not duplicate notes.
18568         (free_all_ipa_structures_after_ipa_cp): Renamed to
18569         ipa_free_all_structures_after_ipa_cp.
18570         (free_all_ipa_structures_after_iinln): Renamed to
18571         ipa_free_all_structures_after_iinln.
18572         (ipa_write_param_call_note): Removed.
18573         (ipa_read_param_call_note): Removed.
18574         (ipa_write_indirect_edge_info): New function.
18575         (ipa_read_indirect_edge_info): Likewise.
18576         (ipa_write_node_info): Do not stream notes, do stream information
18577         in indirect edges.
18578         (ipa_read_node_info): Likewise.
18579         (lto_ipa_fixup_call_notes): Removed.
18580         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
18581         * ipa-inline.c (pass_ipa_inline): Likewise.
18582         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
18583         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
18584         * tree-inline.c (copy_bb): Removed an unnecessary double check for
18585         is_gimple_call.
18586         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
18587         edges.
18588         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
18589         (output_cgraph): Stream also indirect edges.
18590         (lto_output_edge): Added capability to stream indirect edges.
18591         (input_edge): Likewise.
18592         (input_cgraph_1): Likewise.
18593         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
18594         of indirect edges.
18595
18596 2010-04-28  Richard Guenther  <rguenther@suse.de>
18597
18598         PR tree-optimization/43879
18599         PR tree-optimization/43909
18600         * tree-ssa-structalias.c (struct variable_info): Add
18601         only_restrict_pointers flag.
18602         (new_var_info): Initialize it.  Increment stats.total_vars here.
18603         (create_function_info_for): Do not increment stats.total_vars here.
18604         (get_function_part_constraint): Fix build with C++.
18605         (insert_into_field_list): Remove.
18606         (push_fields_onto_fieldstack): Properly merge fields.
18607         (create_variable_info_for): Split and simplify.
18608         (create_variable_info_for_1): New piece.
18609         (intra_create_variable_infos): Properly make restrict constraints
18610         from parameters.
18611
18612 2010-04-28  Richard Guenther  <rguenther@suse.de>
18613
18614         PR c++/43880
18615         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
18616
18617 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18618             Jan Hubicka  <hubicka@ucw.cz>
18619
18620         * doc/invoke.texi (-Wsuggest-attribute=const,
18621         -Wsuggest-attribute=pure): Document.
18622         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
18623         (function_always_visible_to_compiler_p,
18624         suggest_attribute, warn_function_pure, warn_function_const):
18625         New functions.
18626         (check_call): Improve debug info.
18627         (analyze_function): Do not check availability.
18628         (add_new_function): Check availability.
18629         (propagate): Output warnings.
18630         (skip_function_for_local_pure_const): New function.
18631         (local_pure_const): Use it; output warnings.
18632         * common.opt (Wsuggest-attribute=const,
18633         Wsuggest-attribute=pure): New.
18634
18635 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18636
18637         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
18638         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
18639         or DW_CFA_def_cfa_offset{,_sf}.
18640
18641 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18642
18643         * tree.h: Fix truncated long macros.
18644
18645 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
18646
18647         * collect2.c (TARGET_64BIT): Redefine to target's default.
18648         * tlink.c: Likewise.
18649         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
18650         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
18651         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
18652         for underscoring __USER_LABEL_PREFIX__.
18653         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
18654         (SUB_LINK_ENTRY32): New.
18655         (SUB_LINK_ENTRY64): New.
18656         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
18657         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
18658         (SUB_LINK_ENTRY64): New.
18659         (SUB_LINK_ENTRY): New.
18660         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
18661         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
18662         x64 target is choosen.
18663         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
18664         * configure: Regenerated.
18665         * configure.ac (leading-mingw64-underscores): Option added.
18666
18667 2010-04-27  Jan Hubicka  <jh@suse.cz>
18668
18669         * doc/invoke.texi (-fipa-profile): Document.
18670         * opts.c (decode_options): Enable ipa-profile at -O1.
18671         * timevar.def (TV_IPA_PROFILE): Define.
18672         * common.opt (fipa-profile): Add.
18673         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
18674         flag for clones.
18675         (cgraph_propagate_frequency): Handle only local ones.
18676         * tree-pass.h (pass_ipa_profile): Declare.
18677         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
18678         (pass_ipa_profile): Use TV_IPA_PROFILE.
18679         * ipa.c (ipa_profile): New function.
18680         (gate_ipa_profile): Likewise.
18681         (pass_ipa_profile): New global variable.
18682         * passes.c (pass_ipa_profile): New.
18683
18684 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
18685
18686         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
18687
18688 2010-04-27  Martin Jambor  <mjambor@suse.cz>
18689
18690         PR middle-end/43812
18691         * ipa.c (dissolve_same_comdat_group_list): New function.
18692         (function_and_variable_visibility): Call
18693         dissolve_same_comdat_group_list when comdat group contains external or
18694         newly local nodes.
18695         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
18696         lists are circular and that they contain only DECL_ONE_ONLY nodes.
18697
18698 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18699
18700         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
18701         (const_hash_1) <VECTOR_CST>: New case.
18702         (compare_constant) <VECTOR_CST>: Likewise.
18703         <ADDR_EXPR>: Deal with LABEL_REFs.
18704         (copy_constant) <VECTOR_CST>: New case.
18705
18706 2010-04-27  Jan Hubicka  <jh@suse.cz>
18707
18708         * cgraph.c (cgraph_propagate_frequency): New function.
18709         * cgraph.h (cgraph_propagate_frequency): Declare.
18710         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
18711         cgraph_propagate_frequency.
18712
18713 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18714
18715         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
18716
18717 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
18718
18719         PR target/40657
18720         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
18721         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
18722         here to determine which regs to push and how much stack to reserve.
18723
18724 2010-04-27  Jie Zhang  <jie@codesourcery.com>
18725
18726         * doc/gimple.texi (gimple_statement_with_ops): Remove
18727         addresses_taken field.
18728         (gimple_statement_with_memory_ops): Likewise.
18729
18730 2010-04-27  Jan Hubicka  <jh@suse.cz>
18731
18732         * tree-inline.c (eni_inlining_weights): Remove.
18733         (estimate_num_insns): Special case more builtins.
18734
18735 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
18736
18737         PR c/32207
18738         * c-typeck.c (build_binary_op): Move forward check for comparison
18739         pointer with null pointer constant and adjust the diagnostic message.
18740
18741 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
18742
18743         PR lto/42776
18744         * configure.ac (gcc_cv_as_section_has_align): Set if installed
18745         binutils supports extended .section directive needed by LTO, or
18746         warn if older binutils found.
18747         (LTO_BINARY_READER): New AC_SUBST'd variable.
18748         (LTO_USE_LIBELF): Likewise.
18749         * config.gcc (lto_binary_reader): New target-specific configure
18750         variable.
18751         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
18752         (LTO_USE_LIBELF): Likewise.
18753         * configure: Regenerate.
18754
18755         * collect2.c (is_elf): Rename from this ...
18756         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
18757          object files in addition to ELF-formatted ones.
18758         (scan_prog_file): Caller updated.  Also allow for LTO info marker
18759         symbol to be prefixed or not by an extra underscore.
18760
18761         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
18762         * config/i386/winnt.c: Also #include lto-streamer.h
18763         (i386_pe_asm_named_section): Specify 1-byte section alignment for
18764         LTO named sections.
18765         (i386_pe_asm_output_aligned_decl_common): Add comment.
18766         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
18767
18768 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
18769
18770         PR target/43889
18771         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
18772         Add missing earlyclobber for second alternative.
18773
18774 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
18775
18776         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
18777         bits for artificial defs at the top of the block.
18778         * fwprop.c (single_def_use_enter_block): Don't call it.
18779
18780 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
18781
18782         PR 43715
18783         * configure.ac: Use "$gcc_cv_nm -g" on darwin
18784         instead of "$gcc_cv_objdump -T".
18785         Use "-undefined dynamic_lookup" on darwin.
18786         * configure: Regenerate.
18787
18788 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18789
18790         PR c/43893
18791         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
18792
18793 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18794
18795         * c-parser.c (struct c_token): Move location field up.
18796         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
18797         (struct c_declspecs): Convert typespec_word, storage_class, and
18798         default_int_p into bitfields.
18799         (struct c_declarator): Move loc field up.
18800
18801 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18802
18803         * cfgloop.h (struct loop): Move can_be_parallel field up.
18804         * ipa-prop.h (struct ip_node_params): Move bitfields up.
18805         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
18806         down.
18807         (struct iv_cand): Convert pos field into a bitfield.
18808         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
18809         field up.
18810         (struct _stmt_vec_info): Shuffle fields for better packing.
18811
18812 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18813
18814         * varasm.c (IN_NAMED_SECTION): Remove guard.
18815         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
18816         (IN_NAMED_SECTION_P): ...this.
18817         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
18818         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
18819
18820 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18821
18822         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
18823         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
18824         of shadowing it.  Fix comments.
18825
18826 2010-04-26  Jan Hubicka  <jh@suse.cz>
18827
18828         * cgraph.c (cgraph_create_node): Set node frequency to normal.
18829         (cgraph_clone_node): Copy function frequency.
18830         * cgraph.h (node_frequency): New enum
18831         (struct cgraph_node): Add.
18832         * final.c (rest_of_clean_state): Update.
18833         * lto-cgraph.c (lto_output_node): Output node frequency.
18834         (input_overwrite_node): Input node frequency.
18835         * tre-ssa-loop-ivopts (computation_cost): Update.
18836         * lto-streamer-out.c (output_function): Do not output function
18837         frequency.
18838         * predict.c (maybe_hot_frequency_p): Update and handle functions
18839         executed once.
18840         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
18841         attribute lookup.
18842         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
18843         (compute_function_frequency): Set noreturn functions to be executed
18844         once.
18845         (choose_function_section): Update.
18846         * lto-streamer-in.c (input_function): Do not input function frequency.
18847         * function.c (allocate_struct_function): Do not initialize function
18848         frequency.
18849         * function.h (function_frequency): Remove.
18850         (struct function): Remove function frequency.
18851         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
18852         (try_update): Update.
18853         * tree-inline.c (initialize_cfun): Do not update function frequency.
18854         * passes.c (pass_init_dump_file): Update.
18855         * i386.c (ix86_compute_frame_layout): Update.
18856         (ix86_pad_returns): Update.
18857
18858 2010-04-26  Jie Zhang  <jie@codesourcery.com>
18859
18860         PR tree-optimization/43833
18861         * tree-vrp.c (range_int_cst_p): New.
18862         (range_int_cst_singleton_p): New.
18863         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
18864         when both operands are constants.  Use range_int_cst_p in
18865         BIT_IOR_EXPR case.
18866
18867 2010-04-26  Jan Hubicka  <jh@suse.cz>
18868
18869         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
18870
18871 2010-04-26  Richard Guenther  <rguenther@suse.de>
18872
18873         PR lto/43080
18874         * gimple.c (gimple_decl_printable_name): Deal gracefully
18875         with a NULL DECL_NAME.
18876
18877 2010-04-26  Richard Guenther  <rguenther@suse.de>
18878
18879         PR lto/42425
18880         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
18881         if emitting debug information and it is either a function
18882         or a namespace decl.
18883
18884 2010-04-26  Ira Rosen  <irar@il.ibm.com>
18885
18886         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
18887         determine if the statement is vectorizable, and a macro to access it.
18888         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18889         Skip statements that can't be vectorized. If the analysis fails,
18890         mark the statement as unvectorizable if vectorizing basic block.
18891         (vect_compute_data_refs_alignment): Likewise.
18892         (vect_verify_datarefs_alignment): Skip statements marked as
18893         unvectorizable. Add print.
18894         (vect_analyze_group_access): Skip statements that can't be
18895         vectorized. If the analysis fails, mark the statement as
18896         unvectorizable if vectorizing basic block.
18897         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
18898         * tree-vect-stmts.c (vectorizable_store): Fix the number of
18899         generated stmts for SLP.
18900         (new_stmt_vec_info): Initialize the new field.
18901         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
18902         statements marked as unvectorizable.
18903
18904 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
18905
18906         * c-common.c (flag_isoc1x): New.
18907         (flag_isoc99): Update comment.
18908         * c-common.h (flag_isoc1x): New.
18909         (flag_isoc99): Update comment.
18910         * c-cppbuiltin.c (builtin_define_float_constants): Also define
18911         __<type>_DECIMAL_DIG__.
18912         * c-opts.c (set_std_c1x): New.
18913         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
18914         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
18915         * c.opt (-std=c1x, -std=gnu1x): New options.
18916         * doc/cpp.texi: Mention -std=c1x.
18917         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
18918         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
18919         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
18920         * doc/standards.texi: Mention C1X.
18921         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
18922         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
18923         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18924         Define for C1X.
18925
18926 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
18927
18928         * config/i386/gmon-sol2.c (_mcleanup): Change format string
18929         placeholder from 0x%x to %#x.
18930         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18931         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18932         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18933         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18934         * config/i386/i386.c (ix86_target_string): Ditto.
18935         (output_pic_addr_const): Ditto.
18936         (print_operand): Ditto.
18937
18938 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
18939
18940         * combine.c (find_split_point): Add third argument.  Use it
18941         to find nested multiply-accumulate instructions.  Adjust calls.
18942         (try_combine): Adjust call to find_split_point.
18943
18944 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18945
18946         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
18947
18948 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
18949
18950         PR tree-optimization/41442
18951         * fold-const.c (merge_truthop_with_opposite_arm): New function.
18952         (fold_binary_loc): Call it.
18953
18954 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18955
18956         * toplev.c (general_init): Set default for fdiagnostics-show-option.
18957         * opts.c (common_handle_option): Allow disabling it.
18958         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
18959
18960 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
18961
18962         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
18963         between modes if both types are integral.
18964
18965 2010-04-23  Richard Guenther  <rguenther@suse.de>
18966
18967         PR tree-optimization/43572
18968         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
18969
18970 2010-04-23  Richard Guenther  <rguenther@suse.de>
18971
18972         PR lto/43455
18973         * tree-inline.c (tree_can_inline_p): Also check compatibility
18974         of return types.
18975
18976 2010-04-23  Martin Jambor  <mjambor@suse.cz>
18977
18978         PR tree-optimization/43846
18979         * tree-sra.c (struct access): New flag grp_assignment_read.
18980         (build_accesses_from_assign): Set grp_assignment_read.
18981         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
18982         (enum mark_read_status): New type.
18983         (analyze_access_subtree): Propagate grp_assignment_read, create
18984         accesses also if both direct_read and root->grp_assignment_read.
18985
18986 2010-04-23  Martin Jambor  <mjambor@suse.cz>
18987
18988         PR middle-end/43835
18989         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
18990         function does not have type attributes.
18991
18992 2010-04-23  Richard Guenther  <rguenther@suse.de>
18993
18994         PR lto/42653
18995         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
18996         of FUNCTION_DECLs.
18997
18998 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18999
19000         * sese.h (create_if_region_on_edge): Remove.
19001
19002         * sese.c (create_if_region_on_edge): Make static.
19003
19004         * tree-inline.c: Do not include ggc.h.
19005
19006         * expr.c: Do not include ggc.h.
19007
19008         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
19009         dependencies.
19010
19011 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
19012
19013         PR target/43744
19014         * config/sh/sh.c (find_barrier): Don't emit a constant pool
19015         in the middle of insns for casesi_worker_2.
19016
19017 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
19018
19019         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
19020
19021 2010-04-22  Ira Rosen  <irar@il.ibm.com>
19022
19023         PR tree-optimization/43842
19024         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
19025         loop unrolling in update of exit phis. Fix comment.
19026         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
19027         least two reduction statements in the loop before starting SLP
19028         analysis.
19029
19030 2010-04-22  Nick Clifton  <nickc@redhat.com>
19031
19032         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
19033
19034 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
19035
19036         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
19037         to simplify a + ~a.
19038
19039 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19040
19041         * tree-parloops.c (loop_parallel_p): New argument
19042         parloop_obstack.  Pass it down.
19043         (parallelize_loops): New variable parloop_obstack.  Initialize it,
19044         pass it down, free it.
19045
19046         * tree-loop-linear.c (linear_transform_loops): Pass down
19047         lambda_obstack.
19048
19049         * tree-data-ref.h (lambda_compute_access_matrices): New argument
19050         of type struct obstack *.
19051
19052         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
19053         scratch_obstack.  Initialize it, pass down, free it.
19054
19055         * lambda.h (lambda_loop_new): Remove.
19056         (lambda_matrix_new, lambda_matrix_inverse)
19057         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
19058         argument of type struct obstack *.
19059
19060         * lambda-trans.c (lambda_trans_matrix_new): New argument
19061         lambda_obstack.  Pass it down, use obstack allocation for ret.
19062         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
19063         it down.
19064
19065         * lambda-mat.c (lambda_matrix_get_column)
19066         (lambda_matrix_project_to_null): Remove.
19067         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
19068         allocation for mat.
19069         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
19070         lambda_obstack.
19071
19072         * lambda-code.c (lambda_loop_new): New function.
19073         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
19074         (lambda_compute_auxillary_space, lambda_compute_target_space)
19075         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
19076         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
19077         (build_access_matrix): New argument lambda_obstack.  Use obstack
19078         allocation for am.
19079         (lambda_compute_step_signs, lambda_compute_access_matrices): New
19080         argument lambda_obstack.  Pass it down.
19081
19082 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19083
19084         * optabs.h (expand_widening_mult): Declare.
19085
19086 2010-04-22  Richard Guenther  <rguenther@suse.de>
19087
19088         PR tree-optimization/43845
19089         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
19090         lookup the CALL_EXPR function and arguments.
19091
19092 2010-04-22  Nick Clifton  <nickc@redhat.com>
19093
19094         * config/stormy16/stormy16.c
19095         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
19096         * config/stormy16/stormy16.h: Tidy up formatting.
19097         (DONT_USE_BUILTIN_SETJMP): Remove definition.
19098         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
19099         (ineqbranchsi): Delete pattern.
19100         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
19101         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
19102         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
19103         stormy16-lib2-ucmpsi2.c.
19104
19105 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19106
19107         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
19108         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
19109         extra set merge_set_noclobber, and use it to relax the final test
19110         slightly.
19111         * df.h (df_simulate_find_noclobber_defs): Declare.
19112         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
19113         conditional defs.
19114         (df_simulate_find_noclobber_defs): New function.
19115
19116 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
19117
19118         * config/i386/i386.md: Use {} around multi-line preparation statements.
19119
19120 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19121
19122         * c-tree.h (push_init_level, pop_init_level, set_init_index)
19123         (process_init_element): New argument of type struct obstack *.
19124
19125         * c-typeck.c (push_init_level, pop_init_level, set_designator)
19126         (set_init_index, set_init_label, set_nonincremental_init)
19127         (set_nonincremental_init_from_string, find_init_member)
19128         (output_init_element, output_pending_init_elements)
19129         (process_init_element): New argument braced_init_obstack.  Pass it
19130         down.
19131         (push_range_stack, add_pending_init): New argument
19132         braced_init_obstack.  Use obstack allocation.
19133
19134         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
19135         braced_init_obstack.  Pass it down.
19136         (c_parser_braced_init): New variables ret, braced_init_obstack.
19137         Initialize obstack, pass it down and finally free it.
19138
19139 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19140
19141         PR middle-end/29274
19142         * tree-pass.h (pass_optimize_widening_mul): Declare.
19143         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
19144         gate_optimize_widening_mul): New static functions.
19145         (pass_optimize_widening_mul): New.
19146         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
19147         <case MULT_EXPR>: Remove support for widening multiplies.
19148         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
19149         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
19150         simplify_gen_unary rather than directly building extensions.
19151         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
19152         WIDEN_MULT_EXPR.
19153         * expmed.c (expand_widening_mult): New function.
19154         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
19155
19156 2010-04-21  Jan Hubicka  <jh@suse.cz>
19157
19158         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
19159         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
19160         * lto-wpa-fixup.c: Remove.
19161         * Makefile.in (lto-wpa-fixup.o): Remove.
19162         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
19163         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
19164         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
19165
19166 2010-04-21  Jan Hubicka  <jh@suse.cz>
19167
19168         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
19169         add write_optimization_summary, read_optimization_summary.
19170         (ipa_write_summaries_of_cgraph_node_set): Remove.
19171         (ipa_write_optimization_summaries): Declare.
19172         (ipa_read_optimization_summaries): Declare.
19173         * ipa-cp.c (pass_ipa_cp): Update.
19174         * ipa-reference.c (pass_ipa_reference): Update.
19175         * ipa-pure-const.c (pass_ipa_pure_const): Update.
19176         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
19177         Update.
19178         * ipa-inline.c (pass_ipa_inline): Update.
19179         * ipa.c (pass_ipa_whole_program): Update.
19180         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
19181         * passes.c (ipa_write_summaries_1): Do not test wpa.
19182         (ipa_write_optimization_summaries_1): New.
19183         (ipa_write_optimization_summaries): New.
19184         (ipa_read_summaries): Do not test ltrans.
19185         (ipa_read_optimization_summaries_1): New.
19186         (ipa_read_optimization_summaries): New.
19187
19188 2010-04-21  Jan Hubicka  <jh@suse.cz>
19189
19190         * lto-cgraph.c (lto_output_node): Do not output comdat groups
19191         for boundary nodes.
19192         (output_cgraph): Do not arrange comdat groups for boundary nodes.
19193
19194 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19195
19196         PR debug/40040
19197         * dwarf2out.c (add_name_and_src_coords_attributes): Add
19198         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
19199
19200 2010-04-21  Jan Hubicka  <jh@suse.cz>
19201
19202         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
19203
19204 2010-04-21  Jan Hubicka  <jh@suse.cz>
19205
19206         * varpool.c (decide_is_variable_needed): Variable is always needed
19207         during ltrans.
19208
19209 2010-04-21  Jan Hubicka  <jh@suse.cz>
19210
19211         * opts.c (decode_options): Enable pure-const pass for whopr.
19212
19213 2010-04-21  Jan Hubicka  <jh@suse.cz>
19214
19215         * cgraph.c (dump_cgraph_node): Dump also assembler name.
19216         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
19217         at WPA dumping.
19218         (cgraph_decide_inlining): Do not expect callee to be removed in all
19219         cases.
19220
19221 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
19222
19223         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
19224
19225 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19226
19227         * config/i386/i386.md (x86_shrd): Add athlon_decode and
19228         amdfam10_decode attributes.
19229
19230 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19231
19232         PR middle-end/43570
19233         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
19234         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
19235         (lower_copyprivate_clauses): Use private var in outer
19236         context instead of original var.  Make sure the types
19237         are correct for VLAs.
19238
19239 2010-04-21  Richard Guenther  <rguenther@suse.de>
19240
19241         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
19242         to non-pointer objects.
19243
19244 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19245
19246         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
19247         last chain entry if it starts with the still current label.
19248         (add_location_or_const_value_attribute): Check that
19249         loc_list->first->next is NULL instead of comparing ->first with ->last.
19250         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
19251         to add_var_loc_to_decl.
19252
19253         * dwarf2out.c (output_call_frame_info): For dw_cie_version
19254         >= 4 add also address size and segment size fields into CIE header.
19255
19256         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
19257         long as address size is the same as sizeof (void *) and
19258         segment size is 0.
19259         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
19260         address size or segment size is unexpected, return DW_EH_PE_omit.
19261         (classify_object_over_fdes): If get_cie_encoding returned
19262         DW_EH_PE_omit, return -1.
19263         (init_object): If classify_object_over_fdes returned -1,
19264         pretend there were no FDEs at all.
19265
19266 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19267
19268         * config/i386/i386.md (bswap<mode>2): Macroize expander from
19269         bswap{si,di}2 using SWI48 mode iterator.
19270         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
19271         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
19272         set modrm attribute of bswap insn to 0 and remove length attribute.
19273         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
19274         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
19275         set mode attribute to <MODE> and remove length attribute.
19276
19277 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
19278
19279         PR rtl-optimization/43520
19280         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
19281         zero available registers.
19282
19283 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19284
19285         * builtins.c (fold_builtin_cproj): Fold more cases.
19286
19287 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19288
19289         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
19290         (fold_builtin_1): Fold builtin cproj.
19291         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
19292         Use ATTR_CONST_NOTHROW_LIST.
19293
19294 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
19295
19296         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
19297         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
19298         ffsi2_no_cmove for !TARGET_CMOVE.
19299         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
19300         (ffssi2): Remove expander.
19301         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
19302         mode iterator.
19303         (ctz<mode>2): Ditto from ctz{si,di}2.
19304         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
19305         mode iterator.
19306         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
19307         mode iterator.
19308
19309 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19310
19311         * dwarf2out.c (AT_linkage_name): Define.
19312         (clone_as_declaration): Handle DW_AT_linkage_name.
19313         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
19314         of DW_AT_MIPS_linkage_name.
19315         (move_linkage_attr): Likewise.
19316         (dwarf2out_finish): Likewise.
19317
19318 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
19319
19320         PR middle-end/41952
19321         * fold-const.c (fold_comparison): New folding rule.
19322
19323 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
19324
19325         * double-int.h (double_int_setbit): Declare.
19326         * double-int.c (double_int_setbit): New function.
19327         * rtl.h (immed_double_int_const): Declare.
19328         * emit-rtl.c (immed_double_int_const): New function.
19329         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
19330         and immed_double_int_const functions.
19331         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
19332         expand_copysign_bit): (Ditto.).
19333         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
19334         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
19335         * dojump.c (prefer_and_bit_test): (Ditto.).
19336         * expr.c (convert_modes, reduce_to_bit_field_precision,
19337         const_vector_from_tree): (Ditto.).
19338         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19339
19340 2010-04-20  Jan Hubicka  <jh@suse.cz>
19341
19342         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
19343         (dump_cgraph_node): Dump new flags.
19344         * cgraph.h (struct cgraph_node): Add flags
19345         reachable_from_other_partition and in_other_partition.
19346         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
19347         other partition can not be removed.
19348         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
19349         the other partition must be output; silence sanity checking on
19350         leaking functions bodies from other paritition.
19351         * lto-cgraph.c (reachable_from_other_partition_p): New function.
19352         (lto_output_node): Output new flags; do not sanity check that inline
19353         clones are output; drop lto_forced_extern_inline_p code; do not mock
19354         visibility flags at partition boundaries.
19355         (add_node_to): New function.
19356         (output_cgraph): Use it to sort functions so masters appear before
19357         clones.
19358         (input_overwrite_node): Input new flags.
19359         * passes.c (ipa_write_summaries): Do not call
19360         lto_new_extern_inline_states.
19361         * lto-section-out.c (forced_extern_inline,
19362         lto_new_extern_inline_states lto_delete_extern_inline_states,
19363         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
19364         * lto-streamer.h (lto_new_extern_inline_states,
19365         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
19366         lto_forced_extern_inline_p): Kill.
19367
19368 2010-04-20  Richard Guenther  <rguenther@suse.de>
19369
19370         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
19371         from vars that can have pointers.
19372         (process_constraint): Dump useless constraints.
19373
19374 2010-04-20  Richard Guenther  <rguenther@suse.de>
19375
19376         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
19377         (dump_sa_points_to_info): Remove asserts.
19378         (init_base_vars): nothing_id isn't an escape point nor does it
19379         have pointers.
19380
19381 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19382
19383         * tree.h (TYPE_REF_IS_RVALUE): Define.
19384         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
19385         should_move_die_to_comdat, prune_unused_types_walk): Handle
19386         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
19387         (modified_type_die, gen_reference_type_die): Emit
19388         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
19389         if TYPE_REF_IS_RVALUE and -gdwarf-4.
19390
19391 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19392
19393         PR target/43635
19394         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
19395         calls for -fpic -m31 if they have been sibcall optimized.
19396
19397 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
19398
19399         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
19400         ar.lc fixed and call-used.
19401
19402         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
19403
19404 2010-04-19  Jan Hubicka  <jh@suse.cz>
19405
19406         * opts.c (decode_options): Disable whpr incompatible passes.
19407         * lto/lto.c (lto_1_to_1_map): Skip clones.
19408         (read_cgraph_and_symbols): Do not mark everything as needed.
19409         (do_whole_program_analysis): Do map only after optimizing;
19410         set proper cgraph_state; use passmanager.
19411
19412 2010-04-19  DJ Delorie  <dj@redhat.com>
19413
19414         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
19415         POINTER_PLUS_EXPR and fix them.
19416
19417 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
19418
19419         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
19420         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
19421         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
19422         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
19423         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
19424         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
19425         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
19426         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
19427         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
19428         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
19429         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
19430
19431 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19432
19433         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
19434         (check_cond_move_block): Likewise.
19435         (cond_move_process_if_block): Likewise.
19436         (noce_find_if_block): Improve formatting.
19437         (find_if_header): Pass 0 to memset and tweak conditions.
19438         (cond_exec_find_if_block): Fix long lines and tweak conditions.
19439
19440 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19441
19442         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
19443         for -gdwarf-4.
19444
19445         PR middle-end/43337
19446         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
19447         with non-local decl doesn't need chain.
19448
19449 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
19450
19451         * ira-color.c (allocno_reload_assign): Avoid accumulating
19452         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
19453
19454 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19455
19456         * gimple.h (create_tmp_reg): Declare.
19457         * gimplify.c (create_tmp_reg): New function.
19458         (gimplify_return_expr): Use create_tmp_reg.
19459         (gimplify_omp_atomic): Likewise.
19460         (gimple_regimplify_operands): Likewise.
19461         * tree-dfa.c (make_rename_temp): Likewise.
19462         * tree-predcom.c (predcom_tmp_var): Likewise.
19463         (reassociate_to_the_same_stmt): Likewise.
19464         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
19465         (get_replaced_param_substitute): Likewise.
19466         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
19467         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
19468         * tree-ssa-pre.c (get_representative_for): Likewise.
19469         (create_expression_by_pieces): Likewise.
19470         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
19471         (create_tailcall_accumulator): Likewise.
19472
19473 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19474
19475         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
19476         new_stmt.
19477         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
19478
19479 2010-04-19  Richard Guenther  <rguenther@suse.de>
19480
19481         PR tree-optimization/43796
19482         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
19483         from SCEV in the lattice.
19484         (vrp_visit_phi_node): Dump change.
19485
19486 2010-04-19  Richard Guenther  <rguenther@suse.de>
19487
19488         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
19489         * configure: Re-generated.
19490
19491 2010-04-19  Richard Guenther  <rguenther@suse.de>
19492
19493         PR tree-optimization/43783
19494         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
19495         constant ARRAY_REF operands two and three if possible.
19496
19497 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
19498
19499         PR target/43766
19500         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
19501
19502 2010-04-19  Jie Zhang  <jie@codesourcery.com>
19503
19504         PR target/43662
19505         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
19506
19507 2010-04-19  Ira Rosen  <irar@il.ibm.com>
19508
19509         PR tree-optimization/37027
19510         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
19511         and macro to access it.
19512         (vectorizable_reduction): Add argument.
19513         (vect_get_slp_defs): Likewise.
19514         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
19515         statements for possible use in SLP.
19516         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
19517         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
19518         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
19519         add new argument.
19520         (vectorizable_reduction): Likewise.
19521         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
19522         vect_get_slp_defs.
19523         (vectorizable_type_demotion, vectorizable_type_promotion,
19524         vectorizable_store): Likewise.
19525         (vect_analyze_stmt): Update call to vectorizable_reduction.
19526         (vect_transform_stmt): Likewise.
19527         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
19528         (vect_build_slp_tree): Fix indentation. Check that there are no loads
19529         from different interleaving chains in same node.
19530         (vect_slp_rearrange_stmts): New function.
19531         (vect_supported_load_permutation_p): Allow load permutations for
19532         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
19533         inside SLP nodes if necessary.
19534         (vect_analyze_slp_instance): Handle reductions.
19535         (vect_analyze_slp): Try to build SLP instances originating from groups
19536         of reductions.
19537         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
19538         (vect_get_constant_vectors): Create initial vectors for reductions
19539         according to reduction code. Add new argument.
19540         (vect_get_slp_defs): Add new argument, pass it to
19541         vect_get_constant_vectors.
19542         (vect_schedule_slp_instance): Remove SLP tree root statements.
19543
19544 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19545
19546         * tree.h (ENUM_IS_SCOPED): Define.
19547         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
19548         for ENUM_IS_SCOPED enums.
19549
19550 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19551
19552         * fold-const.c (fold_comparison): Use ssizetype.
19553         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19554         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
19555         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
19556         * tree-object-size.c (compute_object_sizes): Use size_type_node.
19557
19558         * tree.h (initialize_sizetypes): Remove parameter.
19559         (build_common_tree_nodes): Remove second parameter.
19560         * stor-layout.c (initialize_sizetypes): Remove parameter.
19561         Always create an unsigned type.
19562         (set_sizetype): Assert that the passed type is unsigned and simplify.
19563         * tree.c (build_common_tree_nodes): Remove second parameter.
19564         Adjust call to initialize_sizetypes.
19565         * c-decl.c (c_init_decl_processing): Remove second argument in call to
19566         build_common_tree_nodes.
19567
19568 2010-04-18  Matthias Klose  <doko@ubuntu.com>
19569
19570         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
19571
19572 2010-04-18  Ira Rosen  <irar@il.ibm.com>
19573
19574         PR tree-optimization/43771
19575         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
19576         load permutation doesn't have gaps.
19577
19578 2010-04-18  Jan Hubicka  <jh@suse.cz>
19579
19580         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
19581         (sse_prologue_save_insn expander): Use new pattern.
19582         (sse_prologue_save_insn1): New pattern and splitter.
19583         (sse_prologue_save_insn): Update to deal also with 64bit aligned
19584         blocks.
19585         * i386.c (setup_incoming_varargs_64): Do not compute jump
19586         destination here.
19587         (ix86_gimplify_va_arg): Update alignment needed.
19588         (ix86_local_alignment): Do not align all local arrays to 128bit.
19589
19590 2010-04-17  Jan Hubicka  <jh@suse.cz>
19591
19592         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
19593
19594 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19595
19596         * arm.md (negdi2): Remove redundant code to force values into a
19597         register.
19598
19599 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19600
19601         * arm/bpabi.S: Add EABI alignment attributes to objects.
19602         * arm/bpabi-v6m.S: Likewise.
19603         * arm/crti.asm: Likewise.
19604         * arm/crtn.asm: Likewise.
19605         * arm/lib1funcs.asm: Likewise.
19606         * arm/libunwind.S: Likewise.
19607
19608 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19609
19610         * arm-protos.h (tune_params): New structure.
19611         * arm.c (current_tune): New variable.
19612         (arm_constant_limit): Delete.
19613         (struct processors): Add pointer to the tune parameters.
19614         (arm_slowmul_tune): New tuning option.
19615         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
19616         (all_cores): Adjust to pick up the tuning model.
19617         (arm_constant_limit): New function.
19618         (arm_override_options): Select the appropriate tuning model.  Delete
19619         initialization of arm_const_limit.
19620         (arm_split_constant): Use the new constant-limit model.
19621         (arm_rtx_costs): Pick up the current tuning model.
19622         * arm.md (is_strongarm, is_xscale): Delete.
19623         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
19624         for Xscale variant architectures.
19625         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
19626
19627 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19628
19629         * config/arm/arm.c (arm_gen_constant): Remove unused variable
19630         can_shift.
19631         (arm_rtx_costs_1): Remove unused variable extra_cost.
19632         (arm_unwind_emit_set): Use variable offset.
19633         (thumb1_output_casesi): Remove unused variable flags.
19634
19635 2010-04-16  Jeff Law  <law@redhat.com>
19636
19637         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
19638         needing assignment rather than doing a two-phase assignment.  Remove
19639         unused variable 'm'.
19640
19641 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19642
19643         PR bootstrap/43767
19644         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
19645
19646 2010-04-16  Doug Kwan  <dougkwan@google.com>
19647
19648         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
19649         (next_operand_entry_id): New static variable.
19650         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
19651         (add_to_ops_vec): Assigned unique ID to operand entry.
19652         (struct oecount_s): New field ID.
19653         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
19654         (undistribute_ops_list): Assign unique IDs to oecounts.
19655         (init_reassoc): reset next_operand_entry_id.
19656
19657 2010-04-16  Doug Kwan  <dougkwan@google.com>
19658
19659         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
19660         missing left parenthesis.
19661
19662 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
19663
19664         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
19665         *btdi_rex64 using SWI48 mode iterator.
19666         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
19667         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
19668         *jcc_btdi_mask_rex64.
19669
19670 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
19671
19672         * double-int.h (tree_to_double_int): Convert to macro.
19673         * double-int.c (tree_to_double_int): Remove.
19674
19675 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19676
19677         PR debug/43762
19678         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
19679         with want_address 2 and in case a single element list might be
19680         possible, call it again with want_address 0.
19681
19682 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19683
19684         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
19685         case 'W' print operands for HI mode.
19686         * config/h8300/h8300.h (Y0, Y2) : New constraints.
19687         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
19688         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
19689         * config/h8300/predicate.md (bit_register_indirect_operand): New.
19690
19691         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
19692
19693         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
19694         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
19695         #xx:3 and #xx:4 mode.
19696
19697         * config/h8300/h8300.md (inverted load with HImode dest): Add
19698         support for H8300SX.
19699
19700         * config/h8300/predicate.md (bit_operand): Allow immediate values that
19701         satisfy 'U' constraint.
19702
19703 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19704
19705         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
19706         * configure: Regenerate.
19707         * config.in: Regenerate.
19708         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
19709         works.
19710
19711 2010-04-16  Richard Guenther  <rguenther@suse.de>
19712
19713         * tree.h (struct tree_decl_minimal): Move pt_uid ...
19714         (struct tree_decl_common): ... here.
19715         (DECL_PT_UID): Adjust.
19716         (SET_DECL_PT_UID): Likewise.
19717         (DECL_PT_UID_SET_P): Likewise.
19718
19719 2010-04-16  Richard Guenther  <rguenther@suse.de>
19720
19721         PR tree-optimization/43572
19722         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
19723         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
19724         * tree-flow.h (is_call_clobbered): Remove.
19725         * tree-flow-inline.h (is_call_clobbered): Likewise.
19726         * tree-dfa.c (dump_variable): Do not dump call clobber state.
19727         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
19728         (execute_return_slot_opt): Adjust.
19729         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
19730         check for call clobbered vars here.
19731         (find_tail_calls): Move tailcall verification to the
19732         proper place.
19733
19734 2010-04-16  Diego Novillo  <dnovillo@google.com>
19735
19736         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
19737
19738 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19739
19740         PR target/40603
19741         * config/arm/arm.md (cbranchqi4): New pattern.
19742         * config/arm/predicates.md (const0_operand,
19743         cbranchqi4_comparison_operator): New predicates.
19744
19745 2010-04-16  Richard Guenther  <rguenther@suse.de>
19746
19747         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
19748         (dump_gimple_stmt): Likewise.
19749
19750 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19751
19752         * recog.h (struct recog_data): New field is_operator.
19753         (struct insn_operand_data): New field is_operator.
19754         * recog.c (extract_insn): Set recog_data.is_operator.
19755         * genoutput.c (output_operand_data): Emit code to set the
19756         is_operator field.
19757         * reload.c (find_reloads): Use it rather than testing for an
19758         empty constraint string.
19759
19760         PR target/41514
19761         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
19762         If the previous insn is a cbranchsi4_insn with the same arguments,
19763         omit the compare instruction.
19764
19765         * config/arm/arm.md (addsi3_cbranch): If destination is a high
19766         register, inputs must be low registers and we need a low register
19767         scratch.  Handle alternative 2 like alternative 3.
19768
19769 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19770
19771         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
19772         don't call get_addr on both.  If one expression is a VALUE and
19773         the other a REG, check VALUE's locs if the REG isn't among them.
19774
19775 2010-04-16  Christian Bruel  <christian.bruel@st.com>
19776
19777         * config/sh/sh.h (sh_frame_pointer_required): New function.
19778         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
19779         (flag_omit_frame_pointer) Set.
19780         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
19781         (rounded_frame_size): Adjust size with outgoing_args_size.
19782         (sh_set_return_address): Must return from stack pointer.
19783         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
19784         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19785         (ACCUMULATE_OUTGOING_ARGS): Define.
19786         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
19787         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
19788
19789 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19790
19791         PR target/43471
19792         * config/sh/sh.c (sh_legitimize_reload_address): Use
19793         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
19794         Remove a unneeded check for offset_base.
19795
19796 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19797
19798         * configure: Regenerated.
19799
19800 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19801
19802         * config/s390/s390.c (s390_call_save_register_used): Switch back
19803         to HARD_REGNO_NREGS.
19804
19805 2010-04-15  Richard Guenther  <rguenther@suse.de>
19806
19807         * alias.c (alias_set_subset_of): Handle alias-set zero
19808         child properly.
19809
19810 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
19811             Julian Brown  <julian@codesourcery.com>
19812
19813         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
19814         alternatives according to use of high and low regs.
19815         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19816         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
19817         optimizing for size on Thumb-2.
19818
19819 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
19820
19821         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
19822
19823 2010-04-15  Richard Guenther  <rguenther@suse.de>
19824
19825         * tree-ssa-structalias.c (struct variable_info): Add
19826         is_fn_info flag.
19827         (new_var_info): Initialize it.
19828         (dump_constraints): Support printing last added constraints.
19829         (debug_constraints): Adjust.
19830         (dump_constraint_graph): Likewise.
19831         (make_heapvar_for): Check for NULL cfun.
19832         (get_function_part_constraint): New function.
19833         (get_fi_for_callee): Likewise.
19834         (find_func_aliases): Properly implement IPA PTA constraints.
19835         (process_ipa_clobber): New function.
19836         (find_func_clobbers): Likewise.
19837         (insert_into_field_list_sorted): Remove.
19838         (create_function_info_for): Properly allocate vars for IPA mode.
19839         Do not use insert_into_field_list_sorted.
19840         (create_variable_info_for): Properly generate constraints for
19841         global vars in IPA mode.
19842         (dump_solution_for_var): Always dump the solution.
19843         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
19844         (find_what_var_points_to): Adjust.
19845         (pt_solution_set): Change.
19846         (pt_solution_ior_into): New function.
19847         (pt_solution_empty_p): Export.
19848         (pt_solution_includes_global): Adjust.
19849         (pt_solution_includes_1): Likewise.
19850         (pt_solutions_intersect_1): Likewise.
19851         (dump_sa_points_to_info): Check some invariants.
19852         (solve_constraints): Move constraint dumping ...
19853         (compute_points_to_sets): ... here.
19854         (ipa_pta_execute): ... and here.
19855         (compute_may_aliases): Do not re-compute points-to info
19856         locally if IPA info is available.
19857         (ipa_escaped_pt): New global var.
19858         (ipa_pta_execute): Properly implement IPA PTA.
19859         * tree-into-ssa.c (dump_decl_set): Support dumping
19860         decls not in referenced-vars.
19861         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
19862         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
19863         (dump_points_to_solution): Likewise.
19864         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
19865         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
19866         (remap_gimple_stmt): Reset call clobber/use information if necessary.
19867         (copy_decl_to_var): Copy DECL_PT_UID.
19868         (copy_result_decl_to_var): Likewise.
19869         * tree.c (make_node_stat): Initialize DECL_PT_UID.
19870         (copy_node_stat): Copy it.
19871         * tree.h (DECL_PT_UID): New macro.
19872         (SET_DECL_PT_UID): Likewise.
19873         (DECL_PT_UID_SET_P): Likewise.
19874         (struct tree_decl_minimal): Add pt_uid member.
19875         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
19876         (pt_solution_empty_p): Declare.
19877         (pt_solution_set): Adjust.
19878         (ipa_escaped_pt): Declare.
19879         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
19880         * gimple-pretty-print.c (pp_points_to_solution): New function.
19881         (dump_gimple_call): Dump call clobber/use information.
19882         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
19883         * tree-pass.h (TDF_ALIAS): New dump option.
19884         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
19885         * doc/invoke.texi (-fipa-pta): Update documentation.
19886
19887 2010-04-15  Richard Guenther  <rguenther@suse.de>
19888
19889         * Makefile.in (OBJS-common): Add gimple-fold.o.
19890         (gimple-fold.o): New rule.
19891         * tree.h (maybe_fold_offset_to_reference,
19892         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
19893         prototypes ...
19894         * gimple.h: ... here.
19895         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
19896         may_propagate_address_into_dereference): Move prototypes ...
19897         * gimple.h: ... here.
19898         * tree-ssa-ccp.c (get_symbol_constant_value,
19899         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
19900         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
19901         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
19902         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
19903         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
19904         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
19905         gimplify_and_update_call_from_tree): Move ...
19906         * gimple-fold.c: ... here.  New file.
19907         (ccp_fold_builtin): Rename to ...
19908         (gimple_fold_builtin): ... this.
19909         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
19910
19911 2010-04-15  Richard Guenther  <rguenther@suse.de>
19912
19913         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
19914         fit_double_type, force_fit_type_double, add_double_with_sign,
19915         neg_double, mul_double_with_sign, lshift_double, rshift_double,
19916         lrotate_double, rrotate_double, div_and_round_double): Move ...
19917         * double-int.c: ... here.
19918         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
19919         add_double, neg_double, mul_double_with_sign, mul_double,
19920         lshift_double, rshift_double, lrotate_double, rrotate_double,
19921         div_and_round_double): Move prototypes ...
19922         * double-int.h: ... here.
19923
19924 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
19925
19926         PR target/43742
19927         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
19928         matching constraints to ensure inputs match the output.
19929
19930 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19931
19932         PR target/43742
19933         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
19934         in an input-only operand.
19935
19936 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
19937
19938         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
19939         (double_int_not, double_int_lshift, double_int_rshift): Declare.
19940         (double_int_negative_p): Convert to static inline function.
19941         * double-int.c (double_int_lshift, double_int_lshift): New functions.
19942         (double_int_negative_p): Remove.
19943         * tree.h (lshift_double, rshift_double):
19944         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
19945         * fold-const.c (fold_convert_const_int_from_real,
19946         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
19947         (lshift_double): Change type of arith argument to bool.
19948         (rshift_double): Change type of arith argument to bool. Correct
19949         comment.
19950         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19951
19952 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
19953
19954         PR target/21803
19955         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
19956         at the start and end of the then/else blocks, and omit them from the
19957         conversion.
19958         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
19959         argument; all callers changed.  Pass zero to old_insns_match_p instead.
19960         (flow_find_head_matching_sequence): New function.
19961         (old_insns_match_p): Check REG_EH_REGION notes for calls.
19962         * basic-block.h (flow_find_cross_jump,
19963         flow_find_head_matching_sequence): Declare functions.
19964
19965 2010-04-14  Jason Merrill  <jason@redhat.com>
19966
19967         PR c++/36625
19968         * c-common.c (attribute_takes_identifier_p): New fn.
19969         * c-common.h: Declare it.
19970
19971 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19972
19973         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
19974         splitter condition.
19975         (*udivmod<mode>4): Ditto.
19976
19977 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19978
19979         * config/i386/i386.md (maxmin_int): Rename code attribute from
19980         maxminiprefix and update all users.
19981         (maxmin_float): Ditto from maxminfprefix.
19982         (logic): Ditto from logicprefix.
19983         (absneg_mnemonic): Ditto from absnegprefix.
19984         * config/i386/mmx.md: Update all users of maxminiprefix,
19985         maxminfprefix and logicprefix for rename.
19986         * config/i386/sse.md: Ditto.
19987         * config/i386/sync.md (sync_<code><mode>): Update for
19988         logicprefix rename.
19989
19990 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19991
19992         PR 42966
19993         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
19994         warnings converted to errors.
19995
19996 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19997
19998         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
19999         used insn_type variable.
20000         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
20001         to avoid set-but-not-used warning.
20002
20003 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20004
20005         * df-core.c (df_ref_debug): Change format string placeholder
20006         from 0x%x to %#x.
20007         * dwarf2asm.c (dw2_asm_output_data_raw,
20008         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
20009         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
20010         * dwarf2out.c (output_cfi, output_cfi_directive,
20011         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
20012         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
20013         Ditto.
20014         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
20015         * print-rtl.c (print_rtx): Ditto.
20016
20017 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20018
20019         PR middle-end/42694
20020         * builtins.c (expand_builtin_pow_root): New function to expand pow
20021         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
20022         series of sqrt and cbrt calls under -ffast-math.
20023         (expand_builtin_pow): Call it.
20024
20025 2010-04-14  Michael Matz  <matz@suse.de>
20026
20027         PR tree-optimization/42963
20028         * tree-cfg.c (touched_switch_bbs): New static variable.
20029         (group_case_labels_stmt): New function broken out from ...
20030         (group_case_labels): ... here, use the above.
20031         (start_recording_case_labels): Allocate touched_switch_bbs.
20032         (end_recording_case_labels): Deallocate it, call
20033         group_case_labels_stmt.
20034         (gimple_redirect_edge_and_branch): Remember index of affected BB.
20035
20036 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20037
20038         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
20039         from insn template.
20040
20041 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20042
20043         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
20044
20045 2010-04-13  Jan Hubicka  <jh@suse.cz>
20046
20047         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
20048         of optimized out static functions.
20049         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
20050         cost computation.  Also sanity check for overflows.
20051         (update_caller_keys): Update cgraph_edge_badness call; properly
20052         update fibheap and sanity check that it is up to date.
20053         (add_new_edges_to_heap): Update cgraph_edge_badness.
20054         (cgraph_decide_inlining_of_small_function): Likewise;
20055         add sanity checking that badness in heap is up to date;
20056         improve dumping of reason; Update badness of calls to the
20057         offline copy of function currently inlined; dump badness
20058         of functions not inlined because of unit growth limits.
20059
20060 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20061
20062         PR middle-end/32628
20063         * c-common.c (pointer_int_sum): Disregard overflow that occured only
20064         because of sign-extension change when converting to sizetype here...
20065         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
20066
20067         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
20068         the folding to constants.  Remove redundant final conversion.
20069         (fold_binary) <associate>: Do not associate if the re-association of
20070         constants alone overflows.
20071         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
20072         to the end of the list.
20073         (multiple_of_p) <COND_EXPR>: New case.
20074
20075 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20076
20077         * opt-functions.awk (opt_sanitized_name): New.
20078         (opt_enum): New.
20079         * optc-gen.awk: Use it
20080         * opth-gen.awk: Use it.
20081
20082 2010-04-13  Martin Jambor  <mjambor@suse.cz>
20083
20084         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
20085         (sra_modify_assign): Delete stmts loading dead data even if racc has no
20086         children.  Call replace_uses_with_default_def_ssa_name to handle
20087         SSA_NAES on lhs.
20088
20089 2010-04-13  Michael Matz  <matz@suse.de>
20090
20091         PR middle-end/43730
20092         * builtins.c (expand_builtin_interclass_mathfn): Also create
20093         a register if the predicate doesn't match.
20094
20095 2010-04-13  Diego Novillo  <dnovillo@google.com>
20096
20097         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
20098         * c-pch.c: Include timevar.h.
20099         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
20100         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
20101         * ggc-common.c: Include timevar.h.
20102         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
20103         * timevar.def (TV_PCH_SAVE): Define.
20104         (TV_PCH_CPP_SAVE): Define.
20105         (TV_PCH_PTR_REALLOC): Define.
20106         (TV_PCH_PTR_SORT): Define.
20107         (TV_PCH_RESTORE): Define.
20108         (TV_PCH_CPP_RESTORE): Define.
20109
20110 2010-04-13  Michael Matz  <matz@suse.de>
20111
20112         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
20113         into MINUS_EXPRs.
20114         (can_reassociate_p): New function.
20115         (break_up_subtract_bb, reassociate_bb): Use it.
20116
20117 2010-04-13  Richard Guenther  <rguenther@suse.de>
20118
20119         PR bootstrap/43737
20120         * builtins.c (c_readstr): Fix assert.
20121
20122 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
20123
20124         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
20125         when generating cltd insn.
20126
20127         (*ashl<mode>3_1): Remove special handling for register operand 2.
20128         (*ashlsi3_1_zext): Ditto.
20129         (*ashlhi3_1): Ditto.
20130         (*ashlhi3_1_lea): Ditto.
20131         (*ashlqi3_1): Ditto.
20132         (*ashlqi3_1_lea): Ditto.
20133         (*<shiftrt_insn><mode>3_1): Ditto.
20134         (*<shiftrt_insn>si3_1_zext): Ditto.
20135         (*<shiftrt_insn>qi3_1_slp): Ditto.
20136         (*<rotate_insn><mode>3_1): Ditto.
20137         (*<rotate_insn>si3_1_zext): Ditto.
20138         (*<rotate_insn>qi3_1_slp): Ditto.
20139
20140 2010-04-13  Richard Guenther  <rguenther@suse.de>
20141
20142         * tree-ssa-structalias.c (callused_id): Remove.
20143         (call_stmt_vars): New.
20144         (get_call_vi): Likewise.
20145         (lookup_call_use_vi): Likewise.
20146         (lookup_call_clobber_vi): Likewise.
20147         (get_call_use_vi): Likewise.
20148         (get_call_clobber_vi): Likewise.
20149         (make_transitive_closure_constraints): Likewise.
20150         (handle_const_call): Adjust to do per-call call-used handling.
20151         (handle_pure_call): Likewise.
20152         (find_what_var_points_to): Remove general callused handling.
20153         (init_base_vars): Likewise.
20154         (init_alias_vars): Initialize call_stmt_vars.
20155         (compute_points_to_sets): Process call-used and call-clobbered
20156         vars for call statements.
20157         (delete_points_to_sets): Free call_stmt_vars.
20158
20159 2010-04-13  Richard Guenther  <rguenther@suse.de>
20160
20161         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20162         Only add RW dependence for dependence distance zero.
20163         Adjust maximal vectorization factor according to dependences.
20164         Move alignment handling ...
20165         (vect_find_same_alignment_drs): ... here.  New function.
20166         (vect_analyze_data_ref_dependences): Adjust.
20167         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
20168         (vect_analyze_data_refs): Adjust minimal vectorization factor
20169         according to data references.
20170         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
20171         dependences before determining the vectorization factor.
20172         Analyze alignment after determining the vectorization factor.
20173         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
20174         dependences before alignment.
20175         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
20176         Adjust prototype.
20177         (vect_analyze_data_refs): Likewise.
20178         (MAX_VECTORIZATION_FACTOR): New define.
20179
20180 2010-04-13  Duncan Sands  <baldrick@free.fr>
20181
20182         * except.h (lang_eh_type_covers): Remove.
20183         * except.c (lang_eh_type_covers): Likewise.
20184
20185 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20186             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20187
20188         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
20189         * config/s390/s390.c: Replace UNTIS_PER_WORD with
20190         UNITS_PER_LONG where it is ABI relevant.
20191         (s390_return_addr_rtx): Likewise.
20192         (s390_back_chain_rtx): Likewise.
20193         (s390_frame_area): Likewise.
20194         (s390_frame_info): Likewise.
20195         (s390_initial_elimination_offset): Likewise.
20196         (save_gprs): Likewise.
20197         (s390_emit_prologue): Likewise.
20198         (s390_emit_epilogue): Likewise.
20199         (s390_function_arg_advance): Likewise.
20200         (s390_function_arg): Likewise.
20201         (s390_va_start): Likewise.
20202         (s390_gimplify_va_arg): Likewise.
20203         (s390_function_profiler): Likewise.
20204         (s390_optimize_prologue): Likewise.
20205         (s390_rtx_costs): Likewise.
20206         (s390_secondary_reload): Likewise.
20207         (s390_promote_function_mode): Likewise.
20208         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
20209         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
20210         registers available.
20211         (s390_unwind_word_mode): New function.
20212         (s390_function_value): Split 64 bit values into register pair if
20213         used as return value.
20214         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
20215         function call parameters.  Handle parallels.
20216         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
20217         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
20218         (DWARF_CIE_DATA_ALIGNMENT): New macro.
20219         (s390_expand_setmem): Remove unused variable src_addr.
20220         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
20221         deal with 64 bit registers.
20222         * config/s390/s390.h: Define __zarch__ predefined macro.
20223         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
20224         (UNITS_PER_LONG): New macro.
20225         * libjava/include/s390-signal.h: Define extended ucontext
20226         structure containing the upper halfs of the 64 bit registers.
20227
20228 2010-04-13  Simon Baldwin  <simonb@google.com>
20229
20230         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
20231
20232 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20233
20234         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
20235         rvalue on the RHS if the LHS is of a non-renamable type.
20236         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
20237
20238 2010-04-13  Matthias Klose  <doko@ubuntu.com>
20239
20240         * gcc.c (cc1_options): Handle -iplugindir before processing
20241         the cc1 spec. Only add -iplugindir once.
20242         (cpp_unique_options): Add -iplugindir option if -fplugin* options
20243         found.
20244         * common.opt (iplugindir): Remove `Separate' property, initialize.
20245         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
20246         option.
20247         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
20248         (distclean): Remove plugin dir.
20249         * doc/invoke.texi: Document -iplugindir.
20250
20251 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
20252
20253         * doc/plugins.texi (Loading Plugins): Document short
20254         -fplugin=foo option.
20255         (Plugin API): Mention default_plugin_dir_name function.
20256
20257         * gcc.c (find_file_spec_function): Add new declaration.
20258         (static_spec_func): Use it for "find-file".
20259         (find_file_spec_function): Add new function.
20260         (cc1_options): Add -iplugindir option if -fplugin* options found.
20261
20262         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
20263
20264         * plugin.c (add_new_plugin): Updated comment, and handle short
20265         plugin name.
20266         (default_plugin_dir_name): Added new function.
20267
20268         * common.opt (iplugindir): New option to set the plugin directory.
20269
20270 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
20271
20272         * config/i386/i386.md (any_rotate): New code iterator.
20273         (rotate_insn): New code attribute.
20274         (rotate): Ditto.
20275         (SWIM124): New mode iterator.
20276         (<rotate_insn>ti3): New expander.
20277         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
20278         any_rotate code iterator.
20279         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
20280         using any_rotate code iterator and SWIM124 mode iterator.
20281         (ix86_rotlti3): New insn_and_split pattern.
20282         (ix86_rotrti3): Ditto.
20283         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
20284         ix86_rotl{di,ti}3 patterns.
20285         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
20286         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
20287         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
20288         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
20289         code iterator and SWI mode iterator.
20290         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
20291         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
20292         code iterator.
20293         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
20294         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
20295         (bswap rotatert splitter): Add splitter.
20296         (bswap splitter): Macroize splitter using any_rotate code iterator.
20297         Add insn predicate to split only for TARGET_USE_XCHGB or when
20298         optimizing function for size.
20299
20300 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20301
20302         * config/pa/pa.c (emit_move_sequence): Remove use of
20303         deleted variable flag_argument_noalias.
20304
20305 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20306
20307         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
20308         configurations.
20309         Add to unsupported targets list.
20310         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
20311         sparc*-sun-solaris2.[567]* from target lists.
20312         * configure: Regenerate.
20313         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
20314         removal.
20315         Remove Solaris 7 patch references.
20316         (Specific, sparc-sun-solaris2.7): Removed.
20317         (sparc-sun-solaris2*): Update Solaris 7 example.
20318         (sparc64-*-solaris2*): Likewise.
20319
20320 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20321
20322         * config.build (alpha*-dec-osf4*): Remove.
20323         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
20324         of obsolete configurations.
20325         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
20326         support.
20327         * config/alpha/t-osf4: Renamed to ...
20328         * config/alpha/t-osf5: ... this.
20329         * config/alpha/osf.h: Renamed to ...
20330         * config/alpha/osf5.h: ... this.
20331         Merged old osf5.h contents.
20332         Update comments.
20333         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
20334         (EXTRA_SPECS): Removed.
20335         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
20336         reflect removal of Tru64 UNIX V4.0/V5.0 support.
20337         Document that.
20338
20339 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20340
20341         * doc/contrib.texi (Contributors, Rainer Orth): Update.
20342
20343 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
20344
20345         PR/43702
20346         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
20347         __thiscall convention.
20348
20349 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20350
20351         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
20352         orig_base.
20353         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
20354
20355 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20356
20357         * function.c (assign_parms_initialize_all): Add unused attribute
20358         to fntype.
20359
20360 2010-04-12  Richard Guenther  <rguenther@suse.de>
20361
20362         * gsstruct.def (GSS_CALL): New.
20363         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
20364         * gimple.h: Include tree-ssa-alias.h.
20365         (struct gimple_statement_call): New.
20366         (union gimple_statement_struct_d): Add gimple_call member.
20367         (gimple_call_reset_alias_info): Declare.
20368         (gimple_call_use_set): New function.
20369         (gimple_call_clobber_set): Likewise.
20370         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
20371         * gimple.c (gimple_call_reset_alias_info): New function.
20372         (gimple_build_call_1): Call it.
20373         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20374         * tree-inline.c (remap_gimple_stmt): Likewise.
20375         (expand_call_inline): Remove callused handling.
20376         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
20377         * tree-dfa.c (dump_variable): Likewise.
20378         * tree-parloops.c (parallelize_loops): Likewise.
20379         * tree-ssa.c (init_tree_ssa): Likewise.
20380         (delete_tree_ssa): Likewise.
20381         * tree-flow-inline.h (is_call_used): Remove.
20382         * tree-flow.h (struct gimple_df): Remove callused member.
20383         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
20384         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
20385         (ref_maybe_used_by_call_p_1): Simplify.
20386         (call_may_clobber_ref_p_1): Likewise.
20387         * tree-ssa-structalias.c (compute_points_to_sets): Set
20388         the call stmt used and clobbered sets.
20389         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
20390         (find_tail_calls): Verify the tail call.
20391
20392 2010-04-12  Richard Guenther  <rguenther@suse.de>
20393
20394         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
20395         single-iteration always-inline inlining.
20396         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
20397         (cgraph_decide_inlining): Do not handle always-inline specially.
20398         (try_inline): Remove always-inline cycle detection special case.
20399         Do not recurse on always-inlines.
20400         (cgraph_early_inlining): Do not iterate if not optimizing.
20401         (cgraph_gate_early_inlining): remove.
20402         (pass_early_inline): Run unconditionally.
20403         (gate_cgraph_decide_inlining): New function.
20404         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
20405         not inlining or optimizing.
20406         (cgraph_decide_inlining_of_small_functions): Also consider
20407         always-inline functions.
20408         (cgraph_default_inline_p): Return true for nodes which should
20409         disregard inline limits.
20410         (estimate_function_body_sizes): Assume zero size and time for
20411         nodes which are marked as disregarding inline limits.
20412         (cgraph_decide_recursive_inlining): Do not perform recursive
20413         inlining on always-inline nodes.
20414
20415 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
20416
20417         PR bootstrap/43699
20418         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
20419         for exprs satisfying handled_component_p.
20420
20421 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
20422
20423         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
20424         non-constant aggregate elements.
20425
20426         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
20427         is a real initialization.
20428
20429 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
20430
20431         PR c/36774
20432         * c-decl.c (start_function): Move forward check for nested function.
20433
20434 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
20435
20436         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
20437         * config/sh/sh.c: Include reload.h.
20438         (sh_legitimize_reload_address): New.
20439         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
20440         sh_legitimize_reload_address.
20441
20442 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20443
20444         * config/sh/sh.md (*movqi_pop): New insn pattern.
20445         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
20446
20447 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20448
20449         * config/i386/i386.md (any_shiftrt): New code iterator.
20450         (shiftrt_insn): New code attribute.
20451         (shiftrt): Ditto.
20452         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
20453         using any_shiftrt code iterator.
20454         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
20455         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
20456         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
20457         pattern from corresponding peephole2 patterns.
20458         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
20459         using any_shiftrt code iterator.
20460         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
20461         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
20462         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
20463         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
20464         *{ashr,lshr}<mode>3_cmp_zext.
20465         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
20466
20467 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20468
20469         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
20470         scratch register.
20471         (*lshr<mode>3_cconly): Ditto.
20472
20473 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20474
20475         * config/i386/i386.md (lshr<mode>3): Macroize expander from
20476         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20477         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20478         pattern from *lshr{di,ti}3_1 and corresponding splitters using
20479         DWI mode iterator.
20480         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20481         from corresponding peephole2 patterns.
20482         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
20483         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
20484         and *lshrdi3_1_rex64 using SWI mode iterator.
20485         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
20486         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
20487         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
20488         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
20489         and *lshrdi3_cmp_rex64 using SWI mode iterator.
20490         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
20491         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
20492         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
20493         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
20494         SWI mode iterator.
20495
20496 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
20497
20498         * config/i386/i386.md (ashr<mode>3): Macroize expander from
20499         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20500         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20501         pattern from *ashr{di,ti}3_1 and corresponding splitters using
20502         DWI mode iterator.
20503         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20504         from corresponding peephole2 patterns.
20505         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
20506         (ashrsi3_cvt): Rename from ashrsi3_31.
20507         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
20508         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
20509         and x86_64_shift_adj_3 using SWI48 mode iterator.
20510         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
20511         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
20512         and *ashrdi3_1_rex64 using SWI mode iterator.
20513         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
20514         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
20515         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
20516         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
20517         and *ashrdi3_cmp_rex64 using SWI mode iterator.
20518         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
20519         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
20520         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
20521         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
20522         SWI mode iterator.
20523         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
20524         * config/i386/i386.c (ix86_split_ashr): Update for renamed
20525         x86_shift<mode>_adj_3 expanders.
20526
20527 2010-04-10  Wei Guozhi  <carrot@google.com>
20528
20529         PR target/42601
20530         * config/arm/arm.c (arm_pic_static_addr): New function.
20531         (legitimize_pic_address): Call arm_pic_static_addr when it detects
20532         a static symbol.
20533         (arm_output_addr_const_extra): Output expression for new pattern.
20534         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
20535
20536 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
20537
20538         * ira-costs.c (record_reg_classes): Ignore alternatives that are
20539         not enabled.
20540
20541         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
20542         * web.c: Include "insn-config.h" and "recog.h".
20543         (union_match_dups): New function.
20544         (web_main): Call it.
20545         (union_defs): Don't try to recognize match_dups.
20546
20547         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
20548         if doing so would replace the entire pattern.
20549
20550 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20551
20552         PR target/43707
20553         PR target/43709
20554         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
20555         and splitter pattern.  Change splitter operand 1 predicate to
20556         nonmemory_operand.
20557
20558 2010-04-09  Martin Jambor  <mjambor@suse.cz>
20559
20560         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
20561         lattices are addresses of CONST_DECLs with the same initial value.
20562         (ipcp_print_all_lattices): Print values of CONST_DECLs.
20563         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
20564
20565 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
20566             Bernd Schmidt  <bernds@codesourcery.com>
20567
20568         * loop-invariant.c (replace_uses): New static function.
20569         (move_invariant_reg): Use it to ensure we can replace the uses.
20570
20571 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
20572
20573         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
20574         function template.
20575         (picochip_override_options): Enable section anchors only above -O1.
20576         (picochip_reorg): Fixed a couple of build warnings.
20577
20578 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20579
20580         * configure.ac (plugin -rdynamic test): Log result.
20581         * configure: Regenerate.
20582         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
20583         (RDYNAMIC_SPEC): Define.
20584         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
20585
20586 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20587
20588         * configure.ac: Determine Sun ld version numbers.
20589         (comdat_group): Restrict GNU ld version checks to gld.
20590         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
20591         (enable_comdat): Support --enable-comdat.
20592         * configure: Regenerate.
20593         * doc/install.texi (Configuration): Document --enable-comdat.
20594
20595 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20596
20597         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
20598         * config/sol2-gld.h: ... here.
20599         * config.gcc (sparc*-*-solaris2*): Reflect this.
20600         (i[34567]86-*-solaris2*): Use it.
20601
20602 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
20603
20604         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
20605         setup_clocks_p.
20606         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
20607
20608 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20609
20610         PR 42965
20611         * diagnostic.c (diagnostic_initialize): Initialize
20612         some_warnings_are_errors.
20613         (diagnostic_finish): New.
20614         (diagnostic_action_after_output): Call it before exiting.
20615         (diagnostic_report_diagnostic): Do not print message here. Set
20616         some_warnings_are_errors.
20617         * diagnostic.h (diagnostic_context): Delete
20618         issue_warnings_are_errors_message. Add some_warnings_are_errors.
20619         (diagnostic_finish): Declare.
20620         * toplev.c (toplev_main): Call it before exit.
20621
20622 2010-04-09  Jason Merrill  <jason@redhat.com>
20623
20624         PR c++/42623
20625         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
20626         for incomplete type.
20627
20628         PR c++/41788
20629         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
20630         based on a warning flag.
20631
20632 2010-04-09  Richard Guenther  <rguenther@suse.de>
20633
20634         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
20635
20636 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
20637
20638         PR bootstrap/43684
20639         * varasm.c (default_assemble_visibility): Wrap vars that are
20640         set, but unused, by targets without GAS.
20641         * config/rs6000/rs6000.c (paired_emit_vector_compare):
20642         Remove set, but unused, vars.
20643         (rs6000_legitimize_tls_address): Likewise.
20644         (altivec_expand_dst_builtin): Likewise.
20645         * config/darwin.c (machopic_classify_symbol): Likewise.
20646         (machopic_indirection_name): Likewise.
20647
20648 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20649
20650         * config/i386/i386.md (DWI): New mode iterator.
20651         (S): New mode attribute.
20652         (shift_operand): Ditto.
20653         (shift_immediate_operand): Ditto.
20654         (ashl_input_operand): Ditto.
20655         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
20656         using SDWIM mode iterator.
20657         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20658         pattern from *ashl{di,ti}3_1 and corresponding splitters using
20659         DWI mode iterator.
20660         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
20661         from corresponding peephole2 patterns.
20662         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
20663         and x86_64_shift_adj_1 using SWI48 mode iterator.
20664         (x86_shift<mode>_adj_2): Ditto.
20665         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
20666         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
20667         using SWI48 mode iterator.
20668         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
20669         *ashldi3_cmp_rex64 using SWI mode iterator.
20670         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
20671         *ashldi3_cconly_rex64 using SWI mode iterator.
20672         * config/i386/i386.c (ix86_split_ashl): Update for renamed
20673         x86_shift<mode>_adj_{1,2}.
20674         (ix86_split_ashr): Ditto.
20675         (ix86_split_lshr): Ditto.
20676
20677 2010-04-09  Richard Guenther  <rguenther@suse.de>
20678
20679         * target.h (builtin_conversion): Pass in input and output types.
20680         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
20681         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
20682         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
20683         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
20684
20685         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
20686         Handle AVX modes.
20687         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
20688
20689 2010-04-09  Richard Guenther  <rguenther@suse.de>
20690
20691         PR target/43152
20692         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
20693
20694 2010-04-09  Richard Guenther  <rguenther@suse.de>
20695
20696         * tree-vectorizer.h (struct _stmt_vec_info): Document
20697         that vectype is the type of the LHS.
20698         (supportable_widening_operation, supportable_narrowing_operation):
20699         Get both input and output vector types as arguments.
20700         (vect_is_simple_use_1): Declare.
20701         (get_same_sized_vectype): Likewise.
20702         * tree-vect-loop.c (vect_determine_vectorization_factor):
20703         Set STMT_VINFO_VECTYPE to the vector type of the def.
20704         (vectorizable_reduction): Adjust.
20705         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
20706         Adjust.  Specify the output vector type.
20707         (vect_pattern_recog_1): Adjust.
20708         * tree-vect-stmts.c (get_same_sized_vectype): New function.
20709         (vectorizable_call): Adjust.
20710         (vectorizable_conversion): Likewise.
20711         (vectorizable_operation): Likewise.
20712         (vectorizable_type_demotion): Likewise.
20713         (vectorizable_type_promotion): Likewise.
20714         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
20715         the def.
20716         (vect_is_simple_use_1): New function.
20717         (supportable_widening_operation): Get both input and output
20718         vector types.
20719         (supportable_narrowing_operation): Likewise.
20720         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
20721
20722 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
20723
20724         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
20725         __thiscall and _thiscall as predefined macros.
20726         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
20727         thiscall attribute handling.
20728         (ix86_comp_type_attributes): Likewise.
20729         (ix86_function_regparm): Likewise.
20730         (ix86_return_pops_args): Likewise.
20731         (init_cumulative_args): Likewise.
20732         (find_drap_reg): Likewise.
20733         (ix86_static_chain): Likewise.
20734         (x86_this_parameter): Likewise.
20735         (x86_output_mi_thunk): Likewise.
20736         (ix86_attribute_table): Add description for thiscall attribute.
20737         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
20738         * doc/extend.texi: Add documentation for thiscall.
20739
20740 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20741
20742         PR c++/28584
20743         * c.opt (Wint-to-pointer-cast): Available in C++.
20744         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
20745
20746 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20747
20748         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
20749         * calls.c (expand_call): Pass the function type to aggregate_value_p.
20750         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
20751         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
20752         function type instead.  Reorder and simplify checks.
20753
20754         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
20755
20756 2010-04-08  Jing Yu  <jingyu@google.com>
20757             Zdenek Dvorak  <ook@ucw.cz>
20758
20759         PR tree-optimization/42720
20760         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
20761         loop unswitch conditions here from ...
20762         (tree_unswitch_single_loop): ... here.
20763
20764 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20765
20766         * tree-if-conv.c: Fix comments and simplify logic.
20767
20768 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20769
20770         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
20771         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
20772         (main_tree_if_conversion): Update call to tree_if_conversion.
20773
20774 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20775
20776         PR 42485
20777         * doc/invoke.texi (-b,-V): Delete.
20778         * doc/tm.texi: Do not mention -b.
20779         * gcc.c (display_help): Delete -b and -V.
20780         (process_command): Delete -b and -V.
20781         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
20782
20783 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
20784             Wolfgang Gellerich  <gellerich@de.ibm.com>
20785
20786         Implement target hook for loop unrolling
20787         * target.h (loop_unroll_adjust): Add a new target hook function.
20788         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
20789         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
20790         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
20791         (s390_loop_unroll_adjust): Implement the new target hook for s390.
20792         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
20793         target hook.
20794         (decide_unroll_stupid): Likewise.
20795
20796 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20797
20798         PR target/43643
20799         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
20800
20801 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20802
20803         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
20804         (Specific, *-*-solaris2*): Likewise.
20805         Don't prefer Sun as over GNU as.
20806
20807 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
20808
20809         * config/s390/s390.c (override_options): Adjust the z10 defaults
20810         for max-unroll-times, max-completely-peeled-insns
20811         and max-completely-peel-times.
20812
20813 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20814
20815         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
20816         instructions for z10.
20817         (s390_expand_setmem): Likewise.
20818         (s390_expand_cmpmem): Likewise.
20819
20820 2010-04-08  Richard Guenther  <rguenther@suse.de>
20821
20822         PR tree-optimization/43679
20823         * tree-ssa-pre.c (eliminate): Only propagate copies.
20824
20825 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20826
20827         PR bootstrap/43681
20828         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
20829         set but not used variable warning.
20830
20831 2010-04-08  Wei Guozhi  <carrot@google.com>
20832
20833         PR target/41653
20834         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
20835         (arm_size_rtx_costs): Call the new function when optimized for size.
20836
20837 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20838
20839         PR debug/43670
20840         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
20841         op0 is not a MEM, just return NULL instead of assertion
20842         failure.
20843         (discover_nonconstant_array_refs): Don't walk debug stmts.
20844
20845 2010-04-08  Doug Kwan  <dougkwan@google.com>
20846
20847         * configure.ac: Recognize gold and do not use its version number
20848         to test ld features.
20849         * configure: Regenerate.
20850
20851 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
20852
20853         PR middle-end/40815
20854         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
20855         (negate_value): Move code to push elements to broken_up_substracts ...
20856         (eliminate_plus_minus_pair): ... here.  Push operands that have no
20857         negative pair to plus_negates.
20858         (repropagate_negates, init_reassoc, fini_reassoc): Update.
20859
20860 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20861
20862         * doc/install.texi (Configuration): Move description of
20863         --enable-lto, --with-libelf*, --enable-gold from Java section to
20864         general section.
20865
20866         * doc/generic.texi (Working with declarations)
20867         (Function Properties, C and C++ Trees): Fix typos.
20868         * doc/sourcebuild.texi (Top Level): Likewise.
20869
20870 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20871
20872         PR c/18624
20873         * tree.h (DECL_READ_P): Define.
20874         (struct tree_decl_common): Add decl_read_flag.
20875         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
20876         a set but not used warning.
20877         (merge_decls): Merge DECL_READ_P flag.
20878         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
20879         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
20880         * c-common.c (handle_used_attribute, handle_unused_attribute):
20881         Likewise.
20882         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
20883         New prototypes.
20884         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
20885         New functions.
20886         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
20887         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
20888         c_parser_binary_expression, c_parser_cast_expression,
20889         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
20890         Call default_function_array_read_conversion instead of
20891         default_function_array_conversion where needed.
20892         (c_parser_unary_expression, c_parser_conditional_expression,
20893         c_parser_postfix_expression_after_primary, c_parser_initelt):
20894         Likewise.  Call mark_exp_read where needed.
20895         (c_parser_statement_after_labels, c_parser_asm_operands,
20896         c_parser_typeof_specifier, c_parser_sizeof_expression,
20897         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
20898         where needed.
20899         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
20900         New.
20901         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
20902         (warn_unused_but_set_parameter): Default to warn_unused
20903         && extra_warnings.
20904         * doc/invoke.texi: Document -Wunused-but-set-variable and
20905         -Wunused-but-set-parameter.
20906
20907         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
20908         used count variable.
20909         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
20910         when operandN variables aren't used in the body of the expander
20911         or splitter.
20912         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
20913         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
20914         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
20915         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
20916         FOR_EACH_IMM_USE_ON_STMT): Likewise.
20917         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
20918         * tree.c (PROCESS_ARG): Likewise.
20919
20920 2010-04-07  Simon Baldwin  <simonb@google.com>
20921
20922         * diagnostic.h (diagnostic_override_option_index): New macro to
20923         set a diagnostic's option_index.
20924         * c-tree.h (c_cpp_error): Add warning reason argument.
20925         * opts.c (_warning_as_error_callback): New.
20926         (register_warning_as_error_callback): Store callback for
20927         warnings enabled via enable_warning_as_error.
20928         (enable_warning_as_error): Call callback, minor code tidy.
20929         * opts.h (register_warning_as_error_callback): Declare.
20930         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
20931         response to -Werror=.
20932         (c_common_init_options): Register warning_as_error_callback in opts.c.
20933         * common.opt: Add -Wno-cpp option.
20934         * c-common.c (struct reason_option_codes_t): Map cpp warning
20935         reason codes to gcc option indexes.
20936         * (c_option_controlling_cpp_error): New function, lookup the gcc
20937         option index for a cpp warning reason code.
20938         * (c_cpp_error): Add warning reason argument, call
20939         c_option_controlling_cpp_error for diagnostic_override_option_index.
20940         * doc/invoke.texi: Document -Wno-cpp.
20941
20942 2010-04-07  Richard Guenther  <rguenther@suse.de>
20943
20944         * ipa-reference.c (mark_load): Use get_base_address.
20945         (mark_store): Likewise.
20946
20947         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
20948         inserting GIMPLE_NOPs into the IL.
20949         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20950         Explicitly strip handled components and indirect references.
20951
20952         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
20953         folding address expressions.
20954         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
20955         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
20956         operand_equal_p to compare decls.
20957         (ptr_deref_may_alias_decl_p): Likewise.
20958         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
20959         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
20960         Handle reversed comparison ops.
20961         * tree-sra.c (asm_visit_addr): Use get_base_address.
20962         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
20963         * ipa-reference.c (mark_address): Use get_base_address.
20964
20965 2010-04-07  Richard Guenther  <rguenther@suse.de>
20966
20967         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
20968         Propagate constants everywhere.
20969
20970 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20971
20972         PR debug/43516
20973         * tree.c (MAX_INT_CACHED_PREC): Define.
20974         (nonstandard_integer_type_cache): New array.
20975         (build_nonstandard_integer_type): Cache results for precision
20976         <= MAX_INT_CACHED_PREC.
20977
20978 2010-04-07  Richard Guenther  <rguenther@suse.de>
20979
20980         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
20981         -fargument-noalias-global, -fargument-noalias-anything): Remove.
20982         * common.opt: Likewise.
20983         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
20984         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
20985         (nonoverlapping_memrefs_p): Likewise.
20986         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20987         * opts.c (common_handle_option): Handle OPT_fargument_alias,
20988         OPT_fargument_noalias, OPT_fargument_noalias_anything and
20989         OPT_fargument_noalias_global for backward compatibility.
20990
20991 2010-04-07  Richard Guenther  <rguenther@suse.de>
20992
20993         PR tree-optimization/43270
20994         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
20995         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
20996         * tree-ssa-pre.c (phi_translate_1): Adjust.
20997         (fully_constant_expression): Split out vn_reference handling to ...
20998         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
20999         Fold reads from constant strings.
21000         (vn_reference_lookup): Handle fully constant references.
21001         (vn_reference_lookup_pieces): Likewise.
21002         * Makefile.in (expmed.o-warn): Add -Wno-error.
21003
21004 2010-04-07  Martin Jambor  <mjambor@suse.cz>
21005
21006         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
21007
21008 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
21009
21010         PR driver/41594
21011         * gcc.c: Add -static-libstdc++ to list of recognized options.
21012
21013 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21014
21015         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
21016
21017 2010-04-07  Richard Guenther  <rguenther@suse.de>
21018
21019         PR middle-end/42617
21020         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
21021         bases build simple mem attributes to retain points-to information.
21022
21023 2010-04-07  Richard Guenther  <rguenther@suse.de>
21024
21025         PR middle-end/42617
21026         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
21027         preserve points-to related information.
21028
21029 2010-04-07  Richard Guenther  <rguenther@suse.de>
21030
21031         PR middle-end/42617
21032         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
21033         discard plain indirect references.
21034         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
21035         * tree.c (tree_nop_conversion): Likewise.
21036
21037 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
21038
21039         PR debug/43628
21040         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
21041
21042 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
21043
21044         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
21045         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
21046
21047 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21048
21049         * tree-if-conv.c: Fix indentation and comments.
21050
21051 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21052
21053         * tree-if-conv.c: Sort static functions in topological order.
21054
21055 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21056
21057         * tree-if-conv.c: Fix indentation and comments.
21058
21059 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21060
21061         PR middle-end/43519
21062         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
21063         lang_hooks.types.type_for_size instead of
21064         build_nonstandard_integer_type.
21065         When converting an unsigned type to signed, double its precision.
21066         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
21067         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
21068         (graphite_create_new_loop_guard): When ub + 1 wraps around,
21069         use lb <= ub.
21070
21071 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21072
21073         PR middle-end/43519
21074         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21075         POINTER_PLUS_EXPR for pointer types.
21076
21077 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21078
21079         PR middle-end/43519
21080         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
21081         * graphite-clast-to-gimple.c: Include langhooks.h.
21082         (max_signed_precision_type): New.
21083         (max_precision_type): Takes two types as arguments.
21084         (precision_for_value): New.
21085         (precision_for_interval): New.
21086         (gcc_type_for_interval): New.
21087         (gcc_type_for_value): New.
21088         (gcc_type_for_clast_term): New.
21089         (gcc_type_for_clast_red): New.
21090         (gcc_type_for_clast_bin): New.
21091         (gcc_type_for_clast_expr): Split up into several functions.
21092         (gcc_type_for_clast_eq): Rewritten.
21093         (compute_bounds_for_level): New.
21094         (compute_type_for_level_1): New.
21095         (compute_type_for_level): New.
21096         (gcc_type_for_cloog_iv): Removed.
21097         (gcc_type_for_iv_of_clast_loop): Rewritten.
21098         (graphite_create_new_loop): Compute the lower and upper bound types
21099         with gcc_type_for_clast_expr.
21100         (graphite_create_new_loop_guard): Same.
21101         (find_cloog_iv_in_expr): Removed.
21102         (compute_cloog_iv_types_1): Removed.
21103         (compute_cloog_iv_types): Removed.
21104         (gloog): Do not call compute_cloog_iv_types.
21105         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
21106         GBB_CLOOG_IV_TYPES.
21107         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
21108         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
21109         (GBB_CLOOG_IV_TYPES): Removed.
21110
21111 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21112
21113         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
21114         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
21115         (detect_commutative_reduction): Same.
21116
21117 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21118
21119         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
21120         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
21121         argument.
21122         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
21123         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
21124         (rewrite_commutative_reductions_out_of_ssa): Same.
21125         * passes.c (execute_function_todo): Call verify_ssa for every pass
21126         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
21127         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
21128         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
21129         with an extra argument.
21130         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
21131         verify_ssa only when the extra argument is true.
21132         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
21133         with an extra argument.
21134         (tree_transform_and_unroll_loop): Same.
21135
21136 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21137
21138         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
21139         for all the passes of the LNO having LOOP_CLOSED_SSA.
21140         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
21141         * tree-loop-distribution.c (pass_loop_distribution): Same.
21142         * tree-pass.h (TODO_verify_loops): Removed.
21143         * tree-ssa-loop.c (pass_tree_loop_init): Same.
21144         (pass_lim): Same.
21145         (pass_tree_unswitch): Same.
21146         (pass_predcom): Same.
21147         (pass_vectorize): Same.
21148         (pass_linear_transform): Same.
21149         (pass_graphite_transforms): Same.
21150         (pass_iv_canon): Same.
21151         (pass_complete_unroll): Same.
21152         (pass_complete_unrolli): Same.
21153         (pass_parallelize_loops): Same.
21154         (pass_loop_prefetch): Same.
21155         (pass_iv_optimize): Same.
21156
21157 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
21158
21159         PR middle-end/32824
21160         * passes.c (init_optimization_passes): Move pass_lim before
21161         pass_copy_prop and pass_dce_loop.
21162
21163 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21164
21165         PR target/43667
21166         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
21167         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
21168         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
21169         MULTI_* defines for 4 argument vpermil2p* builtins.
21170
21171 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21172
21173         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
21174         * config/i386/i386.c (x86_maybe_negate_const_int): New.
21175         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
21176         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
21177         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
21178         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
21179         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
21180         Use x86_maybe_negate_const_int to output insn mnemonic.
21181         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
21182         check from instruction predicate.  Update comments.
21183         * config/i386/sync.md (sync_add<mode>): Use
21184         x86_maybe_negate_const_int to output insn mnemonic.
21185
21186 2010-04-06  Jan Hubicka  <jh@suse.cz>
21187
21188         PR tree-optimization/42906
21189         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
21190         IGNORE_SELF argument.  Set visited_control_parents for fully
21191         processed BBs.
21192         (find_obviously_necessary_stmts): Update call of
21193         mark_control_dependent_edges_necessary.
21194         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
21195
21196 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21197
21198         * config/i386/i386.md: Remove comment about 'e' and 'E'
21199         operand modifier.
21200
21201 2010-04-06  Richard Guenther  <rguenther@suse.de>
21202
21203         PR tree-optimization/43627
21204         * tree-vrp.c (extract_range_from_unary_expr): Widenings
21205         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
21206         not varying.
21207
21208 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21209
21210         * BASE-VER: Change to 4.6.0.
21211
21212         PR target/43638
21213         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
21214         handling.
21215
21216 2010-04-06  Richard Guenther  <rguenther@suse.de>
21217
21218         PR middle-end/43661
21219         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
21220
21221 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21222
21223         * doc/invoke.texi (Optimize Options): Document that LTO
21224         won't remove object access purely due to incompatible
21225         declarations.
21226
21227 2010-04-04  Matthias Klose  <doko@ubuntu.com>
21228
21229         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
21230         Initialize variable.
21231
21232 2010-04-03  Richard Guenther  <rguenther@suse.de>
21233
21234         PR middle-end/42509
21235         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
21236         require a non-NULL MEM_OFFSET.
21237
21238 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
21239
21240         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
21241         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
21242         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
21243         config/alpha/predicates.md, config/arm/arm.md,
21244         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
21245         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
21246         config/darwin9.h, config/darwin.c, config/darwin.h,
21247         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
21248         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
21249         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
21250         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
21251         config/mips/mips.md, config/mn10300/mn10300.c,
21252         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
21253         config/rs6000/aix.h, config/rs6000/dfp.md,
21254         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
21255         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
21256         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
21257         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
21258         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
21259         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
21260         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
21261         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
21262         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
21263         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
21264         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
21265         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
21266         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
21267         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
21268         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
21269         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
21270         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
21271         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
21272         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
21273         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
21274         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
21275         opt-functions.awk, opth-gen.awk, params.def, passes.c,
21276         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
21277         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
21278         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
21279         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
21280         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
21281         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
21282         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
21283         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
21284         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
21285         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
21286         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
21287         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
21288         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
21289         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
21290
21291 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21292
21293         PR other/43620
21294         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
21295         * aclocal.m4: Regenerate.
21296
21297 2010-04-02  Richard Guenther  <rguenther@suse.de>
21298
21299         PR tree-optimization/43629
21300         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
21301         if we have seen a constant value.
21302
21303 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
21304
21305         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
21306
21307 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
21308
21309         PR target/43469
21310         * arm.c (legitimize_tls_address): Adjust call to
21311         gen_tls_load_dot_plus_four.
21312         (arm_note_pic_base): New function.
21313         (arm_cannot_copy_insn_p): Use it.
21314         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
21315         constraint.
21316
21317 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21318
21319         PR bootstrap/43531
21320
21321         Revert:
21322         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21323
21324         * Makefile.in ($(out_object_file)): Depend on
21325         gt-$(basename $(notdir $(out_file))).h.
21326
21327 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
21328
21329         * config.gcc (lm32-*-rtems*): Add t-lm32.
21330
21331 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
21332
21333         * config.gcc: Add lm32-*-rtems*.
21334         * config/lm32/rtems.h: New file.
21335
21336 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
21337
21338         PR target/42609
21339         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
21340
21341 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
21342
21343         * dwarf2out.c (output_compilation_unit_header): For
21344         -gdwarf-4 use version 4 instead of version 3.
21345         (output_line_info): For version 4 and above emit additional
21346         maximum ops per insn header field.
21347         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
21348
21349         * dwarf2out.c (is_c_family, is_java): Remove.
21350         (lower_bound_default): New function.
21351         (add_bound_info, gen_descr_array_type_die): Use it.
21352
21353 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
21354
21355         PR debug/43325
21356         * dwarf2out.c (gen_variable_die): Allow debug info for variable
21357         re-declaration when it happens in a function.
21358
21359 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
21360
21361         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
21362         (cgraph_remove_function_insertion_hook): Same.
21363         (cgraph_call_function_insertion_hooks): Same.
21364
21365 2010-04-01  Richard Guenther  <rguenther@suse.de>
21366
21367         PR middle-end/43614
21368         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
21369         and TREE_THIS_VOLATILE.
21370         (copy_ref_info): Likewise.
21371         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
21372         * tree.c (build6_stat): Ignore side-effects of all but arg5
21373         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
21374         TARGET_MEM_REF.
21375
21376 2010-04-01  Richard Guenther  <rguenther@suse.de>
21377
21378         PR tree-optimization/43607
21379         * ipa-type-escape.c (check_call): Do not access non-existing
21380         arguments.
21381
21382 2010-04-01  Richard Guenther  <rguenther@suse.de>
21383
21384         PR middle-end/43602
21385         Revert
21386         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21387                     Jack Howarth  <howarth@bromo.med.uc.edu>
21388
21389         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21390         variables TLS.
21391
21392 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21393
21394         * doc/install.texi (Prerequisites): Document libelf usability on
21395         IRIX 5/6 and Solaris 2.
21396         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
21397         Update GNU as, GNU ld requirements.
21398         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
21399         Document Sun Studio compiler download.
21400         Update and simplify as, ld recommendations.
21401         (Specific, *-*-solaris2.7): Note obsoletion, removal.
21402
21403 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21404
21405         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
21406         with_tune_32 to pentium4.
21407
21408 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
21409
21410         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
21411
21412 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21413
21414         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
21415         obsoletion, removal.
21416         Update IDO URL.
21417         Document GNU as requirement.
21418         Update configure requirements.
21419         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
21420         Recomment IRIX 6.5.18+.
21421         Document IDF/IDL requirement.
21422         Document GNU as requirement.
21423         Document GNU ld bootstrap failure.
21424         Remove freeware.sgi.com reference.
21425
21426 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21427
21428         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
21429         UNIX V4.0, V5.0 obsoletion, removal.
21430         Remove --with-gc=simple reference.
21431         Update VM requirements during bootstrap.
21432         Remove -oldas bootstrap description.
21433         Update binutils reference.
21434         Remove comparison failure note.
21435
21436 2010-03-31  Richard Guenther  <rguenther@suse.de>
21437             Zdenek Dvorak  <ook@ucw.cz>
21438             Sebastian Pop  <sebastian.pop@amd.com>
21439
21440         PR middle-end/43464
21441         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
21442         with multiple arguments.
21443         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
21444
21445 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21446
21447         * graphite-dependences.c (print_pddr): Call print_pdr with an
21448         extra argument.
21449         * graphite-poly.c (debug_pdr): Add an extra argument for the
21450         verbosity level.
21451         (print_pdr): Same.
21452         (print_pbb_domain): Same.
21453         (print_pbb): Same.
21454         (print_scop_context): Same.
21455         (print_scop): Same.
21456         (print_cloog): Same.
21457         (debug_pbb_domain): Same.
21458         (debug_pbb): Same.
21459         (print_pdrs): Same.
21460         (debug_pdrs): Same.
21461         (debug_scop_context): Same.
21462         (debug_scop): Same.
21463         (debug_cloog): Same.
21464         (print_scop_params): Same.
21465         (debug_scop_params): Same.
21466         (print_iteration_domain): Same.
21467         (print_iteration_domains): Same.
21468         (debug_iteration_domain): Same.
21469         (debug_iteration_domains): Same.
21470         (print_scattering_function): Same.
21471         (print_scattering_functions): Same.
21472         (debug_scattering_function): Same.
21473         (debug_scattering_functions): Same.
21474         * graphite-poly.h (debug_pdr): Update declaration.
21475         (print_pdr): Same.
21476         (print_pbb_domain): Same.
21477         (print_pbb): Same.
21478         (print_scop_context): Same.
21479         (print_scop): Same.
21480         (print_cloog): Same.
21481         (debug_pbb_domain): Same.
21482         (debug_pbb): Same.
21483         (print_pdrs): Same.
21484         (debug_pdrs): Same.
21485         (debug_scop_context): Same.
21486         (debug_scop): Same.
21487         (debug_cloog): Same.
21488         (print_scop_params): Same.
21489         (debug_scop_params): Same.
21490         (print_iteration_domain): Same.
21491         (print_iteration_domains): Same.
21492         (debug_iteration_domain): Same.
21493         (debug_iteration_domains): Same.
21494         (print_scattering_function): Same.
21495         (print_scattering_functions): Same.
21496         (debug_scattering_function): Same.
21497         (debug_scattering_functions): Same.
21498
21499 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21500
21501         * graphite-poly.c (print_scattering_function_1): New.
21502         (print_scattering_function): Call it.
21503         (print_scop_params): Remove spaces at the end of lines.
21504         (print_cloog): New.
21505         (debug_cloog): New.
21506         * graphite-poly.h (print_cloog): Declared.
21507         (debug_cloog): Declared.
21508
21509 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21510
21511         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
21512         in loop->header.
21513         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
21514         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
21515         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
21516         to switch between adding the IV bump in loop->latch or in loop->header.
21517
21518 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21519
21520         * graphite-poly.c (print_scattering_function): Pretty print following
21521         the scoplib format.
21522         (print_pdr): Same.
21523         (print_pbb_domain): Same.
21524         (dump_gbb_cases): Same.
21525         (dump_gbb_conditions): Same.
21526         (print_pdrs): Same.
21527         (print_pbb): Same.
21528         (print_scop_params): Same.
21529         (print_scop_context): Same.
21530         (print_scop): Same.
21531         (print_pbb_body): New.
21532         (lst_indent_to): New.
21533         (print_lst): Start new lines with a #.
21534         * graphite-poly.h (pbb_bb): New.
21535         (pbb_index): Use pbb_bb.
21536         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
21537         disjuncts.
21538         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
21539
21540 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21541
21542         * dwarf2out.c (size_of_die): For -gdwarf-4 use
21543         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
21544         and 0 instead of 1 for dw_val_class_flag.
21545         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
21546         dw_val_class_range_list, dw_val_class_loc_list,
21547         dw_val_class_lineptr and dw_val_class_macptr, use
21548         DW_FORM_flag_present for dw_val_class_flag and
21549         DW_FORM_exprloc for dw_val_class_loc.
21550         (output_die): For -gdwarf-4 print dw_val_class_loc
21551         size as uleb128 instead of 1 or 2 bytes and don't print
21552         anything for dw_val_class_flag.
21553
21554         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
21555         instead of cselib_lookup following by tweaking locs->setting_insn.
21556
21557         PR bootstrap/43596
21558         * cselib.c (cselib_process_insn): Clear cselib_current_insn
21559         even before returning from label, setjmp call or volatile asm
21560         handling.
21561
21562 2010-03-31  Richard Guenther  <rguenther@suse.de>
21563
21564         PR middle-end/43600
21565         * cgraphunit.c (cgraph_output_in_order): Do not allocate
21566         temporary data on stack.
21567
21568 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21569
21570         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
21571         (PUSHSECTION_ASM_OP): Remove.
21572         (POPSECTION_ASM_OP): Remove.
21573         (PUSHSECTION_FORMAT): Remove.
21574         * config/sol2.h (PUSHSECTION_FORMAT): Define.
21575         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
21576         * config/sol2.c (solaris_output_init_fini): Use it.
21577
21578 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21579
21580         PR 43574
21581         * opt-functions.awk (var_type_struct): Use signed char type
21582         for simple variables.
21583
21584 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21585
21586         * config/sol2.c: Include output.h.
21587         (solaris_assemble_visibility): New function.
21588         * config/t-sol2 (sol2.o): Add output.h dependency.
21589         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
21590         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
21591         Redefine.
21592
21593 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21594
21595         PR target/43580
21596         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
21597         V2SImode or XFmode on PRE_DEC.
21598
21599         PR debug/43557
21600         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
21601         BLKmode.
21602
21603 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21604
21605         PR 43562
21606         * reload.h (caller_save_initialized_p): Declare.
21607         * toplev.c (backend_init_target): Don't call
21608         init_caller_save but set caller_save_initialized_p to false.
21609         * caller-save.c (caller_save_initialized_p): Define.
21610         (init_caller_save): Check caller_save_initialized_p.
21611         * ira.c (ira): Call init_caller_save if flag_caller_saves.
21612
21613 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21614
21615         PR target/39048
21616         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
21617         and soft-fp/t-softfp to tmake_file.
21618         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
21619         (LIBGCC2_TF_CEXT): Define.
21620         (TF_SIZE): Define.
21621
21622 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
21623
21624         PR debug/42977
21625         * cselib.c (n_useless_values): Document handling of debug locs.
21626         (n_useless_debug_values, n_debug_values): New variables.
21627         (new_elt_loc_list): Don't add to debug values, keep count.
21628         (promote_debug_loc): New.
21629         (cselib_reset_table): Zero new variables.
21630         (entry_and_rtx_equal_p): Promote debug locs.
21631         (discard_useless_locs): Increment n_useless_debug_values for
21632         debug values.
21633         (remove_useless_values): Adjust n_useless_values and n_debug_values
21634         with n_useless_debug_values.
21635         (add_mem_for_addr): Promote debug locs.
21636         (cselib_lookup_mem): Likewise.
21637         (cselib_lookup_addr): Renamed to...
21638         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
21639         (cselib_log_lookup): ... this.  Turn into...
21640         (cselib_lookup_addr): ... new wrapper.
21641         (cselib_lookup_from_insn): New.
21642         (cselib_invalidate_regno): Increment n_useless_debug_values for
21643         debug values.
21644         (cselib_invalidate_mem): Likewise.
21645         (cselib_process_insn): Take n_deleted and n_debug_values into
21646         account to guard remove_useless_value call.
21647         (cselib_finish): Zero n_useless_debug_values.
21648         * cselib.h (cselib_lookup_from_insn): Declare.
21649         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
21650         (sched_analyze_2): Likewise.
21651
21652 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
21653
21654         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
21655         functions.
21656         (adjust_mems): Replace narrowing SUBREG of expression containing
21657         just PLUS, MINUS, MULT and ASHIFT of registers and constants
21658         with operations in the narrower mode.
21659
21660         PR debug/43593
21661         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
21662         regs_invalidated_by_call instead all call_used_reg_set registers.
21663
21664 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
21665
21666         PR middle-end/43430
21667         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
21668         pointer comparisons with types_compatible_p.
21669         * tree-vect-stmts.c (vectorizable_call): Same.
21670         (vectorizable_condition): Same.
21671
21672 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21673
21674         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
21675         stack check if the mask would be zero.
21676
21677 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21678             Jack Howarth  <howarth@bromo.med.uc.edu>
21679
21680         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21681         variables TLS.
21682
21683 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
21684
21685         PR other/25232
21686         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
21687         and __unordtf2.
21688         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
21689         Include ___unordxf2 and ___unordtf2.
21690         * config/i386/libgcc-glibc.ver: Do not define inheritance from
21691         GCC_4.4.0 here.
21692
21693 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
21694
21695         * config/lm32/t-lm32: New file.
21696         * config.gcc: Use the above file when targetting lm32.
21697
21698 2010-03-28  Duncan Sands  <baldrick@free.fr>
21699
21700         * Makefile.in (PLUGIN_HEADERS): Add except.h.
21701
21702 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21703
21704         PR middle-end/43431
21705         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
21706         Improve vectorization cost model diagnostic.
21707
21708 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21709
21710         PR middle-end/43436
21711         * tree-vect-data-refs.c (vect_analyze_data_refs): When
21712         compute_data_dependences_for_loop returns false, early exit
21713         and output an extra diagnostic for the failed data reference
21714         analysis.
21715
21716 2010-03-29  Richard Guenther  <rguenther@suse.de>
21717
21718         PR tree-optimization/43560
21719         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
21720         (can_sm_ref_p): Treat stores to readonly locations as trapping.
21721
21722 2010-03-29  Jie Zhang  <jie@codesourcery.com>
21723
21724         PR 43564
21725         * toplev.c (process_options): Set optimization_default_node
21726         and optimization_current_node.
21727         * opts.c (decode_options): Don't set optimization_default_node
21728         and optimization_current_node.
21729
21730 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
21731
21732         * config/rtems.h: Abandon -qrtems_debug.
21733
21734 2010-03-28  Jan Hubicka  <jh@suse.cz>
21735
21736         PR tree-optimization/43505
21737         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
21738         map should not be copied.
21739
21740 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21741
21742         PR middle-end/41674
21743         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
21744         cdtors, set DECL_PRESERVE_P.
21745         * ipa.c (cgraph_externally_visible_p): Return true if declaration
21746         should be preseved.
21747
21748 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
21749
21750         PR tree-optimization/43528
21751         * stor-layout.c (place_field): Check that constant fits into
21752         unsigned HWI when skipping calculation of MS bitfield layout.
21753
21754 2010-03-27  Jan Hubicka  <jh@suse.cz>
21755
21756         PR middle-end/43391
21757         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
21758         notice_global_symbol work.
21759
21760 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
21761
21762         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
21763         instead of dwarf2out_decl.
21764         (struct var_loc_node): Remove section_label field.
21765         (dwarf2out_function_decl): New function.
21766         (dwarf2out_var_location): Don't set section_label field.
21767         (dwarf2out_begin_function): Don't empty decl_loc_table here.
21768
21769 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21770
21771         PR tree-optimization/43544
21772         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21773         First argument for builtin vectorized function hook is now a
21774         tree to be able to distinguish between machine specific and
21775         standard builtins.
21776         * targhooks.c (default_builtin_vectorized_function): Ditto.
21777         * targhooks.h (default_builtin_vectorized_function): Ditto.
21778         * target.h (struct gcc_target): Ditto.
21779         * tree-vect-stmts.c (vectorizable_function): Ditto.
21780         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
21781         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
21782         Ditto.
21783
21784 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
21785
21786         PR c/43381
21787         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
21788         nested binding iff it is a FUNCTION_DECL.
21789         (store_parm_decls_newstyle): Pass nested=true to bind for
21790         FUNCTION_DECLs amongst parameters.
21791
21792 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21793
21794         * var-tracking.c (vt_expand_loc_callback): Don't run
21795         cselib_expand_value_rtx_cb in dummy mode if
21796         cselib_dummy_expand_value_rtx_cb returned false.
21797
21798         * var-tracking.c (emit_note_insn_var_location): For one part
21799         notes with offset 0, don't add EXPR_LIST around the location.
21800         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
21801         add_location_or_const_value_attribute): Adjust for that change.
21802
21803         PR debug/43540
21804         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
21805         into first operand and location into second.
21806         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
21807         dw_cfi_oprnd_loc for DW_CFA_expression.
21808         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
21809         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
21810         assume first argument is regnum and second argument is location.
21811
21812 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21813
21814         PR target/42113
21815         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
21816         of scratch register to DImode.  Split to DImode comparison operator.
21817         Use SImode subreg of scratch register in the multiplication.
21818         (*cmp_sadd_sidi): Ditto.
21819         (*cmp_ssub_si): Ditto.
21820         (*cmp_ssub_sidi): Ditto.
21821
21822 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21823
21824         PR target/43524
21825         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
21826         Remove invalid assert and wrong comment.
21827
21828 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21829
21830         PR debug/43516
21831         * flags.h (final_insns_dump_p): New extern.
21832         * final.c (final_insns_dump_p): New variable.
21833         (rest_of_clean_state): Set it before -fdump-final-insns=
21834         dumping, clear afterwards.
21835         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
21836         MEM_ALIAS_SET on MEMs.
21837
21838 2010-03-26  David S. Miller  <davem@davemloft.net>
21839
21840         * configure.ac: Fix sparc GOTDATA_OP bug check.
21841         * configure: Rebuild.
21842
21843 2010-03-26  Alan Modra  <amodra@gmail.com>
21844
21845         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
21846
21847 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21848
21849         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
21850         TLS_SECTION_ASM_FLAG.
21851
21852 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
21853
21854         PR bootstrap/43511
21855         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
21856         Clear first_function_block_is_cold.
21857
21858         PR c/43385
21859         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
21860         argument if the argument is truth_value_p.
21861
21862 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21863
21864         * config/rs6000/constraints.md: Update copyright year for my changes.
21865
21866         PR target/43484
21867         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
21868         used in reg+reg addressing, swap registers.
21869
21870 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21871
21872         PR debug/43293
21873         * target.h (struct gcc_target): Add code_end hook.
21874         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
21875         if not yet defined.
21876         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
21877         * toplev.c (compile_file): Call targetm.asm_out.code_end
21878         hook before unwind info/debug info output.
21879         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
21880         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
21881         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21882         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
21883         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21884         * config/i386/i386.c (ix86_file_end): Renamed to...
21885         (ix86_code_end): ... this.  Make static.  Don't call
21886         file_end_indicate_exec_stack.  Emit unwind info using
21887         final_start_function/final_end_function.
21888         (darwin_x86_file_end): Remove.
21889         (TARGET_ASM_CODE_END): Define.
21890         * config/i386/i386.h (TARGET_ASM_FILE_END,
21891         NEED_INDICATE_EXEC_STACK): Don't define.
21892         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
21893         (TARGET_ASM_FILE_END): Define to darwin_file_end.
21894         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
21895         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
21896
21897         PR target/43498
21898         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
21899         at the beginning and final_end_function at the end.
21900         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
21901
21902 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21903
21904         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
21905         and Sun as TLS syntax.
21906         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
21907         * configure: Regenerate.
21908         * config.in: Regenerate.
21909         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
21910         (default_elf_asm_named_section): Use it.
21911         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
21912         (i386_output_dwarf_dtprel): Likewise.
21913         (output_addr_const_extra): Likewise.
21914         (output_pic_addr_const): Lowercase @GOTTPOFF.
21915         (output_addr_const_extra): Likewise.
21916         (output_pic_addr_const): Lowercase @GOTNTPOFF.
21917         (output_addr_const_extra): Likewise.
21918         (output_pic_addr_const): Lowercase @INDNTPOFF.
21919         (output_addr_const_extra): Likewise.
21920         (output_pic_addr_const): Lowercase @NTPOFF.
21921         (output_addr_const_extra): Likewise.
21922         (output_pic_addr_const): Lowercase @TPOFF.
21923         (output_addr_const_extra): Likewise.
21924         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
21925         (*tls_global_dynamic_64): Likewise.
21926         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
21927         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
21928
21929         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
21930         (ASM_OUTPUT_TLS_COMMON): Use it.
21931         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
21932
21933         PR target/38118
21934         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
21935         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21936         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
21937         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
21938         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21939         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
21940
21941 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21942
21943         * config/i386/i386.c (override_options): Don't accept
21944         -mtls-dialect=sun any longer.
21945         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
21946         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
21947         (*tls_local_dynamic_base_32_sun): Likewise.
21948         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21949
21950 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21951
21952         PR debug/43508
21953         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21954         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
21955
21956         PR debug/43479
21957         * ira.c (adjust_cleared_regs): New function.
21958         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
21959
21960         PR debug/19192
21961         PR debug/43479
21962         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
21963         from gimple_block.
21964         * expr.c (expand_expr_real): Restore previous
21965         curr_insn_source_location and curr_insn_block after
21966         expand_expr_real_1 call.
21967         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
21968         instead of expand_expr_real_1.
21969
21970 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
21971
21972         PR rtl-optimization/43413
21973         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
21974         hard regs too.
21975
21976 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
21977
21978         PR target/43348
21979         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
21980         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
21981
21982 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21983
21984         * config/i386/i386.c (ix86_target_string): Add -mfma.
21985         Fix a typo in comment.
21986
21987 2010-03-22  Mike Stump  <mikestump@comcast.net>
21988
21989         PR target/23071
21990         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
21991         Don't overly align based upon packed packed fields.
21992
21993 2010-03-22  Jason Merrill  <jason@redhat.com>
21994
21995         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
21996         Use () rather than [], and move before the element type.
21997
21998 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21999
22000         * doc/configfiles.texi (Configuration Files): Removed
22001         fixinc/Makefile*, intl/Makefile.*.
22002         * doc/makefile.texi: Fixed markup. Abstract from version
22003         control system used.
22004         (Makefile): Removed obsolete java/parse.y example.
22005         * doc/sourcebuild.texi: Likewise.
22006         (Top Level): Added config, gnattools, libdecnumber, libgcc,
22007         libgomp, libssp.  Removed fastjar.
22008         (Miscellaneous Docs): Clarify location.
22009         Added COPYING3, COPYING3.LIB.
22010         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
22011
22012 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22013
22014         PR target/38085
22015         * config/i386/i386.c (x86_function_profiler)
22016         [!NO_PROFILE_COUNTERS]: Fix typo.
22017         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
22018         instead of callq.
22019
22020 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
22021             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22022
22023         * doc/sourcebuild.texi (Test Directives): Split into six
22024         subsections, with most of the current text in new subsections
22025         Directives, Selectors, and Final Actions.
22026         (Directives): Split list of test directives into multiple
22027         subsubsections.
22028         (Selectors): Describe use and syntax of selectors.
22029         (Effective-Target Keywords): Describe all existing keywords.
22030         (Add Options): Describe features for dg-add-options.
22031         (Require Support): Describe variants of dg-require-support.
22032         (Final Actions): Describe commands to use in dg-final.
22033
22034 2010-03-22  Michael Matz  <matz@suse.de>
22035
22036         PR middle-end/43475
22037         * recog.c (validate_replace_rtx_group): Replace also in
22038         REG_EQUAL and REG_EQUIV notes.
22039
22040 2010-03-22  Richard Guenther  <rguenther@suse.de>
22041
22042         PR tree-optimization/43390
22043         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
22044         sure vector extracts are type correct.
22045
22046 2010-03-22  Richard Guenther  <rguenther@suse.de>
22047
22048         PR middle-end/40106
22049         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
22050         x * sqrt (x) even when optimizing for size if the target
22051         has native support for sqrt.
22052
22053 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
22054
22055         * varasm.c (make_decl_rtl_for_debug): Also clear
22056         flag_mudflap for the duration of make_decl_rtl call.
22057
22058         PR debug/43443
22059         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
22060         locs from preserved VALUEs.
22061
22062 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22063
22064         PR middle-end/42718
22065         * pa.md (movmemsi): Set align to one if zero.
22066         (movmemdi): Likewise.
22067
22068 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
22069
22070         PR target/42321
22071         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
22072         with their corresponding prologue pushes.
22073
22074 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
22075
22076         PR target/43156
22077         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
22078         at the begining or end.
22079         (spu_expand_epilogue): Likewise.
22080
22081 2010-03-20  Richard Guenther  <rguenther@suse.de>
22082
22083         PR rtl-optimization/43438
22084         * combine.c (make_extraction): Properly zero-/sign-extend an
22085         extraction of the low part of a CONST_INT.  Also handle
22086         CONST_DOUBLE.
22087
22088 2010-03-19  Mike Stump  <mikestump@comcast.net>
22089
22090         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
22091         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
22092         (override_options): Use SUBTARGET32_DEFAULT_CPU.
22093
22094 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22095
22096         PR c/43211
22097         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
22098         an error.
22099
22100 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
22101
22102         PR rtl-optimization/42258
22103         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
22104         use that may match DEF.
22105
22106         PR target/40697
22107         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
22108         the cost of loading the constant rather than assuming
22109         COSTS_N_INSNS (1).
22110         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
22111         outer code is AND, do the same tests as the andsi3 expander and
22112         return COSTS_N_INSNS (1) if and is cheap.
22113
22114         * optabs.c (avoid_expensive_constant): Fix formatting.
22115
22116 2010-03-19  Michael Matz  <matz@suse.de>
22117
22118         PR c++/43116
22119         * attribs.c (decl_attributes): When rebuilding a function pointer
22120         type use the same qualifiers as the original pointer type.
22121
22122 2010-03-19  Martin Jambor  <mjambor@suse.cz>
22123
22124         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
22125         and is_gimple_ip_invariant_address.
22126
22127 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22128
22129         Revert
22130         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22131
22132         * config/arm/arm.c (arm_override_options): Turn off
22133         flag_dwarf2_cfi_asm for AAPCS variants.
22134
22135 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22136
22137         PR target/43399
22138         * config/arm/arm.c (emit_multi_reg_push): Update comments.
22139         Use PRE_MODIFY instead of PRE_DEC.
22140         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
22141         (vfp_emit_fstmd): Likewise.
22142
22143 2010-03-19  Michael Matz  <matz@suse.de>
22144
22145         PR target/43305
22146         * builtins.c (expand_builtin_interclass_mathfn,
22147         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
22148         if that fails.
22149
22150 2010-03-19  Richard Guenther  <rguenther@suse.de>
22151
22152         PR tree-optimization/43415
22153         * tree-ssa-pre.c (phi_translate): Split out worker to ...
22154         (phi_translate_1): ... this.
22155         (phi_translate): Move all caching here.  Cache all NARY
22156         and REFERENCE translations.
22157
22158 2010-03-19  David S. Miller  <davem@davemloft.net>
22159
22160         With help from Eric Botcazou.
22161         * config/sparc/sparc.c: Include dwarf2out.h.
22162         (emit_pic_helper): Delete.
22163         (pic_helper_symbol_name): Delete.
22164         (pic_helper_emitted_p): Delete.
22165         (pic_helper_needed): New.
22166         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
22167         (get_pc_thunk_name): New.
22168         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
22169         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
22170         Set pic_helper_needed to true.  Don't call emit_pic_helper.
22171         (sparc_expand_prologue): Update load_pic_register call.
22172         (sparc_output_mi_thunk): Likewise.
22173         (sparc_file_end): Emit a hidden comdat symbol for the PIC
22174         thunk if possible.  Output CFI information as needed.
22175
22176 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22177             Jack Howarth  <howarth@bromo.med.uc.edu>
22178
22179         PR target/36399
22180         * config/i386/i386.h: Fix ABI on darwin x86-32.
22181
22182 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
22183
22184         * tree.h: Declare make_decl_rtl_for_debug.
22185         * varasm.c (make_decl_rtl_for_debug): New.
22186         * dwarf2out.c (rtl_for_decl_location): Call it.
22187         * cfgexpand.c (expand_debug_expr): Call it.
22188
22189 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22190
22191         PR bootstrap/43399
22192         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
22193         mem_mode.
22194
22195         PR bootstrap/43403
22196         * var-tracking.c (vt_init_cfa_base): Do nothing if
22197         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
22198
22199 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
22200
22201         PR debug/42873
22202         * var-tracking.c (canonicalize_vars_star): New.
22203         (dataflow_post_merge_adjust): Use it.
22204
22205 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22206
22207         PR debug/43058
22208         * var-tracking.c (non_suitable_const): New function.
22209         (add_uses): For DEBUG_INSNs with constants, don't record any
22210         value, instead just the constant value itself.
22211         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
22212         is not VAR_LOC_UNKNOWN_P, set var to the constant.
22213         (emit_notes_in_bb): Likewise.
22214         (emit_note_insn_var_location): For onepart variables if
22215         cur_loc is a VOIDmode constant, use DECL_MODE.
22216
22217 2010-03-18  Martin Jambor  <mjambor@suse.cz>
22218
22219         PR middle-end/42450
22220         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
22221         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
22222         all non-clones.  Moved call redirection...
22223         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
22224         (cgraph_materialize_all_clones): Dispose of all
22225         combined_args_to_skip bitmaps.
22226         (verify_cgraph_node): Do not check for edges pointing to wrong
22227         nodes in inline clones.
22228         * tree-inline.c (copy_bb): Call
22229         cgraph_redirect_edge_call_stmt_to_callee.
22230         * ipa.c (cgraph_remove_unreachable_nodes): Call
22231         cgraph_node_remove_callees even when there are used clones.
22232
22233 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22234
22235         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
22236
22237 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22238
22239         PR target/43383
22240         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
22241         for 32bit.
22242
22243 2010-03-18  Michael Matz  <matz@suse.de>
22244
22245         PR middle-end/43419
22246         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
22247         into sqrt(x) if we need to preserve signed zeros.
22248
22249 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
22250             Eric Botcazou  <ebotcazou@adacore.com>
22251
22252         PR rtl-optimization/43360
22253         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
22254         note if we don't know its invariant status.
22255
22256 2010-03-18  Michael Matz  <matz@suse.de>
22257
22258         PR tree-optimization/43402
22259         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
22260         PHI chains of ssa names registered for update.
22261
22262 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
22263
22264         PR target/42427
22265         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
22266         non-offsettable and pre_modify update addressing.
22267         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
22268         and "2" alternatives "#".
22269         (*movdd_softfloat32): Make all alternatives "#";
22270         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
22271         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
22272         (*movdf_softfloat32): Make all alternatives "#";
22273         (movdi): Use the new DIFD mode iterator to create a common splitter
22274         for movdi, movdf and movdd patterns.
22275
22276 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
22277
22278         * common.opt (dumpdir): Remove redundant tab.
22279
22280 2010-03-17  Martin Jambor  <mjambor@suse.cz>
22281
22282         PR tree-optimization/43347
22283         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
22284         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
22285
22286 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
22287
22288         PR rtl-optimization/42216
22289         * regrename.c (create_new_chain): New function, broken out from...
22290         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
22291         appending a use to an empty chain.
22292         (build_def_use): Remove previous changes that convert OP_INOUT to
22293         OP_OUT operands; instead detect the case where an OP_INOUT operand
22294         uses a previously untracked register and create an empty chain for it.
22295
22296 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22297
22298         * doc/extend.texi (Function Attributes): Rewrite unfinished
22299         sentence in ms_abi documentation.
22300
22301 2010-03-17  Alan Modra  <amodra@gmail.com>
22302
22303         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
22304         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
22305         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
22306         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
22307
22308 2010-03-16  Richard Henderson  <rth@redhat.com>
22309
22310         PR middle-end/43365
22311         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
22312         (lower_try_finally): Save and restore eh_seq around the expansion
22313         of the try-finally.
22314
22315 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22316
22317         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
22318         statements before splitting block.
22319
22320 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22321
22322         * doc/sourcebuild.texi (Testsuites): Fix markup.
22323         Use pathnames relative to gcc/testsuite.
22324         (Test Directives): Move description of how timeout is determined.
22325         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
22326         (C Tests): Correct gcc.misc-tests directory.
22327         Framework tests now live in gcc.test-framework.
22328
22329 2010-03-16  Richard Guenther  <rguenther@suse.de>
22330
22331         PR middle-end/43379
22332         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
22333         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
22334
22335 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22336             Alexandre Oliva  <aoliva@redhat.com>
22337
22338         PR tree-optimization/42917
22339         * lambda-code.c (remove_iv): Skip debug statements.
22340         (lambda_loopnest_to_gcc_loopnest): Likewise.
22341         (not_interesting_stmt): Debug statements are not interesting.
22342
22343 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
22344
22345         PR debug/43051
22346         PR debug/43092
22347         * cselib.c (cselib_preserve_constants,
22348         cfa_base_preserved_val): New static variables.
22349         (preserve_only_constants): New function.
22350         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
22351         clear its REG_VALUES.  If cselib_preserve_constants, don't
22352         empty the whole hash table, but preserve there VALUEs with constants,
22353         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
22354         (cselib_preserve_cfa_base_value): New function.
22355         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
22356         (cselib_init): Change argument to int bitfield.  Set
22357         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
22358         is in it.
22359         (cselib_finish): Clear cselib_preserve_constants and
22360         cfa_base_preserved_val.
22361         * cselib.h (enum cselib_record_what): New enum.
22362         (cselib_init): Change argument to int.
22363         (cselib_preserve_cfa_base_value): New prototype.
22364         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
22365         * dse.c (dse_step1): Likewise.
22366         * cfgcleanup.c (thread_jump): Likewise.
22367         * sched-deps.c (sched_analyze): Likewise.
22368         * gcse.c (local_cprop_pass): Likewise.
22369         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
22370         If FN is non-NULL, call the callback always and whenever it returns
22371         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
22372         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
22373         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
22374         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
22375         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
22376         * var-tracking.c: Include recog.h.
22377         (bb_stack_adjust_offset): Remove.
22378         (vt_stack_adjustments): Don't call it, instead just gather the
22379         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
22380         (adjust_stack_reference): Remove.
22381         (compute_cfa_pointer): New function.
22382         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
22383         (struct adjust_mem_data): New type.
22384         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
22385         functions.
22386         (get_address_mode): New function.
22387         (replace_expr_with_values): Use it.
22388         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
22389         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
22390         (adjust_sets): Remove.
22391         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
22392         Use get_address_mode.
22393         (get_adjusted_src): Remove.
22394         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
22395         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
22396         (add_with_sets): Don't call adjust_sets.
22397         (fp_setter, vt_init_cfa_base): New functions.
22398         (vt_initialize): Change return type to bool.  Move most of pool etc.
22399         initialization to the beginning of the function from end.  Pass
22400         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
22401         If !frame_pointer_needed, call vt_stack_adjustment before mos
22402         vector is filled, call vt_init_cfa_base if argp/framep has been
22403         eliminated to sp.  If frame_pointer_needed and argp/framep has
22404         been eliminated to hard frame pointer, set
22405         hard_frame_pointer_adjustment and call vt_init_cfa_base after
22406         encountering fp setter in the prologue.  For MO_ADJUST, call
22407         log_op_type before pusing the op into mos vector, not afterwards.
22408         Call adjust_insn before cselib_process_insn/add_with_sets,
22409         call cancel_changes (0) afterwards.
22410         (variable_tracking_main_1): Adjust for vt_initialize calling
22411         vt_stack_adjustments and returning whether it succeeded or not.
22412
22413 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
22414
22415         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
22416         debug statements.
22417
22418 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
22419
22420         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
22421         has been set.
22422         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
22423         drap_reg has not been set.
22424
22425 2010-03-15  Michael Matz  <matz@suse.de>
22426
22427         PR middle-end/43300
22428         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
22429         use it to expand block copies.
22430         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
22431         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
22432         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
22433
22434 2010-03-15  Richard Guenther  <rguenther@suse.de>
22435
22436         PR tree-optimization/43367
22437         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
22438         elimination check.
22439
22440 2010-03-15  Richard Guenther  <rguenther@suse.de>
22441
22442         PR tree-optimization/43317
22443         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
22444
22445 2010-03-15  Martin Jambor  <mjambor@suse.cz>
22446
22447         PR tree-optimization/43141
22448         * tree-sra.c (create_abstract_origin): New function.
22449         (modify_function): Call create_abstract_origin.
22450
22451 2010-03-15  Chris Demetriou  <cgd@google.com>
22452
22453         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
22454         wasn't copied.
22455
22456 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22457
22458         PR middle-end/43354
22459         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
22460         call insert_out_of_ssa_copy for default definitions.
22461
22462 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22463
22464         * graphite-clast-to-gimple.c (my_long_long): Defined.
22465         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
22466         * graphite-sese-to-poly.c (my_long_long): Defined.
22467         (scop_ivs_can_be_represented): Use it.
22468
22469 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22470
22471         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
22472         graphite-max-bbs-per-function, and loop-block-tile-size.
22473         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
22474         with "maximum".
22475         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
22476
22477 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22478
22479         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
22480         forward declaration.
22481         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
22482         (add_upper_bounds_from_estimated_nit): New.
22483         (build_loop_iteration_domains): Use it.
22484
22485 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22486
22487         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
22488
22489 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22490
22491         PR middle-end/43306
22492         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
22493         should be an INTEGER_CST.  Also handle CASE_CONVERT.
22494
22495 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22496
22497         * graphite.c (graphite_initialize): To bound the number of bbs per
22498         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
22499         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
22500         * doc/invoke.texi: Document it.
22501
22502 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22503
22504         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
22505         * graphite-sese-to-poly.h (build_poly_scop): Same.
22506
22507 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22508
22509         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
22510         the number of parameters in the scop.  Use as an upper bound
22511         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
22512         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
22513         * doc/invoke.texi: Document it.
22514
22515 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
22516
22517         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
22518         * doc/c-tree.texi: Remove.
22519         * doc/generic.texi: Merge c-tree.texi here.
22520         * doc/gccint.texi (Trees): Remove menu entry.
22521         (c-tree.texi): Remove @include.
22522         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
22523         * doc/languages.texi (Reading RTL): Ditto.
22524
22525 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
22526
22527         PR target/42869
22528         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
22529
22530 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22531
22532         PR middle-end/42431
22533         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
22534         code added to work around reload clobbering CONST insns.
22535
22536 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
22537
22538         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
22539         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
22540         (cselib_preserve_only_values): Remove retain argument, don't
22541         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
22542         * cselib.h (cselib_preserve_only_values): Remove retain argument.
22543         * var-tracking.c (micro_operation): Move insn field before union.
22544         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
22545         (struct variable_tracking_info_def): Remove n_mos field, change
22546         mos into a vector of micro_operations.
22547         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
22548         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
22549         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
22550         changing into a vector.
22551         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
22552         come before all other uops generated by add_stores.
22553         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
22554         argument removal.
22555         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
22556         a vector.  Run just one pass over the bbs instead of separate counting
22557         and computation phase.
22558         (vt_finalize): Free VTI (bb)->mos vector instead of array.
22559
22560         PR debug/43329
22561         * tree-inline.c (remap_decls): Put old_var rather than origin_var
22562         into *nonlocalized_list vector.
22563         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
22564         even if origin is non-NULL.
22565         (gen_variable_die): Likewise.
22566         (process_scope_var): Don't change origin.
22567         (gen_decl_die): Likewise.
22568         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
22569         before adding new edges instead of after it, fix moving over
22570         debug stmts.
22571
22572 2010-03-11  David S. Miller  <davem@davemloft.net>
22573
22574         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
22575         of four.
22576         * configure: Rebuild.
22577
22578 2010-03-11  Martin Jambor  <mjambor@suse.cz>
22579
22580         PR tree-optimization/43257
22581         * tree.c (assign_assembler_name_if_neeeded): New function.
22582         (free_lang_data_in_cgraph): Assembler name assignment moved to the
22583         above new function.
22584         * tree.h (assign_assembler_name_if_neeeded): Declare.
22585         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
22586         the function if needed.
22587
22588 2010-03-11  Chris Demetriou  <cgd@google.com>
22589
22590         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
22591         include/stdint-gcc.h, and include/stdint.h world-readable.
22592
22593 2010-03-11  Richard Guenther  <rguenther@suse.de>
22594
22595         PR tree-optimization/43255
22596         * tree-vrp.c (process_assert_insertions_for): Do not insert
22597         asserts for trivial conditions.
22598
22599 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22600
22601         PR tree-optimization/43280
22602         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
22603         generation.  Move calculation of size out of the if branch.
22604         (find_bswap): Modify compare number generation.
22605
22606 2010-03-11  Richard Guenther  <rguenther@suse.de>
22607
22608         PR lto/43200
22609         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
22610         (input_gimple_stmt): Fixup handled component types during
22611         operand read.  Also fix up decls in ADDR_EXPRs.
22612
22613 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
22614
22615         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
22616         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
22617
22618 2010-03-10  Jan Hubicka  <jh@suse.cz>
22619
22620         PR c/43288
22621         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
22622         * varasm.c (get_variable_section): Don't do that here...
22623         (make_decl_rtl): ... and here.
22624         (do_assemble_alias): Produce decl RTL.
22625         (assemble_alias): Likewise.
22626
22627 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22628
22629         PR debug/43290
22630         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
22631         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
22632         of fde->vdrap_reg.
22633         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
22634         (based_loc_descr): Only express drap or vdrap regno based expressions
22635         using DW_OP_fbreg when not optimizing.
22636         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
22637         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
22638         REG_CFA_SET_VDRAP note.
22639
22640 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
22641
22642         PR tree-optimization/43236
22643         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
22644         error in calculation of base address in reverse iteration case.
22645         (generate_builtin): Take number of latch executions if the statement
22646         is in the latch.
22647
22648 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
22649
22650         PR middle-end/42859
22651         * tree-eh.c: Include pointer-set.h.
22652         (lower_eh_dispatch): Filter out duplicate case labels and
22653         remove the unneeded edge when the label is unused.  Return
22654         true when some edges are removed.
22655         (execute_lower_eh_dispatch): When any lowering resulted in
22656         removing an edge, also delete unreachable blocks.
22657
22658 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22659
22660         PR bootstrap/43287
22661         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22662         UNSPEC_MACHOPIC_OFFSET.
22663
22664 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
22665
22666         PR target/43294
22667         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
22668         (m68k_delegitimize_address): New function.
22669
22670 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
22671
22672         PR debug/43299
22673         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
22674
22675         PR debug/43299
22676         * var-tracking.c (adjust_sets): New function.
22677         (count_with_sets, add_with_sets): Use it.
22678         (get_adjusted_src): New inline function.
22679         (add_stores): Use it.
22680
22681         PR debug/43304
22682         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
22683         call cselib_dummy_expand_value_rtx_cb instead of
22684         cselib_expand_value_rtx_cb.
22685
22686         PR debug/43293
22687         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
22688         * config/i386/i386.c: Include debug.h and dwarf2out.h.
22689         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
22690         and .cfi_endproc around the pic thunks.
22691         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
22692         all queued unwind info register saves are saved before the call.
22693         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
22694         considered as sp-=4 for unwind info and the pop as sp+=4 which
22695         also clobbers dest, but doesn't actually restore it.
22696
22697         PR debug/43290
22698         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
22699         RTX_FRAME_RELATED_P.
22700
22701 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22702
22703         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
22704         whitespaces in output template.
22705
22706 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22707
22708         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
22709         out array boundary.
22710
22711 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22712
22713         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
22714         builtins.exp in a separate job.
22715
22716 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22717
22718         * graphite-sese-to-poly.c (add_param_constraints): Use
22719         lower_bound_in_type and upper_bound_in_type.
22720
22721 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22722
22723         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
22724         instead of unsigned_type_node.
22725
22726 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22727             Reza Yazdani  <reza.yazdani@amd.com>
22728
22729         PR middle-end/43065
22730         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
22731         on pointer type parameters.
22732
22733 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22734
22735         PR middle-end/42644
22736         PR middle-end/42130
22737         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
22738         handle conversions from pointer to integers.
22739         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
22740         induction variable, to be able to work with code generated by CLooG.
22741         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
22742         (build_poly_scop): Bail out if we cannot codegen a loop.
22743
22744 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22745
22746         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
22747         code generation with gloog_error.
22748
22749 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22750
22751         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
22752         Call fold_convert on all the returned values.
22753         (expand_scalar_variables_expr): Pass to
22754         expand_scalar_variables_ssa_name the type of the resulting expression.
22755
22756 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22757
22758         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
22759         ppl_min_for_le_pointset.
22760         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
22761         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
22762
22763 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22764
22765         * graphite-dependences.c (map_into_dep_poly): Removed.
22766         (dependence_polyhedron_1): Use combine_context_id_scat.
22767
22768 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22769
22770         * graphite-poly.h (struct poly_scattering): Add layout documentation.
22771         (struct poly_bb): Same.
22772         (combine_context_id_scat): New.
22773
22774 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22775
22776         PR middle-end/42326
22777         * sese.c (name_defined_in_loop_p): Return false for default
22778         definitions.
22779
22780 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22781
22782         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
22783         and clean up the logic.
22784
22785 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22786
22787         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
22788         early return.
22789
22790 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22791
22792         * var-tracking.c (remove_cselib_value_chains): Define only for
22793         ENABLE_CHECKING.
22794         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
22795         delete_slot_part, emit_notes_for_differences_1): Don't call
22796         remove_cselib_value_chains here.
22797         (set_slot_part, emit_notes_for_differences_2): Don't call
22798         add_cselib_value_chains here.
22799         (preserved_values): New vector.
22800         (preserve_value): New function.
22801         (add_uses, add_stores, vt_add_function_parameters): Use it
22802         instead of cselib_preserve_value.
22803         (changed_values_stack): New vector.
22804         (check_changed_vars_0): New function.
22805         (check_changed_vars_1, check_changed_vars_2): Use it.
22806         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
22807         changed_values_stack VALUEs.
22808         (vt_emit_notes): For all preserved_values call
22809         add_cselib_value_chains.  If ENABLE_CHECKING call
22810         remove_cselib_value_chains before verifying value_chains is empty.
22811         Initialize and free changed_values_stack.
22812         (vt_initialize): Initialize preserved_values.
22813         (vt_finalize): Free preserved_values.
22814
22815 2010-03-08  Richard Guenther  <rguenther@suse.de>
22816
22817         PR tree-optimization/43269
22818         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
22819         region detection.
22820
22821 2010-03-08  Martin Jambor  <mjambor@suse.cz>
22822
22823         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
22824         (ipa_is_param_called): Removed.
22825         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
22826         (ipa_print_node_params): Do not print the called flag.
22827         (ipa_write_node_info): Do not stream the called flag.
22828         (ipa_read_node_info): Likewise.
22829
22830 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
22831
22832         PR debug/43176
22833         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
22834         * cselib.c (struct expand_value_data): Add dummy field.
22835         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
22836         dummy to false.
22837         (cselib_dummy_expand_value_rtx_cb): New function.
22838         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
22839         any rtl.
22840         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
22841         * var-tracking.c: Include pointer-set.h.
22842         (variable): Change n_var_parts to char from int.  Add
22843         cur_loc_changed and in_changed_variables fields.
22844         (variable_canonicalize): Remove.
22845         (shared_var_p): New inline function.
22846         (unshare_variable): Maintain cur_loc_changed and
22847         in_changed_variables fields.  If var was in changed_variables,
22848         replace it there with new_var.  Just copy cur_loc instead of
22849         resetting it to something else.
22850         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
22851         (dataflow_set_union): Don't call variable_canonicalize.
22852         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
22853         of their DEBUG_EXPR_TREE_DECLs.
22854         (canonicalize_loc_order_check): Verify that cur_loc is NULL
22855         and in_changed_variables and cur_loc_changed is false.
22856         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
22857         and cur_loc_changed.  Don't update cur_loc here.
22858         (variable_merge_over_src): Don't call variable_canonicalize.
22859         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
22860         removing loc that is equal to cur_loc, clear cur_loc,
22861         set cur_loc_changed and ensure variable_was_changed is called.
22862         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
22863         compare pointers in cur_loc check, if it is equal to loc,
22864         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
22865         (variable_different_p): Remove compare_current_location argument,
22866         don't compare cur_loc.
22867         (dataflow_set_different_1): Adjust variable_different_p caller.
22868         (variable_was_changed): If dv had some var in changed_variables
22869         already, reset in_changed_variables flag for it and propagate
22870         cur_loc_changed over to the new variable.  On empty var
22871         always set cur_loc_changed.  Set in_changed_variables on whatever
22872         var is added to changed_variables.
22873         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
22874         Use shared_var_p.  When removing loc that is equal to cur_loc,
22875         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
22876         end, don't set it to something else, just call variable_was_changed.
22877         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
22878         loc being removed, clear cur_loc and set cur_loc_changed.
22879         Set cur_loc_changed if all locations have been removed.
22880         (struct expand_loc_callback_data): New type.
22881         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
22882         allocated.  Always create SUBREGs if simplify_subreg failed.
22883         Prefer to use cur_loc, when that fails and still in
22884         changed_variables (and seen first time) recompute it.  Set
22885         cur_loc_changed of variables which had to change cur_loc and
22886         compute elcd->cur_loc_changed if any of the subexpressions used
22887         had to change cur_loc.
22888         (vt_expand_loc): Adjust to pass arguments in
22889         expand_loc_callback_data structure.
22890         (vt_expand_loc_dummy): New function.
22891         (emitted_notes): New variable.
22892         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
22893         that weren't used for any other decl in current
22894         emit_notes_for_changes call call vt_expand_loc_dummy to update
22895         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
22896         first loc_chain location if NULL before.  Always use just
22897         cur_loc instead of first loc_chain location.  When cur_loc_changed
22898         is false, when not --enable-checking=rtl just don't emit any note.
22899         When rtl checking, compute the note and assert it is the same
22900         as previous note.  Clear cur_loc_changed and in_changed_variables
22901         at the end before removing from changed_variables.
22902         (check_changed_vars_3): New function.
22903         (emit_notes_for_changes): Traverse changed_vars to call
22904         check_changed_vars_3 on each changed var.
22905         (emit_notes_for_differences_1): Clear cur_loc_changed and
22906         in_changed_variables.  Recompute cur_loc of new_var.
22907         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
22908         (vt_emit_notes): Initialize and destroy emitted_notes.
22909
22910 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
22911
22912         PR rtl-optimization/42220
22913         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
22914         Use verify_reg_tracked to determine if we should use OP_OUT rather
22915         than OP_INOUT.
22916         (build_def_use): If we see an in-out operand for a register that we
22917         know nothing about, treat is an output if possible, fail the block if
22918         not.
22919
22920 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22921
22922         PR debug/42897
22923         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
22924         permanently.
22925
22926 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22927
22928         PR debug/42897
22929         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
22930         uses of relevant DEFs that are dead outside the loop too.
22931
22932 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22933
22934         * var-tracking.c (dataflow_set_merge): Swap src and src2.
22935         Reverted:
22936         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
22937         PR debug/41371
22938         * var-tracking.c (values_to_unmark): New variable.
22939         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22940         values_to_unmark vector.  Moved body to...
22941         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
22942         instead queue it into values_to_unmark vector.
22943         (vt_find_locations): Free values_to_unmark vector.
22944
22945 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
22946
22947         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
22948         (site.exp): Export them when plugins are enabled.
22949
22950 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
22951
22952         PR middle-end/42326
22953         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
22954         that contain scevs.
22955         (chrec_fold_multiply): Same.
22956
22957 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22958
22959         PR c/43248
22960         * c-decl.c (build_compound_literal): Return early if init is
22961         an error_mark_node.
22962
22963 2010-03-04  Martin Jambor  <mjambor@suse.cz>
22964
22965         PR tree-optimization/43164
22966         PR tree-optimization/43191
22967         * tree-sra.c (type_consists_of_records_p): Reject records with
22968         zero-size bit-fields at the end.
22969
22970 2010-03-04  Mike Stump  <mikestump@comcast.net>
22971
22972         * Makefile.in (TAGS): Remove *.y.
22973
22974 2010-03-04  Richard Guenther  <rguenther@suse.de>
22975
22976         PR tree-optimization/40761
22977         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
22978         in reverse order.
22979         (my_rev_post_order_compute): New function.
22980         (init_pre): Call it.
22981
22982 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
22983
22984         PR middle-end/43209
22985         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
22986         decrease the cost of an IV candidate when the cost is infinite.
22987
22988 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22989
22990         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
22991         Use '3DNow!' for the extension of that name, ensure normal space
22992         after the string.
22993         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
22994
22995 2010-03-03  Jeff Law  <law@redhat.com>
22996
22997         * PR middle-end/32693
22998         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
22999         than gen_rtx_SUBREG.
23000         (extract_bit_field_1): Likewise.
23001
23002 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
23003
23004         * doc/sourcebuild.texi (Test directives): Document that arguments
23005         include-opts and exclude-opts are now optional for dg-skip-if,
23006         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
23007
23008 2010-03-03  Jason Merrill  <jason@redhat.com>
23009
23010         PR c++/12909
23011         * cgraph.h (varpool_node): Add extra_name field.
23012         * varpool.c (varpool_extra_name_alias): New.
23013         (varpool_assemble_decl): Emit extra name aliases.
23014         (varpool_mark_needed_node): Look past an extra name alias.
23015         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
23016         * lto-streamer-in.c (lto_input_tree): Read it.
23017         * lto-streamer-out.c (output_unreferenced_globals): Write it.
23018
23019 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23020
23021         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
23022         (sparc*-*-solaris2*): ...this.
23023
23024 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
23025
23026         PR debug/43229
23027         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
23028         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
23029         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
23030         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
23031
23032         PR debug/43237
23033         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
23034         fallthrough to default handling, just with want_address 0 instead of 2.
23035         For single element lists, add_AT_loc directly, otherwise create an
23036         artificial variable DIE and stick location list to it.
23037
23038         PR debug/43177
23039         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
23040         (VAL_EXPR_HAS_REVERSE): Define.
23041         (reverse_op): New function.
23042         (add_stores): For reversible operations add an extra MO_VAL_USE.
23043
23044 2010-03-02  Jason Merrill  <jason@redhat.com>
23045
23046         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
23047
23048 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
23049
23050         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
23051         (sparc64-*-linux*): Likewise.
23052         (sparc64-*-solaris2*): Include assembler files before linker ones.
23053         (sparc-*-solaris2*): Simplify and reorder to match previous case.
23054         * config/sparc/gas.h: Delete.
23055         * config/sparc/sol2-64.h: Add copyright notice.
23056         * config/sparc/sol2-gas-bi.h: Likewise.
23057         * config/sparc/sol2-gld.h: Likewise.
23058         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
23059         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
23060         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
23061         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
23062         (sparc_elf_asm_named_section): Rename into...
23063         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
23064
23065 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
23066
23067         * config/alpha/alpha.c (override_options): Fix -mtune error message.
23068
23069 2010-03-02  Jeff Law  <law@redhat.com>
23070
23071         PR middle-end/42431
23072         * reload1.c (rtx_p, substitute_stack): Declare.
23073         (substitute): Record addresses of changed rtxs.
23074         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
23075         Restore the original rtx when complete.
23076         (reload): Free subsitute_stack when complete.
23077
23078 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
23079
23080         * doc/gccint.texi (menu): Add Testsuites as a chapter.
23081         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
23082         new chapter.
23083         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
23084         LTO Testing, gcov Testing, profopt Testing, compat Testing,
23085         Torture Tests): Change from subsection to section.
23086
23087 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
23088             Steven Bosscher  <steven@gcc.gnu.org>
23089
23090         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
23091         instead of bb.
23092
23093 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
23094
23095         PR middle-end/42640
23096         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
23097         the assignment from the new induction variable to the assignment
23098         of the value from the original loop PHI function.
23099
23100 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
23101             Daniel Jacobowitz  <dan@codesourcery.com>
23102
23103         * doc/sourcebuild.texi (Test directives): Clarify options to
23104         dg-skip-if.
23105
23106 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23107
23108         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
23109         Disable cfi directives unless GCC and gas agree on using read-only
23110         .eh_frame sections for 64-bit.
23111         * configure: Regenerate.
23112
23113 2010-03-01  Richard Guenther  <rguenther@suse.de>
23114
23115         PR tree-optimization/43220
23116         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
23117         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
23118
23119 2010-03-01  Richard Guenther  <rguenther@suse.de>
23120             Martin Jambor  <mjambor@suse.cz>
23121
23122         PR middle-end/41250
23123         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
23124         gimplified parameters.
23125
23126 2010-03-01  Christian Bruel  <christian.bruel@st.com>
23127
23128         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
23129
23130 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
23131
23132         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
23133
23134 2010-03-01  Richard Guenther  <rguenther@suse.de>
23135
23136         PR middle-end/43213
23137         * expr.c (expand_assignment): Use the alias-oracle to tell
23138         if the rhs aliases the result decl.
23139
23140 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23141
23142         PR pch/14940
23143         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
23144         to sol_gt_pch_get_address.
23145         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
23146         64-bit, SPARC and x86.
23147         (sol_gt_pch_get_address): New function.
23148
23149 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
23150
23151         * toplev.h (inform_n, error_n): Declare.
23152         * diagnostic.c (inform_n, error_n): New function.
23153
23154 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
23155
23156         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
23157         has no rtl yet when processing local_decls, queue it and recheck
23158         if deferred stack allocation hasn't assigned it rtl.
23159
23160 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
23161
23162         * config/sh/sh.c (unspec_bbr_uid): New.
23163         (gen_block_redirect): Use it instead of INSN_UID.
23164         (gen_far_branch): Likewise.
23165
23166 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
23167
23168         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
23169         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
23170
23171 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23172
23173         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
23174         (Warning Options): -Wno-conversion-null is valid for
23175         Objective-C++ as well.
23176         * doc/tm.texi (Named Address Spaces): Likewise.
23177         * doc/plugins.texi (Plugins): Replace TABs with spaces.
23178         * doc/tree-ssa.texi (Tree SSA): Likewise.
23179
23180 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23181
23182         PR bootstrap/43202
23183         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
23184         by default.  Don't set the default arch for
23185         i[34567]86-*-darwin*|x86_64-*-darwin*.
23186
23187 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23188
23189         PR bootstrap/43202
23190         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
23191         default.  Set the default 32bit/64bit archs with $with_arch
23192         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
23193
23194 2010-02-27  Richard Guenther  <rguenther@suse.de>
23195
23196         PR tree-optimization/43186
23197         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
23198         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
23199         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
23200         unroller iterations.
23201
23202 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23203
23204         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
23205         required and i[34567]86-*-* targets don't support 64bit ISA.
23206
23207 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
23208
23209         PR ada/43096
23210         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
23211         the same alias set.
23212
23213 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23214
23215         * config.gcc: Set the default arch at least to Prescott for
23216         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
23217         if SSE math is enabled.
23218
23219 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23220
23221         * diagnostic.c (diagnostic_initialize): Update.
23222         (diagnostic_report_diagnostic): Test inhibit_notes_p for
23223         informative notes.
23224         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
23225         (diagnostic_inhibit_notes): New.
23226         * toplev.c (process_options): inhibit notes with -fcompare-debug.
23227
23228 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23229
23230         PR c/20631
23231         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
23232         * doc/standards.texi: Likewise.
23233         * doc/extend.texi: Likewise.
23234         * doc/trouble.texi: Likewise.
23235         * doc/cppopts.texi: Likewise.
23236         * doc/install.texi: Likewise.
23237         * c.opt (std=c90,std=gnu90): New options.
23238         * c-opts.c (c_common_handle_option): Handle them.
23239
23240 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23241
23242         PR c/24577
23243         * c-decl.c (undeclared_variable): Use an informative note.
23244
23245 2010-02-26  Richard Guenther  <rguenther@suse.de>
23246
23247         PR tree-optimization/43186
23248         * gimple.h (gimple_fold): Remove.
23249         * gimple.c (gimple_fold): Remove.  Inline into single user ...
23250         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
23251         Try harder for conditions.
23252
23253 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23254
23255         PR debug/43190
23256         * function.c (used_types_insert): Don't skip through named pointer
23257         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
23258         and it is different from the main variant's type.
23259
23260 2010-02-26  Nick Clifton  <nickc@redhat.com>
23261
23262         * config/rx/rx.md (sminsi3): Remove bogus alternative.
23263
23264 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23265
23266         * config.gcc: Support --with-fpmath=sse for x86.
23267
23268         * config/i386/ssemath.h: New.
23269
23270         * doc/install.texi (--with-fpmath=sse): Documented.
23271
23272 2010-02-26  Richard Guenther  <rguenther@suse.de>
23273
23274         PR tree-optimization/43188
23275         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
23276         vector types of over-aligned element type.
23277
23278 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
23279
23280         PR target/43175
23281         * config/i386/i386.c (expand_vec_perm_blend): Use correct
23282         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
23283
23284 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
23285
23286         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
23287
23288 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23289
23290         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
23291         * var-tracking.c: Include diagnostic.h.
23292         (debug_dv): New function.
23293         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
23294
23295         PR debug/43160
23296         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
23297         (add_value_chain, add_value_chains, remove_value_chain,
23298         remove_value_chains): Handle DEBUG_EXPRs.
23299         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
23300
23301         PR debug/43161
23302         * regcprop.c (struct queued_debug_insn_change): New type.
23303         (struct value_data_entry): Add debug_insn_changes field.
23304         (struct value_data): Add n_debug_insn_changes field.
23305         (debug_insn_changes_pool): New variable.
23306         (free_debug_insn_changes, apply_debug_insn_changes,
23307         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
23308         (kill_value_one_regno): Call free_debug_insn_changes if needed.
23309         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
23310         fields.
23311         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
23312         changes for them.
23313         (copyprop_hardreg_forward_1): Don't call apply_change_group for
23314         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
23315         changes, call cprop_find_used_regs via note_stores.
23316         (copyprop_hardreg_forward): When copying vd from predecessor
23317         which has any queued DEBUG_INSN changes, make sure the pointers are
23318         cleared.  At the end call df_analyze and then if there are any
23319         DEBUG_INSN changes queued at the end of some basic block for still
23320         live registers, apply them.
23321         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
23322
23323 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
23324
23325         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
23326         (arm*-*-*): Ditto.
23327
23328 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
23329
23330         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
23331         targets.  Set the default with_cpu/with_arch from arch/cpu.
23332         Allow x86-64 and native for with_cpu/with_arch.
23333
23334 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
23335
23336         * ebitmap.c: Change calls to verify_popcount with calls to
23337         sbitmap_verify_popcount.
23338         (ebitmap_clear_bit): Fixed map->cacheindex test and
23339         map>cache update when bit clearing results in an empty
23340         element.
23341
23342 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
23343
23344         PR target/43154
23345         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
23346         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
23347         and support both V2DF and V2DI modes.
23348         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
23349         support both V2DF and V2DI modes.
23350         (general): Delete trailing whitespace from a few patterns.
23351
23352         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23353         V2DF/V2DI interleave high/low builtins.
23354
23355         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
23356         new VSX builtins.
23357
23358         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
23359         interleave high/low functions.
23360
23361 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23362
23363         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
23364         #pragma extern_prefix.
23365
23366 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
23367
23368         PR debug/43166
23369         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
23370         BLKmode, assert op0 is a MEM and just adjust its mode.
23371
23372         PR debug/43165
23373         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
23374         if bitpos isn't multiple of mode's bitsize.
23375
23376 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23377
23378         * c.opt (-ftemplate-depth=): New.
23379         (-ftemplate-depth-): Deprecate.
23380         * optc-gen.awk: Handle -ftemplate-depth=.
23381         * opth-gen.awk: Likewise.
23382         * c-opts.c (c_common_handle_option): Likewise.
23383         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
23384
23385 2010-02-24  Jason Merrill  <jason@redhat.com>
23386
23387         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
23388
23389 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23390
23391         * cfg.c (alloc_aux_for_block): Remove inline.
23392         (alloc_aux_for_edge): Likewise.
23393
23394 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23395
23396         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
23397
23398 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23399
23400         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
23401         * config/i386/sol2-gas.h: New file.
23402         * config.gcc (i[34567]86-*-solaris2*): Use it.
23403
23404 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23405
23406         PR c/43128
23407         * c-typeck.c (ep_convert_and_check): New.
23408         (build_conditional_expr): Use it.
23409         (build_binary_op): Likewise.
23410
23411 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
23412
23413         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
23414
23415         PR debug/43150
23416         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
23417         bounds even for -O+.
23418         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
23419         expr needs to have DECL_NAME set.
23420
23421 2010-02-24  Nick Clifton  <nickc@redhat.com>
23422
23423         * config/mep/mep.c: Include gimple.h.
23424         (mep_function_uses_sp): Delete unused function.
23425         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
23426         parameters.  Use unsigned integers to count args.  Return a
23427         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
23428
23429 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23430
23431         PR target/43107
23432         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
23433         greater or equal to nelt instead of 2 * nelt.
23434         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
23435         with nelt - 1.
23436
23437 2010-02-23  Jason Merrill  <jason@redhat.com>
23438
23439         PR debug/42800
23440         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
23441         in cfun->local_decls even if they have register types.
23442
23443         PR c++/42837
23444         * stor-layout.c (place_field): Don't warn about unnecessary
23445         DECL_PACKED if the type is packed.
23446
23447 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23448
23449         PR target/43139
23450         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
23451         GOTOFF relocs, even when the base reg isn't pic pointer.
23452
23453 2010-02-23  Michael Matz  <matz@suse.de>
23454
23455         PR debug/43077
23456         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
23457         (expand_gimple_basic_block): Generate and use debug temps if there
23458         are debug uses left after the last real use of TERed ssa names.
23459         Unlink debug immediate uses when they are expanded.
23460
23461 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23462
23463         PR 43123
23464         * config/i386/i386.c (override_options): Reorganise to provide
23465         better error messages.
23466
23467 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23468
23469         PR middle-end/43083
23470         * graphite-scop-detection.c (create_single_exit_edge): Move
23471         the call to find_single_exit_edge to....
23472         (create_sese_edges): ...here.  Don't handle multiple edges
23473         exiting the function.
23474         (build_graphite_scops): Don't handle multiple edges
23475         exiting the function.
23476
23477 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23478
23479         PR middle-end/43097
23480         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
23481         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
23482
23483 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23484
23485         PR middle-end/43026
23486         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
23487
23488 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23489
23490         PR c++/43126
23491         * c-typeck.c (convert_arguments): Print declaration location.
23492         * c-common.c (validate_nargs): Rename as
23493         builtin_function_validate_nargs.
23494         (check_builtin_function_arguments): Update.
23495
23496 2010-02-22  Richard Guenther  <rguenther@suse.de>
23497
23498         PR lto/43045
23499         * tree-inline.c (declare_return_variable): Use the type of
23500         the call stmt lhs if available.
23501
23502 2010-02-22  Duncan Sands  <baldrick@free.fr>
23503
23504         * passes.c (register_pass): Always consider all pass lists when
23505         ref_pass_instance_number is zero.
23506
23507 2010-02-22  Richard Guenther  <rguenther@suse.de>
23508
23509         PR tree-optimization/42749
23510         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
23511         parameter.  Do arithmetic in the original type.
23512         (update_accumulator_with_ops): Likewise.
23513         (adjust_accumulator_values): Adjust.
23514
23515 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23516
23517         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
23518         (QI to BLKmode splitter): New splitter.
23519
23520 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
23521
23522         * config/i386/i386.c (initial_ix86_tune_features): Turn on
23523         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
23524
23525 2010-02-22  Richard Guenther  <rguenther@suse.de>
23526
23527         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
23528
23529 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
23530
23531         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
23532         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
23533         ($(T)crti.o, $(T)crtn.o): Remove rules.
23534
23535 2010-02-21  Tobias Burnus  <burnus@net-b.de>
23536
23537         PR fortran/35259
23538         * doc/invoke.texi (-fassociative-math): Document that this
23539         option is automatically enabled for Fortran.
23540
23541 2010-02-20  David S. Miller  <davem@davemloft.net>
23542
23543         * configure.ac: Test if linker and assembler properly support
23544         GOTDATA_OP relocations.
23545         * configure: Rebuild.
23546         * config.in: Likewise.
23547         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
23548         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
23549         (movsi_high_pic): Likewise.
23550         (movdi_lo_sum_pic): Likewise.
23551         (movdi_high_pic): Likewise.
23552         (movsi_pic_gotdata_op): New pattern.
23553         (movdi_pic_gotdata_op): Likewise.
23554         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
23555         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
23556
23557 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
23558
23559         PR target/43067
23560         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
23561         attribute to ssemul.
23562         (xop_mulv2div2di3_high): Ditto.
23563
23564 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23565
23566         PR c++/35669
23567         * c.opt (Wconversion-null): New option.
23568         * doc/invoke.texi (Wconversion-null): Document.
23569
23570 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23571
23572         * common.opt (Wlarger-than-): Add Undocumented.
23573
23574 2010-02-19  Mike Stump  <mikestump@comcast.net>
23575
23576         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
23577
23578 2010-02-19  Jason Merrill  <jason@redhat.com>
23579
23580         PR target/40332
23581         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
23582         * configure: Likewise.
23583
23584 2010-02-20  Alan Modra  <amodra@gmail.com>
23585
23586         PR middle-end/42344
23587         * cgraph.h (cgraph_make_decl_local): Declare.
23588         * cgraph.c (cgraph_make_decl_local): New function.
23589         (cgraph_make_node_local): Use it.
23590         * cgraphunit.c (cgraph_function_versioning): Likewise.
23591         * ipa.c (function_and_variable_visibility): Likewise.
23592
23593 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23594
23595         PR bootstrap/43121
23596         * except.c (sjlj_emit_function_enter): Don't call
23597         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
23598         directly.
23599         * rtl.h (add_reg_br_prob_note): Remove prototype.
23600
23601 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23602
23603         PR 41779
23604         * c-common.c (conversion_warning): Remove widening conversions
23605         before checking the conversion of integers to reals.
23606
23607 2010-02-19  Mike Stump  <mikestump@comcast.net>
23608
23609         PR middle-end/43125
23610         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
23611
23612         PR objc/43061
23613         * cgraphunit.c (process_function_and_variable_attributes): Check
23614         DECL_PRESERVE_P instead of looking up attribute "used".
23615         * ipa-pure-const.c (check_decl): Likewise.
23616         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
23617         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
23618         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
23619         instead of attribute "used".
23620         * config/sol2-c.c (solaris_pragma_init): Likewise.
23621         (solaris_pragma_fini): Likewise.
23622
23623 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23624
23625         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
23626         Use XCNEW instead of xcalloc.
23627         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
23628         XNEW instead of xmalloc.
23629         (get_fields): Use XNEWVEC instead of xmalloc.
23630
23631         PR debug/43084
23632         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
23633         populate vars array.
23634         (create_new_general_access): For debug stmts just reset value.
23635         (get_stmt_accesses): For accesses within debug stmts just record them
23636         using add_access_to_acc_sites instead of preventing the peeling or
23637         counting them as accesses.
23638
23639         PR middle-end/42233
23640         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
23641
23642 2010-02-19  Richard Guenther  <rguenther@suse.de>
23643
23644         PR tree-optimization/42916
23645         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
23646         instructions.
23647
23648 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
23649
23650         * configure.ac: Replace all uses of changequote in macro arguments
23651         with proper quoting.
23652
23653 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23654
23655         PR middle-end/42233
23656         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
23657
23658 2010-02-19  Richard Guenther  <rguenther@suse.de>
23659
23660         PR tree-optimization/42944
23661         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
23662         test for aliasing with errno.
23663
23664 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23665
23666         PR middle-end/42233
23667         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
23668         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
23669         * dojump.c: Include output.h.
23670         (inv): New inline function.
23671         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
23672         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
23673         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
23674         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
23675         argument, pass it down to other calls.
23676         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
23677         add REG_BR_PROB note to the conditional jump.
23678         * cfgexpand.c (add_reg_br_prob_note): Removed.
23679         (expand_gimple_cond): Don't call it, add the probability
23680         as last argument to jumpif_1/jumpifnot_1.
23681         * Makefile.in (dojump.o): Depend on output.h.
23682         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
23683         callers.
23684         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
23685         * stmt.c (do_jump_if_equal): Likewise.
23686         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
23687         * loop-unswitch.c (compare_and_jump_seq): Likewise.
23688         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
23689         Likewise.
23690         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
23691         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
23692         jumpifnot_1 callers.
23693         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
23694         callers.
23695         (store_expr): Adjust jumpifnot caller.
23696         (store_constructor): Adjust jumpif caller.
23697
23698         PR middle-end/42233
23699         * gimplify.c (gimple_boolify): For __builtin_expect call
23700         gimple_boolify also on its first argument.
23701
23702 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
23703
23704         * configure.ac (gnu-unique-object): Wrap regexps using [] in
23705         changequote block.
23706         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
23707         * configure: Regenerated.
23708
23709 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23710
23711         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
23712         lang_hooks.types_compatible_p instead of comptypes.
23713
23714 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23715
23716         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
23717         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
23718         if __prefer_thumb__ is defined.
23719
23720 2010-02-18  Martin Jambor  <mjambor@suse.cz>
23721
23722         PR tree-optimization/43066
23723         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
23724         array with zero-sized element type.
23725
23726 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
23727
23728         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
23729         rtx, allocate struct var_loc_node here and return it to the
23730         caller, and only if it is actually needed.
23731         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
23732         move it earlier and return immediately if it returns NULL.
23733
23734 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
23735
23736         * config/sparc/gas.h: New file.  Restore
23737         TARGET_ASM_NAMED_SECTION to its ELF default.
23738         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
23739         check !HAVE_GNU_AS.
23740         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23741         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
23742         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
23743         after sparc/sysv4.h.
23744
23745 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
23746
23747         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
23748
23749 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
23750
23751         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
23752         patterns from predicated pattern.
23753
23754 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
23755
23756         PR target/43103
23757         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
23758         for insn mnemonic suffix.
23759
23760 2010-02-17  Richard Guenther  <rguenther@suse.de>
23761
23762         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
23763         to loop PHI nodes.
23764
23765 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
23766
23767         PR debug/42918
23768         * caller-save.c (save_call_clobbered_regs): If BB ends with
23769         a DEBUG_INSN, move any notes in between last real insn and the last
23770         DEBUG_INSN after the last DEBUG_INSN.
23771
23772 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23773
23774         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
23775         Fix return type.  Fix argument type.  Explain meaning of return value.
23776
23777 2010-02-16  Richard Guenther  <rguenther@suse.de>
23778
23779         PR tree-optimization/41043
23780         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
23781         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
23782         statements ...
23783         (vrp_visit_phi_node): ... but only for loop PHI nodes.
23784
23785 2010-02-16  Ira Rosen  <irar@il.ibm.com>
23786
23787         PR tree-optimization/43074
23788         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
23789         * tree-vect-loop.c (vect_analyze_loop_operations): Add
23790         vectorizable cycles in hybrid SLP check.
23791         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
23792
23793 2010-02-16  Richard Guenther  <rguenther@suse.de>
23794
23795         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
23796         (true_dependence): If memrefs_conflict_p computes must-alias
23797         trust it.  Move TBAA check after offset-based disambiguation.
23798         (canon_true_dependence): Likewise.
23799
23800 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
23801
23802         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
23803         * doc/invoke.texi: Document it.
23804         * var-tracking.c: Include toplev.h and params.h.
23805         (vt_find_locations): Return bool indicating success.  Compute
23806         hash sizes unconditionally.  Check new parameter, report.
23807         (variable_tracking_main_1): Check vt_find_locations results and
23808         retry.  Renamed from...
23809         (variable_tracking_main): ... this.  New wrapper to preserve
23810         flag_var_tracking_assignments.
23811         * Makefile.in (var-tracking.o): Adjust dependencies.
23812
23813 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
23814             Jakub Jelinek  <jakub@redhat.com>
23815
23816         PR target/42854
23817         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
23818         if weak_import attribute is present.
23819         * config/darwin.c (machopic_select_section): Likewise.
23820
23821 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
23822
23823         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
23824         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
23825         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
23826         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
23827
23828         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
23829         types.
23830
23831         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
23832         Fix argument types.
23833
23834         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
23835         Rewrite text to refer to the names.
23836
23837 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
23838
23839         * config/i386/i386-builtin-types.def
23840         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
23841         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
23842         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
23843         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
23844         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
23845         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
23846         IX86_BUILTIN_VPERMIL2PS256.
23847         (MULTI_ARG_4_DF2_DI_I): Defined.
23848         (MULTI_ARG_4_DF2_DI_I1): Defined.
23849         (MULTI_ARG_4_SF2_SI_I): Defined.
23850         (MULTI_ARG_4_SF2_SI_I1): Defined.
23851         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
23852         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
23853         __builtin_ia32_vpermil2ps256.
23854         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23855         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23856         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
23857         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23858         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23859         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
23860         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
23861         CODE_FOR_xop_vpermil2v8sf3.
23862         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
23863         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
23864         * config/i386/xopintrin.h (_mm_permute2_pd): New.
23865         (_mm256_permute2_pd): New.
23866         (_mm_permute2_ps): New.
23867         (_mm256_permute2_ps): New.
23868
23869 2010-02-15  Nick Clifton  <nickc@redhat.com>
23870
23871         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
23872         boolean parameters.  Use emit_jump_insn when emitting a pop
23873         instruction containing a return insn.
23874         (push): Use 'true' rather than '1' as second parameter to F.
23875         (h8300_expand_prologue): Likewise.
23876         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
23877         (h8300_expand_epilogue): Likewise.
23878
23879 2010-02-15  Richard Guenther  <rguenther@suse.de>
23880
23881         PR middle-end/43068
23882         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
23883         if that is zero.
23884
23885 2010-02-15  Nick Clifton  <nickc@redhat.com>
23886
23887         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
23888         delta.
23889
23890 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
23891
23892         * intl.c (fake_ngettext): New function.
23893         * intl.h (fake_ngettext): Declare.
23894         (ngettext): Define macro.
23895         * collect2.c (notice_translated): New function.
23896         (main): Use notice_translated and ngettext.
23897         * collect2.h (notice_translated): Declare.
23898
23899 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
23900
23901         * reorg.c (delete_computation): Comment fixes.
23902         * caller-save.c (setup_save_areas): Idem.
23903         * sel-sched-dump.c (dump_lv_set): Idem.
23904         * rtl.def: Idem.
23905
23906 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23907
23908         * config/s390/s390.c (s390_sched_init): New function.
23909         (TARGET_SCHED_INIT): Target hook defined.
23910
23911 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
23912             Jack Howarth  <howarth@bromo.med.uc.edu>
23913             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
23914
23915         PR target/42982
23916         Partial revert of unintended change in fix for PR41605.
23917         * config/darwin.h: Fix typo.
23918         * config/darwin9.h: Same.
23919
23920 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23921
23922         * c-pch.c (pch_init): Clear v.
23923
23924 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23925
23926         PR middle-end/42930
23927         * graphite-scop-detection.c (graphite_can_represent_scev): Call
23928         graphite_can_represent_init for MULT_EXPR.
23929
23930 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23931
23932         PR middle-end/42914
23933         PR middle-end/42530
23934         * graphite-sese-to-poly.c (remove_phi): New.
23935         (translate_scalar_reduction_to_array): Call remove_phi.
23936
23937 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23938
23939         PR middle-end/42771
23940         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
23941         * graphite-clast-to-gimple.h (gloog): Update declaration.
23942         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
23943         * graphite-poly.h (struct poly_bb): Add missing comments.
23944         (struct scop): Add poly_scop_p field.
23945         (POLY_SCOP_P): New.
23946         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
23947         * graphite.c (graphite_transform_loops): Build the polyhedral
23948         representation for each scop before code generation.
23949         * sese.c (rename_variables_in_operand): Removed.
23950         (rename_variables_in_expr): Return the renamed expression.
23951         (rename_sese_parameters): New.
23952         * sese.h (rename_sese_parameters): Declared.
23953
23954 2010-02-11  Richard Guenther  <rguenther@suse.de>
23955
23956         PR tree-optimization/42998
23957         * tree-ssa-pre.c (create_expression_by_pieces): Treat
23958         POINTER_PLUS_EXPR properly.
23959
23960 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23961             Changpeng Fang  <changpeng.fang@amd.com>
23962
23963         PR middle-end/40886
23964         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
23965         the cost of an IV candidate when the IV is used in a test against zero.
23966
23967         * gcc.dg/tree-ssa/ivopts-3.c: New.
23968
23969 2010-02-11  Richard Guenther  <rguenther@suse.de>
23970
23971         PR lto/41664
23972         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
23973         pointer-vs-decl case by swapping refs.  Handle some cases
23974         of pointer-vs-decl disambiguations more conservatively.
23975         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
23976         to false after expanding.
23977
23978 2010-02-11  Richard Guenther  <rguenther@suse.de>
23979
23980         PR driver/43021
23981         * gcc.c (process_command): Handle LTO file@offset case more
23982         appropriately.
23983
23984 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23985
23986         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
23987         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
23988         of DEBUG_INSNs.
23989         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
23990
23991         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
23992         if MEM's mode size isn't DWARF2_ADDR_SIZE.
23993         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
23994         Optimize eq/ne comparisons when both arguments are known to be
23995         zero-extended.
23996         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
23997         Don't mask operands unnecessarily if they are known to be already
23998         zero-extended.
23999
24000 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
24001
24002         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
24003         instead of loop.
24004
24005 2010-02-10  Richard Guenther  <rguenther@suse.de>
24006
24007         PR tree-optimization/43017
24008         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
24009         for wrapping signed arithmetic.
24010
24011 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24012
24013         PR debug/43010
24014         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
24015         if no debug info should be emitted for it.
24016
24017 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24018
24019         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
24020         note when flag_exceptions is set.
24021
24022 2010-02-10  Duncan Sands  <baldrick@free.fr>
24023
24024         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
24025
24026 2010-02-10  Richard Guenther  <rguenther@suse.de>
24027
24028         PR c/43007
24029         * tree.c (get_unwidened): Handle constants.
24030         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
24031
24032 2010-02-10  Martin Jambor  <mjambor@suse.cz>
24033
24034         PR lto/42985
24035         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
24036         check for variable argument counts independently.
24037
24038 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24039
24040         PR target/42841
24041         * config/sh/sh.c (find_barrier): Increase length for non delayed
24042         conditional branches.
24043
24044 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24045
24046         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
24047
24048 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24049
24050         * builtins.c (set_builtin_user_assembler_name): Also handle
24051         ffs if int is smaller than word.
24052
24053 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
24054
24055         PR middle-end/42973
24056         * ira-conflicts.c (get_dup): Remove.
24057         (process_reg_shuffles): Add new parameter.  Use it as an
24058         additional guard for copy generation.
24059         (add_insn_allocno_copies): Rewrite.
24060
24061 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
24062
24063         * common.opt (fsched2-use-traces): Preserved for backward
24064         compatibility.
24065         * doc/invoke.texi: Remove the documentation about option
24066         -fsched2-use-traces.
24067         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
24068         flag_sched2_use_traces.
24069         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
24070         the backward compatibility flag section.
24071
24072 2010-02-09  Richard Guenther  <rguenther@suse.de>
24073
24074         PR tree-optimization/43008
24075         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
24076         make HEAP variables initialized from global memory if they
24077         are not known builtin functions.
24078         (find_func_aliases): Adjust.
24079
24080 2010-02-09  Richard Guenther  <rguenther@suse.de>
24081
24082         PR tree-optimization/43000
24083         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
24084         arithmetic manually.
24085
24086 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
24087
24088         PR tree-optimization/42931
24089         * tree-loop-linear.c (try_interchange_loops): Don't call
24090         double_int_mul if estimated_loop_iterations failed.
24091
24092 2010-02-08  Martin Jambor  <mjambor@suse.cz>
24093
24094         PR middle-end/42898
24095         * tree-sra.c (build_accesses_from_assign): Do not mark in
24096         should_scalarize_away_bitmap if stmt has volatile ops.
24097         (sra_modify_assign): Do not process assigns piecemeal if if stmt
24098         has volatile ops.
24099
24100 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
24101
24102         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
24103
24104 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
24105
24106         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
24107         before the pattern.
24108
24109 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
24110
24111         PR middle-end/42946
24112         * df-core.c (df_finish_pass): Change type of saved_flags to int.
24113
24114 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24115
24116         PR middle-end/42988
24117         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
24118         to unknown_dependence.
24119         (graphite_legal_transform_dr): Handle the unknown_dependence.
24120         (graphite_carried_dependence_level_k): Same.
24121
24122 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24123
24124         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
24125
24126 2010-02-07  Richard Guenther  <rguenther@suse.de>
24127
24128         PR middle-end/42991
24129         * expr.c (get_inner_reference): Always initialize *pbitsize.
24130
24131 2010-02-07  Richard Guenther  <rguenther@suse.de>
24132
24133         PR middle-end/42956
24134         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
24135         new ARRAY_REFs on variable size element or minimal index arrays.
24136         Complete.
24137         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
24138         gimple_fold_indirect_ref.
24139
24140 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
24141
24142         PR target/42957
24143         * arm.c (arm_override_options): Just return if the user has specified
24144         an invalid fpu name.
24145
24146 2010-02-03  Jason Merrill  <jason@redhat.com>
24147
24148         PR c++/42870
24149         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
24150         i386_pe_maybe_record_exported_symbol.
24151
24152 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
24153
24154         PR target/42924
24155         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24156         (pa_delegitimize_address): New function.
24157
24158 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
24159
24160         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
24161         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
24162
24163 2010-02-05  Richard Guenther  <rguenther@suse.de>
24164
24165         PR lto/42762
24166         * lto-streamer-in.c (get_resolution): Deal with references
24167         to undefined functions.
24168
24169 2010-02-05  Richard Guenther  <rguenther@suse.de>
24170
24171         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
24172         (fold_const_aggregate_ref): Likewise.
24173         (ccp_fold_stmt): Substitute loads.
24174         (maybe_fold_reference): Verify types before substituting.
24175         Unshare properly.
24176         (fold_gimple_assign): Unshare properly.
24177         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
24178
24179 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
24180
24181         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
24182         for rs6000_gen_cell_microcode.
24183
24184 2010-02-04  Richard Guenther  <rguenther@suse.de>
24185
24186         PR rtl-optimization/42952
24187         * dse.c (const_or_frame_p): Remove MEM handling.
24188
24189 2010-02-04  Nick Clifton  <nickc@redhat.com>
24190
24191         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
24192         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24193         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
24194         (mn10300_asm_output_mi_thunk): New function.
24195         (mn10300_can_output_mu_thunk): New function.
24196         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
24197         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
24198         (FUNCTION_ARG): Delete incorrect comment.
24199
24200 2010-02-03  Jason Merrill  <jason@redhat.com>
24201
24202         PR c++/40138
24203         * fold-const.c (operand_equal_p): Handle erroneous types.
24204
24205 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24206
24207         * config/h8300/h8300.md (can_delay): Fix attibute condition.
24208
24209 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
24210
24211         PR rtl-optimization/42941
24212         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
24213         of xmalloc.
24214
24215 2010-02-03  Jason Merrill  <jason@redhat.com>
24216
24217         PR c++/35652
24218         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
24219
24220 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
24221
24222         PR debug/42896
24223         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
24224         (cselib_reset_table): Renamed from...
24225         (cselib_reset_table_with_next_value): ... this.
24226         (cselib_get_next_uid): Renamed from...
24227         (cselib_get_next_unknown_value): ... this.
24228         * cselib.c (next_uid): Renamed from...
24229         (next_unknown_value): ... this.
24230         (cselib_clear_table): Adjust.
24231         (cselib_reset_table): Adjust.  Renamed from...
24232         (cselib_reset_table_with_next_value): ... this.
24233         (cselib_get_next_uid): Adjust.  Renamed from...
24234         (cselib_get_next_unknown_value): ... this.
24235         (get_value_hash): Use hash.
24236         (cselib_hash_rtx): Likewise.
24237         (new_cselib_val): Adjust.  Set and dump uid.
24238         (cselib_lookup_mem): Pass next_uid as hash.
24239         (cselib_subst_to_values): Likewise.
24240         (cselib_log_lookup): Dump uid.
24241         (cselib_lookup): Pass next_uid as hash.  Adjust.
24242         (cselib_process_insn): Adjust.
24243         (cselib_init): Initialize next_uid.
24244         (cselib_finish): Adjust.
24245         (dump_cselib_table): Likewise.
24246         * dse.c (canon_address): Dump value uid.
24247         * print-rtl.c (print_rtx): Print value uid.
24248         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
24249         (dvuid): New type.
24250         (dv_uid): New function, sort of renamed from...
24251         (dv_htab_hash): ... this, reimplemented in terms of it and...
24252         (dv_uid2hash): ... this.  New.
24253         (variable_htab_eq): Drop excess assertions.
24254         (tie_break_pointers): Removed.
24255         (canon_value_cmp): Compare uids.
24256         (variable_post_merge_New_vals): Print uids.
24257         (vt_add_function_parameters): Adjust.
24258         (vt_initialize): Reset table.  Adjust.
24259
24260 2010-02-03  Richard Guenther  <rguenther@suse.de>
24261
24262         PR tree-optimization/42944
24263         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
24264         (call_may_clobber_ref_p_1): Likewise.  Properly handle
24265         malloc and calloc clobbering errno.
24266
24267 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
24268
24269         * doc/invoke.texi: Fix name of sched1 dump.
24270
24271         * opts.c (decode_options): Set flag_tree_switch_conversion
24272         only conditionally on optimize >= 2.
24273
24274         * gcse.c: Assorted comment fixes in pass description.
24275
24276 2010-02-03  Anthony Green  <green@moxielogic.com>
24277
24278         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
24279         nop padding in order to maintain alignment of storage location of
24280         target function address.
24281         (moxie_trampoline_init): Store target function address at newly
24282         aligned location.
24283         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
24284         to 32.
24285         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
24286
24287 2010-02-03  Richard Guenther  <rguenther@suse.de>
24288
24289         PR middle-end/42927
24290         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
24291
24292 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24293
24294         * config.gcc: Reenable check for obsolete targets.
24295         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
24296         mips-sgi-irix6.[0-4]*.
24297
24298 2010-02-02  Nick Clifton  <nickc@redhat.com>
24299
24300         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
24301         constant size of 4 as being the same as 0.
24302         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
24303         can take values in the range 0..4.
24304
24305 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
24306
24307         PR java/41991
24308         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
24309         as _darwin10_Unwind_FindEnclosingFunction().
24310         * libgcc-libsystem.ver: New.
24311
24312 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
24313
24314         PR target/41399
24315         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
24316         implicitly set registers.
24317
24318 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
24319
24320         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
24321         (arm_override_options): Allow automatic selection of the thread
24322         pointer register if thumb2.
24323         (legitimize_pic_address): Improve code sequences for Thumb2.
24324         (arm_call_tls_get_addr): Likewise.
24325         (legitimize_tls_address): Likewise.
24326         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
24327         (pic_load_addr_32bit): ... this.  New named pattern.
24328         * thumb2.md (pic_load_addr_thumb2): Delete.
24329         (pic_load_dot_plus_four): Delete.
24330         (tls_load_dot_plus_four): New named pattern.
24331
24332 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24333
24334         PR libgomp/29986
24335         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
24336         Document fix for TLS bug.
24337
24338 2010-01-31  Richard Guenther  <rguenther@suse.de>
24339
24340         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
24341         conservatively correct.
24342
24343 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24344
24345         PR target/42850
24346         Revert:
24347         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24348
24349         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24350
24351 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24352
24353         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
24354
24355 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
24356
24357         * config.gcc: Adjust order of makefile fragments for mingw targets.
24358
24359 2010-01-31  Richard Guenther  <rguenther@suse.de>
24360
24361         PR middle-end/42898
24362         * gimplify.c (gimplify_init_constructor): For volatile LHS
24363         initialize a temporary.
24364
24365 2010-01-31  Matthias Klose  <doko@ubuntu.com>
24366
24367         * configure.ac: Fix __stack_chk_fail check for cross builds configured
24368         --with-headers
24369         * configure: Regenerate.
24370
24371 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
24372
24373         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24374         the same alias set and their sizes different constantness.
24375         (aliasing_component_refs_p): Revert 2009-10-24 change.
24376
24377 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24378
24379         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
24380         unused.
24381
24382 2010-01-29  Richard Guenther  <rguenther@suse.de>
24383
24384         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
24385         Assert we successfully updated the call.
24386
24387 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
24388
24389         PR rtl-optimization/42889
24390         * df.h (df_set_bb_dirty_nonlr): New prototype.
24391         * df-core.c (df_set_bb_dirty_nonlr): New function.
24392         * df-scan.c (df_insn_rescan): Call it instead of
24393         df_set_bb_dirty for DEBUG_INSNs.
24394
24395 2010-01-29  Richard Guenther  <rguenther@suse.de>
24396
24397         PR middle-end/37448
24398         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
24399         quadratic behavior in most cases.
24400
24401 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
24402
24403         PR target/42891
24404         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
24405         in the call to gen_x86_movsicc_0_m1.
24406
24407 2010-01-28  Richard Guenther  <rguenther@suse.de>
24408
24409         PR tree-optimization/42871
24410         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
24411
24412 2010-01-28  Richard Guenther  <rguenther@suse.de>
24413
24414         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
24415         into call arguments.
24416
24417 2010-01-28  Richard Guenther  <rguenther@suse.de>
24418
24419         PR middle-end/42883
24420         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
24421         the forwarder if the destination is an EH landing pad.
24422
24423 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
24424
24425         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
24426         block list passed to gimple_duplicate_sese_tail.
24427         (parallelize_loops): Avoid parallelization when the function
24428         has_nonlocal_label.
24429         Avoid parallelization when the preheader is IRREDUCIBLE.
24430         Try to optimize when estimated_loop_iterations_int is unresolved.
24431         Add the loop's location to the dump file.
24432         * tree-cfg.c (add_phi_args_after_redirect): Remove.
24433         (gimple_duplicate_sese_tail): Remove the check for the latch.
24434         Redirect nexits to the exit block.
24435         Remove handling of the incoming edges to the latch.
24436         Redirect the backedge from the copied latch to the exit bb.
24437
24438 2010-01-28  Michael Matz  <matz@suse.de>
24439
24440         PR target/42881
24441         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
24442         Wrap force_reg into a sequence, emit it before user.
24443
24444 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
24445
24446         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
24447         (arm_rev): New.
24448         (arm_legacy_rev): Likewise.
24449         (thumb_legacy_rev): Likewise.
24450
24451 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24452
24453         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
24454         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
24455         on MEM's address failed, try avoid_constant_pool_reference and
24456         recurse if it returned something different.
24457         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
24458         address, try avoid_constant_pool_reference and recurse if it
24459         returned something different.
24460         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
24461         address and avoid_constant_pool_reference returned something
24462         different, don't set have_address.
24463
24464 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
24465
24466         PR debug/42861
24467         * var-tracking.c (val_store): Add modified argument, obey it.
24468         Adjust callers.
24469         (count_uses): Move down logging of main.
24470         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
24471         don't need resolution.
24472         (emit_notes_in_bb): Likewise.
24473
24474 2010-01-27  Richard Guenther  <rguenther@suse.de>
24475
24476         PR middle-end/42878
24477         * tree-inline.c (remap_decl): Delay remapping of SSA name
24478         default definitions until we need them.
24479
24480 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24481
24482         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24483         (rs6000_delegitimize_address): New function.
24484
24485         * config/s390/s390.c (s390_delegitimize_address): Call
24486         delegitimize_mem_from_attrs.
24487
24488         PR middle-end/42874
24489         * tree-inline.c (cannot_copy_type_1): Removed.
24490         (copy_forbidden): Don't forbid copying of functions containing
24491         records/unions with variable length fields.
24492
24493 2010-01-27  Christian Bruel  <christian.bruel@st.com>
24494
24495         Revert:
24496         PR target/42841
24497         * config/sh/sh.c (find_barrier): Increase length for non delayed
24498         conditional branches.
24499
24500 2010-01-27  Matthias Klose  <doko@ubuntu.com>
24501
24502         * configure.ac (gnu-unique-object): Fix ldd version check.
24503         * configure: Regenerate.
24504
24505 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24506
24507         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
24508         HAVE_GNU_AS value.
24509         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
24510         Test for HAVE_GNU_AS value.
24511
24512 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24513
24514         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
24515         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
24516         INT64_TYPE): Define.
24517         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
24518         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24519         INT_LEAST64_TYPE): Define.
24520         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
24521         UINT_LEAST64_TYPE): Define.
24522         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
24523         INT_FAST64_TYPE): Define.
24524         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24525         UINT_FAST64_TYPE): Define.
24526         (INTMAX_TYPE, UINTMAX_TYPE): Define.
24527         (INTPTR_TYPE, UINTPTR_TYPE): Define.
24528         (SIG_ATOMIC_TYPE): Define.
24529
24530 2010-01-26  Richard Guenther  <rguenther@suse.de>
24531
24532         * df-scan.c (df_scan_set_bb_info): Remove assert.
24533         (df_insn_rescan_debug_internal): Merge asserts.
24534         (df_install_ref): Likewise.
24535         (df_mark_reg): Use bitmap_set_range.
24536         (df_hard_reg_used_p): Remove assert.
24537         (df_hard_reg_used_count): Likewise.
24538
24539 2010-01-26  Richard Guenther  <rguenther@suse.de>
24540
24541         PR rtl-optimization/42685
24542         * web.c (web_main): Ignore DEBUG_INSNs.
24543
24544 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
24545
24546         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
24547
24548         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
24549         Fix types of fndecl and arglist parameters.
24550
24551 2010-01-26  Richard Guenther  <rguenther@suse.de>
24552
24553         PR middle-end/42806
24554         * tree-eh.c (unsplit_eh): Skip debug insns.
24555
24556 2010-01-26  Richard Guenther  <rguenther@suse.de>
24557
24558         PR tree-optimization/42250
24559         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
24560
24561 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
24562
24563         PR fortran/42866
24564         * omp-low.c (expand_omp_sections): Only use single_pred if
24565         l2_bb is single_pred_p.
24566
24567 2010-01-25  Christian Bruel  <christian.bruel@st.com>
24568
24569         PR target/42841
24570         * config/sh/sh.c (find_barrier): Increase length for non delayed
24571         conditional branches.
24572         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
24573
24574 2010-01-24  David S. Miller  <davem@davemloft.net>
24575
24576         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
24577         define if not using GAS.
24578         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24579         Likewise.  Delete SECTION_MERGE code, which is only applicable
24580         when using GAS.
24581
24582 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
24583
24584         PR c++/42748
24585         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
24586         mangling of va_list in system headers.
24587
24588 2010-01-23  Toon Moene  <toon@moene.org>
24589
24590         * tree-predcom.c (combine_chains): Return NULL, not false.
24591
24592 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
24593
24594         * tree-loop-distribution.c (distribute_loop): Fix declaration and
24595         initialization of variable res to agree with return type.
24596
24597 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
24598
24599         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
24600         * tree-sra.c: Add include of expr.h.
24601
24602 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
24603
24604         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
24605         insert the debug stmt on the single non-EH edge from the stmt.
24606
24607 2010-01-22  Richard Henderson  <rth@redhat.com>
24608
24609         PR tree-opt/42833
24610         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
24611         the RHS until after generate_subtree_copies has insertted its
24612         code before the current statement.
24613
24614 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
24615
24616         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
24617
24618         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
24619
24620 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24621
24622         PR tree-optimization/42585
24623         * tree-sra.c (struct access): New field grp_total_scalarization.
24624         (dump_access): Dump the new field.
24625         (should_scalarize_away_bitmap): New variable.
24626         (cannot_scalarize_away_bitmap): Likewise.
24627         (sra_initialize): Allocate new bitmaps.
24628         (sra_deinitialize): Free new bitmaps.
24629         (create_access_1): New function.
24630         (create_access): Parts moved to create_access_1.
24631         (type_consists_of_records_p): New function.
24632         (completely_scalarize_record): Likewise.
24633         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
24634         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
24635         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
24636         access.
24637         (analyze_all_variable_accesses): Completely scalarize small eligible
24638         records.
24639
24640 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24641
24642         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
24643
24644 2010-01-21  Andrew Haley  <aph@redhat.com>
24645
24646         * gcc.c (process_command): Move lang_specific_driver before
24647         setting cc_libexec_prefix.
24648
24649 2010-01-21  Richard Guenther  <rguenther@suse.de>
24650
24651         PR middle-end/19988
24652         * fold-const.c (negate_expr_p): Pretend only negative
24653         real constants are easily negatable.
24654
24655 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
24656             Jason Merrill  <jason@redhat.com>
24657
24658         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
24659         (TYPE_TRANSPARENT_AGGR): this, for union and record.
24660         * calls.c (initialize argument_information): Handle it.
24661         * c-common.c (handle_transparent_union_attribute): Use new name.
24662         * c-decl.c (finish_struct): Ditto.
24663         * c-typeck.c (type_lists_compatible_p): Ditto.
24664         (convert_for_assignment): Use new name and also handle record.
24665         * function.c (aggregate_value_p): Handle it.
24666         (pass_by_reference): Ditto.
24667         (assign_parm_data_types): Ditto.
24668         * print-tree.c (print_node): Ditto.
24669         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
24670         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
24671         * tree.c (first_field): New fn.
24672
24673 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
24674
24675         PR target/42818
24676         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
24677         even when linking statically, for now.
24678
24679 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24680
24681         PR debug/42715
24682         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
24683         without a cselib val.
24684         (count_uses): Accept MO_VAL_SET with no val on stores.
24685         (add_stores): Likewise.
24686
24687 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24688
24689         * var-tracking.c (check_value_val): Add a compile time assertion.
24690         (dv_is_decl_p): Simplify.
24691         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
24692         gcc_assert if ENABLE_CHECKING.
24693
24694 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24695
24696         PR debug/42782
24697         * var-tracking.c: Include tree-flow.h.
24698         (mem_dies_at_call): New.
24699         (dataflow_set_preserve_mem_locs): Use it.
24700         (dataflow_set_remove_mem_locs): Likewise.
24701         (dump_var): Renamed from dump_variable.  Adjust all callers.
24702         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
24703         * Makefile.in (var-tracking.o): Adjust deps.
24704
24705 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
24706
24707         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
24708
24709 2010-01-20  Richard Guenther  <rguenther@suse.de>
24710
24711         PR tree-optimization/42717
24712         * tree-ssa-dce.c (get_live_post_dom): Remove.
24713         (forward_edge_to_pdom): Take an arbitrary edge to copy
24714         degenerate PHI args from.
24715         (remove_dead_stmt): Use the first post-dominator even if it
24716         does not contain live statements as redirection destination.
24717
24718 2010-01-20  Richard Guenther  <rguenther@suse.de>
24719
24720         * tree-inline.c (estimate_num_insns): Handle EH builtins.
24721
24722 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24723
24724         * sel-sched.c (create_speculation_check): Remove set but not used
24725         variable twin.
24726         (try_transformation_cache): Remove set but not used variable ds.
24727         (calculate_privileged_insns): Remove set but not used variables
24728         cur_insn and min_spec_insn.
24729         (find_best_expr): Remove set but not used variable avail_n.
24730         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
24731         variable e.
24732         * cgraphunit.c (assemble_thunk): Remove set but not used variable
24733         false_label.
24734         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
24735         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
24736         new_scop_exit_edge.
24737
24738 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
24739
24740         PR bootstrap/42786
24741         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
24742         cpu types.  Add support for *-sse3 cpu types.
24743         (x86_64-*-*): Ditto.
24744
24745 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24746
24747         PR middle-end/42803
24748         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
24749         argument, call initializer_constant_valid_p_1 instead of
24750         initializer_constant_valid_p, pass CACHE to it, return NULL
24751         immediately if first call returns NULL.
24752         (initializer_constant_valid_p_1): New function.
24753         (initializer_constant_valid_p): Use it.
24754
24755 2010-01-20  Thomas Quinot  <quinot@adacore.com>
24756
24757         * tree.def (PLACEHOLDER_EXPR): Fix comment.
24758
24759 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24760
24761         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
24762         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
24763         (loc_list_from_tree): Don't handle unsigned division.  Handle
24764         signed modulo using DW_OP_{over,over,div,mul,minus}.
24765         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
24766         modulo instead of signed.
24767
24768 2010-01-20  DJ Delorie  <dj@redhat.com>
24769
24770         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
24771         (Fpa): Pass it
24772         (h8300_emit_stack_adjustment): Propogate it.
24773         (push): Pass it.
24774         (h8300_expand_prologue): Likewise.
24775         (h8300_expand_epilogue): Likewise.
24776
24777 2010-01-19  Michael Matz  <matz@suse.de>
24778
24779         PR tree-optimization/41783
24780         * tree-data-ref.c (toplevel): Include flags.h.
24781         (dump_data_dependence_relation):  Also dump the inputs if the
24782         result will be unknown.
24783         (split_constant_offset_1): Look through some conversions.
24784         * tree-predcom.c (determine_roots_comp): Restart a new chain if
24785         the offset from last element is too large.
24786         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
24787         (reassociate_to_the_same_stmt): Handle vector registers.
24788         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
24789         (e.g. conversions).
24790         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
24791         wide_prolog_niters argument, emit widening instructions.
24792         (vect_do_peeling_for_alignment): Adjust caller, use widened
24793         variant of the iteration cound.
24794         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
24795
24796 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24797
24798         PR target/38697
24799         * config/arm/neon-testgen.m (emit_automatics): New parameter
24800         features. Adjust for Fixed_return_reg feature.
24801         (test_intrinsic): Call emit_automatics with new feature.
24802         * config/arm/neon.ml: Update copyright years.
24803         (features): New Fixed_return_reg feature.
24804         (ops): Update feature for Vget_low.
24805
24806 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
24807
24808         PR tree-optimization/42719
24809         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
24810         stmt uses.
24811
24812         PR debug/42728
24813         * fwprop.c (all_uses_available_at): Return false if def_set dest
24814         is a REG that is used in def_insn.
24815
24816 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
24817
24818         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
24819
24820         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
24821         Add argument names.
24822
24823         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
24824
24825         * target.h (struct gcc_target) <secondary_reload>: Change type
24826         of last argument to secondary_reload_info *.
24827
24828 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
24829
24830         PR target/42774
24831         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
24832         memory references with unaligned offsets.  Remove CQImode handling.
24833         (unaligned_memory_operand): Return 1 for memory references with
24834         unaligned offsets.  Remove CQImode handling.
24835
24836 2010-01-18  Richard Guenther  <rguenther@suse.de>
24837
24838         PR middle-end/39954
24839         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
24840         builtin calls.
24841
24842 2010-01-18  Richard Guenther  <rguenther@suse.de>
24843
24844         PR tree-optimization/42781
24845         * tree-ssa-structalias.c (find_what_var_points_to): Skip
24846         restrict processing only if the original variable was artificial.
24847
24848 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
24849
24850         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
24851         find number of popped argument bytes.
24852
24853         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
24854         Fix the text that describes the return value for invalid insns.
24855
24856         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
24857
24858         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
24859         Clarify what 'cost of the -dependence' is.  Fix quoting.
24860
24861         * toplev.c (default_get_pch_validity): Rename argument to "sz".
24862         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
24863
24864 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
24865
24866         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24867         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
24868
24869 2010-01-17  Richard Guenther  <rguenther@suse.de>
24870
24871         PR middle-end/42248
24872         * function.c (split_complex_args): Take a VEC to modify.
24873         (assign_parms_augmented_arg_list): Build a VEC instead of
24874         a chain of PARM_DECLs.
24875         (assign_parms_unsplit_complex): Take a VEC of arguments.
24876         Do not fixup unmodified parms.
24877         (assign_parms): Deal with the VEC.
24878         (gimplify_parameters): Likewise.
24879
24880 2010-01-17  Richard Guenther  <rguenther@suse.de>
24881
24882         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
24883         node existence check.
24884         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
24885         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
24886         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
24887         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
24888         (gimple_execute_on_growing_pred): Likewise.
24889
24890 2010-01-17  Richard Guenther  <rguenther@suse.de>
24891
24892         PR tree-optimization/42773
24893         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
24894         (compute_antic_aux): Likewise.
24895         (compute_partial_antic_aux): Likewise.
24896
24897 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
24898
24899         PR debug/42767
24900         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
24901         and US_TRUNCATE.
24902
24903 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
24904
24905         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
24906         appearance.
24907
24908         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
24909         Fix markup for strict argument.
24910
24911         (TARGET_SCHED_REORDER2): Fix argument types.
24912
24913         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
24914         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
24915
24916         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
24917         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
24918
24919         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
24920         Add argument name.
24921
24922         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
24923         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
24924         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
24925         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
24926         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
24927
24928         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
24929
24930         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
24931
24932         (TARGET_ASM_RELOC_RW_MASK): Add return type.
24933         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
24934
24935         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
24936
24937         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
24938         Use prototype.
24939
24940         (TARGET_ASM_NAMED_SECTION): Fix argument list.
24941
24942         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
24943         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
24944
24945         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
24946
24947         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
24948
24949         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
24950         referring to it.  Fix language.
24951
24952         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
24953
24954         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
24955
24956         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
24957
24958         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
24959
24960         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
24961         '@var{stream}.  Remove stray 'and'.
24962
24963         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
24964
24965         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
24966
24967         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
24968
24969         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
24970         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
24971
24972         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
24973         Fix description of return value.
24974         Rename argument "sz" to "len."
24975
24976         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
24977         Clarify meaning of 'true' return value.
24978
24979         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
24980
24981         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
24982         rep_mode versus mode_rep.
24983
24984         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
24985
24986         (TARGET_BUILTIN_DECL): Fix name.
24987
24988         (TARGET_COMMUTATIVE_P): Fix type of first argument.
24989
24990         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
24991
24992         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
24993
24994         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
24995
24996         (TARGET_RELAXED_ORDERING): Use @deftypevr.
24997
24998         (TARGET_GET_DRAP_RTX): Note that this is a hook.
24999         Clarify language.
25000
25001         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
25002         Rename argument tm_fn to md_fn.
25003
25004         (TARGET_OPTION_PRINT): Fix argument list.
25005
25006 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
25007
25008         PR target/42664
25009         * config/i386/i386.c (ix86_fixup_binary_operands):
25010         Revert FMA4 fixup of operands.
25011
25012 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25013
25014         PR gcc/42525
25015         * Makefile.in (write_entries_to_file, install-plugin):
25016         Use \012 instead of \n with tr.
25017
25018 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
25019
25020         * configure.ac (HAVE_AS_REF): New C macro.
25021         * configure: Regenerate.
25022         * config.in: Likewise.
25023         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
25024         if HAVE_AS_REF.
25025         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
25026         if HAVE_AS_REF.
25027
25028 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
25029
25030         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
25031
25032         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
25033
25034         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
25035
25036         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
25037
25038         (TARGET_IN_SMALL_DATA_P): Fix argument type.
25039
25040         (TARGET_BINDS_LOCAL_P): Fix argument type.
25041
25042         (TARGET_ASM_FILE_END): Use prototype.
25043
25044         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
25045
25046         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
25047
25048         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
25049
25050         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
25051
25052         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
25053         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
25054
25055         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
25056         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
25057
25058         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
25059         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
25060         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
25061         (TARGET_ADDR_SPACE_CONVERT): Likewise.
25062
25063         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
25064
25065         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
25066
25067         (TARGET_INIT_BUILTINS): Use prototype.
25068
25069         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
25070         Put 'const char *' in braces.  Fix parameter types.
25071         (TARGET_INVALID_CONVERSION): Fix parameter types.
25072         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
25073         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
25074
25075         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
25076         Fix argument type.
25077
25078         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
25079
25080         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
25081
25082 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
25083
25084         * doc/tm.texi (TARGET_HELP): Fix return type.
25085
25086         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
25087         in braces.  Fix argument types.
25088
25089         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
25090
25091         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
25092
25093         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
25094
25095         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
25096         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
25097
25098         (TARGET_MANGLE_TYPE): Fix argument types.
25099
25100         (TARGET_IRA_COVER_CLASSES): Use prototype.
25101
25102         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
25103
25104         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
25105
25106         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
25107
25108         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
25109
25110         (TARGET_CALLEE_COPIES): Fix argument types.
25111
25112         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
25113
25114         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
25115
25116         (TARGET_FUNCTION_VALUE): Fix argument types.
25117
25118         (TARGET_RETURN_IN_MSB): Fix argument type.
25119
25120         (TARGET_RETURN_IN_MEMORY): Fix argument types.
25121
25122         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
25123
25124         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
25125
25126         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
25127         agree with return type.
25128
25129         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
25130
25131 2010-01-15  Jing Yu  <jingyu@google.com>
25132
25133         PR rtl-optimization/42691
25134         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
25135         a pseudo to a constant and are merged, and adjust comments.
25136
25137 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25138
25139         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
25140
25141 2010-01-15  Richard Guenther  <rguenther@suse.de>
25142
25143         PR middle-end/42739
25144         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
25145         labels of computed or non-local gotos to the destination.
25146         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
25147         landing pad label is the first label.
25148
25149 2010-01-15  Richard Guenther  <rguenther@suse.de>
25150
25151         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
25152
25153 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25154
25155         PR target/42747
25156         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
25157         to allow generation of the xssqrtdp instruction on power7.
25158         (sqrtdf2_fpr): Ditto.
25159
25160 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25161
25162         PR middle-end/42674
25163         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
25164         functions with noreturn attribute.
25165
25166         PR c++/42608
25167         * varasm.c (declare_weak): Add weak attribute to decl if it
25168         doesn't have one already.
25169         (assemble_external): Only add decls to weak_decls if they also
25170         have weak attribute.
25171
25172 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
25173
25174         * var-tracking.c (var_reg_delete): Don't delete the association
25175         between REGs and values or one-part variables if the register
25176         isn't clobbered.
25177
25178 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25179
25180         PR debug/42657
25181         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
25182         because its first operand is a non-localized variable.
25183
25184 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25185
25186         PR tree-optimization/42706
25187         * tree-sra.c (encountered_recursive_call): New variable.
25188         (encountered_unchangable_recursive_call): Likewise.
25189         (sra_initialize): Initialize both new variables.
25190         (callsite_has_enough_arguments_p): New function.
25191         (scan_function): Call decl and flags check only for IPA-SRA, check
25192         whether there is a recursive call and whether it has enough arguments.
25193         (all_callers_have_enough_arguments_p): New function.
25194         (convert_callers): Look for recursive calls only when
25195         encountered_recursive_call is set.
25196         (ipa_early_sra): Bail out either if
25197         !all_callers_have_enough_arguments_p or
25198         encountered_unchangable_recursive_call.
25199
25200 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25201
25202         * sel-sched.c: Add 2010 to copyright years.
25203         * sel-sched-ir.c: Likewise.
25204         * sel-sched-ir.h: Likewise.
25205
25206 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25207
25208         PR tree-optimization/42714
25209         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
25210         constructors specially.
25211
25212 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25213
25214         * config/i386/drivers-i386.c (detect_caches_intel):
25215         Add l2sizekb parameter and fill in.
25216         (host_detect_local_cpu): Add l2sizekb, fill in.
25217         Add Atom small cache heuristic.
25218
25219 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25220
25221         * config/i386/drivers-i386.c (detect_caches_cpuid4):
25222         Add level3 parameter and fill in.
25223         (detect_caches_intel): Handle level3 cache.
25224
25225 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25226
25227         * config/i386/drivers-i386.c (host_detect_local_cpu):
25228         Fix core duo detection.
25229
25230 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25231
25232         * config/i386/drivers-i386.c (host_detect_local_cpu):
25233         Fix Atom detection.
25234
25235 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25236
25237         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
25238         (rs6000_variable_issue_1): this.  Use...
25239         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
25240
25241 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25242
25243         * sel-sched-ir.c (sel_restore_other_notes): Rename to
25244         sel_restore_notes.  Update all callers.  Call reemit_notes
25245         for all insns.
25246
25247 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25248
25249         PR rtl-optimization/42246
25250         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
25251         loops.
25252
25253 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25254
25255         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
25256         all successors is the same as number of successors in current region.
25257
25258 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25259
25260         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
25261         to rename is not separable.  Otherwise check that its LHS is not NULL.
25262
25263 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25264
25265         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
25266
25267 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25268
25269         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
25270         available registers when failed to discover LHS register class.
25271         Fix indentation.  Update comment.
25272
25273 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25274             Alexander Monakov  <amonakov@ispras.ru>
25275
25276         PR rtl-optimization/42389
25277         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
25278         to can_issue_more.
25279         (advance_state_on_fence): Likewise.
25280         (sel_target_adjust_priority): Print debug output only when
25281         sched_verbose >= 4, not 2.
25282         (get_expr_cost): Do not issue all unique insns on the next cycle.
25283         (fill_insns): Initialize can_issue_more from the value saved
25284         with the fence.
25285         * sel-sched-ir.c (flist_add): New parameter issue_more.
25286         Init FENCE_ISSUE_MORE with it.
25287         (merge_fences): Likewise.
25288         (init_fences): Update call to flist_add.
25289         (add_to_fences, add_clean_fence_to_fences)
25290         (add_dirty_fence_to_fences): Likewise.
25291         (move_fence_to_fences): Update call to merge_fences.
25292         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
25293         sched groups.
25294         * sel-sched-ir.h (struct _fence): New field issue_more.
25295         (FENCE_ISSUE_MORE): New accessor macro.
25296
25297 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25298
25299         PR rtl-optimization/42388
25300         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
25301         that have no predecessors nor successors.  Do not call move_bb_info
25302         for empty blocks outside of current region.
25303
25304 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25305
25306         PR rtl-optimization/42294
25307         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
25308         * sel-sched.c (move_exprs_to_boundary): Transitively add all
25309         originators' originators.
25310
25311 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25312
25313         PR rtl-optimization/39453
25314         PR rtl-optimization/42246
25315         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
25316         for pipelining_p.
25317         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
25318
25319 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25320             Alexander Monakov  <amonakov@ispras.ru>
25321
25322         PR middle-end/42245
25323         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
25324         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
25325         argument.  Update all callers.
25326         (tidy_control_flow): ... and here.  Recompute topological order
25327         of basic blocks in region if necessary.
25328         (sel_redirect_edge_and_branch): Change return type.  Return true
25329         if topological order might have been invalidated.
25330         (purge_empty_blocks): Export and move from...
25331         * sel-sched.c (purge_empty_blocks): ... here.
25332         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
25333         (maybe_tidy_empty_bb): Delete prototype.
25334         (purge_empty_blocks): Declare.
25335
25336 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25337
25338         PR rtl-optimization/42249
25339         * sel-sched.c (try_replace_dest_reg): When chosen register
25340         and original register is the same, do not bail out early, but
25341         still check all original insns for validity of replacing destination
25342         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
25343         in this case.
25344
25345 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25346
25347         PR c/42721
25348         Port from no-undefined-overflow branch:
25349         2009-03-09  Richard Guenther  <rguenther@suse.de>
25350
25351         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
25352
25353 2010-01-14  Richard Guenther  <rguenther@suse.de>
25354
25355         PR lto/42665
25356         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
25357
25358 2010-01-14  Ira Rosen  <irar@il.ibm.com>
25359
25360         PR tree-optimization/42709
25361         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
25362         as scalar type in creation of constant vector operand.
25363
25364 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25365
25366         PR testsuite/42414
25367         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
25368         (check-parallel-%): Match `testsuite' directory component only
25369         at the end.
25370
25371 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
25372
25373         PR translation/39521
25374         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
25375         strings with _().
25376
25377 2010-01-13  Richard Guenther  <rguenther@suse.de>
25378
25379         PR tree-optimization/42730
25380         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
25381         offset zero.
25382
25383 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
25384
25385         PR target/pr42542
25386         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
25387         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
25388         them signed.
25389
25390 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
25391
25392         * config/bfin/libgcc-bfin.ver: Regenerate based on current
25393         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
25394         ___umulsi3_highpart.
25395
25396         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
25397         rather than schedule_insns if the pass is enabled.
25398
25399 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25400
25401         PR tree-optimization/42704
25402         * tree-sra.c (sra_modify_assign): Do not delete assignments to
25403         SSA_NAMEs.
25404
25405 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25406
25407         PR tree-optimization/42703
25408         * tree-sra.c (analyze_access_subtree): Check that we can build a
25409         reference to the original data within the aggregate.
25410
25411 2010-01-13  Richard Guenther  <rguenther@suse.de>
25412
25413         PR tree-optimization/42705
25414         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
25415
25416 2010-01-13  Richard Guenther  <rguenther@suse.de>
25417
25418         PR middle-end/42716
25419         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
25420
25421 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
25422
25423         PR debug/41371
25424         * var-tracking.c (values_to_unmark): New variable.
25425         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25426         values_to_unmark vector.  Moved body to...
25427         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
25428         instead queue it into values_to_unmark vector.
25429         (vt_find_locations): Free values_to_unmark vector.
25430
25431 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
25432
25433         * config/s390/s390.c (override_options): Set
25434         default of max-pending-list-length to 256
25435
25436 2010-01-13  Richard Guenther  <rguenther@suse.de>
25437
25438         PR lto/42678
25439         * tree-pass.h (PROP_gimple_lcx): New.
25440         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
25441         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
25442         before the final cleanup_eh.
25443         (dump_properties): Dump PROP_gimple_lcx.
25444         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
25445         (tree_lower_complex_O0): Remove.
25446         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
25447         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
25448         tree_lower_complex, schedule TODO_update_ssa.
25449         * lto-streamer-out.c (output_function): Stream the functions
25450         properties.
25451         * lto-streamer-in.c (input_function): Likewise.
25452         (lto_read_body): Do not override them here.
25453
25454 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
25455
25456         PR c/42708
25457         * c-typeck.c (build_c_cast): Fold value cast to union type before
25458         wrapping it in a CONSTRUCTOR.
25459
25460 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25461
25462         PR rtl-optimization/42699
25463         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
25464         involved.
25465
25466 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25467
25468         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25469         SUBTARGET_WARN_UNUSED_SPEC): Move ...
25470         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25471         SUBTARGET_WARN_UNUSED_SPEC): ... here
25472         * config/mips/iris5.h (LIBGCC_SPEC): Define.
25473
25474 2010-01-12  Julian Brown  <julian@codesourcery.com>
25475
25476         * config/arm/neon-schedgen.ml (Utils): Don't try to
25477         open missing module.
25478         (find_with_result): New.
25479
25480 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25481
25482         PR debug/42662
25483         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
25484         sharing when canonicalizing ({lt,ge}u (plus a b) b).
25485
25486         PR tree-optimization/42645
25487         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
25488         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
25489         decl_map, set processing_debug_stmt to -1 and return name without
25490         any remapping.
25491
25492 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
25493
25494         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
25495         binutils version, and reword target configuration description.
25496
25497 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25498
25499         * config/avr/avr.h (LINKER_NAME): Remove.
25500
25501 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
25502
25503         PR target/42416
25504         * config/rs6000/rs6000.c (rs6000_override_options): On targets
25505         that support VSX, warn for -mno-altivec if vsx is not disabled,
25506         and disable vsx.
25507
25508 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
25509             Shujing Zhao  <pearly.zhao@oracle.com>
25510
25511         PR translation/42469
25512         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
25513         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
25514         character between option name and help text.
25515         * c.opt (imultilib): Likewise.
25516
25517 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
25518
25519         * lto-streamer-out.c (output_unreferenced_globals): Output static
25520         variables.
25521
25522 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
25523
25524         PR rtl-optimization/42621
25525         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
25526         optimizing for size.
25527         (duplicate_computed_gotos): Remove now-redundant check.
25528
25529 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
25530
25531         PR target/37454
25532         * configure.ac: Save and restore LDFLAGS and LIBS
25533         * configure: Regenerate.
25534
25535 2010-01-10  Richard Guenther  <rguenther@suse.de>
25536
25537         PR middle-end/42667
25538         * builtins.c (fold_builtin_strlen): Add type argument and
25539         convert the resulting length to it.
25540         (fold_builtin_1): Adjust.
25541
25542 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25543
25544         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
25545         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
25546         1 insn.
25547         (num_insns_constant_wide): Adjust for that change.
25548
25549 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25550
25551         PR debug/42631
25552         * web.c (union_defs): Add used argument, to combine uses of
25553         uninitialized regs.
25554         (entry_register): Adjust type and tests of used argument.
25555         (web_main): Widen used for new use.  Pass it to union_defs.
25556         * df.h (union_defs): Adjust prototype.
25557
25558 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25559
25560         PR debug/42630
25561         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
25562         uses in new incoming argument.  Free body.
25563         (reset_debug_uses_in_loop): New.
25564         (analyze_insn_to_expand_var): Call the latter if the former found
25565         anything.  Fix whitespace.  Reject invalid dest overlaps before
25566         going through all insns in the loop.
25567
25568 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25569
25570         PR debug/42629
25571         * haifa-sched.c (dying_use_p): Debug insns don't count.
25572
25573 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25574
25575         PR middle-end/42363
25576         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
25577         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
25578         (verify_gimple_call): Reject LHS in noreturn calls.
25579
25580 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25581
25582         PR debug/42604
25583         PR debug/42395
25584         * tree-vect-loop-manip.c (adjust_info): New type.
25585         (adjust_vec): New pointer to vector.
25586         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
25587         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
25588         (slpeel_update_phis_for_duplicate_loop): Use them.
25589         (slpeel_update_phi_nodes_for_guard1): Likewise.
25590         (slpeel_update_phi_nodes_for_guard2): Likewise.
25591         (slpeel_tree_peel_loop_to_edge): Likewise.
25592         (vect_update_ivs_after_vectorizer): Likewise.
25593
25594 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25595
25596         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
25597         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
25598
25599 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25600
25601         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
25602         bogus uninitialized warning.
25603
25604 2010-01-09  Richard Guenther  <rguenther@suse.de>
25605
25606         PR middle-end/42512
25607         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
25608         the evolution is compatible with the initial condition.
25609
25610 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25611
25612         * gcc.c (process_command): Update copyright notice dates.
25613         * gcov.c (print_version): Likewise.
25614         * gcov-dump.c (print_version): Likewise.
25615         * mips-tfile.c (main): Likewise.
25616         * mips-tdump.c (main): Likewise.
25617
25618 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25619
25620         PR target/41885
25621         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
25622         (rotlhi3): Delete.
25623         (rotlhi3_8): Delete.
25624         (rotlsi3): Delete.
25625         (rotlsi3_8): Delete.
25626         (rotlsi3_16): Delete.
25627         (rotlsi3_24): Delete.
25628         (rotl<mode>3): New.
25629         (*rotw<mode>3): New.
25630         (*rotb<mode>3): New.
25631         * config/avr/avr.c (avr_rotate_bytes): New function.
25632         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
25633
25634 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
25635
25636         PR target/37454
25637         * configure.ac: Modify -rdynamic check.
25638         * configure: Regenerate.
25639
25640 2010-01-08  DJ Delorie  <dj@redhat.com>
25641
25642         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
25643         register popping order.
25644
25645 2010-01-08  Richard Guenther  <rguenther@suse.de>
25646
25647         PR lto/42528
25648         * c.opt (fsigned-char): Also let LTO handle this option.
25649         (funsigned-char): Likewise.
25650
25651 2010-01-07  Richard Guenther  <rguenther@suse.de>
25652
25653         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
25654         (gimple_op): Likewise.
25655         (gimple_op_ptr): Likewise.
25656         (gimple_assign_set_lhs): Remove gcc_assert.
25657         (gimple_assign_set_rhs1): Likewise.
25658         (gimple_assign_set_rhs2): Likewise.
25659         (gimple_call_set_lhs): Likewise.
25660         (gimple_call_set_fn): Likewise.
25661         (gimple_call_set_fndecl): Likewise.
25662         (gimple_call_fndecl): Likewise.
25663         (gimple_call_return_type): Likewise.
25664         (gimple_call_set_chain): Likewise.
25665         (gimple_call_num_args): Likewise.
25666         (gimple_call_set_arg): Likewise.
25667         (gimple_cond_set_code): Likewise.
25668         (gimple_cond_set_lhs): Likewise.
25669         (gimple_cond_set_rhs): Likewise.
25670         (gimple_cond_set_true_label): Likewise.
25671         (gimple_cond_set_false_label): Likewise.
25672         (gimple_label_set_label): Likewise.
25673         (gimple_goto_set_dest): Likewise.
25674         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
25675         (gimple_debug_bind_get_value): Likewise.
25676         (gimple_debug_bind_get_value_ptr): Likewise.
25677         (gimple_debug_bind_set_var): Likewise.
25678         (gimple_debug_bind_set_value): Likewise.
25679         (gimple_debug_bind_reset_value): Likewise.
25680         (gimple_debug_bind_has_value_p): Likewise.
25681         (gimple_return_retval_ptr): Remove gcc_assert.
25682         (gimple_return_retval): Likewise.
25683         (gimple_return_set_retval): Likewise.
25684         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
25685         (safe_referenced_var_iterator): Remove.
25686         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
25687         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
25688         (fill_referenced_var_vec): Remove.
25689         (first_readonly_imm_use): Remove redundant gcc_assert.
25690         (phi_arg_index_from_use): Combine gcc_asserts.
25691         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
25692         (first_imm_use_stmt): Remove redundant gcc_assert.
25693         * tree-cfg.c (verify_gimple_call): Verify function and chain
25694         operands.  Verify arguments.
25695         (verify_types_in_gimple_stmt): Verify condition code and labels.
25696
25697 2010-01-07  Richard Guenther  <rguenther@suse.de>
25698
25699         PR tree-optimization/42641
25700         * sese.c (rename_map_elt_info): Use the SSA name version, do
25701         not hash pointers.
25702
25703 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
25704
25705         PR tree-optimization/42625
25706         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
25707         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
25708
25709 2010-01-07  Duncan Sands  <baldrick@free.fr>
25710
25711         * Makefile.in (PLUGIN_HEADERS): Add version.h.
25712
25713 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
25714
25715         PR target/42511
25716         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
25717         note itself is not function_invariant_p.
25718
25719 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
25720
25721         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
25722         Do not add the DF_NOTE problem.
25723         * store-motion.c (execute_rtl_store_motion): Likewise.
25724
25725 2010-01-07  Martin Jambor  <mjambor@suse.cz>
25726
25727         PR tree-optimization/42157
25728         * tree-sra.c (compare_access_positions): Stabilize sort if both
25729         accesses have integer types, return zero immediately if they are the
25730         same.
25731
25732 2010-01-06  Richard Henderson  <rth@redhat.com>
25733
25734         PR middle-end/41883
25735         * haifa-sched.c (add_to_note_list): Merge into ...
25736         (concat_note_lists): ... here, and ...
25737         (unlink_other_notes, rm_other_notes): Merge into...
25738         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
25739         NOTE_INSN_EPILOGUE_BEG.
25740
25741 2010-01-06  Richard Guenther  <rguenther@suse.de>
25742
25743         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
25744         not inline regular functions into always-inline functions.
25745
25746 2010-01-06  Nick Clifton  <nickc@redhat.com>
25747
25748         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
25749         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
25750         used together.
25751         (OVERRIDE_OPTIONS): Delete.
25752         (OPTIMIZATION_OPTIONS): Define.
25753         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
25754         * config/rx/rx.c (rx_handle_option): Issue an error message if
25755         -mcpu=rx200 and -fpu are used together.
25756         (rx_set_optimization_options): New function.  Issue an error
25757         message if an optimization attribute attempts to reset the FPU/
25758         math optimization pairing.
25759         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
25760         * config/rx/rx.opt: Set the default to 32-bit doubles.
25761         * config/rx/t-rx: Add multilibs for -nofpu option.
25762         * doc/invoke.texi: Update documentation of RX options.
25763
25764 2010-01-06  Richard Guenther  <rguenther@suse.de>
25765
25766         * tree-ssa-pre.c (name_to_id): New global.
25767         (alloc_expression_id): Simplify SSA name handling.
25768         (lookup_expression_id): Likewise.
25769         (init_pre): Zero name_to_id.
25770         (fini_pre): Free it.
25771
25772 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
25773
25774         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
25775
25776 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25777
25778         PR target/42542
25779         * config/i386/sse.md (smaxv2di3): New.
25780         (umaxv2di3): Likewise.
25781         (sminv2di3): Likewise.
25782         (uminv2di3): Likewise.
25783
25784 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25785
25786         PR target/42564
25787         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
25788         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
25789         (legitimize_tls_address): Likewise.
25790         (sparc_tls_referenced_p): Likewise.
25791         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
25792         and adjust calls to legitimize_pic_address.
25793         (legitimate_constant_p) Use sparc_tls_referenced_p.
25794         (legitimate_pic_operand_p): Likewise.
25795         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
25796         (sparc_tls_symbol_ref_1): Delete.
25797         (sparc_tls_referenced_p): Make static, recognize specific patterns.
25798         (legitimize_tls_address): Make static, handle CONST patterns.
25799         (legitimize_pic_address): Make static, remove unused parameter and
25800         adjust recursive calls.
25801         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
25802         and adjust call to legitimize_pic_address.
25803         (sparc_output_mi_thunk): Likewise.
25804
25805 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
25806             H.J. Lu  <hongjiu.lu@intel.com>
25807
25808         PR target/42542
25809         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
25810         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
25811         operands to make them signed.
25812
25813         Revert:
25814         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25815
25816         PR target/42542
25817         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25818         GTU to GT for V4SI and V2DI.
25819
25820         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25821         (umin<mode>3): Removed.
25822         (uminv8hi3): New.
25823         (uminv4si3): Likewise.
25824
25825 2010-01-05  Martin Jambor  <mjambor@suse.cz>
25826
25827         PR tree-optimization/42462
25828         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
25829         current_function_decl to helper functions and macros.
25830
25831 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25832
25833         PR bootstrap/41771
25834         * flags.h: Don't include real.h.
25835         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
25836         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
25837         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
25838         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
25839         * dominance.c: Update copyright.
25840         * gimple.c (walk_gimple_op): Remove inline.
25841         * tree-ssa-reassoc.c: Include real.h.
25842         * Makefile.in (FLAGS_H): Remove $(REAL_H).
25843         (tree-ssa-reassoc.o): Depend on $(REAL_H).
25844
25845 2010-01-05  Nick Clifton  <nickc@redhat.com>
25846
25847         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
25848         register to push into the stack frame when the accumulator has to
25849         be saved during interrupts.
25850
25851 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
25852
25853         * doc/invoke.texi: Remove the documentation about option
25854         -Wunreachable-code.
25855         * common.opt (Wunreachable-code):  Preserved for backward
25856         compatibility.
25857         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
25858         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
25859         the backward compatibility flag section.
25860
25861 2010-01-05  Richard Guenther  <rguenther@suse.de>
25862
25863         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
25864
25865 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
25866
25867         PR other/42611
25868         * cfgexpand.c (expand_one_var): Diagnose too large variables.
25869
25870         PR tree-optimization/42508
25871         * tree-sra.c (convert_callers): Check for recursive call
25872         by comparing cgraph nodes instead of decls.
25873         (modify_function): Call ipa_modify_formal_parameters also
25874         on all same_body aliases.
25875
25876         * cgraphunit.c (cgraph_materialize_all_clones): Compare
25877         cgraph nodes when checking for same_body aliases.
25878
25879 2010-01-05  Richard Guenther  <rguenther@suse.de>
25880
25881         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
25882         allocation and lookup.
25883         (get_or_alloc_expr_for_constant): Likewise.
25884         (phi_translate): Sink allocation.
25885
25886 2010-01-04  Richard Guenther  <rguenther@suse.de>
25887
25888         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
25889         a new entry only if needed.
25890         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
25891         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
25892         hashtable lookup.
25893         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
25894         the result array.
25895         (phi_translate): Handle CONSTANTs early.
25896
25897 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25898
25899         PR tree-optimization/42398
25900         * tree-sra.c (struct access): Removed flag grp_different_types.
25901         (dump_access): Do not dump the removed flag.
25902         (sort_and_splice_var_accesses): Do not set the removed flag.
25903         (sra_modify_expr): Check for type compatibility directly.
25904
25905 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25906
25907         PR tree-optimization/42366
25908         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
25909         edges with variable number of parameters.
25910         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
25911         flag instead of asserting it.
25912         (ipa_read_node_info): Read uses_analysis_done flag.
25913
25914 2010-01-04  Richard Guenther  <rguenther@suse.de>
25915
25916         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
25917         iterative_hash_* as intended.
25918         (vn_reference_compute_hash): Likewise.  Simplify hashing
25919         SSA names.
25920         (vn_reference_lookup_2): Likewise.
25921         (vn_nary_op_compute_hash): Likewise.
25922         (vn_phi_compute_hash): Likewise.
25923         (expressions_equal_p): Remove strange code.
25924         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
25925         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
25926         (bitmap_insert_into_set_1): Take value-id as parameter.
25927         (add_to_value): Pass it.
25928         (bitmap_insert_into_set): Likewise.
25929         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
25930
25931 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
25932
25933         PR driver/42442
25934         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
25935         (do_self_spec): For switches with SWITCH_IGNORE set set also
25936         SWITCH_IGNORE_PERMANENTLY.
25937         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
25938         of SWITCH_IGNORE.
25939
25940 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
25941
25942         * lto-streamer-out.c (output_unreferenced_globals): Output the full
25943         tree of an unreferenced global var.
25944
25945 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25946
25947         PR target/42542
25948         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25949         GTU to GT for V4SI and V2DI.
25950
25951         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25952         (umin<mode>3): Removed.
25953         (uminv8hi3): New.
25954         (uminv4si3): Likewise.
25955
25956 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25957
25958         PR lto/42581
25959         * collect2.c (main): Turn on trace in collect2 if -v is passed
25960         to gcc with LTO.
25961
25962 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
25963
25964         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
25965         description of expression operand.
25966
25967 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
25968
25969         * configure.ac: Add install-html to target_list for Make-hooks.
25970         * configure: Regenerate.
25971         * fortran/Make-lang.in (F95_HTMLFILES): New.
25972         (fortran.html): Use it.
25973         (fortran.install-html): New.
25974         * Makefile.in (install-html): Add lang.install-html.
25975         * java/Make-lang.in (JAVA_HTMLFILES): New.
25976         (java.html): Use it.
25977         (java.install-html): New.
25978         * objc/Make-lang.in (objc.install-html): New.
25979         * objcp/Make-lang.in (obj-c++.install-html): New.
25980         * cp/Make-lang.in (c++.install-html): New.
25981         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
25982         * lto/Make-lang.in (lto.install-html): New.
25983
25984 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25985
25986         PR lto/42520
25987         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
25988
25989 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
25990
25991         PR rtl-optimization/41862
25992         * store-motion.c (store_killed_in_insn, compute_store_table,
25993         remove_reachable_equiv_notes, replace_store_insn,
25994         build_store_vectors): Ignore all DEBUG_INSNs.
25995
25996 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25997
25998         PR lto/41564
25999         * common.opt: Add dumpdir.
26000
26001         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
26002         isn't specified.
26003         (option_map): Add --dumpdir.
26004
26005         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
26006
26007         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
26008
26009         * opts.c (decode_options): Try dump_dir_name first if
26010         dump_base_name isn't an absolute path.
26011         (common_handle_option): Handle OPT_dumpdir.
26012
26013         * toplev.c (dump_dir_name): New.
26014         (print_switch_values): Also ignore -dumpdir.
26015
26016         * toplev.h (dump_dir_name): New.
26017
26018 2010-01-03  Richard Guenther  <rguenther@suse.de>
26019
26020         PR tree-optimization/42589
26021         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
26022         double-word expansion of bswap32.
26023
26024 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26025
26026         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
26027         with BLOCK_FOR_INSN.
26028         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
26029         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
26030         noce_process_if_block): Likewise.
26031         * gcse.c (compute_local_properties, insert_expr_in_table,
26032         insert_set_in_table, canon_list_insert, find_avail_set,
26033         pre_insert_copy_insn): Likewise.
26034
26035         * basic-block.h (BLOCK_NUM): Move from here...
26036         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
26037
26038 2010-01-03  Richard Guenther  <rguenther@suse.de>
26039
26040         PR tree-optimization/42438
26041         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
26042         contains_may_not_return_call flag.
26043         (BB_MAY_NOTRETURN): New.
26044         (valid_in_sets): Trapping nary operations are not valid
26045         in blocks that may not return.
26046         (insert_into_preds_of_block): Remove check for trapping expressions.
26047         (compute_avail): Compute also BB_MAY_NOTRETURN.
26048
26049 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
26050
26051         * doc/invoke.texi: Add 2010 to copyright years.
26052
26053 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
26054
26055         * config/sparc/sparc.c: Fix formatting nits.
26056
26057 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
26058             Alexander Monakov  <amonakov@ispras.ru>
26059
26060         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
26061
26062 2010-01-02  Richard Guenther  <rguenther@suse.de>
26063
26064         PR middle-end/42577
26065         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
26066         (simplify_switch_using_ranges): Mark to be removed edges
26067         as non-executable.
26068
26069 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26070
26071         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
26072
26073         * collect2.c (scan_libraries): Add missing argument in call to
26074         scan_prog_file.
26075
26076 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
26077
26078         PR target/42448
26079         * config/alpha/predicates.md (aligned_memory_operand): Return false
26080         for CQImode.
26081         (unaligned_memory_operand): Return true for CQImode.
26082         * config/alpha/alpha.c (get_aligned_mem): Assert that location
26083         doesn not cross aligned SImode word boundary.
26084
26085 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
26086
26087         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
26088         Remove.
26089         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
26090         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
26091
26092 2010-01-02  Richard Guenther  <rguenther@suse.de>
26093
26094         PR lto/41597
26095         * toplev.c (compile_file): Emit LTO marker properly.  Change
26096         it to __gnu_lto_v1.
26097         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
26098
26099 2010-01-01  Richard Guenther  <rguenther@suse.de>
26100
26101         PR debug/42455
26102         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
26103
26104 2010-01-01  Richard Guenther  <rguenther@suse.de>
26105
26106         PR c/42570
26107         * c-decl.c (grokdeclarator): For zero-size arrays force
26108         structural equality checks as layout_type does.
26109
26110 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26111
26112         * builtins.c: Update copyright to 2010.
26113
26114 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26115
26116         PR lto/42531
26117         * lto-streamer-out.c (produce_asm): Revert the last change.
26118         (copy_function): Likewise.
26119
26120         * lto-streamer.c (lto_get_section_name): Skip any leading
26121         asterisk in name.
26122
26123 2010-01-01  Richard Guenther  <rguenther@suse.de>
26124
26125         PR middle-end/42559
26126         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
26127         for LABEL_DECLs.
26128
26129 \f
26130 Copyright (C) 2010 Free Software Foundation, Inc.
26131
26132 Copying and distribution of this file, with or without modification,
26133 are permitted in any medium without royalty provided the copyright
26134 notice and this notice are preserved.