OSDN Git Service

2010-09-09 Matthias Klose <doko@ubuntu.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-09  Matthias Klose  <doko@ubuntu.com>
2
3         PR bootstrap/43847
4         * configure.ac (--enable-plugin): Enhance for cross builds.
5         * configure: Regenerate.
6
7 2010-09-09  Jan Hubicka  <jh@suse.cz>
8
9         PR tree-optimization/45598
10         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
11         string folding is of integral type.
12
13 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
14
15         * configure.ac (gnu_indirect_function): New test.
16         * configure: Rebuilt.
17         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
18         * defaults.h (IFUNC_ASM_TYPE): Provide default.
19
20         * doc/extend.texi (Function Attributes): Document ifunc.
21         * varasm.c (do_assemble_alias): Deal with ifuncs too.
22
23 2010-09-09  Hariharan Sandanagobalane <hariharan@picochip.com>
24
25         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
26         epilogue instruction move.
27
28 2010-09-09  Jan Hubicka  <jh@suse.cz>
29
30         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
31         command line to allow more partitions than input files.
32
33 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
34
35         PR middle-end/44554
36         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
37
38 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
39
40         PR middle-end/40386
41         * ira.c (pseudo_for_reload_consideration_p): Don't use
42         flag_ira_share_spill_slots.
43
44 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
45
46         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
47         point zero operands that fit into a single GPR.
48         (s390_preferred_reload_class): Ensure we only return general-purpose
49         register classes.
50         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
51         floating-point zero operands into GPRs.
52         ("*mov<mode>_64"): Likewise.
53         ("mov<mode>"): Likewise using lhi.
54
55 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
56
57         * config/s390/s390.c (s390_symref_operand_p): Return false for
58         literal pool references.
59         (s390_check_qrst_address): Update caller.
60
61 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
62
63         * config/i386/predicates.md (ext_register_operand): Check that
64         SUBREG_REG is really a register before looking for REGNO.
65         (reg_not_xmm0_operand): Handle SUBREGs correctly.
66         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
67
68 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
69
70         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
71         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
72         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
73         * print-rtl.c (print_rtx): Likewise.
74         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
75         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
76         for ADDR_EXPR with non-addressable object.
77         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
78         (struct dw_val_struct): Add v.val_decl_ref.
79         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
80         Handle DW_OP_GNU_implicit_pointer.
81         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
82         (get_ref_die_offset_label): New function.
83         (implicit_ptr_descriptor): New function.
84         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
85         (loc_descriptor): Likewise.
86         (gen_variable_die): Put even definitions into decl_die_table.
87         (resolve_addr_in_expr): Resolve still unresolved
88         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
89         return false.
90         (dwarf2out_finish): Call output_location_lists after outputting
91         .debug_info and .debug_abbrev instead of before.
92
93 2010-09-09  Roland McGrath  <roland@redhat.com>
94
95         * dwarf2out.c (DWARF_REF_SIZE): Define.
96         (size_of_loc_descr): Use it for DW_OP_call_ref.
97
98 2010-09-09  Alan Modra  <amodra@gmail.com>
99
100         * doc/invoke.text: Reinstate mcmodel=medium.
101         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
102         CMODEL_MEDIUM as default.
103         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
104         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
105         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
106         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
107
108 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
109
110         PR target/45250
111         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
112         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
113         (builtin_longjmp): Likewise.
114         (allocate_stack): Use hard_frame_pointer_rtx instead of
115         frame_pointer_rtx.
116         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
117         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
118         (pa_can_eliminate): Likewise.
119         (TARGET_INTERNAL_ARG_POINTER): Define.
120         (TARGET_CAN_ELIMINATE): Define.
121         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
122         pointer.
123         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
124         (pa_internal_arg_pointer, pa_can_eliminate,
125         pa_initial_elimination_offset): New.
126         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
127         (HARD_FRAME_POINTER_REGNUM): Set to register three.
128         (INITIAL_FRAME_POINTER_OFFSET): Delete.
129         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
130         Define.
131         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
132         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
133         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
134         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
135         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
136         new soft frame pointer.
137         * config/pa/pa64-regs.h: Likewise.
138
139 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
140
141         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
142         numerical constant.
143         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
144
145 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
146
147         PR debug/45531
148         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
149
150 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
151
152         PR debug/45419
153         PR debug/45408
154         * tree-pretty-print.c (dump_generic_node): Disregard top-level
155         qualifiers in otherwise equal MEM_REF pointer types.
156         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
157         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
158
159 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
160
161         PR target/44392
162         * config/arm/arm.md (bswapsi2): Handle condition correctly
163         for armv6 and optimize_size.
164
165 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
166
167         PR other/18555
168         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
169
170 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
171
172         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
173         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
174         ix86_expand_strlen, legitimate_pic_address_disp_p,
175         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
176         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
177         ix86_check_movabs, ix86_secondary_memory_needed): Change function
178         prototype to bool.
179         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
180         return_in_memory_ms_64, ix86_check_movabs,
181         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
182         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
183         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
184         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
185         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
186         ix86_secondary_memory_needed): Change to bool.  Return
187         "true" and "false" values.
188         * config/i386/i386.md: Return "true" and "false" values.
189
190 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
191
192         * doc/sourcebuild.texi (Effective-Target Keywords): Document
193         run_expensive_tests.
194
195 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
196
197         * toplev.c (output_stack_usage): Use lbasename instead of basename.
198
199 2010-09-08  Martin Jambor  <mjambor@suse.cz>
200
201         PR other/45443
202         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
203         at -O3.
204
205 2010-09-08  Richard Guenther  <rguenther@suse.de>
206
207         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
208         (visit): Adjust.
209         (iterative_hash_gimple_type): Likewise.
210         (gimple_type_hash): Likewise.
211         (gimple_register_type): Likewise.
212         (print_gimple_types_stats): Likewise.
213         (free_gimple_type_tables): Likewise.
214
215 2010-09-08  Michael Matz  <matz@suse.de>
216
217         PR tree-optimization/43430
218         * tree-vect-stmts.c (vectorizable_condition): Support multiple
219         copies for conditional statements if it's not part of a reduction.
220
221 2010-09-08  Michael Matz  <matz@suse.de>
222
223         PR tree-optimization/33244
224         * tree-ssa-sink.c (statement_sink_location): Don't sink into
225         empty loop latches.
226
227 2010-09-08  Richard Guenther  <rguenther@suse.de>
228
229         PR tree-optimization/45578
230         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
231         Be more careful when transfering alignment information to
232         the new induction variable.
233         (copy_ref_info): Likewise.
234
235 2010-09-08  Richard Guenther  <rguenther@suse.de>
236
237         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
238         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
239
240 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
241
242         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
243         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
244
245 2010-09-08  Kenneth Zadeck <zadeck@naturalbridge.com>
246
247         PR doc/45587
248         * doc/md.texi: Fixed modes on several standard pattern names.
249
250 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
251
252         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
253         (ashl<mode>3): ...this.
254         (loongson_psra<V_suffix>): Rename to...
255         (ashr<mode>3): ...this.
256         (loongson_psrl<V_suffix>): Rename to...
257         (lshr<mode>3): ...this.
258         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
259         (CODE_FOR_loongson_psllw): Define.
260         (CODE_FOR_loongson_psrlh): Define.
261         (CODE_FOR_loongson_psrlw): Define.
262         (CODE_FOR_loongson_psrah): Define.
263         (CODE_FOR_loongson_psraw): Define.
264
265 2010-09-07  Richard Henderson  <rth@redhat.com>
266
267         * tree-vect-data-refs.c: Include tm_p.h.
268         * Makefile.in (tree-vect-data-refs.o): Update deps.
269         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
270         Move delarations outside #ifdef RTX_CODE.
271
272 2010-09-07  Richard Henderson  <rth@redhat.com>
273
274         * final.c (rest_of_handle_final): Unconditionally do
275         output_function_exception_table before assemble_end_function.
276
277 2010-09-07  Jan Hubicka  <jh@suse.cz>
278
279         * tree-inline.c (tree_inlinable_function_p): Do not test
280         DECL_REPLACEABLE_P.
281         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
282         update_callee_keys, cgraph_decide_inlining): Test function availability.
283         * cif-code.def (OVERWRITABLE): New code.
284
285 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
286             Jack Howarth <howarth@bromo.med.uc.edu>
287
288         PR target/36502
289         PR target/42313
290         PR target/44651
291         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
292         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
293         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
294         MAX macro.
295
296 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
297
298         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
299         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
300
301 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
302
303         * config.gcc: Don't append t-android for Android targets.
304
305         * config/t-android: Removed.
306
307 2010-09-07  Richard Henderson  <rth@redhat.com>
308
309         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
310         * doc/tm.texi.in: Add doc marker.
311         * doc/tm.texi: Rebuild.
312         * except.c (switch_to_exception_section): Always build.
313         (output_one_function_exception_table): Move section switch,
314         personality output, and label output ...
315         (output_function_exception_table): ... here.  Use the new
316         personality hook.
317
318         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
319         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
320         TARGET_ASM_INIT_SECTIONS): New.
321         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
322         make static.
323         (TARGET_ASM_UNWIND_EMIT): Update to match.
324         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
325
326         * config/arm/arm.c (arm_asm_emit_except_personality): New.
327         (arm_asm_init_sections): New.
328         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
329
330 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
331
332         * config/arm/arm.md: Remove unused variable.
333
334 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
335
336         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
337         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
338         (m32r_memory_move_cost): New function.
339
340 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
341
342         * config.gcc: Append t-android for Android targets.
343
344         * config/t-android: New.
345
346 2010-09-07  Richard Henderson  <rth@redhat.com>
347
348         * target.def (unwind_emit_before_insn): New hook.
349         * doc/tm.texi.in: Add @hook marker for it.
350         * doc/tm.texi: Rebuild.
351         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
352
353 2010-09-07  Martin Jambor  <mjambor@suse.cz>
354
355         PR fortran/43665
356         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
357         are any type attributes.
358
359 2010-09-07  Jan Hubicka  <jh@suse.cz>
360
361         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
362         array_ref_low_bound in string access folding.
363
364 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
365
366         PR target/45206
367         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
368         eh_return fixup sequence.
369
370 2010-09-07  Jan Hubicka  <jh@suse.cz>
371
372         * gimple-fold.c (maybe_fold_reference): Verify that operand is
373         gimple_min_invariant.
374
375 2010-09-07  Richard Guenther  <rguenther@suse.de>
376
377         PR middle-end/45569
378         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
379         nor CONSTRUCTOR can trap.
380         * tree-complex.c (update_complex_assignment): Update EH info.
381
382 2010-09-07  Richard Guenther  <rguenther@suse.de>
383
384         PR middle-end/45569
385         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
386         * passes.c (execute_function_todo): Do not verify anything if
387         we saw errors.
388
389 2010-09-07  Richard Guenther  <rguenther@suse.de>
390
391         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
392
393 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
394
395         PR target/43137
396         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
397         New define_mode_attrs.
398         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
399         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
400         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
401         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
402         Remove pool_range attribute.
403         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
404         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
405         pool_range and neg_pool_range attributes.
406         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
407         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
408         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
409
410 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
411
412         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
413         check glibc.
414
415 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
416
417         PR target/22152
418         * config/i386/mmx.md (*mov<mode>_internal_rex64,
419         *mov<mode>_internal_avx, *mov<mode>_internal,
420         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
421         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
422
423 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
424
425         * c-typeck.c (do_warn_double_promotion): Remove.
426         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
427         Objective-C++ too.
428
429 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
430
431         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
432         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
433         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
434         argument type to reg_class_t. Change result type to bool.
435         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
436
437 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
438
439         PR libobjc/19850
440         * gthr-posix.h (__gthread_objc_thread_detach): Use
441         _objc_thread_attribs when detaching a thread.
442         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
443
444 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
445
446         PR target/45524
447         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
448         * configure: Regenerated.
449
450 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
451
452         * combine.c (try_combine): Set subst_low_luid to i0.
453
454 2010-09-06  Richard Guenther  <rguenther@suse.de>
455
456         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
457         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
458         (build_aligned_type): Declare.
459         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
460         (check_aligned_type): New function.
461         (build_aligned_type): Likewise.
462         * expr.c (expand_assignment): Handle misaligned stores via
463         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
464         (expand_expr_real_1): Likewise.
465         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
466         * tree-vect-stmts.c (vectorizable_store): Do not build
467         MISALIGNED_INDIRECT_REF but initialize alignment information.
468         (vectorizable_load): Likewise.
469         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
470         handling.
471         * cfgexpand.c (expand_debug_expr): Likewise.
472         * dwarf2out.c (loc_list_from_tree): Likewise.
473         * fold-const.c (maybe_lvalue_p): Likewise.
474         (operand_equal_p): Likewise.
475         (build_fold_addr_expr_with_type_loc): Likewise.
476         * gimplify.c (gimplify_addr_expr): Likewise.
477         (gimplify_expr): Likewise.
478         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
479         (verify_gimple_assign_single): Likewise.
480         * tree-dump.c (dequeue_and_dump): Likewise.
481         (tree_could_trap_p): Likewise.
482         * tree-predcom.c (ref_at_iteration): Likewise.
483         * tree-pretty-print.c (dump_generic_node): Likewise.
484         (op_code_prio): Likewise.
485         (op_symbol_code): Likewise.
486         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
487         * tree-ssa-loop-im.c (for_each_index): Likewise.
488         (gen_lsm_tmp_name): Likewise.
489         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
490         (find_interesting_uses_address): Likewise.
491         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
492         * tree-ssa-operands.c (get_expr_operands): Likewise.
493         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
494         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
495         (ao_ref_init_from_vn_reference): Likewise.
496         * tree.c (staticp): Likewise.
497         (build1_stat): Likewise.
498         (reference_alias_ptr_type): Likewise.
499         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
500         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
501         MISALIGNED_INDIRECT_REF handling.
502
503 2010-09-06  Richard Guenther  <rguenther@suse.de>
504
505         PR tree-optimization/45534
506         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
507         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
508         on the target.
509         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
510         valid on the target.
511
512 2010-09-06  Andreas Schwab  <schwab@redhat.com>
513
514         * configure.ac: Quote argument of AC_MSG_WARN.
515         * configure: Regenerate.
516
517 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
518
519         * sel-sched.c (move_cond_jump): Correct arguments to
520         maybe_tidy_empty_bb.
521         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
522
523 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
524
525         PR rtl-optimization/44919
526         * sel-sched.c (move_cond_jump): Remove assert, check that
527         the several blocks case can only happen with mutually exclusive
528         insns instead.  Rewrite the movement code to support moving through
529         several basic blocks.
530
531 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
532
533         * config/i386/i386.md (iptrsize): New mode attribute.
534         (tp_seg): Ditto.
535         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
536         mode iterator.
537         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
538         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
539         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
540         (stack_tls_protect_set_<mode>): Ditto from
541         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
542         of thread base pointer load.
543         (stack_tls_protect_test_<mode>): Ditto from
544         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
545         of thread base pointer load.
546         (stack_protect_set): Rewrite using indirect functions.
547         (stack_protect_test): Ditto.
548         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
549         (ix86_print_operand): Handle '@'.
550
551 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
552
553         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
554         MINUS_EXPR.
555
556 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
557
558         * doc/invoke.texi: Document -Wdouble-promotion.
559         * c-typeck.c (convert_arguments): Check for implicit conversions
560         from float to double.
561         (do_warn_double_promotion): New function.
562         (build_conditional_expr): Use it.
563         (build_binary_op): Likewise.
564
565 2010-09-05  Richard Guenther  <rguenther@suse.de>
566
567         PR tree-optimization/45535
568         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
569         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
570         dereferencing it.
571         (indirect_refs_may_alias_p): Likewise.
572
573 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
574
575         * config/sh/sh.c (sh_option_override): Make static.
576         Adjust comments.  Declare.
577         (sh_function_value_regno_p): Likewise.
578         (sh_register_move_cost): Modify the arguments, make static.
579         Adjust comments.  Declare.
580         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
581         TARGET_FUNCTION_VALUE_REGNO_P): Define.
582         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
583         REGISTER_MOVE_COST): Delete.
584         * config/sh/sh-protos.h (sh_override_options): Delete.
585         (sh_register_move_cost): Delete.
586         (sh_function_value_regno_p): Delete.
587
588 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
589
590         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
591         m32r_function_value_regno_p): New functions.
592         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
593         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
594         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
595         FUNCTION_VALUE_REGNO_P): Remove.
596
597 2010-09-04  Jan Hubicka  <jh@suse.cz>
598
599         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
600         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
601         fold_read_from_constant_string.
602
603         * gimple.h (canonicalize_constructor_val): Declare.
604         * gimple-fold.c (canonicalize_constructor_val): New function.
605         (get_symbol_constant_value):Use it.
606         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
607
608 2010-09-04  Jan Hubicka  <jh@suse.cz>
609
610         * tree-switch-conversion.c (build_one_array): Set constructor to be
611         static.
612         * varpool.c (varpool_finalize_decl): Compute const_value_known.
613
614 2010-09-04  Richard Guenther  <rguenther@suse.de>
615
616         PR bootstrap/45519
617         * tree-flow.h (force_gimple_operand_1): Declare.
618         (force_gimple_operand_gsi_1): Likewise.
619         * gimplify.c (force_gimple_operand_1): New worker taking a
620         gimple predicate for ...
621         (force_gimple_operand): ... which now wraps it.
622         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
623         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
624         last change.
625         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
626         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
627         (create_mem_ref): Likewise.
628
629 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
630
631         * config/i386/predicates.md (sse_reg_operand): New predicate.
632         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
633         predicate for operand 1.
634         (XFmode push splitter): Use fp_register_operand predicate
635         for operand 1.
636         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
637         (SF-DF float_extend push splitter): Add reload_completed insn
638         predicate.
639         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
640         MODEF mode macro.  Add reload_completed insn predicate.
641
642 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
643
644         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
645         (struct df_extract_ref): Remove.
646         (union df_ref_d): Remove extract_ref member.
647         (df_ref_create): Remove last three arguments.
648         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
649         * df-scan.c (df_ref_record): Remove last three arguments, do not
650         pass them to df_ref_create_structure.
651         (df_uses_record): Remove first and last three arguments.  Replace
652         first argument with DF_REF_REGULAR, adjust calls to remove the
653         width, offset and mode.  Always call recursively on the second
654         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
655         (df_ref_create_structure): Remove first argument.
656         (struct df_scan_problem_data): Remove ref_extract_pool.
657         (df_scan_free_internal): Do not free it.
658         (df_scan_alloc): Do not allocate it.
659         (df_ref_create): Remove last three arguments, do not pass them to
660         df_ref_create_structure.
661         (df_free_ref): Remove DF_REF_EXTRACT case.
662         (df_notes_rescan): Adjust call to df_uses_record.
663         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
664         Remove DF_REF_EXTRACT case.
665         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
666         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
667         and SUBREG definitions.
668         (df_get_conditional_uses): Remove references to width/offset/mode,
669         adjust call to df_ref_create_structure.
670         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
671         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
672         calls to df_uses_record and df_ref_record.
673         * fwprop.c (update_df): Remove references to width/offset/mode,
674         adjust call to df_ref_create.
675
676 2010-09-03  Jan Hubicka  <jh@suse.cz>
677
678         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
679         (build_cdtor_fns): Update use of build_cdtor.
680
681 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
682
683         * doc/options.texi (SeparateAlias): Document.
684         * opt-functions.awk (switch_flags): Handle SeparateAlias.
685         * opth-gen.awk: Generate enumeration names for options marked
686         SeparateAlias, but not for those marked Ignore.
687         * opts-common.c (generate_canonical_option): Don't output separate
688         argument for options marked CL_SEPARATE_ALIAS.
689         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
690         * opts.h (CL_SEPARATE_ALIAS): New.
691         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
692         CL_COMMON): Adjust definitions.
693         * config/i386/darwin.opt, config/mips/sde.opt: New.
694         * common.opt (fdump-final-insns): New.
695         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
696         i386/darwin.opt.
697         (mips*-sde-elf*): Add mips/sde.opt.
698         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
699         -mno-data-in-code and -mcode-xonly here.
700         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
701         * gcc.c (option_map): Add "j" to --dump entry.
702         (translate_options): Don't translate -d to -foutput-class-dir= here.
703
704 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
705
706         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
707         DR_IS_WRITE.
708         (compute_all_dependences): Same.
709         (create_rdg_edge_for_ddr): Same.
710         * tree-data-ref.h (DR_IS_WRITE): New.
711         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
712         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
713         (write_memrefs_written_at_least_once): Same.
714         * tree-predcom.c (suitable_component_p): Same.
715         (determine_roots_comp): Same.
716         (execute_load_motion): Same.
717         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
718         (vect_enhance_data_refs_alignment): Same.
719         (vect_analyze_group_access): Same.
720
721 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
722
723         PR testsuite/42843
724         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
725         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
726
727 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
728
729         * dwarf2out.c (file scope): Remove #if0'd code.
730         (gen_subprogram_die): Same.
731
732 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
733
734         PR middle-end/45484
735         * dwarf2out.c (flush_queued_reg_saves): Rename to...
736         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
737         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
738         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
739         * config/i386/i386.c (output_set_got): Call it.
740
741 2010-09-03  Michael Matz  <matz@suse.de>
742
743         PR middle-end/45415
744         * tree-sra.c (sra_modify_assign): If we modify the statement,
745         say so.
746
747         * tree-ssa.c (verify_ssa): Check number of operands and links
748         per statement to agree.
749
750 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
751             Iain Sandoe  <iains@gcc.gnu.org>
752
753         PR target/45476
754         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
755         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
756         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
757
758 2010-09-03  Richard Guenther  <rguenther@suse.de>
759
760         * lto-streamer-out.c (output_function): Output function
761         start and end loci.
762         * lto-streamer-in.c (input_function): Input function start
763         and end loci.
764
765 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
766
767         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
768         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
769         * configure: Regenerate.
770         * aclocal.m4: Regenerate.
771
772 2010-09-03  Jan Hubicka  <jh@suse.cz>
773
774         PR lto/44812
775         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
776         on functions/variables in other partition.
777
778 2010-09-03  Jan Hubicka  <jh@suse.cz>
779
780         * cgraph.h (struct varpool_node): Add const_value_known.
781         (varpool_decide_const_value_known): Declare.
782         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
783         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
784         (input_varpool_node): Restore const_value_known.
785         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
786         initializer folding.
787         * ipa.c (ipa_discover_readonly_nonaddressable_var,
788         function_and_variable_visibility): Compute const_value_known.
789         * gimple-fold.c (get_symbol_constant_value): Use varpool for
790         initializer folding.
791         * varpool.c (varpool_decide_const_value_known): New function.
792
793 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
794
795         * config/i386/i386.md: Remove empty preparation statements
796         from splitters.
797
798 2010-09-03  Jan Hubicka  <jh@suse.cz>
799
800         * passes.c (rest_of_decl_compilation): Do not add local vars into
801         varpool.
802         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
803         static or extern vars are in varpool.
804         (varpool_finalize_decl): Sanity check that only static vars are
805         finalized.
806
807 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
808
809         PR debug/45500
810         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
811         not just generic vectors with BLKmode.
812
813 2010-09-03  Richard Guenther  <rguenther@suse.de>
814
815         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
816         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
817         * tree.h (TMR_SYMBOL): Remove.
818         (TMR_BASE, TMR_OFFSET): Adjust.
819         (TMR_INDEX2): New.
820         * alias.c (ao_ref_from_mem): Use TMR_BASE.
821         * builtins.c (get_object_alignment): Merge TMR_BASE and
822         TMR_SYMBOL handling.
823         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
824         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
825         handling.  Also allow TARGET_MEM_REF as base address.
826         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
827         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
828         base.  Gimplify TMR_INDEX2.
829         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
830         * tree-dfa.c (get_ref_base_and_extent): Likewise.
831         (get_addr_base_and_unit_offset): Likewise.
832         * tree-eh.c (tree_could_trap_p): Likewise.
833         * tree-pretty-print.c (dump_generic_node): Likewise.
834         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
835         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
836         base to index2.
837         (get_address_description): Reconstruct addres description
838         from merged TMR_BASE and TMR_INDEX2.
839         (maybe_fold_tmr): Fold propagated addresses.
840         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
841         MEM_REF and TARGET_MEM_REF paths.
842         (indirect_refs_may_alias_p): Likewise.
843         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
844         instead of TMR_SYMBOL.
845         * tree-ssa-operands.c (get_tmr_operands): Simplify.
846         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
847         according to changes ...
848         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
849         Split TARGET_MEM_REF into two fields plus the base.
850         * tree.c (mem_ref_offset): Simplify.
851         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
852         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
853         Strip NOPs when folding MEM_REF addresses.
854         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
855         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
856         (fold_gimple_assign): ... not here.
857
858 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
859
860         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
861         * config/mips/mips.c (mips_shift_truncation_mask): New function.
862         (TARGET_SHIFT_TRUNCATION_MASK): Define.
863
864 2010-09-02  Richard Henderson  <rth@redhat.com>
865
866         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
867         instead of readelf in the test.
868         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
869         in the .debug_frame section for coff targets.
870         * configure: Rebuild.
871
872 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
873
874         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
875         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
876         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
877         (m32c_class_likely_spilled_p): Make static. Change argument type to
878         reg_class_t. Change result type to bool.
879
880 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
881
882         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
883         to convert (double)(long) into a single FRIZ instruction or not
884         when -ffast-math is used.
885
886         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
887         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
888         or FRIZ instruction if -ffast-math.
889         * config/rs6000/rs6000.md (friz): Ditto.
890
891         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
892
893 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
894
895         * opth-gen.awk (quote, comma): Remove unused variables.
896
897 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
898
899         * arm.c (arm_override_options): Correct fall-back code to use
900         SUBTARGET_CPU_DEFAULT.
901
902 2010-09-02  Julian Brown  <julian@codesourcery.com>
903
904         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
905         unspecs.
906         (vcond<mode>, vcondu<mode>): New expanders.
907         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
908         comparisons with zero.
909         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
910         * config/arm/constraints.md (Dz): New constraint.
911
912 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
913
914         * target.def (class_likely_spilled_p): New hook.
915         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
916         * doc/tm.texi: Regenerate.
917         * targhooks.c (default_class_likely_spilled_p): New function.
918         * targhooks.h (default_class_likely_spilled_p): Declare.
919         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
920         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
921         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
922         Use fixed_reg_set instead of fixed_regs.
923         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
924         * calls.c (avoid_likely_spilled_reg): Ditto.
925         * ira-conflicts.c (ira_build_conflicts): Ditto.
926         * ira.c (update_equiv_regs): Ditto.
927         * mode-switching.c (create_pre_exit): Ditto.
928         * regmove.c (find_matches): Ditto.
929         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
930         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
931         (small_register_class_p): New inline function.
932         (push_secondary_reload, find_reusable_reload, find_reloads): Use
933         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
934
935         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
936         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
937         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
938
939 2010-09-02  Richard Guenther  <rguenther@suse.de>
940
941         PR tree-optimization/44937
942         PR tree-optimization/45412
943         * ipa-split.c (split_function): Properly remove PHI nodes.
944
945 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
946
947         * opts.h (struct cl_option): Add warn_message field.
948         (struct cl_decoded_option): Add warn_message field.
949         * doc/options.texi (Ignore, Warn): Document.
950         * opt-functions.awk (needs_state_p): Don't consider aliases or
951         ignored options to need state saved.
952         * optc-gen.awk: Handle Warn and Ignore.
953         * opth-gen.awk: Output OPT_SPECIAL_ignore.
954         * opts-common.c (decode_cmdline_option): Set warn_message field.
955         Handle ignored options.
956         (decode_cmdline_options_to_array, generate_option,
957         generate_option_input_file): Set warn_message field.
958         (read_cmdline_option): Generate warnings from warn_message field.
959         Handle ignored options.
960         * common.opt (Wunreachable-code, fargument-alias,
961         fargument-noalias, fargument-noalias-global,
962         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
963         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
964         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
965         ftree-salias): Mark Ignore.
966         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
967         -mintel-syntax and -mno-intel-syntax here.
968         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
969         using Warn.
970         * opts.c (common_handle_option): Don't handle options marked as
971         ignored.
972         (enable_warning_as_error): Handle ignored options.
973
974 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
975
976         PR driver/44076
977         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
978         alias_target fields.
979         * opt-functions.awk (opt_sanitized_name): Don't handle
980         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
981         * optc-gen.awk: Generate alias fields.
982         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
983         Don't generate such constants for aliases.
984         * opts-common.c (generate_canonical_option): New.
985         (decode_cmdline_option): Handle aliases.  Use
986         generate_canonical_option for known options instead of copying the
987         input option text.
988         * doc/options.texi (Alias): Document.
989         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
990         fstack-check, specs): Mark as aliases.
991         * gcc.c (driver_handle_option): Canonicalize -L options to joined
992         arguments.
993         (driver_handle_option): Don't handle OPT_specs.
994         * opts.c (common_handle_option): Don't handle options marked as
995         aliases.
996         (enable_warning_as_error): Handle aliases.
997         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
998         OPT_Wlarger_than_eq.
999         * tree-optimize.c (tree_rest_of_compilation): Use
1000         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
1001
1002 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1003
1004         * config/i386/i386.md (nonmemory_operand): New mode attribute.
1005         (push memory peephole2): Macroize peepholes using SWI mode iterator.
1006         (move immediate to memory peephole2): Macroize peepholes using
1007         SWI124 mode iterator.
1008         (non-pairable NOT peephole2): Macroize peepholes using SWI124
1009         mode iterator.
1010         (simple lea add peephole2): Macroize peepholes using SWI48
1011         mode iterator.
1012         (simple lea mult peephole2): Ditto.
1013         (imul by 3,5,9 to lea peephole2): Ditto.
1014         (mov $-1, reg peephole2): Macroize peepholes using SWI248
1015         mode iterator.
1016         (imul $32bit_imm,mem,reg peephole2): Ditto.
1017         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
1018
1019 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
1020
1021         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
1022
1023 2010-09-02  Olivier Hainque  <hainque@adacore.com>
1024
1025         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
1026         (allocno_priority_compare_func): Use it instead of a straight
1027         difference computation over priorities.
1028
1029 2010-09-02  Andi Kleen  <ak@linux.intel.com>
1030
1031         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
1032
1033 2010-09-02  Ira Rosen  <irar@il.ibm.com>
1034
1035         * tree-vectorizer.h (get_later_stmt): New function.
1036         (vect_analyze_data_ref_dependences): Add argument.
1037         * tree-vect-loop.c (vect_analyze_loop): Update call to
1038         vect_analyze_data_ref_dependences.
1039         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
1040         New function.
1041         (vect_analyze_data_ref_dependence): Add argument for basic block
1042         dependencies. Check dependencies in basic block vectorization.
1043         (vect_analyze_data_ref_dependences): Add argument and update call to
1044         vect_analyze_data_ref_dependences.
1045         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
1046         (vect_bb_vectorizable_with_dependencies): New.
1047         (vect_slp_analyze_bb): Check dependencies in basic block.
1048         (vect_schedule_slp_instance): Insert stores before the last store in
1049         SLP instance.
1050
1051 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1052
1053         PR target/45476
1054         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
1055         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1056
1057 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
1058
1059         PR middle-end/45458
1060         * bb-reorder.c (add_labels_and_missing_jumps): Treat
1061         bbs ending with throwing insns like blocks ending with a call.
1062         (fix_up_fall_thru_edges): Likewise.
1063
1064 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
1065
1066         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
1067         (m32c_function_arg_advance): Delete.
1068         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1069         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
1070         comments.  Take a const_tree and a bool.  Declare.
1071         (m32c_function_arg_advance): Likewise.
1072         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1073
1074 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1075
1076         PR target/45476
1077         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
1078         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
1079         * config/i386/mingw32.h: ... here.
1080
1081 2010-09-01  Andi Kleen  <ak@linux.intel.com>
1082
1083         PR lto/45475
1084         * lto-streamer-in.c (lto_input_ts_target_option): Add.
1085         (lto_input_tree_pointers): Call lto_input_ts_target_option.
1086         * lto-streamer-out (lto_output_ts_target_option): Add.
1087         (lto_output_tree_pointers): Call lto_output_ts_target_option.
1088
1089 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
1090
1091         PR/target 45452
1092         * config/i386/cygwin.h: Change order of specified import libraries.
1093         * config/i386/mingw32.h: Likewise.
1094         * config/i386/t-cygwin: Likewise.
1095         * config/i386/t-mingw32: Likewise.
1096         * config/i386/t-mingw-w32: Likewise.
1097         * config/i386/t-mingw-w64: Likewise.
1098
1099 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1100
1101         * config/arm/neon-schedgen.ml (core): New type.
1102         (allCores): List of supported cores.
1103         (availability_table): Add supported cores.
1104         (collate_bypasses): Accept core as a parameter.
1105         (worst_case_latencies_and_bypasses): Accept core as a parameter.
1106         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
1107         and coreStr to get tune attribute and prefix for functional units.
1108         (emit_bypasses): Accept core name and use it.
1109         (calculate_per_core_availability_table): New.
1110         (filter_core): New.
1111         (calculate_core_availability_table): New.
1112         (main): Use calculate_core_availablity_table.
1113         * config/arm/cortex-a8-neon.md: Update copyright year.
1114         Regenerated from ml file and merged in.
1115         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
1116         cortex_a8_neon_mrc.
1117
1118 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
1119
1120         * Makefile.in (tree-switch-conversion.o): Update dependencies.
1121
1122 2010-09-01  Richard Guenther  <rguenther@suse.de>
1123
1124         * alias.c (ao_ref_from_mem): Adjust.
1125         * builtins.c (get_object_alignment): Likewise.
1126         * cfgexpand.c (expand_debug_expr): Likewise.
1127         * gimple.c (get_base_address): Likewise.
1128         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1129         (get_addr_base_and_unit_offset): Likewise.  Fix for
1130         both TMR_SYMBOL and TMR_BASE being set.
1131         * tree-eh.c (tree_could_trap_p): Likewise.
1132         * gimplify.c (gimplify_expr): Do not attempt to gimplify
1133         TMR_SYMBOL.  Always gimplify TMR_BASE.
1134         * tree-cfg.c (verify_types_in_gimple_reference): Verify
1135         TMR_BASE if there is a TMR_SYMBOL.
1136         * tree-pretty-print.c (dump_generic_node): Adjust.
1137         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
1138         (tree_mem_ref_addr): Likewise.
1139         (create_mem_ref_raw): Likewise.
1140         (move_fixed_address_to_symbol): Likewise.
1141         (create_mem_ref): Likewise.
1142         (dump_mem_address): Likewise.
1143         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
1144         Fix for both TMR_SYMBOL and TMR_BASE being set.
1145         (indirect_refs_may_alias_p): Likewise.
1146         * tree-ssa-operands.c (get_tmr_operands): Adjust.
1147         * tree.def (TARGET_MEM_REF): Adjust documentation.
1148
1149 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1150
1151         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
1152         Rename from X86_TUNE_ADD_ESP_4.
1153         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
1154         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
1155         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
1156         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
1157         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
1158         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
1159         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
1160         * config/i386/i386.c (initial_ix86_tune_features)
1161         <X86_TUNE_SINGLE_POP>: Invert members.
1162         <X86_TUNE_DOUBLE_POP>: Ditto.
1163         <X86_TUNE_SINGLE_PUSH>: Ditto.
1164         <X86_TUNE_DOUBLE_PUSH>: Ditto.
1165         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
1166         No longer exported.
1167         (push peephole2 patterns): Macroize peepholes using P mode iterator.
1168         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
1169         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
1170         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
1171
1172 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1173
1174         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
1175         a volatile LHS if the constructor has only one element.
1176
1177 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
1178
1179         PR bootstrap/45321
1180         * tree.c (stdarg_p): Make fntype parameter const.
1181         * tree.h (stdarg_p): Likewise.
1182         (function_args_iterator): Remove unused fntype field.
1183         (function_args_iter_init): Do not initialize fntype
1184         field.  Make fntype parameter const.
1185
1186 2010-09-01  Richard Guenther  <rguenther@suse.de>
1187
1188         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
1189         estimate.
1190         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
1191         (execute_vrp): Compute number of iteration estimates.
1192         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
1193         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
1194         * tree-data-ref.c (estimated_loop_iterations): Adjust.
1195         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1196         Infer loop bounds from undefined behavior based on a new parameter.
1197         (estimate_numbers_of_iterations): Likewise.
1198         (scev_probably_wraps_p): Adjust.
1199         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
1200
1201 2010-09-01  Nick Clifton  <nickc@redhat.com>
1202
1203         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
1204         where appropriate.
1205         (xstormy16_legitimate_address_p): Use true and false instead of 1
1206         and 0.
1207         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
1208         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
1209         magic constant 2.
1210         (xstormy16_expand_call): Fix comment at start of function.
1211
1212 2010-09-01  Nick Clifton  <nickc@redhat.com>
1213
1214         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
1215         when pushing accumulator register.
1216         (rx_get_stack_layout): Always save call clobbered registers inside
1217         interrupt handlers.
1218         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
1219
1220 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1221
1222         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
1223         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1224
1225         * libgcc-std.ver (GCC_4.6.0): Define version.
1226
1227 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1228
1229         * tree-nested.c (convert_all_function_calls): Iterate until after the
1230         sum of static chains in the nest doesn't change.
1231
1232 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
1233
1234         * config/m32c/m32c.c (classes_intersect): Remove.
1235         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
1236         reg_classes_intersect_p instead of classes_intersect.
1237         (class_can_hold_mode): Change arguments type from enum reg_class to
1238         reg_class_t.  Use reg_class_contents instead of class_contents.
1239         (m32c_register_move_cost): Make static. Change arguments type from
1240         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
1241         classes_intersect. Use reg_class_contents instead of class_contents.
1242         (m32c_memory_move_cost): Make static. Change arguments type from
1243         enum reg_class to reg_class_t.
1244         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1245         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1246         * config/m32c/m32c-protos.h (m32c_register_move_cost,
1247         m32c_memory_move_cost): Remove.
1248
1249 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1250
1251         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
1252         (arm_function_arg): Delete.
1253         (arm_needs_doubleword_align): Take a const_tree.
1254         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1255         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
1256         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
1257         (arm_function_arg): Make static.  Take a const_tree and a bool.
1258         (arm_function_arg_advance): Likewise.
1259         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1260
1261 2010-08-31  Andi Kleen  <ak@linux.intel.com>
1262
1263         * common.opt (fwhopr=): Update for -fwhopr=jobserver
1264         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
1265         * lto-wrapper.c (run_gcc): Add jobserver mode.
1266         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
1267         argument.
1268
1269 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
1270
1271         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
1272         (popsi1): Ditto.
1273         (*popdi1_epilogue): Ditto.
1274         (*popsi1_epilogue): Ditto.
1275         (popsi, popdi peephole2 patterns): Update peepholes for changed
1276         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
1277
1278         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
1279         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
1280
1281         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
1282         (override_options): Do not initialize removed ix86_gen_pop1.
1283         (gen_pop): New static function.
1284         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
1285         (release_scratch_register_on_entry): Ditto.
1286         (ix86_restore_reg_using_pop): Ditto.
1287         (ix86_expand_epilogue): Ditto.
1288
1289 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
1290
1291         PR middle-end/45461
1292         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
1293
1294 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1295
1296         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
1297         semicolons.
1298
1299 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1300
1301         * doc/extend.texi: Fix documentation of the return value of
1302         __builtin_choose_expr.
1303
1304 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1305
1306         * config/v850/v850-protos.h (function_arg): Delete.
1307         * config/v850/v850.h (FUNCTION_ARG): Delete.
1308         (FUNCTION_ARG_ADVANCE): Move code to...
1309         * config/v850/v850.c (v850_function_arg_advance): ...here.
1310         (v850_function_arg): Make static.  Take a const_tree and a bool.
1311         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1312
1313 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1314
1315         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
1316         these...
1317         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1318         ...and these...
1319         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
1320         ..to here..
1321         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1322         ...and here.
1323         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1324
1325 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1326
1327         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
1328         Delete.
1329         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1330         * config/rx/rx.c (rx_function_arg_size): Make static.
1331         (rx_function_arg): Likewise.
1332         (rx_function_arg_advance): New function.
1333         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1334
1335 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
1336
1337         * config/arm/arm.c (arm_override_options): Remove superfluous test.
1338         Fix indentation.
1339
1340 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1341
1342         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
1343         (dwarf2out_decl) <CONST_DECL>: Likewise.
1344
1345 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
1346
1347         Stack usage support
1348         * common.opt (-fstack-usage): New option.
1349         * doc/invoke.texi (Debugging options): Document it.
1350         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
1351         allocate_dynamic_stack_space.
1352         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
1353         and propagate it to allocate_dynamic_stack_space.
1354         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
1355         * calls.c (initialize_argument_information): Pass TRUE as 4th
1356         argument to allocate_dynamic_stack_space.
1357         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
1358         to 1 when pushing a variable-sized argument onto the stack.  Pass
1359         TRUE as 4th argument to allocate_dynamic_stack_space.
1360         Update current_function_pushed_stack_size.
1361         (emit_library_call_value_1): Likewise.
1362         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
1363         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
1364         attempt to find an upper bound.  Remove redundant code for the
1365         SETJMP_VIA_SAVE_AREA case.
1366         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
1367         * function.h (struct stack_usage): New structure.
1368         (current_function_static_stack_size): New macro.
1369         (current_function_dynamic_stack_size): Likewise.
1370         (current_function_pushed_stack_size): Likewise.
1371         (current_function_dynamic_alloc_count): Likewise.
1372         (current_function_has_unbounded_dynamic_stack_size): Likewise.
1373         (current_function_allocates_dynamic_stack_space): Likewise.
1374         (struct function): Add new field 'su'.
1375         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
1376         add the value of the dynamic offset to the dynamic stack usage.
1377         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
1378         for variable-sized objects.
1379         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
1380         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
1381         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
1382         BUILT_IN_ALLOCA for variable-sized objects.
1383         * output.h (output_stack_usage): Declare.
1384         * toplev.c (stack_usage_file): New file pointer.
1385         (output_stack_usage): New function.
1386         (open_auxiliary_file): Likewise.
1387         (lang_dependent_init): Open file if flag_stack_usage is set.
1388         (finalize): Close file if stack_usage_file is not null.
1389         * tree.h (ALLOCA_FOR_VAR_P): New macro.
1390         * config/alpha/alpha.c (compute_frame_size): New function.
1391         (alpha_expand_prologue): Use it.
1392         (alpha_start_function): Likewise.
1393         (alpha_expand_epilogue): Likewise.  Set stack usage info.
1394         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1395         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1396         * config/mips/mips.c (mips_expand_prologue): Likewise.
1397         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1398         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1399         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1400
1401 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
1402
1403         PR tree-optimization/45427
1404         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
1405         Handle the case that the exit is never taken correctly.
1406         (number_of_iterations_ne): Pass exit_must_be_taken to
1407         number_of_iterations_ne_max.
1408
1409 2010-08-30  Catherine Moore  <clm@codesourcery.com>
1410
1411         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
1412         Infer -mdspr2 for the the 74K.
1413
1414 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
1415
1416         PR debug/45419
1417         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
1418
1419         PR middle-end/45423
1420         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
1421         and TRUTH_{AND,OR,XOR}_EXPR.
1422         * c-parser.c (c_parser_omp_atomic): Handle boolean
1423         {PRE,POST}_{INC,DEC}REMENT.
1424
1425 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
1426
1427         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
1428         (function_arg): Delete.
1429         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1430         (FUNCTION_INCOMING_ARG): Delete.
1431         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
1432         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
1433         and a bool.
1434         (function_arg): Rename to...
1435         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
1436         a bool.
1437         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
1438         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1439         (TARGET_FUNCTION_INCOMING_ARG): Define.
1440
1441 2010-08-30  Richard Guenther  <rguenther@suse.de>
1442
1443         PR tree-optimization/21602
1444         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
1445         using points-to information.
1446
1447 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1448
1449         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
1450
1451 2010-08-30  Richard Guenther  <rguenther@suse.de>
1452
1453         PR tree-optimization/45449
1454         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
1455         variables.
1456
1457 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
1458
1459         * opts.h (CL_ERR_NEGATIVE): Define.
1460         * opts.c (unknown_option_callback): Don't postpone warnings for
1461         options marked with CL_ERR_NEGATIVE.
1462         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
1463         for negative versions of CL_REJECT_NEGATIVE options.
1464
1465 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
1466
1467         * config/i386/i386.md (zero_extendsidi2_1): Rename from
1468         zero_extendsidi2_32.
1469         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
1470         using SWI12 mode iterator.
1471         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
1472         to define_insn_and_split pattern.
1473         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
1474         using SWI24 mode iterator.
1475         (*zero_extendqi<mode>2_and): Macroize insn from
1476         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
1477         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
1478         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
1479         SWI24 mode iterator.
1480         (*zero_extendqi<mode>2_movzbl): Ditto from
1481         *zero_extendqi{hi,si}2_movzbl.
1482         (extendsidi2_1): Rename from extendsidi2_32.
1483         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
1484         SWI12 mode iterator.
1485
1486 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1487
1488         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
1489         general purpose registers.
1490         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
1491         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
1492         with general purpose registers and memory operands.  Add associated
1493         CCImode post-reload splitter.
1494         * config/ia64/div.md: Change BImode to CCImode throughout.
1495
1496 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
1497
1498         * config/ia64/ia64.md (cstorebi4): Fix thinko.
1499
1500 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
1501
1502         * config/picochip/picochip.c (reorder_var_tracking_notes): This
1503         function was dropping debug insns which caused PR45299.
1504
1505 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
1506
1507         * config/i386/sse.md (extsuffix): New code attribute.
1508         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
1509         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
1510         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
1511         and sse4_1_zero_extendv4qiv4si2.
1512         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
1513         and sse4_1_zero_extendv2qiv2di2.
1514         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
1515         and sse4_1_zero_extendv4hiv4si2.
1516         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
1517         and sse4_1_zero_extendv2hiv2di2.
1518         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
1519         and sse4_1_zero_extendv2siv2di2
1520
1521         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
1522         using any_extend code iterator.
1523         (*avx_<s>mulv8hi3_highpart): Macroize insn from
1524         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
1525         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
1526
1527         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
1528         gen_sse4_1_sign_extend* functions.
1529         (struct builtin_description bdesc_args): Ditto.
1530
1531 2010-08-27  Xinliang David Li  <davidxl@google.com>
1532
1533         PR/45422
1534         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
1535         (iv_ca_set_no_cp): Update used inv expr count.
1536         (iv_ca_set_cp): Ditto.
1537         (iv_ca_new): Initialize new member.
1538         (iv_ca_free): Free memory.
1539
1540 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1541
1542         * config/sh/sh-protos.h (sh_function_arg): Delete.
1543         (sh_function_arg_advance): Delete.
1544         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1545         (PASS_IN_REG_P): Eliminate cast.
1546         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
1547         const_tree and a bool.
1548         (sh_function_arg): Likewise.
1549         (sh_output_mi_thunk): Call sh_function_arg_advance) and
1550         sh_function_arg.
1551         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1552
1553 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
1554             Kaz Kojima  <kkojima@gcc.gnu.org>
1555
1556         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
1557         when possible.
1558         (sh_expand_epilogue): Likewise.
1559         * config/sh/sh.md (movml_push_banked): New insn.
1560         (movml_pop_banked): Likewise.
1561
1562 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
1563
1564         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
1565         gen_regexp_oneof, gen_regexp_sequence): Use the string found
1566         in vector element 0 rather than the original string when there's
1567         only one element.
1568         (gen_regexp): Remove extra semicolon.
1569
1570         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
1571         thumb2_movsf_vfp): Set attribute "insn".
1572         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
1573         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
1574         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
1575         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
1576         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
1577         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
1578         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
1579         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
1580         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
1581         if_not_arith, if_arith_not, cond_move_not): Likewise.
1582
1583 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1584
1585         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
1586         New declaration.
1587         (rs6000_allocate_stack_temp): Ditto.
1588         (rs6000_expand_convert_si_to_sfdf): Ditto.
1589
1590         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
1591         line.  Update the options set if power6 or power7 server/embedded
1592         type options are used.  If we give a warning for no vsx under
1593         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
1594         (rs6000_allocate_stack_temp): New function to allocate a stack
1595         tempoary and adjust the address so it meets either REG+OFFSET or
1596         REG+REG addressing requirements.
1597         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
1598         that they can be used with the LFIWAX/LFIWZX instrucitons.
1599         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
1600         converting signed/unsigned SImode to either SFmode/DFmode.
1601
1602         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
1603         whether certain instructions can be generated.
1604         (TARGET_FCTIDZ): Ditto.
1605         (TARGET_STFIWX): Ditto.
1606         (TARGET_LFIWAX): Ditto.
1607         (TARGET_LFIWZX): Ditto.
1608         (TARGET_FCFIDS): Ditto.
1609         (TARGET_FCFIDU): Ditto.
1610         (TARGET_FCFIDUS): Ditto.
1611         (TARGET_FCTIDUZ): Ditto.
1612         (TARGET_FCTIWUZ): Ditto.
1613
1614         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
1615         (UNSPEC_FCTID): Ditto.
1616         (UNSPEC_LFIWAX): Ditto.
1617         (UNSPEC_LFIWZX): Ditto.
1618         (UNSPEC_FCTIWUZ): Ditto.
1619         (rreg): Use correct constraints.
1620         (SI_CONVERT_FP): New mode attribute for floating point conversion
1621         tests.
1622         (E500_CONVERT): Ditto.
1623         (lfiwax): New insns for converting from integer to floating point
1624         utilizing newer instructions.  Attempt to optimize conversions
1625         that come from memory so that we don't load the value into a GPR,
1626         spill it to the stack and reload it into a FPR.
1627         (floatsi<mode>2_lfiwax): Ditto.
1628         (floatsi<mode>2_lfiwax_mem): Ditto.
1629         (floatsi<mode>2_lfiwax_mem2): Ditto.
1630         (lfiwzx): Ditto.
1631         (floatunssi<mode>2_lfiwzx): Ditto.
1632         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1633         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1634         (floatdidf2_mem): Ditto.
1635         (floatunsdidf2_fcfidu): Ditto.
1636         (floatunsdidf2_mem): Ditto.
1637         (floatunsdisf2): Ditto.
1638         (floatunsdisf2_fcfidus): Ditto.
1639         (floatunsdisf2_mem): Ditto.
1640         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
1641         Use FCFID on 32-bit hosts that support it.
1642         (floatsidf2_internal): Ditto.
1643         (floatunssisf2): Ditto.
1644         (floatunssidf2): Ditto.
1645         (floatunssidf2_internal): Ditto.
1646         (floatsisf2): Ditto.
1647         (floatdidf2): Ditto.
1648         (floatdidf2_fpr): Ditto.
1649         (floatunsdidf2): Ditto.
1650         (floatdisf2): Ditto.
1651         (floatdisf2_fcfids): Ditto.
1652         (floatdisf2_internal1): Ditto.
1653         (fixuns_truncsfsi2): Delete, merge into common pattern for both
1654         SF/DF.  Add power7 support.
1655         (fix_truncsfsi2): Ditto.
1656         (fixuns_truncdfsi2): Ditto.
1657         (fixuns_truncdfdi2): Ditto.
1658         (fix_truncdfsi2): Ditto.
1659         (fix_truncdfsi2_internal): Ditto.
1660         (fix_truncdfsi2_internal_gfxopt): Ditto.
1661         (fix_truncdfsi2_mfpgpr): Ditto.
1662         (fctiwz): Ditto.
1663         (btruncdf2): Ditto.
1664         (btruncdf2_fpr): Ditto.
1665         (btructsf2): Ditto.
1666         (ceildf2): Ditto.
1667         (ceildf2_fpr): Ditto.
1668         (ceilsf2): Ditto.
1669         (floordf2): Ditto.
1670         (floordf2_fpr): Ditto.
1671         (floorsf2): Ditto.
1672         (rounddf2): Ditto.
1673         (rounddf2_fpr): Ditto.
1674         (roundsf2): Ditto.
1675         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
1676         (fix_trunc<mode>di2): Ditto.
1677         (fixuns_trunc<mode>si2): Ditto.
1678         (fixuns_trunc<mode>di2): Ditto.
1679         (fctiwz_<mode>): Ditto.
1680         (btrunc<mode>2): Ditto.
1681         (btrunc<mode>2_fpr): Ditto.
1682         (ceil<mode>2): Ditto.
1683         (ceil<mode>2_fpr): Ditto.
1684         (floor<mode>2): Ditto.
1685         (float<mode>2_fpr): Ditto.
1686         (round<mode>2): Ditto.
1687         (round<mode>2_fpr): Ditto.
1688         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
1689         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1690         (fix_truncdfsi2_internal): Ditto.
1691         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
1692         converted value on stack, loaded into GPR, and then stored into
1693         the final destination.
1694         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
1695         FCTIDZ.
1696         (lrint<mode>di2): New insn, provide the lrint builtin functions.
1697         (ftruncdf2): Delete, unused.
1698         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
1699
1700         * config/rs6000/vsx.md (toplevel): Update copyright year.
1701         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
1702         (VSr3): Ditto.
1703
1704 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
1705             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1706
1707         * gengtype.c (output_type_enum): Test the right union member.
1708
1709 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
1710
1711         PR target/41484
1712         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
1713         operands for operand 1.
1714         (sse4_1_extendv4qiv4si2): Ditto.
1715         (sse4_1_extendv2qiv2di2): Ditto.
1716         (sse4_1_extendv4hiv4si2): Ditto.
1717         (sse4_1_extendv2hiv2di2): Ditto.
1718         (sse4_1_extendv2siv2di2): Ditto.
1719         (sse4_1_zero_extendv8qiv8hi2): Ditto.
1720         (sse4_1_zero_extendv4qiv4si2): Ditto.
1721         (sse4_1_zero_extendv2qiv2di2): Ditto.
1722         (sse4_1_zero_extendv4hiv4si2): Ditto.
1723         (sse4_1_zero_extendv2hiv2di2): Ditto.
1724         (sse4_1_zero_extendv2siv2di2): Ditto.
1725         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
1726         (*sse4_1_extendv4qiv4si2): Ditto.
1727         (*sse4_1_extendv2qiv2di2): Ditto.
1728         (*sse4_1_extendv4hiv4si2): Ditto.
1729         (*sse4_1_extendv2hiv2di2): Ditto.
1730         (*sse4_1_extendv2siv2di2): Ditto.
1731         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
1732         (*sse4_1_zero_extendv4qiv4si2): Ditto.
1733         (*sse4_1_zero_extendv2qiv2di2): Ditto.
1734         (*sse4_1_zero_extendv4hiv4si2): Ditto.
1735         (*sse4_1_zero_extendv2hiv2di2): Ditto.
1736         (*sse4_1_zero_extendv2siv2di2): Ditto.
1737
1738 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1739
1740         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
1741         (mips_function_arg): Delete.
1742         (mips_function_arg_boundary): Take a const_tree.
1743         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
1744         (mips_arg_info): Likewise.
1745         (mips_setup_incoming_varargs): Call mips_function_arg_advance
1746         instead of FUNCTION_ARG_ADVANCE.
1747         (mips_function_arg_advance): Adjust prototype.  Make static.
1748         (mips_function_arg): Likewise.
1749         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1750         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1751
1752 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1753
1754         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1755         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
1756         (function_arg): Delete.
1757         (function_arg_boundary): Take a const_tree.
1758         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
1759         (rs6000_spe_function_arg): Likewise.
1760         (rs6000_parm_start): Likewise.
1761         (rs6000_arg_size): Likewise.
1762         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
1763         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
1764         (rs6000_mixed_function_arg): Likewise.
1765         (function_arg): Rename to...
1766         (rs6000_function_arg): ...this.
1767         (function_arg_advance): Rename to...
1768         (rs6000_function_arg_advance_1): ...this
1769         (rs6000_function_arg_advance): New function.  Call it.
1770         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
1771         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
1772         (rs6000_function_value): Likewise.
1773         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1774
1775 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1776
1777         * config/arm/arm.md (enabled): Test the value of arch_enabled
1778         rather than just using it.
1779
1780 2010-08-27  Olivier Hainque  <hainque@adacore.com>
1781             Eric Botcazou  <ebotcazou@adacore.com>
1782
1783         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
1784         cover all the possible offsets from this base.
1785         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
1786
1787 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
1788
1789         PR tree-optimization/44485
1790         * calls.c (flags_from_decl_or_type): For const or pure
1791         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
1792         together with ECF_CONST resp. ECF_PURE.
1793         * builtins.c (expand_builtin): Use flags_from_decl_or_type
1794         instead of querying flags directly.
1795         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
1796         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
1797
1798 2010-08-26  Richard Guenther  <rguenther@suse.de>
1799
1800         PR tree-optimization/45255
1801         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
1802         and externals are also invariant.
1803
1804 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1805
1806         PR rtl-optimization/44858
1807         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
1808         newi2pat, make sure they don't affect newpat.
1809
1810         PR rtl-optimization/45400
1811         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
1812         SUBREG_REG if both modes are of MODE_INT class.
1813
1814 2010-08-25  Julian Brown  <julian@codesourcery.com>
1815
1816         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
1817         * config/arm/arm.md (generic_sched): No for Cortex-A5.
1818         (generic_vfp): Likewise.
1819         (cortex-a5.md): Include.
1820         * config/arm/cortex-a5.md: New.
1821
1822 2010-08-25  Richard Guenther  <rguenther@suse.de>
1823
1824         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
1825         * gimple.c (gimple_get_alias_set): Remove special handling
1826         for pointers.
1827
1828 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1829
1830         PR middle-end/45355
1831         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
1832         dead_or_set_p when computing i0_feeds_i2_n.
1833
1834         * combine.c (find_split_point): Undo canonicalization of multiply-add
1835         to (minus x (mult)) when it seems likely that this will increase the
1836         chances of a split.
1837
1838 2010-08-25  Richard Guenther  <rguenther@suse.de>
1839
1840         PR lto/44562
1841         * lto-streamer.c (lto_record_common_node): Do not mess with
1842         TYPE_CANONICAL when not in lto.
1843         * gimple.c (gimple_register_type): Likewise.
1844
1845 2010-08-25  Richard Guenther  <rguenther@suse.de>
1846
1847         PR tree-optimization/45316
1848         * tree-ssa-pre.c (eliminate): Properly clean EH info.
1849
1850 2010-08-25  Richard Guenther  <rguenther@suse.de>
1851
1852         PR tree-optimization/45393
1853         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
1854         and clean EH info.  Avoid SSA update.
1855         (execute_cse_sincos): Cleanup the CFG if it has changed.
1856
1857 2010-08-25  Richard Guenther  <rguenther@suse.de>
1858
1859         PR middle-end/45379
1860         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
1861         TARGET_MEM_REF in alignment computation.
1862
1863 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1864
1865         PR tree-optimization/45059
1866         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
1867         type conversions from newop{1,2}.  Assert t is a comparison and
1868         newop{1,2} after the stripping are gimple vals.
1869
1870 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
1871
1872         * config/arm/iterators.md (VU, SE, V_widen_l): New.
1873         (V_unpack, US): New.
1874         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
1875         (vec_unpack<US>_lo_<mode>): Likewise.
1876         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
1877         (neon_vec_unpack<US>_lo_<mode>): Likewise.
1878         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
1879         (vec_widen_<US>mult_hi_<mode>): Likewise.
1880         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
1881         (neon_vec_<US>mult_hi_<mode>"): Likewise.
1882         (neon_unpack<US>_<mode>): Widening move intermediate step for
1883         vectorizing without -mvectorize-with-neon-quad.
1884         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
1885         for vectorizing without -mvectorize-with-neon-quad.
1886         * config/arm/predicates.md (vect_par_constant_high): Check for
1887         high-half lanes of a vector.
1888         (vect_par_constant_low): Check for low-half lanes of a vector.
1889
1890 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1891
1892         * tree-if-conv.c (struct ifc_dr): New.
1893         (IFC_DR): New.
1894         (DR_WRITTEN_AT_LEAST_ONCE): New.
1895         (DR_RW_UNCONDITIONALLY): New.
1896         (memref_read_or_written_unconditionally): Use the cached values
1897         when possible.
1898         (write_memref_written_at_least_once): Same.
1899         (if_convertible_loop_p): Initialize and free DR->aux fields.
1900
1901 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1902
1903         * gimple.c (gimple_could_trap_p_1): Not static anymore.
1904         Pass an extra bool parameter include_mem.
1905         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
1906         (gimple_assign_rhs_could_trap_p): Same.
1907         * gimple.h (gimple_could_trap_p_1): Declared.
1908         * tree-data-ref.h (same_data_refs_base_objects): New.
1909         (same_data_refs): New.
1910         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
1911         (write_memrefs_written_at_least_once): New.
1912         (ifcvt_memrefs_wont_trap): New.
1913         (operations_could_trap): New.
1914         (ifcvt_could_trap_p): New.
1915         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
1916         Gets a vector of data refs.
1917         (if_convertible_stmt_p): Same.
1918         (if_convertible_loop_p_1): New.
1919         (if_convertible_loop_p): Call if_convertible_loop_p_1.
1920
1921 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1922
1923         * common.opt (ftree-loop-if-convert-stores): New flag.
1924         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
1925         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
1926         the created statement before GSI.
1927         (if_convertible_phi_p): Allow virtual phi nodes when
1928         flag_loop_if_convert_stores is set.
1929         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
1930         Do not handle types that do not match is_gimple_reg_type.
1931         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
1932         when flag_loop_if_convert_stores is set, as LHS can contain
1933         memory refs.
1934         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
1935         to if_convertible_gimple_assign_stmt_p.
1936         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
1937         (replace_phi_with_cond_gimple_assign_stmt): Renamed
1938         predicate_scalar_phi.  Do not handle virtual phi nodes.
1939         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
1940         Call predicate_scalar_phi.
1941         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
1942         just after the labels for flag_loop_if_convert_stores, otherwise
1943         insert the predicate in the end of the BB.
1944         (predicate_mem_writes): New.
1945         (combine_blocks): Call predicate_all_scalar_phis.  When
1946         flag_loop_if_convert_stores is set, call predicate_mem_writes.
1947         (tree_if_conversion): Call mark_sym_for_renaming when
1948         flag_loop_if_convert_stores is set.
1949         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
1950         flag_loop_if_convert_stores is set.
1951
1952 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
1953
1954         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
1955         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
1956         (pa_function_value): Make static.
1957         (override_options): Rename to...
1958         (pa_option_override): ...this. Make static.
1959         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
1960         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
1961         TARGET_OPTION_OVERRIDE): Define.
1962         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
1963         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
1964         Remove.
1965         * config/pa/pa-protos.h (override_options): Remove.
1966
1967 2010-08-24  Richard Guenther  <rguenther@suse.de>
1968
1969         PR middle-end/45379
1970         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
1971         if addr->index is NULL or zero.
1972         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
1973         TARGET_MEM_REF more properly.
1974         (indirect_ref_may_alias_decl_p): Likewise.
1975         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
1976         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
1977
1978 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
1979
1980         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
1981         (m32c_override_options): Rename to...
1982         (m32c_option_override): ...this. Make static.
1983         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
1984         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
1985         Remove.
1986         * config/m32c/m32c-protos.h (m32c_override_options,
1987         m32c_function_value_regno_p): Remove.
1988
1989 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1990
1991         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
1992         Fix a typo in a previous commit.
1993
1994 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
1995
1996         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
1997         Pre-initialize innerloop_iters to one.
1998
1999 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2000
2001         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
2002         existing static function global.
2003
2004         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
2005         is changed to global.
2006
2007         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
2008         may_be_nonaddressable_p on base, and don't collect this reference
2009         if the address of the base could not be taken.
2010
2011 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2012
2013         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
2014         enable the compiler to autovectorize mathmetical functions for
2015         power7 using the Mathematical Acceleration Subsystem library.
2016
2017         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
2018         handle which vector math library we have.
2019         (rs6000_override_options): Add -mveclibabi=mass support.
2020         (rs6000_builtin_vectorized_libmass): New function to handle auto
2021         vectorizing math functions that are in the MASS library.
2022         (rs6000_builtin_vectorized_function): Call it.
2023
2024         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2025         -mveclibabi=mass.
2026
2027 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2028
2029         PR boehm-gc/34544
2030         * gthr-posix.h (__gthread_active_init): Delete.
2031         (__gthread_active_p): Do activity check here.
2032         Don't include errno.h on hppa-hpux.  Update comment.
2033         * gthr-posix95.h (__gthread_active_init): Delete.
2034         (__gthread_active_p): Do activity check here.
2035         Don't include errno.h on hppa-hpux.  Update comment.
2036         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
2037         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
2038         add -lpthread when -mt or -pthread is specified.
2039         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
2040         (LINK_GCC_C_SEQUENCE_SPEC): Define.
2041         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
2042         (stublib.c, pthread_default_stacksize_np-stub.o,
2043         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
2044         $(T)libgcc_stub.a): Add methods.
2045         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
2046         (stublib.c, pthread_default_stacksize_np-stub.o,
2047         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
2048         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2049         pthread_mutex_unlock): New stubs.
2050
2051 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
2052
2053         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
2054         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
2055         options.
2056         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
2057         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
2058         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
2059         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
2060         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
2061         "-l".
2062         * cppspec.c: Include opts.h.
2063         (lang_specific_driver): Use cl_decoded_option structures.
2064         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
2065         * doc/tm.texi: Regenerate.
2066         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
2067         (driver_handle_option): Allow driver options needing no special
2068         processing.
2069         (process_command): Decode options before call to
2070         lang_specific_driver.  Pass decoded options to
2071         lang_specific_driver.
2072         * gcc.h (lang_specific_driver): Update prototype.
2073         * gccspec.c: Include opts.h.
2074         (lang_specific_driver): Use cl_decoded_option structures.
2075         * opts-common.c (option_ok_for_language, generate_option,
2076         generate_option_input_file): New.
2077         (decode_cmdline_option): Use option_ok_for_language.
2078         (decode_cmdline_options_to_array): Use generate_option_input_file.
2079         (handle_generated_option): Use generate_option.
2080         * opts.h (generate_option, generate_option_input_file): Declare.
2081
2082 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
2083
2084         * config/mips/mips.c (mips_override_options): Rename to...
2085         (mips_option_override): ...this. Make static.
2086         (TARGET_OPTION_OVERRIDE): Define.
2087         (mips_in_small_data_p): Update comment.
2088         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
2089         (FIXED_REGISTERS): Update comment.
2090         * config/mips/mips-protos.h (mips_override_options): Remove.
2091
2092 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2093
2094         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
2095
2096 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2097
2098         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
2099         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
2100
2101 2010-08-20  Jan Hubicka  <jh@suse.cz>
2102
2103         * tree-pass.h (pass_ipa_cdtor_merge): New function.
2104         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
2105         heap allocated.
2106         (record_cdtor_fn): Move to ipa.c; do not test for
2107         have_ctors_dtors.
2108         (build_cdtor): Move to ipa.c; add code avoiding construction
2109         when target have ctors/dtors and there is only one ctor/dtor at given
2110         priority.
2111         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
2112         sort; reverse order of constructors.
2113         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
2114         (cgraph_finalize_function): Do not call record_cdtor_fn.
2115         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
2116         (cgraph_build_static_cdtor): Move to ipa.c.
2117         * ipa.c: Include target.h and tree-iterator.h.
2118         (cgraph_build_static_cdtor, static_ctors, static_dtors,
2119         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
2120         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
2121         pass_ipa_cdtor_merge): New.
2122         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
2123         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
2124         bounds access.
2125
2126 2010-08-20  Jan Hubicka  <jh@suse.cz>
2127
2128         PR c++/45307
2129         PR c++/17736
2130         * cgraph.h (cgraph_only_called_directly_p,
2131         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
2132         static cdtors.
2133         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
2134         are not needed.
2135         (cgraph_finalize_function): Static cdtors are reachable.
2136         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
2137
2138 2010-08-20  Jan Hubicka  <jh@suse.cz>
2139
2140         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
2141         flag_wpa.
2142         * lto-streamer-out.c (lto_output): Likewise.
2143         * passes.c (ipa_write_optimization_summaries): Initialize statement
2144         uids.
2145
2146 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2147
2148         * tree.h (alias_diag_flags): New enum.
2149         (alias_pair): Add an 'emitted_diags' field.
2150         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
2151         (assemble_alias): Initialize emitted_diags of new pairs.
2152
2153 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
2154
2155         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2156         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2157         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2158         (STACK_CHECK_PROTECT): Define.
2159         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
2160         (output_probe_stack_range): Likewise.
2161         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
2162         builtin stack checking is enabled.
2163         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
2164         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2165         (probe_stack_range): New insn.
2166
2167 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2168
2169         PR target/45336
2170         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
2171         short first.
2172
2173         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
2174         char first.
2175
2176 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2177
2178         PR target/45336
2179         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
2180         to cover zero extension into 64-bit register.
2181         (*sse2_pextrw): Likewise.
2182         (*sse4_1_pextrd_zext): New insn.
2183
2184 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2185
2186         revert r163410, partially revert r163267.
2187         * config/rs6000/darwin.h (LIB_SPEC): Remove.
2188         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
2189         Darwin versions.
2190
2191 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2192
2193         PR middle-end/44974
2194         * builtins.c (expand_builtin): Don't optimize away
2195         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
2196
2197 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
2198
2199         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
2200         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
2201         alternative 1 of operand 2.
2202
2203 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2204             Paolo Bonzini  <bonzini@gnu.org>
2205
2206         * simplify-rtx.c (simplify_unary_operation_1): Optimize
2207         (sign_extend (zero_extend (...)) and
2208         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
2209
2210 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2211
2212         PR rtl-optimization/45353
2213         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
2214         after bb_note is a BARRIER.
2215
2216 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2217
2218         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
2219         linking libgcc.a.
2220
2221 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2222             Michael Matz  <matz@suse.de>
2223
2224         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
2225
2226 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2227
2228         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
2229         (ggc_mark_roots): ...here.
2230
2231 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2232
2233         * vec.h (FOR_EACH_VEC_ELT): Define.
2234         * c-decl.c: Use it.
2235         * cfgloop.c: Likewise.
2236         * cfgloopmanip.c: Likewise.
2237         * cgraph.c: Likewise.
2238         * cgraphunit.c: Likewise.
2239         * combine.c: Likewise.
2240         * config/bfin/bfin.c: Likewise.
2241         * config/mips/mips.c: Likewise.
2242         * config/rs6000/rs6000.c: Likewise.
2243         * dbxout.c: Likewise.
2244         * df-scan.c: Likewise.
2245         * dominance.c: Likewise.
2246         * dse.c: Likewise.
2247         * dwarf2out.c: Likewise.
2248         * except.c: Likewise.
2249         * expr.c: Likewise.
2250         * function.c: Likewise.
2251         * gcse.c: Likewise.
2252         * genattr.c: Likewise.
2253         * ggc-common.c: Likewise.
2254         * gimplify.c: Likewise.
2255         * graphite-blocking.c: Likewise.
2256         * graphite-clast-to-gimple.c: Likewise.
2257         * graphite-dependences.c: Likewise.
2258         * graphite-interchange.c: Likewise.
2259         * graphite-poly.c: Likewise.
2260         * graphite-scop-detection.c: Likewise.
2261         * graphite-sese-to-poly.c: Likewise.
2262         * graphite.c: Likewise.
2263         * haifa-sched.c: Likewise.
2264         * ifcvt.c: Likewise.
2265         * implicit-zee.c: Likewise.
2266         * ipa-prop.c: Likewise.
2267         * ipa-struct-reorg.c: Likewise.
2268         * ipa.c: Likewise.
2269         * ira-build.c: Likewise.
2270         * ira-color.c: Likewise.
2271         * ira-emit.c: Likewise.
2272         * lambda-code.c: Likewise.
2273         * loop-invariant.c: Likewise.
2274         * loop-unroll.c: Likewise.
2275         * lower-subreg.c: Likewise.
2276         * lto-cgraph.c: Likewise.
2277         * lto-opts.c: Likewise.
2278         * lto-streamer-in.c: Likewise.
2279         * lto-streamer-out.c: Likewise.
2280         * lto-streamer.c: Likewise.
2281         * lto-symtab.c: Likewise.
2282         * matrix-reorg.c: Likewise.
2283         * opts.c: Likewise.
2284         * predict.c: Likewise.
2285         * print-tree.c: Likewise.
2286         * sdbout.c: Likewise.
2287         * sel-sched-dump.c: Likewise.
2288         * sel-sched-ir.c: Likewise.
2289         * sel-sched.c: Likewise.
2290         * sese.c: Likewise.
2291         * stor-layout.c: Likewise.
2292         * tree-cfg.c: Likewise.
2293         * tree-cfgcleanup.c: Likewise.
2294         * tree-chrec.c: Likewise.
2295         * tree-data-ref.c: Likewise.
2296         * tree-emutls.c: Likewise.
2297         * tree-inline.c: Likewise.
2298         * tree-into-ssa.c: Likewise.
2299         * tree-loop-distribution.c: Likewise.
2300         * tree-loop-linear.c: Likewise.
2301         * tree-mudflap.c: Likewise.
2302         * tree-outof-ssa.c: Likewise.
2303         * tree-parloops.c: Likewise.
2304         * tree-predcom.c: Likewise.
2305         * tree-pretty-print.c: Likewise.
2306         * tree-scalar-evolution.c: Likewise.
2307         * tree-ssa-live.c: Likewise.
2308         * tree-ssa-loop-im.c: Likewise.
2309         * tree-ssa-loop-ivcanon.c: Likewise.
2310         * tree-ssa-loop-ivopts.c: Likewise.
2311         * tree-ssa-loop-manip.c: Likewise.
2312         * tree-ssa-loop-niter.c: Likewise.
2313         * tree-ssa-loop-prefetch.c: Likewise.
2314         * tree-ssa-phiprop.c: Likewise.
2315         * tree-ssa-pre.c: Likewise.
2316         * tree-ssa-reassoc.c: Likewise.
2317         * tree-ssa-sccvn.c: Likewise.
2318         * tree-ssa-structalias.c: Likewise.
2319         * tree-ssa.c: Likewise.
2320         * tree-vect-data-refs.c: Likewise.
2321         * tree-vect-loop-manip.c: Likewise.
2322         * tree-vect-loop.c: Likewise.
2323         * tree-vect-patterns.c: Likewise.
2324         * tree-vect-slp.c: Likewise.
2325         * tree-vect-stmts.c: Likewise.
2326         * tree-vrp.c: Likewise.
2327         * tree.c: Likewise.
2328         * value-prof.c: Likewise.
2329         * var-tracking.c: Likewise.
2330         * varasm.c: Likewise.
2331         * vmsdbgout.c: Likewise.
2332
2333 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
2334             Richard Guenther  <richard.guenther@gmail.com>
2335
2336         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
2337         copy the src value and return a copy.
2338         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
2339         (C++ Volatiles): Adjust to describe C++ semantics only.
2340
2341 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
2342
2343         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
2344         be zero or nonzero.
2345         * doc/tm.texi: Regenerate.
2346         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
2347         * df-scan.c (df_get_exit_block_use_set), reginfo.c
2348         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
2349         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
2350         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
2351         to 1.
2352
2353 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2354
2355         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
2356         an extra nop past a sibling call at the very end.
2357
2358 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2359
2360         PR bootstrap/45350
2361         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
2362         a comment.
2363
2364 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2365
2366         * target.def (function_arg, function_incoming_arg): Remove const
2367         qualifier on CUMULATIVE_ARGS parameter.
2368         * targhooks.h (default_function_arg, default_function_incoming_arg):
2369         Likewise.
2370         * targhooks.c (default_function_arg, default_function_incoming_arg):
2371         Likewise.
2372         * config/i386/i386.c (ix86_function_arg): Likewise.
2373
2374 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
2375
2376         PR target/45336
2377         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
2378         SIGN_EXTENDs or ZERO_EXTENDs.
2379
2380 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2381
2382         PR target/42172
2383         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
2384         Take its cost into account if nonnull.
2385         (insn_a_feeds_b): New static function.
2386         (combine_instructions): Look for four-insn combinations.
2387         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
2388         them into account when computing all_adjacent and looking for other
2389         uses.
2390         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
2391         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
2392         (try_combine): New arg I0.  Handle four-insn combinations.
2393         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
2394         like ELIM_I1.
2395
2396 2010-08-19  Jason Merrill  <jason@redhat.com>
2397
2398         PR c++/45307
2399         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
2400         if ctor is empty.
2401         (gimplify_modify_expr_rhs): Adjust.
2402
2403 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2404
2405         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
2406         bitmap_bit_p.
2407         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
2408         * dominance.c (iterate_fix_dominators): Likewise.
2409         * dse.c (set_usage_bits): Likewise.
2410         (set_position_unneeded, record_store): Likewise.
2411         * gimple-fold.c (get_maxval_strlen): Likewise.
2412         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
2413         * ipa-inline.c (update_caller_keys): Likewise.
2414         * ipa-split.c (verify_non_ssa_vars): Likewise.
2415         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
2416         (close_type_exposed_parameter, close_type_full_escape): Likewise.
2417         (close_addressof_down): Likewise.
2418         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
2419         (setup_allocno_left_conflicts_size): Likewise.
2420         (ira_reassign_conflict_allocnos): Likewise.
2421         (ira_reassign_pseudos): Likewise.
2422         * ira-emit.c (change_loop): Likewise.
2423         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
2424         * lto-streamer-out.c (write_symbol): Likewise.
2425         * predict.c (expr_expected_value_1): Likewise.
2426         * regstat.c (regstat_bb_compute_ri): Likewise.
2427         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2428         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
2429         * stmt.c (expand_case): Likewise.
2430         * tree-eh.c (emit_eh_dispatch): Likewise.
2431         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
2432         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
2433         Likewise.
2434         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
2435         (rdg_build_components): Likewise.
2436         * tree-object-size.c (collect_object_sizes_for): Likewise.
2437         * tree-sra.c (convert_callers): Likewise.
2438         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
2439         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
2440         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
2441
2442 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2443
2444         * config/i386/i386.md (*lea_1): Use P mode iterator.
2445         (lea add splitter): Also handle DImode operands.
2446         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
2447         predicate.  Do not use ix86_lea_for_add_ok.
2448         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
2449         (lea ashift splitter): Also handle DImode operands.
2450         (DImode lea ashift splitter): Remove splitter.
2451
2452 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2453
2454         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
2455         ix86_binary_operator_ok.
2456
2457 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
2458
2459         PR rtl-optimization/44691
2460         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
2461         is not a register.
2462
2463 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2464
2465         PR target/45070
2466         * config/arm/arm.c (arm_output_epilogue): Ensure that return
2467          value of size 1-3 is handled correctly.
2468
2469 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2470
2471         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
2472         type for the conditional has wide enough range.
2473
2474 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2475
2476         PR target/45327
2477         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
2478         ix86_binary_operator_ok.
2479
2480 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2481
2482         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
2483         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
2484         code to output insn mnemonic.  Fix comment.
2485         (*addsi_1_zext): Add r-r-0 alternative 1.
2486         <TYPE_LEA>: Split insn to lea.
2487         <default>: Handle alternative 1.
2488         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
2489         multi-level if_then_else RTX to set "type" attribute.
2490         <default>: Handle alternative 2.
2491         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
2492         Use cond RTX instead of multi-level if_then_else RTX to set
2493         "type" attribute.
2494         <default>: Handle alternatives 2 and 4.
2495         (lea splitters): Update calls to ix86_lea_for_add_ok.
2496
2497         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
2498         argument.
2499         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
2500
2501 2010-08-18  Richard Guenther  <rguenther@suse.de>
2502
2503         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
2504         use operand helpers.
2505
2506 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
2507
2508         PR middle-end/45292
2509         * optabs.c (expand_bool_compare_and_swap): Expand pending
2510         pops before trying the optab.
2511
2512 2010-08-18  Yao Qi  <yao@codesourcery.com>
2513
2514         PR target/45094
2515         * config/arm/arm.c (output_move_double): Fix typo generating
2516         instructions ('ldr'->'str').
2517
2518 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2519
2520         PR rtl-optimization/42575
2521         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
2522         live ranges.
2523
2524 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2525
2526         * config/arm/arm-protos.h (arm_expand_sync): New.
2527         (arm_output_memory_barrier, arm_output_sync_insn): New.
2528         (arm_sync_loop_insns): New.
2529         * config/arm/arm.c (FL_ARCH7): New.
2530         (FL_FOR_ARCH7): Include FL_ARCH7.
2531         (arm_arch7): New.
2532         (arm_print_operand): Support %C markup.
2533         (arm_legitimize_sync_memory): New.
2534         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
2535         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
2536         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
2537         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
2538         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
2539         (arm_process_output_sync_insn, arm_output_sync_insn): New.
2540         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
2541         * config/arm/arm.h (struct arm_sync_generator): New.
2542         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
2543         (TARGET_HAVE_MEMORY_BARRIER): New.
2544         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
2545         * config/arm/arm.md: Include sync.md.
2546         (UNSPEC_MEMORY_BARRIER): New.
2547         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
2548         (VUNSPEC_SYNC_OP):New.
2549         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
2550         (sync_result, sync_memory, sync_required_value): New attributes.
2551         (sync_new_value, sync_t1, sync_t2): Likewise.
2552         (sync_release_barrier, sync_op): Likewise.
2553         (length): Add logic to length attribute defintion to call
2554         arm_sync_loop_insns when appropriate.
2555         * config/arm/sync.md: New file.
2556
2557 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2558
2559         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
2560         ENABLE_TREE_CHECKING.
2561         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
2562         and GCC >= 4.3.
2563
2564 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2565
2566         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
2567         or optimizing for size, always avoid lea if possible.
2568
2569         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
2570
2571 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
2572
2573         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
2574         Dunmmy function with NULL return unless the target is
2575         OSX >= 10.6 (Darwin10).
2576
2577 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
2578
2579         * gcc.c (spec_function): Add remove-outfile.
2580         (remove_outfile_spec_function): New function.
2581         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
2582         * invoke.texi (replace-outfile): Document.
2583
2584 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
2585
2586         PR target/45296
2587         * reginfo.c (globalize_reg): Reject stack registers.
2588
2589 2010-08-17  Richard Guenther  <rguenther@suse.de>
2590
2591         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
2592         list of conditional equivalences.
2593         (free_all_edge_infos): Adjust.
2594         (record_equivalences_from_incoming_edge): Likewise.
2595         (record_cond): Likewise.
2596         (build_and_record_new_cond): Likewise.
2597         (record_conditions): Likewise.
2598         (dom_opt_leave_block): Likewise.
2599
2600 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
2601
2602         * doc/invoke.texi (ms-extension): Add documentation.
2603
2604 2010-08-17  Richard Guenther  <rguenther@suse.de>
2605
2606         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
2607
2608 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
2609
2610         PR c/40563
2611         * c-decl.c (diagnose_uninitialized_cst_member): New function.
2612         (finish_decl): Use it to issue a -Wc++-compat warning about
2613         uninitialized const field in struct or union.
2614
2615         (finish_struct): Use strip_array_types.
2616
2617 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2618
2619         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
2620         functions.
2621         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
2622         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
2623         call block_nreverse here.
2624         (blocks_nreverse): Rename decl temporary to block.
2625
2626 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
2627
2628         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
2629         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
2630         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
2631         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
2632         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
2633         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
2634         thumb2_iorsi3): Delete.
2635         (orsi_notsi_si): No longer a named pattern.
2636         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
2637         * config/arm/predicates.md (shift_amount_operand): New.
2638         (mult_operator): New.
2639         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
2640         attr enabled): New.
2641         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
2642         arch matches t2.
2643         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
2644         (not_shiftsi_compare0): Likewise, renamed from
2645         arm_notsi_shiftsi_compare0.
2646         (not_shiftsi_compare0_scratch): Likweise, renamed from
2647         arm_notsi_shiftsi_compare0_scratch.
2648         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
2649         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
2650         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
2651         so that the register alternative is disabled when the shift_operator
2652         is MULT.  Use "M" as the constraint for constants.
2653         (arith_shiftsi splitter): Enable for TARGET_32BIT.
2654         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
2655         constraint for constants.
2656         (arith_shiftsi_compare0_scratch): Likewise.
2657         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
2658         Handle Thumb2 alternative.
2659
2660 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2661
2662         * doc/options.texi (NoDriverArg): Document.
2663         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
2664         -MDX and -MMDX.
2665         * opt-functions.awk (switch_flags): Handle NoDriverArg.
2666         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
2667         marking for CL_NO_DRIVER_ARG options when in the driver.
2668         * opts.h (CL_NO_DRIVER_ARG): Define.
2669         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2670         CL_COMMON): Update values.
2671
2672 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2673
2674         * common.opt: Add driver options.
2675         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
2676         * doc/options.texi (Driver, RejectDriver): Document.
2677         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
2678         print_prog_name, print_multi_directory, print_sysroot,
2679         print_multi_os_directory, print_multi_lib,
2680         print_sysroot_headers_suffix, report_times, combine_flag,
2681         use_pipes, wrapper_string): Remove.
2682         (save_switch, driver_unknown_option_callback,
2683         driver_wrong_lang_callback, driver_post_handling_callback,
2684         driver_handle_option): New.
2685         (spec_lang, last_language_n_infiles): Make file-scope static
2686         instead of local to process_command.
2687         (process_command): Use decode_cmdline_options_to_array and
2688         read_cmdline_option for option processing.  Compute have_c in
2689         prescan of decoded options.
2690         * opt-functions.awk (switch_flags): Handle Driver and
2691         RejectDriver.
2692         (var_type, var_type_struct): Handle Separate options as generating
2693         const char * variables.
2694         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
2695         CL_TARGET to be passed by caller if required.
2696         (decode_cmdline_options_to_array): Update comment.
2697         * opts.c (complain_wrong_lang): Handle options only valid for the
2698         driver.
2699         (decode_options): Update call to decode_cmdline_options_to_array.
2700         (print_filtered_help): Ignore driver-only options.
2701         (print_specific_help): Ignore CL_DRIVER.
2702         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
2703         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
2704         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
2705         Update values.
2706
2707 2010-08-16  Richard Guenther  <rguenther@suse.de>
2708
2709         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2710         TARGET_MEM_REF a bit.
2711         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
2712         (create_mem_ref_raw): Always create TMR_OFFSET, store the
2713         alias pointer type via it.
2714         (copy_mem_ref_info): Adjust.
2715         (maybe_fold_tmr): Likewise.
2716         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
2717         (reference_alias_ptr_type): Likewise.
2718         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
2719         adjust documentation of TMR_OFFSET operand.
2720         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
2721         use the alias pointer type.
2722         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
2723         initialize mem attrs but the TMR itself.
2724         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
2725         similar to MEM_REF.
2726         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
2727         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
2728         (unshare_and_remove_ssa_names): Likewise.
2729         (copy_ref_info): Adjust.
2730         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
2731         TARGET_MEM_REF case.
2732         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
2733         at TMR_ORIGINAL.
2734         * tree.h (TMR_ORIGINAL): Remove.
2735         * gimple.c (get_base_address): For TARGET_MEM_REF with a
2736         symbol return that.
2737         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
2738         with a symbol.
2739         (get_addr_base_and_unit_offset): Likewise.
2740         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
2741         TARGET_MEM_REFs.
2742         (indirect_ref_may_alias_decl_p): Likewise.
2743         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
2744
2745 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
2746
2747         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
2748         with GCC version 4.6, the default setting (when not optimizing
2749         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
2750         been changed to -fomit-frame-pointer.
2751
2752 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
2753
2754         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
2755         Darwin10.  Do not link libgcc.a for Darwin >= 9.
2756
2757 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
2758
2759         * doc/invoke.texi (Warning Options): Fix terminology and markup
2760         in the description of how unknown warning options are handled.
2761
2762 2010-08-15  Ira Rosen  <irar@il.ibm.com>
2763
2764         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
2765         in basic blocks.
2766         (vect_supportable_dr_alignment): Check alignment for basic blocks.
2767         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
2768         data references.
2769         (vect_bb_vectorization_profitable_p): New function.
2770         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
2771         check if it's worthwhile to vectorize the basic block.
2772
2773 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
2774
2775         * reload.h (register_move_cost, memory_move_secondary_cost,
2776         secondary_reload_class): Adjust prototype.
2777         * rtl.h (reg_class_subset_p): Adjust prototype.
2778         * reload.c (secondary_reload_class): Change arguments type from
2779         enum reg_class to reg_class_t. Change result type to reg_class_t.
2780         * reginfo.c (register_move_cost, reg_class_subset_p): Change
2781         arguments type from enum reg_class to reg_class_t.
2782         (memory_move_secondary_cost): Change arguments type from
2783         enum reg_class to reg_class_t. Change type of saved_flags to
2784         reg_class_t.
2785
2786         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2787         Remove macros.
2788         (mips_cost): Remove.
2789         (struct mips_rtx_cost_data): Moved to mips.c.
2790         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
2791         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
2792         (mips_cost): Make static.
2793         (mips_canonicalize_move_class): Change argument type to reg_class_t.
2794         Change result type to reg_class_t.
2795         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
2796         type from enum reg_class to reg_class_t.
2797         (mips_register_move_cost): Make static. Change arguments
2798         type from enum reg_class to reg_class_t.
2799         (mips_memory_move_cost): New function.
2800         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2801
2802 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
2803
2804         PR rtl-optimization/43358
2805         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
2806         of a single hard register, using simplify_subreg_regno to decide
2807         what that register should be.
2808
2809 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
2810
2811         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
2812         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
2813         (loongson_pmull<V_suffix>): Rename to...
2814         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
2815
2816 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
2817
2818         * configure.ac: Enable -fomit-frame-pointer on darwin
2819         which support dwarf2.
2820         * config/i386/i386.c (override_options): Same.
2821
2822 2010-08-13  Jie Zhang  <jie@codesourcery.com>
2823
2824         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
2825
2826 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
2827
2828         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
2829         -MMD.
2830
2831 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
2832
2833         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
2834         up dot_prod pattern searching if a stmt is outside the loop.
2835
2836 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
2837             Uros Bizjak  <ubizjak@gmail.com>
2838
2839         * config.gcc: Handle --enable-frame-pointer.
2840
2841         * configure.ac: Add --enable-frame-pointer.
2842         * configure: Regenerated.
2843
2844         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
2845         (override_options): If not configured with --enable-frame-pointer,
2846         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
2847         optimizing for size), -fasynchronous-unwind-tables and
2848         -maccumulate-outgoing-args by default.
2849
2850 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2851
2852         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
2853
2854         PR middle-end/45262
2855         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
2856         -a overflows.  Normalize the range.
2857
2858 2010-08-12  Richard Guenther  <rguenther@suse.de>
2859
2860         PR tree-optimization/45232
2861         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
2862         for types with undefined overflow.
2863         (reassociate_bb): Allow re-associating of bit and min/max
2864         operations for types with undefined overflow.
2865         * tree-ssa-forwprop.c (associate_plusminus): New function.
2866         (tree_ssa_forward_propagate_single_use_vars): Call it.
2867
2868 2010-08-12  Richard Guenther  <rguenther@suse.de>
2869
2870         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
2871         * tree-ssa-alias.c (get_ptr_info): Move ...
2872         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
2873         align and misalign fields conservatively.
2874         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
2875         derive alignment information.
2876         (evaluate_stmt): Derive alignment information from memory
2877         allocation functions.
2878         * tree.h (get_pointer_alignment): Make unsigned.
2879         * builtins.c (get_object_alignment): Use alignment information we
2880         have computed for pointers.
2881         (get_pointer_alignment): Likewise.  Make conservative, return
2882         and unsigned value.
2883         (expand_builtin_strlen): Adjust.
2884         (expand_builtin_memcmp): Likewise.
2885         (expand_builtin_strcmp): Likewise.
2886         (expand_builtin_strncmp): Likewise.
2887         (get_builtin_sync_mem): Use at least mode alignment.
2888         (fold_builtin_memset): Adjust.
2889         (fold_builtin_memory_op): Likewise.
2890         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
2891         information also dump pointer alignment knowledge.
2892         (dump_gimple_stmt): Likewise.
2893
2894 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
2895
2896         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
2897         (EMPTY_FIELD_BOUNDARY): Remove.
2898         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
2899
2900 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2901
2902         PR debug/45259
2903         * caller-save.c (save_call_clobbered_regs): Only swap notes with
2904         DEBUG_INSNs if n_regs_saved.
2905
2906 2010-08-12  Wei Guozhi  <carrot@google.com>
2907
2908         PR target/44999
2909         * config/arm/arm.md (andsi3): Change to zero extension if possible.
2910         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
2911
2912 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
2913
2914         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
2915
2916         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
2917
2918 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2919
2920         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
2921         the case removed in the previous patch, when the only phi argument
2922         is defined in the same loop as the phi node itself.  Handle it
2923         separately from the invariant case by both propagating it outside
2924         the region and replacing the phi node with an assign.
2925
2926 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2927
2928         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
2929         constant phi nodes with one argument are is_gimple_min_invariant
2930         and SSA_NAME_IS_DEFAULT_DEF.
2931
2932 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2933
2934         * graphite-cloog-util.c (oppose_constraint):
2935         Extend loop counter's value range (CLOOG_ORG).
2936         (cloog_matrix_to_ppl_constraint): Same.
2937         (new_Constraint_System_from_Cloog_matrix): Same.
2938         * graphite-cloog-compat.h (matrix_num_type): New.
2939
2940 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2941
2942         * graphite.c (graphite_initialize): Do not initialize
2943         CLooG and initialize the Parma Polyhedra Library
2944         manually when using CLOOG_ORG.
2945         (graphite_finalize): Do not finalize CLooG and finalize
2946         the Parma Polyhedra Library manually when using CLOOG_ORG.
2947         * graphite-cloog-compat.h (cloog_initialize): Hide function
2948         when using CLOOG_ORG.
2949         (cloog_finalize): Same.
2950
2951 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2952
2953         * graphite-clast-to-gimple.c (free_scattering): Change
2954         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
2955         (CLOOG_ORG).
2956         (build_cloog_prog): Same.
2957         * graphite-cloog-compat.h (cloog_domain): Removed.
2958         (cloog_scattering): New.
2959         (cloog_set_domain): Removed.
2960         (cloog_set_scattering): New.
2961         (cloog_next_domain): Removed.
2962         (cloog_next_scattering): New.
2963         (cloog_set_next_domain): Removed.
2964         (cloog_set_next_scattering): New.
2965         (CloogScatteringList): New.
2966         (CloogScattering): New.
2967         (cloog_scattering_free): New.
2968         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
2969         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
2970         New.
2971
2972 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2973
2974         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
2975         CloogState.
2976         (set_cloog_options): Same.
2977         (print_clast_stmt): Same.
2978         (scop_to_clast): Same.
2979         (print_generated_program): Same.
2980         (gloog): Same.
2981         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
2982         (scop_to_clast): Extend with CloogState.
2983         * graphite-cloog-util.c: Include graphite-cloog-compat.h
2984         (new_Cloog_Domain_from_ppl_Polyhedron):
2985         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
2986         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
2987         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2988         * graphite-cloog-util.h (build_cloog_prog): Same.
2989         * graphite-cloog-copat.h (build_cloog_prog): New.
2990         (CloogState): New.
2991         (cloog_state_malloc): New.
2992         (cloog_state_free): New.
2993         (cloog_loop_malloc): New.
2994         (cloog_options_malloc): New.
2995         (cloog_statement_alloc): New.
2996         (cloog_domain_from_cloog_matrix): New.
2997         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2998         (new_Cloog_Domain_from_ppl_Polyhedron): New.
2999
3000 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3001
3002         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
3003         type of NAME now depends on used CLooG version.
3004         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
3005         (gcc_type_for_clast_expr): Same.
3006         (print_clast_stmt): Replace pprint with clast_pprint.
3007         * graphite-cloog-compat.h: Provide compatibility macros for
3008         CLooG Legacy.
3009         (clast_name_p): New.
3010         (clast_expr_term): New.
3011         (clast_expr_red): New.
3012         (clast_expr_bin): New.
3013         (clast_pprint): New.
3014
3015 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3016
3017         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
3018         compatible to newer CLooG releases (CLOOG_ORG).
3019         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
3020         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
3021         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
3022         (build_cloog_prog) : New.
3023         (cloog_program_extract_scalars): New.
3024         (cloog_program_scatter): New.
3025
3026 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3027
3028         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
3029         conditionally (CLOOG_ORG).
3030         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
3031         (cloog_statement_usr): New.
3032         (cloog_domain): Same.
3033         (cloog_set_domain): Same.
3034         (cloog_next_domain): Same.
3035         (cloog_set_next_domain): Same.
3036         (cloog_program_nb_scattdims): Same.
3037         (cloog_program_set_nb_scattdims): Same.
3038         (cloog_program_names): Same.
3039         (cloog_program_set_names): Same.
3040         (cloog_program_set_context): Same.
3041         (cloog_program_set_loop): Same.
3042         (cloog_program_blocklist): Same.
3043         (cloog_program_set_blocklist): Same.
3044         (cloog_program_scaldims): Same.
3045         (cloog_program_set_scaldims): Same.
3046         (cloog_names_nb_parameters): Same.
3047         (cloog_names_set_nb_parameters): Same.
3048         (cloog_names_parameters): Same.
3049         (cloog_names_set_parameters): Same.
3050         (cloog_names_set_nb_iterators): Same.
3051         (cloog_names_set_iterators): Same.
3052         (cloog_names_set_nb_scattering): Same.
3053         (cloog_names_set_scattering): Same.
3054         (cloog_statement_set_usr): Same.
3055         (cloog_loop_set_next): Same.
3056         (cloog_loop_set_domain): Same.
3057         (cloog_loop_set_block): Same.
3058         (cloog_block_list_next): Same.
3059         (cloog_block_list_set_next):
3060         (cloog_block_list_set_block): Same.
3061
3062 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3063
3064         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
3065         a bool.
3066         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
3067         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
3068         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
3069         when something has been changed.
3070         (rewrite_commutative_reductions_out_of_ssa): Same.
3071
3072 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3073
3074         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
3075         handle the case when def is in the sese region.
3076         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
3077         for invariant expressions.
3078         (rewrite_cross_bb_phi_deps): Removed.
3079         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
3080         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
3081         rewrite_cross_bb_phi_deps.
3082
3083 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3084
3085         * graphite-sese-to-poly.c
3086         (rewrite_commutative_reductions_out_of_ssa_loop): Call
3087         scev_analyzable_p only on is_gimple_reg
3088
3089 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3090
3091         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
3092         (rewrite_close_phi_out_of_ssa): Propagate constant values or
3093         parametric expressions outside the scop region.
3094         (rewrite_cross_bb_scalar_deps): Same.
3095         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
3096
3097 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3098
3099         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
3100         SSA_NAME_DEF_STMT only on SSA_NAMEs.
3101
3102 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3103
3104         * tree-scalar-evolution.c (instantiate_scev_name): Do not
3105         instantiate default definitions.
3106
3107 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
3108             Sebastian Pop  <sebastian.pop@amd.com>
3109
3110         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
3111         (loop_exits_from_bb_p): New.
3112         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
3113         (loop_exits_from_bb_p): Declared.
3114         * graphite-scop-detection.c (scopdet_basic_block_info): Call
3115         loop_exits_to_bb_p.
3116
3117 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3118
3119         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
3120         extra parameter for the region.  Call scev_analyzable_p.
3121         (rewrite_reductions_out_of_ssa): Update call to
3122         rewrite_close_phi_out_of_ssa.
3123         (rewrite_cross_bb_phi_deps): Same.
3124         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
3125         parameter for the region.  Call scev_analyzable_p.
3126         (rewrite_commutative_reductions_out_of_ssa): Update call to
3127         rewrite_commutative_reductions_out_of_ssa_loop.
3128
3129 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3130
3131         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
3132
3133 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3134
3135         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
3136         SSA scalar phi nodes that can be scev_analyzable_p.
3137
3138 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3139
3140         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
3141         handle SSA_NAME_IS_DEFAULT_DEF.
3142
3143 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3144
3145         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
3146
3147 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3148
3149         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
3150         case non close-phi nodes with one argument.
3151
3152 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3153
3154         * sese.h (scev_analyzable_p): Scevs could be expressions without
3155         chrecs and still be scev_analyzable_p.
3156
3157 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3158
3159         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
3160
3161 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3162
3163         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
3164         * cfgloop.h (struct loop): Remove single_iv field.
3165         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
3166         (scop_canonicalize_loops): Removed.
3167         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
3168         over all the loop phi nodes in loop->header.
3169         (build_poly_scop): Remove use of scop_canonicalize_loops.
3170
3171 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3172
3173         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
3174         handle GIMPLE_CALL.
3175
3176 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3177
3178         * tree-chrec.c (chrec_apply): Should only apply to the specified
3179         variable.  Also handle multivariate chains of recurrences that
3180         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
3181
3182 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3183
3184         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
3185         (debug_clast_name_indexes_1): Removed.
3186         (debug_clast_name_indexes): Removed.
3187         (pbb_to_depth_to_oldiv): Removed.
3188         (build_iv_mapping): Replace the use of rename_map with iv_map.
3189         (translate_clast_user): Remove uses of rename_map.  Allocate and
3190         free iv_map.
3191         (translate_clast_for_loop): Remove uses of rename_map.
3192         (translate_clast_for): Same.
3193         (translate_clast_guard): Same.
3194         (translate_clast): Same.
3195         (gloog): Same.
3196         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
3197         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
3198         * sese.c (set_rename): Now static.
3199         (rename_variables_in_stmt): Removed.
3200         (rename_uses): New.
3201         (is_parameter): Removed.
3202         (is_iv): Removed.
3203         (expand_scalar_variables_call): Removed.
3204         (expand_scalar_variables_ssa_name): Removed.
3205         (expand_scalar_variables_expr): Removed.
3206         (expand_scalar_variables_stmt): Removed.
3207         (expand_scalar_variables): Removed.
3208         (rename_variables): Removed.
3209         (remove_condition): Removed.
3210         (get_true_edge_from_guard_bb): Removed.
3211         (get_false_edge_from_guard_bb): Removed.
3212         (struct igp): Removed.
3213         (default_before_guard): Removed.
3214         (convert_for_phi_arg): Removed.
3215         (add_guard_exit_phis): Removed.
3216         (insert_guard_phis): Removed.
3217         (graphite_copy_stmts_from_block): Now also uses iv_map and a
3218         region.  Do not copy conditions.  Do not copy induction variables.
3219         Call rename_uses.
3220         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
3221         the translated statement.  Use the iv_map for the induction
3222         variable renaming.
3223         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3224         (set_rename): Removed declaration.
3225         (scev_analyzable_p): ...here.
3226         * tree-chrec.c (chrec_apply_map): New.
3227         * tree-chrec.h (chrec_apply_map): Declared.
3228
3229 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3230
3231         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
3232         insert_loop_close_phis.
3233         * sese.c (name_defined_in_loop_p): Removed.
3234         (expr_defined_in_loop_p): Removed.
3235         (alive_after_loop): Removed.
3236         (close_phi_not_yet_inserted_p): Removed.
3237         (struct alep): Removed.
3238         (add_loop_exit_phis): Removed.
3239         (insert_loop_close_phis): Removed.
3240
3241 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3242
3243         * graphite-cloog-util.c
3244         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
3245         * graphite-poly.c
3246         (psct_scattering_dim_for_loop_depth): Same.
3247
3248 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3249
3250         * graphite-cloog-util.h: Added cloog.h.
3251         * graphite-blocking.c: Removed cloog.h.
3252         * graphite-dependences.c: Same.
3253         * graphite-interchange.c: Same.
3254         * graphite-poly.c: Same.
3255         * graphite-ppl.c: Same.
3256         * graphite-scop-detection.c: Same.
3257         * graphite-sese-to-poly.c:
3258         Removed cloog.h.
3259         Removed graphite-clast-to-gimple.h.
3260         (check_poly_representation): Removed (unused).
3261         * graphite-sese-to-poly.h
3262         (check_poly_representation): Removed (unused).
3263
3264 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3265
3266         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
3267         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
3268         (graphite-cloog-util.o): New.
3269         (graphite-ppl.o): Added graphite-cloog-util.h.
3270         * graphite-clast-to-gimple.c:
3271         Added graphite-cloog-util.h to include statements.
3272         * graphite-cloog-util.c: New.
3273         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
3274         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3275         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3276         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3277         (insert_constraint_into_matrix): Same.
3278         (ppl_Constrain_System_number_of_constraints): Same.
3279         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3280         (oppose_constraint): Same.
3281         (cloog_matrix_to_ppl_constraint): Same.
3282         (new_Constraint_System_from_Cloog_Matrix): Same.
3283         * graphite-cloog-util.h: New.
3284         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
3285         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3286         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3287         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3288         (insert_constraint_into_matrix): Same.
3289         * graphite-ppl.c:
3290         Added graphite-cloog-util.h to include statements.
3291         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
3292         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3293         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3294         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3295         (insert_constraint_into_matrix): Same.
3296         (ppl_Constrain_System_number_of_constraints): Same.
3297         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3298         (oppose_constraint): Same.
3299         (cloog_matrix_to_ppl_constraint): Same.
3300         (new_Constraint_System_from_Cloog_Matrix): Same.
3301         * graphite-ppl.h:
3302         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
3303         graphite-cloog-util.h.
3304         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3305         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3306         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3307         (insert_constraint_into_matrix): Same.
3308
3309 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3310
3311         * graphite-clast-to-gimple.c
3312         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
3313         (precision_for_interval): Same.
3314         (gcc_type_for_interval): Same.
3315         (compute_type_for_level): Same.
3316         * graphite-interchange.c
3317         (lst_interchange_profitable_p): Same.
3318         * graphite-poly.c
3319         (psct_scattering_dim_for_loop_depth): Same.
3320         * graphite-ppl.c
3321         (ppl_max_for_le_pointset): Same.
3322         (ppl_min_for_le_pointset): Same.
3323
3324 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3325
3326         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
3327         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
3328
3329 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3330
3331         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
3332         rewrite_close_phi_out_of_ssa.
3333
3334 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3335
3336         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
3337
3338 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3339
3340         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
3341         rename_map.
3342         * sese.c (debug_rename_map): Same.
3343         (get_rename): Same.
3344         (set_rename): Same.
3345         (rename_variables_in_stmt): Same.
3346         (expand_scalar_variables_call): Same.
3347         (expand_scalar_variables_ssa_name): Same.
3348         (expand_scalar_variables_expr): Same.
3349         (expand_scalar_variables_stmt): Same.
3350         (expand_scalar_variables): Same.
3351         (rename_variables): Same.
3352         (graphite_copy_stmts_from_block): Same.
3353         (copy_bb_and_scalar_dependences): Same.
3354
3355 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3356
3357         * graphite-clast-to-gimple.c (copy_renames): Removed.
3358         (translate_clast_for): Do not call copy_renames.
3359         (translate_clast_guard): Same.
3360
3361 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3362
3363         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
3364         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
3365         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
3366         before rewrite_cross_bb_scalar_deps.
3367
3368 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3369
3370         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
3371         Early return in when flag_associative_math is not set.
3372
3373 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3374
3375         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
3376         of SSA copies on edges except for loop->latch.
3377
3378 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3379
3380         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
3381         Split out of rewrite_reductions_out_of_ssa.
3382         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
3383         Declared.
3384         * graphite.c (graphite_transform_loops): Call it.
3385
3386 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3387
3388         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
3389
3390 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
3391
3392         * dbgcnt.def (graphite_scop): New counter.
3393         * graphite.c: Include dbgcnt.h.
3394         (graphite_transform_loops): Use new counter to limit transformations.
3395         * Makefile.in (graphite.o): Depend on DBGCNT_H.
3396
3397 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3398
3399         * passes.c (init_optimization_passes): Add pass_graphite.
3400         Schedule a pass_copy_prop before pass_graphite_transforms.
3401         * timevar.def (TV_GRAPHITE): Declared.
3402         * tree-pass.h (pass_graphite): Declared.
3403         * tree-ssa-loop.c (pass_graphite): New.
3404
3405 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3406
3407         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
3408         Remove calls to rename_nb_iterations and rename_sese_parameters.
3409         * graphite-clast-to-gimple.h (gloog): Update declaration.
3410         * graphite.c (graphite_transform_loops): Update call to gloog.
3411         * sese.c (rename_variables_in_expr): Removed.
3412         (rename_nb_iterations): Removed.
3413         (rename_sese_parameters): Removed.
3414         * sese.h (rename_nb_iterations): Removed.
3415         (rename_sese_parameters): Removed.
3416
3417 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3418
3419         * graphite-clast-to-gimple.c (gloog): Remove call to
3420         sese_adjust_liveout_phis.
3421         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
3422         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
3423         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
3424         rewrite_phi_out_of_ssa.
3425         * sese.c (get_vdef_before_sese): Removed.
3426         (sese_adjust_vphi): Removed.
3427         (sese_adjust_liveout_phis): Removed.
3428         * sese.h (sese_adjust_liveout_phis): Removed.
3429
3430 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3431
3432         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
3433         argument for the place after which to insert the out of SSA copy.
3434         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
3435         (rewrite_phi_out_of_ssa): Same.
3436         (rewrite_cross_bb_scalar_deps): Same.
3437         (insert_copyout): Removed.
3438         (insert_copyin): Removed.
3439         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
3440         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
3441         insert_copyin.
3442
3443 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3444
3445         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
3446         (rewrite_reductions_out_of_ssa): Same.
3447         (rewrite_commutative_reductions_out_of_ssa): Same.
3448         (build_poly_scop): Do not call these functions.
3449         * graphite-sese-to-poly.h (build_poly_scop): Declared.
3450         (rewrite_reductions_out_of_ssa): Declared.
3451         (rewrite_commutative_reductions_out_of_ssa): Declared.
3452         * graphite.c (graphite_transform_loops): Call on every scop
3453         rewrite_commutative_reductions_out_of_ssa before calling
3454         rewrite_reductions_out_of_ssa and build_scop_bbs.
3455
3456 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3457
3458         * graphite-dependences.c (dot_deps): Make system call to dotty run
3459         in background.
3460         (dot_deps_stmt): Same.
3461         * graphite-poly.c (dot_lst): Same.
3462
3463 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3464
3465         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
3466         phi_arg_in_outermost_loop.
3467         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
3468         (remove_invariant_phi): Same.
3469
3470 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
3471
3472         * target.def (output_addr_const_extra): New hook.
3473         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
3474         * doc/tm.texi: Regenerate.
3475         * targhooks.c (default_asm_output_addr_const_extra): New function.
3476         * targhooks.h (default_asm_output_addr_const_extra): Declare.
3477         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
3478         target hook.
3479
3480         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3481         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
3482         * config/i386/i386.h (output_addr_const_extra): Rename to...
3483         (i386_asm_output_addr_const_extra): ...this. Make static.
3484         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3485
3486 2010-08-11  Richard Henderson  <rth@redhat.com>
3487
3488         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
3489
3490 2010-08-11  Nick Clifton  <nickc@redhat.com>
3491
3492         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
3493         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
3494         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3495         stormy16-lib2-cmpsi.c.
3496
3497         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
3498         -O2.
3499
3500 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3501
3502         * opts.h (struct cl_option_handler_func): Make handler take
3503         cl_decoded_option structure as parameter, not individual elements.
3504         (struct cl_option_handlers): Make callbacks take cl_decoded_option
3505         structure as parameter, not individual elements.
3506         (handle_option): Take cl_decoded_option structure as parameter,
3507         not individual elements.
3508         (handle_generated_option): Declare.
3509         * opts-common.c (handle_option): Take cl_decoded_option structure
3510         as parameter, not individual elements.  Update calls to callback
3511         and handler functions.
3512         (handle_generated_option): New.
3513         (read_cmdline_option): Update calls to callback functions and
3514         handle_option.
3515         * opts.c (common_handle_option, complain_wrong_lang,
3516         unknown_option_callback, post_handling_callback,
3517         lang_handle_option, target_handle_option): Take cl_decoded_option
3518         structure as parameter, not individual elements.
3519         (lang_handle_option, target_handle_option, common_handle_option):
3520         Assert option has at most one argument.
3521         (enable_warning_as_error): Call handle_generated_option instead of
3522         handle_option.  Do not pass -Werror argument as argument of
3523         generated option.
3524
3525 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3526
3527         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3528         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3529         (SUBWORD_BOOL_CAS): Likewise.
3530         (SUBWORD_SYNC_OP): Likewise.
3531         (SUBWORD_TEST_AND_SET): Likewise.
3532         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3533         (SUBWORD_SYNC_OP): Likewise.
3534         (OP_AND_FETCH_WORD): Likewise.
3535
3536 2010-08-10  Xinliang David Li  <davidxl@google.com>
3537
3538         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
3539         compute max/min offset in address.
3540
3541 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
3542
3543         * ira-live.c: Include sbitmap.h.
3544         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
3545         Compress live ranges even more.
3546
3547 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3548
3549         * coverage.c (ctr_labels): Delete.
3550
3551 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3552
3553         PR bootstrap/45177
3554         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
3555         test here from arm_gen_load_multiple_1.
3556         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
3557         multiple_operation_profitable_p.
3558
3559 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3560
3561         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
3562         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
3563
3564 2010-08-10  Richard Henderson  <rth@redhat.com>
3565
3566         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
3567         after saving registers.  Assert that SSE registers are only saved
3568         with a sufficiently aligned frame.
3569         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
3570         remove stack_realign_fp handling.
3571         (ix86_expand_prologue): Save int registers before stack_realign_fp,
3572         and do not mark the stack alignment as frame related.
3573         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
3574
3575         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
3576         saves when re-aligning the stack.
3577
3578 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3579
3580         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
3581         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
3582         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
3583
3584 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3585
3586         * dwarf2out.c (struct die_struct): Move die_tag to the end.
3587
3588 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
3589
3590         * config/arm/iterators.md: New file.
3591         * config/arm/arm.md: Include iterators.md.
3592         (QHSI): Move to new file.
3593         (LTUGEU, cnb, optab, ior_xor): Likewise.
3594         * config/arm/iwmmxt.md (VMMX): Move to new file.
3595         (VSHFT, MMX_char): Likewise.
3596         * config/arm/neon.md (VD): Move to new file.
3597         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
3598         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
3599         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
3600         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
3601         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
3602         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
3603         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
3604         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
3605         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
3606         (Is_d_reg, V_mode_nunits): Likewise.
3607         * config/arm/vec-common.md (VALL): Move to new file.
3608         (VALLW, VINT, VINTW): Likewise.
3609
3610 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3611
3612         PR middle-end/45182
3613         * combine.c (make_compound_operation): Don't try to convert
3614         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
3615
3616 2010-08-10  Richard Guenther  <rguenther@suse.de>
3617
3618         * tree.h (get_object_alignment): Adjust prototype.
3619         * builtins.c (get_object_alignment): Return unsigned int,
3620         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
3621         and TARGET_MEM_REF properly.
3622         (get_pointer_alignment): Adjust.
3623         * emit-rtl.c (get_mem_align_offset): Adjust comment.
3624         (set_mem_attributes_minus_bitpos): Adjust.
3625         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
3626
3627 2010-08-10  Richard Guenther  <rguenther@suse.de>
3628
3629         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
3630         (copy_prop_visit_assignment): Simplify.
3631         (copy_prop_visit_stmt): Also visit assignments from
3632         constants.
3633         (copy_prop_visit_phi_node): Use operand_equal_p.
3634
3635 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3636
3637         * ipa-split.c (find_split_points): Free stack.
3638
3639 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3640
3641         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
3642         * tree.c (tree_node_kind): Delete corresponding entries.
3643
3644 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3645
3646         * alias.c (may_alias_p): Remove unused ret.
3647
3648 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
3649
3650         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
3651         alias_sets_conflict_p.
3652         (walk_mems_1): Moved from alias.c.
3653         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
3654         in alias.c.
3655         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
3656         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
3657         * alias.c (walk_mems_2): Moved to ddg.c.
3658         (walk_mems_1): Ditto.
3659         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
3660         to ddg.c.
3661         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
3662         disambiguation.
3663         *(may_alias_p): New function to check whether two memory expression
3664         may alias or not. Currently used in buidling inter-iteration memory
3665         dependence.
3666         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
3667         (insn_alias_sets_conflict_p): Removed
3668         *rtl.h (may_alias_p): New function prototype.
3669
3670 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3671
3672         * tree.c (nreverse): Assert that we don't have a BLOCK.
3673
3674 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3675
3676         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
3677         * config/arm/arm.c (arm_get_pcs_model): Likewise.
3678         * config/avr/avr.c (init_cumulative_args): Likewise.
3679         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3680         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3681         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
3682         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3683         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3684         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3685         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3686         * dwarf2out.c (gen_subprogram_die): Likewise.
3687         * function.c (allocate_struct_function): Likewise.
3688         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
3689         (deserves_ellipsis): Delete.
3690
3691 2010-08-09  Richard Guenther  <rguenther@suse.de>
3692
3693         * tree-ssa-copy.c (cached_last_copy_of): Remove.
3694         (valueize_val): New function.
3695         (get_last_copy_of): Remove.
3696         (set_copy_of_val): Simplify.
3697         (dump_copy_of): Likewise.
3698         (copy_prop_visit_cond_stmt): Use valueize_val.
3699         (copy_prop_visit_phi_node): Properly handle unvisited names.
3700         Drop code managing copy-of chains.
3701         (init_copy_prop): Adjust.
3702         (fini_copy_prop): Likewise.
3703         (execute_copy_prop): Remove obsolete comment.
3704
3705 2010-08-09  Richard Guenther  <rguenther@suse.de>
3706
3707         PR middle-end/44632
3708         * function.c (gimplify_parameters): Do not clear addressable
3709         bit of the original parameter.
3710
3711 2010-08-09  Richard Guenther  <rguenther@suse.de>
3712
3713         PR middle-end/45212
3714         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
3715         alignment from MEM_REF offset only if we took it from the
3716         base object.
3717
3718 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
3719
3720         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
3721
3722 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3723
3724         * c-tree.h (build_arg_info): Declare.
3725         * c-decl.c (build_arg_info): Define.
3726         (get_parm_info): Call it.  Delete initialization code.
3727         * c-parser.c (c_parser_parms_declarator): Likewise.
3728         (c_parser_parms_list_declaractor): Likewise.
3729
3730 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3731
3732         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
3733         (struct c_arg_info): Change type of tags field.
3734         * c-decl.c (grokdeclarator): Update for changed type of tags field.
3735         (get_parm_info): Likewise.
3736         (store_parm_decls_newstyle): Likewise.
3737
3738 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3739
3740         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
3741         (branch_island_list): Delete.
3742         (branch_islands): Declare.
3743         (add_compiler_branch_island): Adjust for branch_islands instead of
3744         branch_island_list.
3745         (macho_branch_islands): Likewise.
3746         (no_previous_def): Likewise.
3747         (get_prev_label): Likewise.
3748
3749 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3750
3751         PR boehm-gc/34544
3752         * gthr-posix.h (__gthread_start): Delete.
3753         (__gthread_active_init): Use pthread_default_stacksize_np instead of
3754         pthread_create to determine if hpux pthreads are active.
3755         * gthr-posix95.h (__gthread_start): Delete.
3756         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
3757
3758 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
3759
3760         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
3761         _WIN64 not expanded.
3762
3763 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
3764             H.J. Lu  <hongjiu.lu@intel.com>
3765
3766         PR target/45213
3767         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
3768         to output 32bit SFmode immediate as 8 byte sign extended value.
3769
3770 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3771
3772         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3773         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3774         (SUBWORD_BOOL_CAS): Likewise.
3775         (SUBWORD_SYNC_OP): Likewise.
3776         (SUBWORD_TEST_AND_SET): Likewise.
3777         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3778         (SUBWORD_SYNC_OP): Likewise.
3779         (OP_AND_FETCH_WORD): Likewise.
3780
3781 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3782
3783         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
3784         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
3785         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
3786         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
3787         generic part.
3788         (cortex_a9_sched_adjust_cost): New function.
3789         (xscale_sched_adjust_cost): New function.
3790         * config/arm/arm-protos.h (struct tune_params): New field
3791         sched_adjust_cost.
3792         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
3793
3794 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
3795
3796         PR target/44942
3797         * config/sparc/sparc.c (function_arg_advance): Always take into account
3798         the padding, if any.
3799
3800 2010-08-06  Richard Guenther  <rguenther@suse.de>
3801
3802         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
3803         (dump_lattice_value): Dump it.
3804         (get_default_value): Adjust.
3805         (get_constant_value): Likewise.
3806         (set_value_varying): Likewise.
3807         (set_lattice_value): Make sure to not go up the lattice
3808         with bitwise constant values.
3809         (get_value_for_expr): Handle ADDR_EXPRs.
3810         (value_to_double_int): New function.
3811         (get_value_from_alignment): Likewise.
3812         (do_dbg_cnt): Adjust.
3813         (ccp_lattice_meet): Handle partially constant values.
3814         (bit_value_unop_1): New function.
3815         (bit_value_binop_1): Likewise.
3816         (bit_value_unop): Likewise.
3817         (bit_value_binop): Likewise.
3818         (evaluate_stmt): Track partially constant values if
3819         flag_tree_bit_ccp is set.
3820         (ccp_fold_stmt): Dump if we folded a predicate.
3821         (ccp_visit_stmt): Adjust.
3822         * common.opt (ftree-bit-ccp): New flag.
3823         * doc/invoke.texi (ftree-bit-ccp): Document.
3824         * opts.c (decode_options): Enable bit-CCP at -O1.
3825
3826 2010-08-06  Alan Modra  <amodra@gmail.com>
3827
3828         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
3829         and -mrelocatable-lib description.
3830
3831 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3832
3833         From Martin Thuresson  <martint@google.com>
3834         * postreload.c (reload_cse_simplify_operands): Use
3835         SET_REGNO_RAW instead of SET_REGNO.
3836         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
3837         SET_REGNO.
3838         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
3839         instead of SET_REGNO.
3840         * rtl.h (SET_REGNO_RAW): New macro.
3841
3842 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
3843
3844         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
3845         computations.  Fix formatting issues.
3846         (num_sign_bit_copies1): Likewise.
3847         (canonicalize_condition): Likewise.
3848
3849 2010-08-05  Richard Henderson  <rth@redhat.com>
3850
3851         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
3852         (floor_log2): Use clz_hwi.
3853         (exact_log2): Use ctz_hwi.
3854         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
3855         * builtins.c (fold_builtin_bitop): Use them.
3856         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3857         * combine.c (get_pos_from_mask): Use ctz_hwi.
3858         * double-int.c (double_int_ctz): Likewise.
3859         * explow.c (force_reg): Likewise.
3860         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
3861
3862 2010-08-05  Richard Henderson  <rth@redhat.com>
3863
3864         PR target/45189
3865         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
3866         the alignment constant is properly sign-extended.
3867
3868 2010-08-05  Richard Guenther  <rguenther@suse.de>
3869
3870         * expr.c (store_expr): Use emit_block_move only if both
3871         source and target are MEMs.  Use store_bit_field if only
3872         the target is a MEM.
3873
3874 2010-08-05  Richard Henderson  <rth@redhat.com>
3875
3876         PR debug/45188
3877         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
3878         (INCOMING_RETURN_ADDR_RTX): Likewise.
3879         (dwarf2out_do_frame): Remove conditional compilation.
3880         (dwarf2out_frame_init): Likewise.
3881
3882 2010-08-05  Nicolas Setton  <setton@adacore.com>
3883
3884         * gcov.c (flag_display_progress): New static variable.
3885         (main): Display progress info on standard output if requested.
3886         (options): Add -d/--display-progress.
3887         (print_usage): Print them.
3888         (process_args): Handle them.
3889         * doc/gcov.texi: Document them.
3890
3891 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3892
3893         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
3894         (ipcp_insert_stage): Redirect only edges not flagged with
3895         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
3896         discovered constants.
3897
3898 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3899
3900         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
3901         (struct ipa_param_descriptor): New fields types and
3902         cannot_devirtualize.
3903         (ipa_param_cannot_devirtualize_p): New function.
3904         (ipa_param_types_vec_empty): Likewise.
3905         (ipa_make_edge_direct_to_target): Declare.
3906         * ipa-cp.c: Fixed first stage driver name in initial comment,
3907         described devirtualization there too.
3908         (ipcp_analyze_node): Call ipa_analyze_params_uses.
3909         (ipcp_print_all_lattices): Print devirtualization info.
3910         (ipa_set_param_cannot_devirtualize): New function.
3911         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
3912         lattice to BOTTOM.
3913         (ipcp_init_stage): Merged into...
3914         (ipcp_generate_summary): ...its caller.
3915         (ipcp_change_tops_to_bottom): Also process type lists.
3916         (ipcp_add_param_type): New function.
3917         (ipcp_copy_types): Likewise.
3918         (ipcp_propagate_types): Likewise.
3919         (ipcp_propagate_stage): Also propagate types.
3920         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
3921         Also return true if propagated types require it.
3922         (ipcp_update_callgraph): Dump redirection info.
3923         (ipcp_process_devirtualization_opportunities): New function.
3924         (ipcp_const_param_count): Include known type information.
3925         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
3926         on new node.  Fixed formatting.
3927         * ipa-prop.c (make_edge_direct_to_target): Renamed to
3928         ipa_make_edge_direct_to_target and changed all callers.  Made
3929         externally visible.
3930         (ipa_node_duplication_hook): Duplicate types vector.
3931         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
3932         redirect outgoing calls for which we can't get a decl from the
3933         statement.  Check that we can get a decl from the call statement.
3934         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3935         ipa_analyze_params_uses only when ipa-cp is disabled.
3936         * tree-inline.c (get_indirect_callee_fndecl): Removed.
3937         (expand_call_inline): Do not call get_indirect_callee_fndecl.
3938         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
3939         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
3940
3941 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3942
3943         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
3944         temporary. Emit move from temporary to accum, so REG_EQUAL note will
3945         be attached to this insn in correct mode.
3946
3947 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3948
3949         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
3950         using REGNO of base_reg directly.
3951
3952 2010-08-05  Jie Zhang  <jie@codesourcery.com>
3953
3954         PR tree-optimization/45144
3955         * tree-sra.c (type_consists_of_records_p): Return false
3956         if the record contains bit-field.
3957
3958 2010-08-04  Richard Henderson  <rth@redhat.com>
3959
3960         * config/i386/i386.c (struct ix86_frame): Remove padding and
3961         to_allocate members.
3962         (ix86_compute_frame_layout): Don't store them.
3963         (ix86_can_use_return_insn_p): Use a more direct and more obviously
3964         correct condition for the position of the stack pointer.
3965         (ix86_expand_prologue): Compute remaining stack allocation based
3966         on the ultimate stack pointer offset.
3967         (ix86_expand_epilogue): Use more obvious expressions testing for
3968         the stack pointer already pointing to the saved registers.
3969
3970         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
3971         duplication deconstructing the frame pointer.  Simplify
3972         deallocation of the local stack frame.
3973
3974         * reg-notes.def (CFA_EXPRESSION): New.
3975         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3976         (dwarf2out_frame_debug_cfa_expression): New.
3977         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
3978
3979         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
3980         * config/i386/i386.c (ix86_expand_prologue): Set it.
3981         (ix86_expand_epilogue): Clear it.
3982         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
3983         context, add REG_CFA_EXPRESSION notes.
3984
3985         * config/i386/i386.h (struct machine_frame_state): Rename from
3986         machine_cfa_state.  Add members tracking SP and FP regardless
3987         of the current CFA register.
3988         (ix86_cfa_state): Remove.
3989         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
3990         and sse_reg_save_offset members.
3991         (ix86_compute_frame_layout): Set them.
3992         (gen_push): Increment sp_offset too.
3993         (choose_baseaddr_len, choose_baseaddr): New.
3994         (ix86_emit_save_reg_using_mov): New.
3995         (ix86_emit_save_regs_using_mov): Use it.
3996         (ix86_emit_save_sse_regs_using_mov): Likewise.
3997         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
3998         compare vs the saved red_zone_offset.
3999         (pro_epilogue_adjust_stack): Adjust sp_offset.
4000         (ix86_adjust_stack_and_probe): Likewise.
4001         (ix86_expand_prologue): Set up, use, and validate the new
4002         frame_state_info members.  Use gen_frame_mem.
4003         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
4004         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
4005         new frame_state_info members.
4006         (ix86_emit_leave): Likewise.
4007         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
4008         out-of-range stack pointer offsets here.
4009         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4010         (ix86_expand_epilogue): Use and validate the new frame_state_info
4011         members.  Break up and simplify the logic selecting the
4012         restore_regs_via_mov code path.  Ensure that there will be no
4013         out-of-range stack pointer offsets.
4014
4015         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
4016
4017         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
4018         argument name to reflect the expected tree; fix indentation.
4019         (ix86_asm_output_function_label): Output the entire 32-bit
4020         ms_hook here as bytes ...
4021         (ix86_expand_prologue): ... not here as insns.  Attach the
4022         unwind info for the ms_hook to a blockage insn.
4023         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
4024         (ix86_ms_bitfield_layout_p): Fix indentation.
4025         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
4026
4027         * config/i386/i386.c (ix86_using_red_zone): New.
4028         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
4029         ix86_expand_prologue, ix86_force_to_memory): Use it.
4030
4031         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
4032         saving the int registers.
4033
4034         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
4035         and DWARF2_UNWIND_INFO conditional compilation.
4036
4037 2010-08-04  Richard Henderson  <rth@redhat.com>
4038
4039         PR debug/45171
4040         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
4041         an is_naming_typedef_decl.
4042
4043 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
4044
4045         PR rtl-optimization/45162
4046         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
4047         * dce.c (word_dce_process_block): Likewise.
4048
4049 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
4050
4051         PR target/44583
4052         * config/ia64/constraints.md (Z): New.
4053         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
4054         (xfreg_or_signed_fp01_operand): New.
4055         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
4056         with fr_reg_or_signed_fp01_operand and constraint G with Z.
4057         (subsf3): Ditto.
4058         (*maddsf4): Ditto.
4059         (*msubsf4): Ditto.
4060         (adddf3): Ditto.
4061         (adddf3_trunc): Ditto.
4062         (subdf3): Ditto.
4063         (*subdf3_trunc): Ditto.
4064         (*madddf4): Ditto.
4065         (*madddf4_trunc): Ditto.
4066         (*msubdf4): Ditto.
4067         (*msubdf4_trunc): Ditto.
4068         (addxf3): Replace xfreg_or_fp01_operand with
4069         xfreg_or_signed_fp01_operand and constraint G with Z.
4070         (*addxf3_truncsf): Ditto.
4071         (*addxf3_truncdf): Ditto.
4072         (subxf3): Ditto.
4073         (*subxf3_truncsf): Ditto.
4074         (*subxf3_truncdf): Ditto.
4075         (*maddxf4): Ditto.
4076         (*maddxf4_truncsf): Ditto.
4077         (*maddxf4_truncdf): Ditto.
4078         (*msubxf4): Ditto.
4079         (*msubxf4_truncsf): Ditto.
4080         (*msubxf4_truncdf): Ditto.
4081
4082 2010-08-04  Richard Guenther  <rguenther@suse.de>
4083
4084         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
4085         if either alias-set is zero.
4086
4087 2010-08-04  Richard Guenther  <rguenther@suse.de>
4088
4089         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
4090         * tree-ssa-ccp.c: ... here.
4091         * tree-ssa-copy.c: ... and here.
4092         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
4093         value_range_t): Move ...
4094         * tree-vrp.c: ... here.
4095         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
4096         (substitute_and_fold): Adjust prototype.
4097         * tree-ssa-propagate.c (replace_uses_in): Adjust.
4098         (replace_phi_args_in): Likewise.
4099         (substitute_and_fold): Take callback to query lattice instead
4100         of pointer to lattice.  Replace SSA name defs with lattice
4101         values first.
4102         * tree-ssa-ccp.c (ccp_finalize): Adjust.
4103         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
4104         (get_value): New function.
4105         (fini_copy_prop): Adjust.
4106         * tree-vrp.c (vrp_finalize): Adjust.
4107
4108 2010-08-04  Richard Guenther  <rguenther@suse.de>
4109
4110         PR middle-end/45176
4111         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
4112         points-to set for original MEM_REF.
4113
4114 2010-08-04  Richard Guenther  <rguenther@suse.de>
4115
4116         * tree-ssa-ccp.c (get_constant_value): New function.
4117         (get_rhs_assign_op_for_ccp): Remove.
4118         (valueize_op): New function.
4119         (ccp_fold): Use get_constant_value and valueize_op.
4120         (fold_const_aggregate_ref): Likewise.
4121         (ccp_fold_stmt): Likewise.
4122         (visit_assignment): Simplify.
4123
4124 2010-08-04  Richard Guenther  <rguenther@suse.de>
4125
4126         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
4127         * double-int.h (double_int_ctz): Declare.
4128         * double-int.c (double_int_ctz): New function.
4129
4130 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
4131
4132         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
4133         Define.
4134         picochip_expand_movmemhi : Expand movmem pattern.
4135         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
4136         Declare.
4137         * config/picochip/picochip.md (movmemhi) : New pattern.
4138
4139 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4140
4141         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
4142
4143 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
4144
4145         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
4146         NEG as operand of a MULT by merging it with the other operand.
4147         * combine.c (make_compound_operation): Use trunc_int_for_mode when
4148         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
4149         MULT.
4150         * config/arm/constraints.md (M): Examine only 32 bits of a
4151         HOST_WIDE_INT.
4152         * config/arm/predicates.md (power_of_two_operand): Likewise.
4153
4154 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4155
4156         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
4157         non-NOTE insns.
4158
4159 2010-08-03  Jan Hubicka  <jh@suse.cz>
4160
4161         * ipa-split.c (struct split_point): Add split_part_set_retval.
4162         (find_retval): Forward declare.
4163         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
4164         (consider_split): Compute current->split_part_set_retval.
4165         (visit_bb): Do not look into return value.
4166         (split_function): Handle !split_part_set_retval
4167
4168 2010-08-03  Martin Jambor  <mjambor@suse.cz>
4169
4170         * tree-sra.c (completely_scalarize_record): New parameter REF, create
4171         its own access->expr intead of using build_ref_for_offset.
4172
4173 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4174
4175         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
4176         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
4177         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
4178         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
4179         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
4180         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
4181         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
4182         DEFAULT_SWITCH_TAKES_ARG.
4183         * config/rx/rx.opt (-patch=): Remove option.
4184         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
4185         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
4186         * doc/invoke.texi (RX Options): Remove -patch=.
4187         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
4188         (option_map): Remove --profile-blocks, --quiet and --silent.
4189
4190 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4191
4192         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
4193         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
4194         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
4195         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4196         Update calls to ix86_expand_compare and ix86_expand_branch.
4197         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
4198         ix86_expand_compare.
4199         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
4200         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4201         Make static.
4202         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
4203         and ix86_compare_op1.  Update calls to ix86_expand_compare.
4204         (ix86_expand_int_movcc): Ditto.
4205         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
4206         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
4207         (ix86_expand_setcc): Ditto.
4208         (ix86_expand_compare): Remove prototype.
4209         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
4210         ix86_compare_op0 and ix86_compare_op1.  Update calls
4211         to ix86_expand_branch to directly pass operands[1] and operands[2].
4212         (cbranchxf4): Ditto.
4213         (cbranch<MODEF:mode>4): Ditto.
4214         (cbranchcc4): Ditto.
4215         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
4216         Update calls to ix86_expand_setcc to directly pass operands[2] and
4217         operands[3].
4218         (cstorexf4): Ditto.
4219         (cstore<MODEF:mode>4): Ditto.
4220         (cstorecc4): Ditto.
4221
4222 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4223
4224         PR target/45063
4225         * caller-save.c (save_call_clobbered_regs): Remove regs from
4226         hard_regs_saved when they are set.
4227
4228 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
4229
4230         PR target/41089
4231         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4232         as volatile.
4233
4234 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
4235
4236         * common.opt (ftree-loop-distribute-patterns): New.
4237         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
4238         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
4239         at -O3.
4240         * tree-data-ref.c (stores_zero_from_loop): New.
4241         * tree-data-ref.h (stores_zero_from_loop): Declared.
4242         * tree-loop-distribution.c (tree_loop_distribution): Call
4243         stores_zero_from_loop.
4244         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
4245
4246 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4247
4248         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
4249         into account.
4250
4251         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
4252         * config/arm/arm.c (thumb1_code): New variable.
4253         (arm_override_options): Set it.
4254         (thumb1_final_prescan_insn): Keep track of condition code status.
4255         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
4256         jumps that depend on them.
4257         * config/arm/arm.h (thumb1_code): Declare variable.
4258         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
4259         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
4260         thumb1_cc_mode.
4261         (CC_STATUS_INIT): New macro.
4262         * config/arm/constraints.md (Pd): New constraint.
4263         * config/arm/predicates.md (noov_comparison_operator): New predicate.
4264         * config/arm/arm.md (is_thumb1): New define_attr.
4265         (conds): Set default to "clob" when generating Thumb1 code.
4266         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
4267         code are set.  Use two-operand assembly syntax.
4268         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
4269         pattern.
4270         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
4271         codes are set.  Use two-operand assembly syntax.
4272         (zero_extendhisi splitter): Remove constraints.
4273         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
4274         thumb1_movsf_insn): Set conds attribute as appropriate.
4275         (cbranchsi4_insn): Use condition code status from struct
4276         machine_function to determine whether the comparison can be eliminated.
4277         Discourage the alternative using high registers.
4278         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
4279         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
4280         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
4281         subsi3_cbranch): Delete.
4282         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
4283         one subtract and one cbranch insn.
4284
4285         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
4286         thumb2_movdf_soft_insn): Delete patterns.
4287         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
4288         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
4289         (pool_range, neg_pool_range): Use them to define defaults.
4290         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
4291         and allow for TARGET_32BIT.
4292
4293         PR target/40457
4294         * config/arm/arm.h (arm_regs_in_sequence): Declare.
4295         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
4296         load_multiple_sequence, store_multiple_sequence): Delete
4297         declarations.
4298         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
4299         declarations.
4300         * config/arm/ldmstm.md: New file.
4301         * config/arm/arm.c (arm_regs_in_sequence): New array.
4302         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
4303         CHECK_REGS.  All callers changed.
4304         If SAVED_ORDER is nonnull, copy the computed order into it.
4305         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
4306         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
4307         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
4308         If SAVED_ORDER is nonnull, copy the computed order into it.
4309         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
4310         like REGS.  Handle Thumb mode.
4311         (arm_gen_load_multiple_1): New function, broken out of
4312         arm_gen_load_multiple.
4313         (arm_gen_store_multiple_1): New function, broken out of
4314         arm_gen_store_multiple.
4315         (arm_gen_multiple_op): New function, with code from
4316         arm_gen_load_multiple and arm_gen_store_multiple moved here.
4317         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
4318         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
4319         changed.
4320         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
4321         * config/arm/predicates.md (commutative_binary_operator): New.
4322         (load_multiple_operation, store_multiple_operation): Handle more
4323         variants of these patterns with different starting offsets.  Handle
4324         Thumb-1.
4325         * config/arm/arm.md: Include "ldmstm.md".
4326         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
4327         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
4328         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
4329         peepholes): Delete.
4330         * config/arm/ldmstm.md: New file.
4331         * config/arm/arm-ldmstm.ml: New file.
4332
4333         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
4334         if statement which adds extra costs to frame-related expressions.
4335
4336 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4337
4338         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
4339
4340 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
4341
4342         PR target/45142
4343         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
4344         alternative 2.
4345         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
4346         split V4SI operands.
4347
4348 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
4349
4350         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4351         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
4352         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
4353         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4354
4355 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
4356
4357         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
4358         LOCAL_INCLUDE_DIR.
4359
4360 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
4361
4362         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
4363         used in the call to optab_for_tree_code.  Fix the second
4364         is_widening_mult_p call.  Check that both unwidened operands
4365         have the same sign.
4366
4367 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
4368
4369         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
4370
4371 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
4372
4373         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4374
4375 2010-07-30  DJ Delorie  <dj@redhat.com>
4376
4377         * config/rx/predicates.md (rx_constshift_operand): New.
4378         * config/rx/rx.md (zs_cond): New.
4379         (cbranchsi4): Remove mode.
4380         (*cbranchsi4_<code>): Likewise.
4381         (*tstbranchsi4_<code>): New.
4382         (*tstbranchsi4r_<code>): New.
4383         (*tstbranchsi4m_eq): New.
4384         (*tstbranchsi4m_ne): New.
4385         (cbranchsf4): Remove mode.
4386         (*cbranchsf4_<code>): Likewise.
4387
4388 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
4389
4390         * rtlanal.c (simplify_subreg_regno): Don't treat
4391         HARD_FRAME_POINTER_REGNUM specially.
4392
4393 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
4394
4395         * common.opt (-G): Don't define option here.
4396         * config/g.opt: New.
4397         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
4398         rs6000/powerpc and score targets.
4399         * opts.c (common_handle_option): Don't handle -G here.
4400         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
4401         * config/frv/frv.c (frv_handle_option): Handle -G.
4402         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
4403         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
4404         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
4405         * config/mips/mips.c (mips_handle_option): Handle -G.
4406         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
4407         * config/score/score.c (score_handle_option): Handle -G.
4408
4409 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
4410
4411         * config/mmix/mmix.c: Include basic-block.h.
4412
4413 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
4414
4415         PR debug/45055
4416         PR rtl-optimization/45137
4417         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
4418         prototypes.
4419         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
4420         New functions.
4421         * combine.c (next_nonnote_nondebug_insn): Removed.
4422         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
4423         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
4424         * sched-deps.c (sched_analyze_insn): Likewise.
4425         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
4426         * rtlanal.c (canonicalize_condition): Likewise.
4427         * postreload.c (reload_combine_recognize_pattern): Likewise.
4428         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
4429
4430 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
4431
4432         * config/i386/i386.md (int_cond): Remove code iterator.
4433         (fp_cond): Ditto.
4434         (cbranch<mode>4): Use ordered_comparison_operator predicate
4435         for operator0.
4436         (cstore<mode>4): Ditto for operator1.
4437         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
4438         (add<mode>cc): ditto.
4439
4440 2010-07-30  Richard Guenther  <rguenther@suse.de>
4441
4442         PR middle-end/45141
4443         * expr.c (expand_expr_real_1): Check for not handled base address.
4444
4445 2010-07-30  Richard Guenther  <rguenther@suse.de>
4446
4447         * ipa-prop.c (ipa_modify_formal_parameters): Use
4448         build_distinct_type_copy.
4449
4450 2010-07-30  Anthony Green  <green@moxielogic.com>
4451
4452         * config/moxie/rtems.h: New file.
4453         * config.gcc: Add moxie-rtems support.
4454
4455 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4456
4457         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
4458         df flags as in run_fast_df_dce.
4459
4460 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4461
4462         Revert:
4463         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4464
4465         * rtl.def (NOTE): Swap operands 4 and 5.
4466         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
4467         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
4468         Adjust accordingly.
4469         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
4470
4471 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4472
4473         PR debug/45110
4474         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
4475         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
4476         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
4477         formal parameters.
4478         (gen_decl_die): Change return type to dw_die_ref, return what
4479         gen_formal_parameter_die returned.
4480
4481 2010-07-29  Martin Jambor  <mjambor@suse.cz>
4482
4483         * dbgcnt.def (eipa_sra): New counter.
4484         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
4485
4486 2010-07-29  Xinliang David Li  <davidxl@google.com>
4487
4488         PR bootstrap/45119
4489         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
4490         in revision 162652.
4491
4492 2010-07-29  Richard Guenther  <rguenther@suse.de>
4493
4494         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
4495         (TV_TREE_STORE_CCP): Likewise.
4496         (TV_TREE_REDPHI): Likewise.
4497
4498 2010-07-29  Richard Guenther  <rguenther@suse.de>
4499
4500         * double-int.h (double_int_and_not): New function.
4501         * combine.c (try_combine): Use it.
4502         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
4503
4504 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4505
4506         PR rtl-optimization/42575
4507         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
4508         Argument AU removed.  All callers changed.  Ignore artificial refs.
4509         Use return value of df_word_lr_simulate_defs to decide whether an insn
4510         is necessary.
4511         (fast_dce): Rename arg to WORD_LEVEL.
4512         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
4513         static.
4514         (pass_fast_rtl_byte_dce): Delete.
4515         * dce.h (run_word_dce): Declare.
4516         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
4517         All callers changed.  Simplify code to only deal with two-word regs.
4518         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
4519         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
4520         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
4521         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
4522         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
4523         (df_word_lr_mark_ref): Declare.
4524         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
4525         df_word_lr_simulate_uses): Declare or rename from byte variants.
4526         (df_byte_lr_simulate_artificial_refs_at_top,
4527         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4528         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
4529         declarations.
4530         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
4531         (enum df_mm): Delete.
4532         * df-byte-scan.c: Delete file.
4533         * df-problems.c (df_word_lr_problem_data): Renamed from
4534         df_byte_lr_problem_data, all members deleted except for
4535         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
4536         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
4537         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4538         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
4539         df_byte_lr_confluence_0): Delete functions.
4540         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
4541         callers changed.
4542         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
4543         Don't initialize members that were deleted, don't try to discover data
4544         about registers.  Ignore hard regs.
4545         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
4546         (df_word_lr_mark_ref): New function.
4547         (df_word_lr_bb_local_compute): Renamed from
4548         df_byte_bb_lr_local_compute; all callers changed.  Use
4549         df_word_lr_mark_ref.  Assert that artificial refs don't include
4550         pseudos.  Ignore hard registers.
4551         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
4552         Assert that exit block uses don't contain pseudos.
4553         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
4554         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
4555         callers changed.  Ignore hard regs.
4556         (df_word_lr_transfer_function): Renamed from
4557         df_byte_lr_transfer_function; all callers changed.
4558         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
4559         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
4560         changed.
4561         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
4562         callers changed.
4563         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
4564         confluence operator 0 set to NULL.
4565         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
4566         callers changed.
4567         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
4568         Return bool, true if bitmap changed or insn otherwise necessary.
4569         All callers changed.  Simplify using df_word_lr_mark_ref.
4570         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
4571         all callers changed.  Simplify using df_word_lr_mark_ref.
4572         * lower-subreg.c: Include "dce.h"
4573         (decompose_multiword_subregs): Call run_word_dce if df available.
4574         * Makefile.in (lower-subreg.o): Adjust dependencies.
4575         (df-byte-scan.o): Delete.
4576         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
4577
4578 2010-07-29  Richard Guenther  <rguenther@suse.de>
4579
4580         * tree.c (build_vector): Assert that the vector constant
4581         has enough elements.
4582         (build_vector_from_ctor): Pad with trailing zeros.
4583
4584 2010-07-29  Richard Guenther  <rguenther@suse.de>
4585
4586         PR tree-optimization/45120
4587         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4588         Handle offset in DEREFs properly.
4589         (get_constraint_for_1): Handle MEM_REF offset properly.
4590
4591 2010-07-29  Richard Guenther  <rguenther@suse.de>
4592
4593         PR middle-end/45034
4594         * convert.c (convert_to_integer): Always use an unsigned
4595         type for narrowed negate and bitwise not.
4596
4597 2010-07-29  Ira Rosen  <irar@il.ibm.com>
4598
4599         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
4600         to outer loop when creating reduction epilogue for double reduction,
4601         and switch back to the inner loop when updating the phi nodes.
4602         Update uses of outer loop exit phi nodes in double reduction (instead
4603         of uses of reduction).
4604
4605 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
4606
4607         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
4608         popcount on power7 and parity on power6 systems.
4609         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
4610         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
4611         instructions.
4612
4613         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
4614         (UNSPEC_PARITY): Ditto.
4615         (SFDF): New iterator for SF/DF.
4616         (rreg2): New mode attribute for floating register constraint.
4617         (TARGET_FLOAT): New mode attribute for whether single/double float
4618         is supported.
4619         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
4620         pattern.
4621         (parity<mode>2_cmpb): New insn for parity on power6 and newer
4622         machines.
4623         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
4624         pattern.  Add support for fcpsgn instruction added in power6.
4625         (copysignsf3): Delete.
4626         (copysigndf3): Delete.
4627         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
4628         instead of if_then_else in RTL to avoid problems with -0.
4629
4630         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
4631         of if_then_else to mirror scalar code.
4632         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
4633         rs6000.md.
4634
4635         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
4636         instead of if_then_else.
4637
4638 2010-07-28  Xinliang David Li  <davidxl@google.com>
4639
4640         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
4641         (dump_cand): Dump var_before/after.
4642         (htab_inv_expr_eq): New function.
4643         (htab_inv_expr_hash): New function.
4644         (tree_ssa_iv_optimize_init): Support pseudo invariants.
4645         (add_candidate_1): consider base type precision.
4646         (set_use_iv_cost): New parameter.
4647         (adjust_setup_cost): Use profile information.
4648         (get_address_cost): Do not hard code width in computing address
4649         offset limits.
4650         (compare_aff_trees): New function.
4651         (get_loop_invariant_expr_id): New function.
4652         (get_computation_cost_at): New parameter and use profile information.
4653         (get_computation_cost): New parameter.
4654         (determine_use_iv_cost_generic): Pass new parameter.
4655         (determine_use_iv_cost_address): Ditto.
4656         (determine_use_iv_cost_condition): Ditto.
4657         (autoinc_possible_for_pair): Ditto.
4658         (determine_use_iv_costs): More dumps.
4659         (iv_ca_get_num_inv_exprs): New function.
4660         (iv_ca_recount_cost): Consider loop invariants in register pressure
4661         cost.
4662         (iv_ca_add_use): New parameter.
4663         (iv_ca_dump): Better dumping.
4664         (iv_ca_extend): New parameter.
4665         (try_add_cand_for): Attempt to get better partial solution.
4666         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
4667         (create_new-ivs): More dumps.
4668         (rewrite_use_compare): Ditto.
4669         (free_loop_data): More cleanup.
4670         (treee_ssa_iv_optimize_finalize): Ditto.
4671
4672 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
4673
4674         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
4675         * config/i386/i386.c (ix86_profile_before_prologue): New.
4676         (override_options): Add special handling for -mfentry.
4677         (ix86_function_regparm): Likewise.
4678         (ix86_function_sseregparm): Likewise.
4679         (ix86_frame_pointer_required): Likewise.
4680         (ix86_expand_prologue): Check for ms_hook_prologue.
4681         (x86_function_profiler): Adjust mcount output.
4682         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
4683         * config/i386/i386.opt (mfentry): New.
4684         * doc/invoke.texi (mfentry): Add documentation.
4685         * doc/tm.texi: Regenerated..
4686         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
4687         * final.c (final_start_function): Replace macro
4688         PROFILE_BEFORE_PROLOGUE by target hook.
4689         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4690         * target.def (profile_before_prologue): New hook.
4691         * targhooks.c (default_profile_before_prologue): New.
4692         * targhooks.h (default_profile_before_prologue): New.
4693
4694 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
4695
4696         PR debug/45105
4697         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
4698
4699         PR debug/45103
4700         * dwarf2out.c (dwarf2out_var_location): Always consider
4701         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
4702
4703 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4704
4705         PR rtl-optimization/45107
4706         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
4707
4708 2010-07-28  Richard Guenther  <rguenther@suse.de>
4709
4710         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
4711         (set_lattice_value): Do not query an old default value.
4712         (get_value_for_expr): New function.  Properly canonicalize
4713         float values.
4714         (ccp_visit_phi_node): Use it.
4715
4716 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
4717
4718         * config/arm/arm.c (arm_pcs_default): Remove static.
4719         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
4720         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
4721         (arm_pcs_default): Declare.
4722
4723 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
4724
4725         * config/rs6000/rs6000.c (rs6000_override_options):
4726         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
4727         ... to darwin_rs6000_override_options.
4728         (rs6000_return_in_memory): Update preceding comment for darwin
4729         64 bit ABI.  Use TARGET_MACHO inline.
4730         (rs6000_darwin64_struct_check_p): New.
4731         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
4732         (function_arg): Likewise.
4733         (rs6000_arg_partial_bytes): Likewise.
4734         (rs6000_function_value): Likewise.
4735
4736 2010-07-28  Andi Kleen <ak@linux.intel.com>
4737
4738         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
4739
4740 2010-07-28  Richard Guenther  <rguenther@suse.de>
4741
4742         PR middle-end/44903
4743         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
4744         targets try harder to not generate unaligned accesses.
4745
4746 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4747
4748         PR rtl-optimization/45101
4749         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
4750         for gcse-las.
4751
4752 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4753
4754         PR tree-optimization/44885
4755         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
4756         with non-aliased component.
4757
4758 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
4759
4760         * config/darwin-driver.c (SWITCH_TAKES_ARG,
4761         WORD_SWITCH_TAKES_ARG): Remove.
4762         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4763         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
4764         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
4765         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
4766         definitions from gcc.c.
4767         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
4768         defaults.h.
4769         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
4770         Move to defaults.h.
4771         * opts-common.c: Include tm.h.
4772         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
4773         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
4774         Handle more than one argument.  Set canonical_option_num_elements.
4775         (decode_cmdline_options_to_array): Set
4776         canonical_option_num_elements and trailing elements of
4777         canonical_option.
4778         * opts.h (struct cl_decoded_option): Allow four elements in
4779         canonical_option.  Add field canonical_option_num_elements.
4780         * Makefile.in (opts-common.o): Update dependencies.
4781
4782 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4783
4784         PR middle-end/44790
4785         PR middle-end/44993
4786         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
4787         sure the base has address_mode before adding the offset.
4788
4789 2010-07-27  Xinliang David Li <davidxl@google.com>
4790
4791         * tree-flow.h (create_mem_ref): Add one new parameter.
4792         * tree-ssa-address.c (create_mem_ref): New parameter.
4793         (addr_to_parts): Ditto.
4794         (move_variant_to_index): New function.
4795         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
4796
4797 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4798
4799         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
4800         4 and 5.
4801         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
4802         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
4803         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
4804         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
4805         CODE_LABELs and NOTEs.
4806         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
4807         * combine.c (try_combine): Likewise.
4808         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4809         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
4810
4811 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4812
4813         * coretypes.h (struct cl_option_handlers): Declare.
4814         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
4815         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
4816         * langhooks-def.h (lhd_handle_option): Declare.
4817         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
4818         * langhooks.c (lhd_handle_option): New.
4819         * langhooks.h (struct lang_hooks): Update prototype and return
4820         value type of handle_option hook.
4821         * optc-gen.awk: Generate target_flags_explicit definition for the
4822         driver.
4823         * opts-common.c: Include diagnostic.h.
4824         (handle_option): Move from opts.c.  Update prototype and return
4825         value type.  Use handlers structure.
4826         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
4827         handlers structure.
4828         (set_option): Move from opts.c.
4829         * opts.c (common_handle_option): Update prototype and return value
4830         type.  Update calls to handle_option and enable_warning_as_error.
4831         (unknown_option_callback, post_handling_callback,
4832         lang_handle_option, target_handle_option): New.
4833         (handle_option, read_cmdline_option): Move to opts-common.c.
4834         (read_cmdline_options): Update prototype.  Update call to
4835         read_cmdline_option.
4836         (decode_options): Initialize and use handlers structure.
4837         (set_option): Move to opts-common.c.
4838         (enable_warning_as_error): Update prototype.  Update call to
4839         handle_option.
4840         * opts.h (struct cl_option_handler_func, struct
4841         cl_option_handlers): New.
4842         (handle_option, enable_warning_as_error): Update prototypes.
4843         (read_cmdline_option): Declare.
4844         * Makefile.in (opts-common.o): Update dependencies.
4845
4846 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4847
4848         * config/arm/arm.c (params.h): Include.
4849         (arm_override_options): Tune gcse-unrestricted-cost.
4850         * config/arm/t-arm (arm.o): Define dependencies.
4851
4852 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4853
4854         PR target/42495
4855         PR middle-end/42574
4856         * basic-block.h (get_dominated_to_depth): Declare.
4857         * dominance.c (get_dominated_to_depth): New function, use
4858         get_all_dominated_blocks as a base.
4859         (get_all_dominated_blocks): Use get_dominated_to_depth.
4860
4861         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
4862         (hoist_exprs): Remove.
4863         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
4864         (compute_code_hoist_vbeinout): Add debug print outs.
4865         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
4866
4867         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
4868         quadratic behavior.
4869         * params.h (MAX_HOIST_DEPTH): New macro.
4870         * doc/invoke.texi (max-hoist-depth): Document.
4871
4872 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4873
4874         PR rtl-optimization/40956
4875         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
4876         constants.
4877
4878 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4879
4880         PR target/42495
4881         PR middle-end/42574
4882         * config/arm/arm.c (legitimize_pic_address): Use
4883         gen_calculate_pic_address pattern to emit calculation of PIC address.
4884         (will_be_in_index_register): New function.
4885         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
4886         (thumb1_legitimate_address_p): Use it provided !strict_p.
4887         * config/arm/arm.md (calculate_pic_address): New expand and split.
4888
4889 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4890
4891         PR target/42495
4892         PR middle-end/42574
4893         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
4894         * config/arm/arm.md (define_split "J", define_split "K"): Make
4895         IRA/reload friendly.
4896
4897 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4898
4899         * gcse.c (insert_insn_end_basic_block): Update signature, remove
4900         unused checks.
4901         (pre_edge_insert, hoist_code): Update.
4902
4903 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4904
4905         PR target/42495
4906         PR middle-end/42574
4907         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
4908
4909 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4910
4911         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
4912
4913 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4914
4915         PR rtl-optimization/40956
4916         PR target/42495
4917         PR middle-end/42574
4918         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
4919         for hoisting.
4920         (hoist_code): Count occurences in current block too.
4921
4922 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4923
4924         * gcse.c (struct expr:max_distance): New field.
4925         (doing_code_hoisting_p): New static variable.
4926         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
4927         simple expressions, don't change behavior for PRE.  Set max_distance.
4928         (insert_expr_in_table): Set new max_distance field.
4929         (hash_scan_set): Update.
4930         (hoist_expr_reaches_here_p): Stop search after max_distance
4931         instructions.
4932         (find_occr_in_bb): New static function.  Use it in ...
4933         (hoist_code): Calculate sizes of basic block before any changes are
4934         done.  Pass max_distance to hoist_expr_reaches_here_p.
4935         (one_code_hoisting_pass): Set doing_code_hoisting_p.
4936
4937         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
4938         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
4939         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
4940         macros.
4941         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
4942         Document.
4943
4944 2010-07-27  Jeff Law  <law@redhat.com>
4945             Maxim Kuvyrkov  <maxim@codesourcery.com>
4946
4947         * gcse.c (compute_transpout, transpout): Remove, move logic
4948         to prune_expressions.
4949         (compute_pre_data): Move pruning of trapping expressions ...
4950         (prune_expressions): ... here.  New static function.
4951         (compute_code_hoist_data): Use it.
4952         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
4953
4954 2010-07-27  Xinliang David Li  <davidxl@google.com>
4955
4956         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
4957         (rewrite_use_address): Adjust iv update position when needed.
4958
4959 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4960
4961         * dbgcnt.def (hoist_insn): New debug counter.
4962         * gcse.c (hoist_code): Use it.
4963
4964 2010-07-27  Xinliang David Li  <davidxl@google.com>
4965
4966         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
4967         (niter_for_single_dom_exit): Passes additional parameter.
4968         (iv_period): Fix comments.
4969         (may_eliminate_iv): Handles multiple exit loops properly.
4970         (free_tree_niter_desc): New function.
4971         (free_loop_data): Frees up loop iteration descriptors.
4972
4973 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4974
4975         PR target/44542
4976         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
4977         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
4978         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
4979         (expand_one_var): Don't consider DECL_ALIGN for variables for
4980         which expand_one_stack_var_at has been already called.
4981
4982         PR testsuite/44701
4983         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
4984         constraints on IA-64.
4985
4986 2010-07-27  Jie Zhang  <jie@codesourcery.com>
4987
4988         PR target/44290
4989         Revert:
4990         2010-07-23  Jie Zhang  <jie@codesourcery.com>
4991
4992         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4993         false if ! tree_versionable_function_p.
4994
4995 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4996
4997         * dwarf2out.c (add_data_member_location_attribute): Use
4998         add_AT_unsigned instead of add_AT_int if offset is non-negative.
4999
5000 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5001
5002         * postreload.c (try_replace_in_use): New static function.
5003         (reload_combine_recognize_const_pattern): Use it here.  Allow
5004         substituting into a final add insn, and substituting into a memory
5005         reference in an insn that sets the reg.
5006
5007 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5008
5009         * common.opt (o): Add MissingArgError.
5010         * doc/options.texi (MissingArgError): Document.
5011         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
5012         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
5013         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5014         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
5015         * langhooks.h (struct lang_hooks): Remove missing_argument.
5016         * optc-gen.awk: Handle MissingArgError and output new structure
5017         field initializers.
5018         * opts.c (read_cmdline_option): Use missing_argument_error field
5019         instead of missing_argument langhook.
5020         * opts.h (struct cl_option): Add missing_argument_error field.
5021         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
5022
5023 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5024
5025         PR target/29090
5026         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
5027         Darwin64 ABI, for zero-sized objects.
5028
5029 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5030
5031         PR target/35491
5032         PR target/29090
5033
5034         Merge from Apple local 4.2.1.
5035         2005-05-11  Stan Shebs  <shebs@apple.com>
5036         Fix 64-bit varargs for Darwin (Radar 4028089).
5037         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
5038         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5039         Add argument, add case for 8-byte register half-filled with a float.
5040         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
5041         single-precision floats specially.
5042
5043 2010-07-27  Ira Rosen  <irar@il.ibm.com>
5044
5045         PR tree-optimization/44152
5046         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
5047         complex numbers for further check.
5048         (vect_supported_load_permutation_p): Check nodes with
5049         complex numbers.
5050
5051 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5052
5053         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
5054         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
5055         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
5056         (LANG_HOOKS_INITIALIZER): Add new hooks.
5057         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
5058         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
5059         and complain_wrong_lang_p.  Update init_options prototype.
5060         * c-objc-common.c (c_initialize_diagnostics): First call
5061         c_common_initialize_diagnostics.
5062         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
5063         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
5064         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
5065         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
5066         (hook_uint_void_0): New.
5067         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
5068         (hook_uint_void_0): New.
5069         * opts-common.c (decode_cmdline_option,
5070         decode_cmdline_options_to_array): Also fill in canonical_option field.
5071         * opts.c (complain_wrong_lang): Use langhook to determine whether
5072         to complain instead of special-casing LTO.
5073         (decode_options): Separate lang_mask determination with
5074         option_lang_mask hook from call of init_options hook.
5075         * opts.h (struct cl_decoded_option): Add canonical_option.
5076
5077 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5078
5079         PR tree-optimization/45083
5080         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
5081
5082 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5083
5084         * postreload.c (reload_combine_recognize_const_pattern): Move test
5085         for limiting the insn movement to the right scope.
5086
5087         PR rtl-optimization/45051
5088         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
5089         than reg_mentioned_p.
5090
5091 2010-07-26  Richard Henderson  <rth@redhat.com>
5092
5093         PR target/44132
5094         * tree-emutls.c: New file.
5095         * Makefile.in (OBJS-common): Add it.
5096         * tree-pass.h (pass_ipa_lower_emutls): Declare.
5097         * passes.c (init_optimization_passes): Add it.
5098
5099         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
5100         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
5101         * expr.c (emutls_var_address): Delete.
5102         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
5103         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
5104         (emutls_finish): Delete.
5105         * toplev.c (compile_file): Don't call it.
5106         * tree.h (emutls_decl): Delete.
5107         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
5108         (emutls_finish, emutls_finalize_control_var): Delete.
5109         (emutls_object_type): Move to tree-emutls.c.
5110         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
5111         default_emutls_var_fields, get_emutls_object_type,
5112         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
5113         default_emutls_var_init): Likewise.
5114         (get_variable_section): Don't special case emutls.
5115         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
5116         default_elf_select_section, default_unique_section,
5117         default_encode_section_info): Likewise.
5118         * varpool.c (decide_is_variable_needed): Likewise.
5119         * gimple-iterator.c (update_call_edge_frequencies): New
5120         (gsi_insert_on_edge_immediate): Use it.
5121         (gsi_insert_seq_on_edge_immediate): Likewise.
5122         (gsi_commit_one_edge_insert): Likewise.
5123
5124         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
5125         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
5126         (x86_64_elf_unique_section): Likewise.
5127
5128 2010-07-26  Jan Hubicka  <jh@suse.cz>
5129
5130         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
5131         GTY((skip)).
5132
5133 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
5134
5135         * target.def (output_source_filename): New hook.
5136         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
5137         * doc/tm.texi: Regenerate.
5138         * toplev.c (output_file_directive) Remove function.
5139         * toplev.h (output_file_directive) Remove.
5140         * output.h (default_asm_output_source_filename,
5141         output_file_directive): Declare.
5142         * varasm.h (default_asm_output_source_filename,
5143         output_file_directive): New functions.
5144
5145         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5146         * config/mips/mips-protos.h (mips_output_filename): Remove.
5147         * config/mips/mips.c (mips_output_filename): Make Static.
5148         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5149
5150 2010-07-26  Richard Guenther  <rguenther@suse.de>
5151
5152         PR tree-optimization/43784
5153         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
5154         if the destination is used by the call.
5155
5156 2010-07-26  Richard Guenther  <rguenther@suse.de>
5157
5158         PR middle-end/45073
5159         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
5160         SSA updating on being in SSA form.
5161
5162 2010-07-26  Richard Guenther  <rguenther@suse.de>
5163
5164         PR middle-end/45056
5165         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
5166
5167 2010-07-26  Richard Guenther  <rguenther@suse.de>
5168
5169         PR tree-optimization/45071
5170         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
5171         adjust op->opcode.
5172
5173 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
5174
5175         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
5176         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
5177         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
5178         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
5179         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
5180         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
5181         save_r31, return_r31, save_interrupt, return_interrupt,
5182         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
5183         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
5184         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
5185         new ABI requirements.
5186         (save_r6_r9, L_callt_save_r6_r9): Remove.
5187         * config/v850/predicates.md (even_reg_operand, disp23_operand,
5188         const_float_1_operand const_float_0_operand): New Predicates.
5189         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
5190         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
5191         * config/v850/t-v850: Update multilibs for new target variants.
5192         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
5193         * config/v850/t-v850e: Likewise.
5194         * config/v850/v850.c (v850_issue_rate): New.
5195         (v850_strict_argument_naming): New.
5196         (function_arg): Modify to generate a different ABI.
5197         (print_operand): Update case 'z' to support float modes.
5198         (output_move_single): Modify to generate appropriate and better
5199         assembly.
5200         (v850_float_z_comparison_operator, v850_select_cc_mode,
5201         v850_float_nz_comparison_operator,  v850_gen_float_compare,
5202         v850_gen_compare): New functions to support comparison of float values.
5203         (ep_memory_offset): Add support for V850E2 targets.
5204         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
5205         (INTERRUPT_REGPARM_NUM): Remove.
5206         (compute_register_save_size): Add extra case to save/restore long call.
5207         (use_prolog_function): New function to support prologue.
5208         (expand_prologue): Add support for V850E2 targets and modified
5209         as per the current ABI requirements.
5210         (expand_epilogue): Likewise.
5211         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
5212         (construct_save_jarl): Likewise.
5213         (construct_dispose_instruction): Update as per the current ABI
5214         requirements.
5215         (construct_prepare_instruction): Likewise.
5216         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
5217         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
5218         (CPP_SPEC): Updated to support v850e2 targets.
5219         (STRICT_ALIGNMENT): Modified.
5220         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
5221         (FIXED_REGISTERS): Likewise.
5222         (CALL_USED_REGISTERS): Likewise.
5223         (CONDITIONAL_REGISTER_USAGE): Updated.
5224         (HARD_REGNO_MODE_OK): Updated.
5225         (reg_class): Updated to add even registers.
5226         (REG_CLASS_NAMES): Likewise.
5227         (REG_CLASS_CONTENTS): Likewise.
5228         (REGNO_REG_CLASS): Updated for CC registers.
5229         (REG_CLASS_FROM_LETTER): Added support for even registers.
5230         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
5231         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
5232         ARG_POINTER_REGNUM): Updated.
5233         (FUNCTION_ARG_ADVANCE): Define.
5234         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
5235         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
5236         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
5237         (GO_IF_LEGITIMATE_ADDRESS): Updated.
5238         (SELECT_CC_MODE): Define.
5239         (REGISTER_NAMES): Updated to add psw and fcc registers.
5240         (ADDITIONAL_REGISTER_NAMES): Updated.
5241         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
5242         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
5243         * config/v850/v850.md (define_constants): Define new constants.
5244         (type): Update store,bit1,macc,div,fpu and single attributes.
5245         (cpu): New attribute.
5246         (cc): Add set_z attribute.
5247         (unsign23byte_load, sign23byte_load, unsign23hword_load,
5248         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
5249         23word_store): New instructions for 23-bit displacement load and store.
5250         (movqi_internal, movhi_internal): Update the attributes.
5251         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
5252         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
5253         the attributes.
5254         (v850_tst1): Modified using CC_REGNUM.
5255         (tstsi): Remove.
5256         (cmpsi): Modified as define_expand from define_insn.
5257         (cmpsi_insn, cmpsf, cmpdf): New instructions.
5258         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
5259         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
5260         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
5261         one_cmplsi2): Clobber the CC_REGNUM register.
5262         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
5263         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
5264         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
5265         (setf_insn, set_z_insn, set_nz_insn): New instructions for
5266         v850e2v3 target.
5267         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
5268         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
5269         targets.
5270         (sasf_1, sasf_2): Remove.
5271         (sasf): New instruction.
5272         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
5273         targets. CC_REGNUM register is clobbered and attributes are
5274         updated.
5275         (branch_z_normal, branch_z_invert, branch_nz_normal,
5276         branch_nz_invert): New branch related instructions.
5277         (jump): Updated the attributes.
5278         (switch): Update to support new targets. CC_REGNUM register is
5279         clobbered and attributes are updated.
5280         (call_internal_short, call_internal_long, call_value_internal_short,
5281         call_value_internal_long): Updated the attributes.
5282         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
5283         clobbered and attributes are updated.
5284         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
5285         Update to support new targets. CC_REGNUM register is clobbered.
5286         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
5287         instructions.
5288         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
5289         are updated.
5290         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
5291         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
5292         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
5293         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
5294         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
5295         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
5296         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
5297         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
5298         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
5299         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
5300         point instructions defined for V850e2v3 target.
5301         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
5302         Add support for V850E2 targets and CC_REGNUM register is clobbered.
5303         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
5304         support for new targets.
5305         * config/v850/v850-modes.def: New file.
5306         * config/v850/v850.opt(mstrict-align): Remove.
5307         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
5308         mv850e2v3): New command line options for V850.
5309         * config.gcc: Update the newly added files.
5310         * doc/invoke.texi: Update the newly added command line options for
5311         V850 target.
5312
5313 2010-07-26  Richard Guenther  <rguenther@suse.de>
5314
5315         PR tree-optimization/45052
5316         * ipa-pure-const.c (check_stmt): Check volatileness.
5317
5318 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5319
5320         PR target/44707
5321         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
5322         * config/sparc/sparc.c: Include reload.h.
5323         (legitimize_tls_address): Rename into...
5324         (sparc_legitimize_tls_address): ...this.
5325         (legitimize_pic_address): Rename into...
5326         (sparc_legitimize_pic_address): ...this.
5327         (sparc_expand_move): Adjust to above renaming.
5328         (sparc_tls_referenced_p): Likewise.
5329         (sparc_legitimize_tls_address): Likewise.
5330         (sparc_legitimize_pic_address): Likewise.
5331         (sparc_legitimize_address): Likewise.
5332         (sparc_output_mi_thunk): Likewise.
5333         (sparc_legitimize_reload_address): New global function.  Recognize
5334         (lo_sum (high ...) ...) patterns generated by earlier passes.
5335         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
5336
5337 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5338
5339         PR target/44484
5340         * config/sparc/predicates.md (memory_reg_operand): Delete.
5341         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
5342         (*sync_compare_and_swap): Encode the address form in the pattern.
5343         (*sync_compare_and_swapdi_v8plus): Likewise.
5344
5345 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
5346
5347         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
5348         Streamline paragraph on compatibility with the system compiler.
5349
5350 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
5351
5352         PR middle-end/45035
5353         * alias.c (true_dependence_1): Fix thinko in merge of old
5354         true_dependence and canon_true_dependence.
5355
5356 2010-07-23  Jan Hubicka  <jh@suse.cz>
5357
5358         * lto-streamer-out.c (write_symbol): Fix visibilities of external
5359         references.
5360
5361 2010-07-23  Le-Chun Wu  <lcwu@google.com>
5362
5363         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
5364         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
5365         and an unnecessary assignment.
5366         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
5367         self-assign warning.
5368         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
5369         unnecessary self-init.
5370
5371 2010-07-23  Richard Guenther  <rguenther@suse.de>
5372
5373         PR lto/43071
5374         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
5375         for -flto and -fwhopr.
5376
5377 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
5378
5379         PR target/41943
5380         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
5381         (stmp-int-hdrs): Prefix/postfix headers by include_next.
5382         * config.gcc (user_headers_inc_next_pre): New.
5383         (user_headers_inc_next_post): Likewise.
5384         (*-w64-mingw*): Use for float.h post-fixing, and for
5385         stddef.h/stdarg.h pre-fixing by include_next.
5386         * configure.ac (user_headers_inc_next_post): New.
5387         (user_headers_inc_next_pre): New.
5388         * configure: Regenerated.
5389
5390 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5391
5392         * configure.ac: Don't disable TLS on Solaris 8/9 by default
5393         Set tga_func for Solaris 2/x86 resp. SPARC.
5394         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
5395         (LIB_THREAD_LDFLAGS_SPEC): Define.
5396         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
5397         * configure: Regenerate.
5398         * config.in: Regenerate.
5399         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
5400         -pthread, -threads, LIB_TLS_SPEC with -pthread.
5401         * doc/install.texi (Specific, *-*-solaris2*): Document use of
5402         alternate thread libraries on Solaris 8.
5403         Document TLS patch requirements.
5404         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
5405         Document tls.
5406
5407         PR target/18788
5408         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
5409         -shared.
5410
5411 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
5412
5413         * tree.h (struct tree_base): Add nameless_flag bitfield.
5414         (TYPE_NAMELESS, DECL_NAMELESS): Define.
5415         * omp-low.c (create_omp_child_function, scan_omp_parallel,
5416         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
5417         DECL_ARTIFICIAL where needed.
5418         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
5419         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
5420         has DECL_NAMELESS set.
5421
5422 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5423
5424         PR tree-optimization/44915
5425         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
5426         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
5427         (analyze_function): Likewise.
5428
5429 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5430
5431         PR tree-optimization/44914
5432         * tree-sra.c (sra_modify_function_body): Return true if CFG was
5433         changed, add purging dead eh edges.
5434         (ipa_sra_modify_function_body): Return true if CFG was changed,
5435         simplify purging dead eh edges.
5436         (modify_function): Return true if CFG was changed.
5437         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
5438         was changed.
5439         (ipa_early_sra): Likewise.
5440
5441 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5442
5443         PR target/44290
5444         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
5445         if "naked".
5446         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5447         false if ! tree_versionable_function_p.
5448
5449 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
5450
5451         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
5452         * ipa-pure-const.c (special_builtlin_state): Remove
5453         BUILT_IN_ARGS_INFO case.
5454         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5455         * builtins.c (expand_builtin): Likewise.
5456         (expand_builtin_args_info): Remove.
5457         * doc/tm.texi (__builtin_args_info): Remove.
5458         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
5459         * doc/tm.text.in: Likewise.
5460
5461 2010-07-23  Richard Guenther  <rguenther@suse.de>
5462
5463         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
5464         (lto_symtab_merge_decls_2): Likewise.
5465         * tree-ssa.c (useless_type_conversion_p): Likewise.
5466         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5467         * gimple.c (gtc_visited2, gtc_ob2): Remove.
5468         (struct type_pair_d): Make same_p an array indexed by mode.
5469         Update comment.
5470         (lookup_type_pair): Update initialization.
5471         (struct sccs): Adjust same_p type.
5472         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
5473         Adjust.
5474         (print_gimple_types_stats): Likewise.
5475         * gimple.h (enum gtc_mode): New.
5476         (gimple_types_compatible_p): Adjust prototype.
5477
5478 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
5479
5480         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
5481         again after processing insn.
5482
5483 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5484
5485         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
5486         proper words when !tree_versionable_function_p.
5487
5488 2010-07-23  Richard Guenther  <rguenther@suse.de>
5489
5490         PR tree-optimization/45037
5491         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
5492
5493 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5494
5495         * doc/extend.texi: Remove IP2K from the description of naked attribute.
5496         Add MCORE instead.
5497
5498 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5499
5500         PR lto/44992
5501         * lto-opts.c (lto_write_options): Add NULL file_data argument to
5502         lto_get_section_name.
5503         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
5504         * lto-streamer-out.c (produce_asm): Likewise.
5505         (copy_function): Likewise.
5506         (produce_symtab): Likewise.
5507         (produce_asm_for_decls): Likewise.
5508         * lto-streamer.c (lto_get_section_name): Add file_data argument.
5509         Rewrite to add random postfix to LTO sections.
5510         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
5511         (lto_get_section_name): Add file_data argument to prototype.
5512
5513 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5514
5515         * lto-section-in.c (lto_section_name): Synchronize names
5516         with lto_get_section_name.
5517
5518 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5519
5520         * lto-opts.c (lto_read_file_options): Check for missing section.
5521
5522 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5523
5524         * ira.c (check_allocation): Correctly handle the case where an allocno
5525         with two objects was allocated to a single reg.
5526
5527 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
5528
5529         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
5530         (is_widening_mult_p): Likewise.
5531         (convert_to_widen): Use them.
5532         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
5533         well as integer ones.
5534
5535 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
5536
5537         * alias.c (true_dependence_1): New function, merged version of
5538         true_dependence and canon_true_dependence.
5539         (true_dependence): Simplify.
5540         (canon_true_dependence): Simplify.
5541
5542 2010-07-22  Richard Henderson  <rth@redhat.com>
5543
5544         PR target/45027
5545         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
5546         of V4SFmode for the SSE saves; increase stack alignment if needed.
5547         (ix86_gimplify_va_arg): Don't increase stack alignment here.
5548
5549 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
5550
5551         PR bootstrap/45028
5552         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
5553         call cprop_find_used_regs again via note_uses.
5554
5555 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5556
5557         * alias.c (get_alias_set): Fix formatting issues.
5558
5559 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
5560
5561         PR middle-end/44878
5562         * stmt.c (expand_value_return):  Call promote_function_mode with
5563         a for_return argument of 2 when returning by reference.
5564
5565 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
5566
5567         PR debug/45024
5568         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
5569         unit DIE if we can find the scope DIE.
5570
5571 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5572
5573         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
5574         changed.  Initialize OBJECT_SUBWORD.
5575         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
5576         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
5577         all callers changed.
5578         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
5579         (finish_allocno): Likewise.
5580         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
5581         (remove_low_level_allocnos): Likewise.
5582         (update_bad_spill_attribute): Likewise.
5583         (setup_min_max_allocno_live_range_point): Likewise.
5584         (sort_conflict_id_map): Likewise.
5585         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
5586         (ior_hard_reg_conflicts): New function.
5587         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
5588         (compress_conflict_vecs): Iterate over objects, not allocnos.
5589         (ira_add_live_range_to_object): New function.
5590         (object_range_compare_func): Renamed from allocno_range_compare_func.
5591         All callers changed.
5592         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
5593         subobjects, widen the min/max range of the lowest-order object to
5594         potentially include all other such low-order objects.
5595         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
5596         (check_allocation): Likewise.  Use more fine-grained tests for register
5597         conflicts.
5598         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
5599         allocno subobjects.
5600         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
5601         choices about which bits to set in each set.  Don't use
5602         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
5603         using the multiple sets we computed.
5604         (push_allocno_to_stack): Iterate over allocno subobjects.
5605         (all_conflicting_hard_regs_coalesced): New static function.
5606         (setup_allocno_available_regs_num): Use it.
5607         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
5608         subobjects.
5609         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
5610         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5611         by ALLOCNO_NUM_OBJECTS.
5612         (calculate_spill_cost): Likewise.
5613         (color_pass): Express if statement in a more normal way.
5614         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
5615         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
5616         (setup_slot_coalesced_allocno_live_ranges): Likewise.
5617         (allocno_reload_assign): Likewise.
5618         (ira_reassign_pseudos): Likewise.
5619         (fast_allocation): Likewise.
5620         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5621         (print_allocno_conflicts): Likewise.
5622         (ira_build_conflicts): Likewise.
5623         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
5624         callers changed.  Test subword 0 of each allocno for conflicts.
5625         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
5626         callers changed.  Iterate over allocno subobjects.
5627         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
5628         * ira-int.h (struct ira_allocno): New member: num_objects.
5629         Rename object to objects and change it into an array.
5630         (ALLOCNO_OBJECT): Add new argument N.
5631         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
5632         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
5633         (ior_hard_reg_conflicts): Declare.
5634         (ira_add_live_range_to_object): Declare.
5635         (ira_allocno_object_iterator): New.
5636         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
5637         (FOR_EACH_ALLOCNO_OBJECT): New macro.
5638         * ira-lives.c (objects_live): Renamed from allocnos_live; all
5639         uses changed.
5640         (allocnos_processed): New sparseset.
5641         (make_object_born): Renamed from make_allocno_born; take an
5642         ira_object_t argument.  All callers changed.
5643         (make_object_dead): Renamed from make_allocno_dead; take an
5644         ira_object_t argument.  All callers changed.
5645         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
5646         All callers changed.
5647         (mark_pseudo_regno_live): Iterate over allocno subobjects.
5648         (mark_pseudo_regno_dead): Likewise.
5649         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
5650         functions.
5651         (mark_ref_live): Detect subword accesses and call
5652         mark_pseudo_regno_subword_live as appropriate.
5653         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
5654         (process_bb_nodes_live): Deal with object-related updates first; set
5655         and test bits in allocnos_processed to avoid computing allocno
5656         statistics more than once.
5657         (create_start_finish_chains): Iterate over objects, not allocnos.
5658         (print_object_live_ranges): New function.
5659         (print_allocno_live_ranges): Use it.
5660         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
5661         and objects_live.
5662
5663 2010-07-22  Richard Guenther  <rguenther@suse.de>
5664
5665         PR lto/42451
5666         * gimple.c (gtc_next_dfs_num): New global.
5667         (struct sccs): Make value a union, add integer same_p member.
5668         (gtc_visit): New function.
5669         (gimple_types_compatible_p_1): New function, split out from ...
5670         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
5671         (iterative_hash_gimple_type): Adjust for sccs change.
5672
5673 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5674
5675         PR tree-optimization/44891
5676         * tree-sra.c: Include gimple-pretty-print.h.
5677         (replace_uses_with_default_def_ssa_name): Renamed to
5678         get_repl_default_def_ssa_name, return the new SSA name instead of
5679         replacing the old one.
5680         (sra_modify_assign): Dump a message when removing a load, if the LHS
5681         is an SSA_NAME, do not do any propagation, just set the RHS to a
5682         default definition SSA NAME, type convert if necessary.
5683         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
5684
5685 2010-07-22  Richard Guenther  <rguenther@suse.de>
5686
5687         PR tree-optimization/45017
5688         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
5689         TYPE_PRECISION of integral types in addition to size.
5690
5691 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5692
5693         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
5694         when no C library is specified.
5695
5696 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5697
5698         * ipa-prop.h (struct ipa_node_params): Updated comment.
5699         (struct ipa_edge_args): Likewise.
5700         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
5701
5702 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5703
5704         * cgraphunit.c (verify_edge_count_and_frequency): New function.
5705         (verify_cgraph_node): Verify frequencies of indirect edges.
5706         * tree-inline.c (tree_function_versioning): Update frequencies of
5707         indirect edges.
5708
5709 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5710
5711         PR target/43698
5712         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
5713         Set *arm_rev to be predicable.
5714
5715 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5716
5717         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
5718         (LINK_COMMAND_SPEC_A): New.
5719         (DSYMUTIL): New.
5720         (DSYMUTIL_SPEC): New.
5721         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
5722         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
5723
5724 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5725
5726         * calls.c (load_register_parameters): Move check for zero
5727         sized items so that only the call to
5728         mem_overlaps_already_clobbered_arg_p () is protected.
5729
5730 2010-07-22  Jan Hubicka  <jh@suse.cz>
5731
5732         * ipa-pure-const.c (varying_state): Break out from ...
5733         (get_function_state): ... here; always return varying_state
5734         when state would be NULL otherwise.
5735         (remove_node_data): Do not free varying state.
5736
5737 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5738
5739         PR bootstrap/44970
5740         PR middle-end/45009
5741         * postreload.c: Include "target.h".
5742         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
5743         into account.
5744         (fixup_debug_insns): Don't copy the rtx.
5745         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
5746         Don't copy when replacing.  Call fixup_debug_insns in the case where
5747         we merged one add with another.
5748         (reload_combine_recognize_pattern): Fail if there aren't any uses.
5749         Try harder to determine whether we're picking a valid index register.
5750         Don't set store_ruid for an insn we're going to scan in the
5751         next iteration.
5752         (reload_combine): Remove unused code.
5753         (reload_combine_note_use): When updating use information for
5754         an old insn, ignore a use that occurs after store_ruid.
5755         * Makefile.in (postreload.o): Update dependencies.
5756
5757         * function.c (record_hard_reg_sets): Restrict the previous change
5758         to cases where the incoming nominal mode is the same as the
5759         incoming promoted mode and everything happens in MODE_INT.
5760
5761 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5762
5763         PR debug/45015
5764         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
5765         ASM_OPERANDS_OUTPUT_IDX.
5766         (adjust_insn): For inline asm with multiple sets ensure first
5767         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
5768         the insn.
5769
5770 2010-07-21  Richard Henderson  <rth@redhat.com>
5771
5772         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
5773         comparison for avoiding xmm register saves.  Emit the xmm register
5774         saves explicitly.
5775         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
5776         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
5777         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
5778         Remove patterns and the associated splitters.
5779
5780 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
5781
5782         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
5783         and imagine parts of a complex, so that they can have the same
5784         base and fall into the same group.
5785
5786 2010-07-21  Richard Guenther  <rguenther@suse.de>
5787
5788         PR lto/45018
5789         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
5790         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
5791         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
5792
5793 2010-07-21  Martin Jambor  <mjambor@suse.cz>
5794
5795         PR tree-optimization/44900
5796         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
5797         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
5798
5799 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
5800
5801         PR middle-end/44738
5802         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
5803
5804 2010-07-21  Richard Guenther  <rguenther@suse.de>
5805
5806         PR middle-end/45013
5807         * tree-ssa.c (useless_type_conversion_p): Dispatch to
5808         gimple_types_compatible_p only when in lto.
5809         * gimple.c (gimple_types_compatible_p): Use canonical types
5810         to speed up comparison.
5811
5812 2010-07-21  Richard Guenther  <rguenther@suse.de>
5813
5814         * tree-flow.h (referenced_var): Move define ...
5815         * tree-flow-inline.h (referenced_var): ... here as an inline
5816         function.  Assert here ...
5817         * tree-dfa.c (referenced_var_lookup): ... instead of here.
5818         * tree-ssa.c (maybe_optimize_var): Check if the variable
5819         is in referenced vars.
5820         (execute_update_addresses_taken): Remove old broken check.
5821         * gimple-pretty-print.c (pp_points_to_solution): Use
5822         referenced_var_lookup.
5823         * tree-into-ssa.c (dump_decl_set): Likewise.
5824
5825 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5826
5827         PR debug/45003
5828         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
5829         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
5830         ZERO_EXTEND here.
5831
5832 2010-07-20  Richard Henderson  <rth@redhat.com>
5833
5834         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
5835
5836 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5837
5838         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
5839         computing the sum of the stack pointer and a large constant.
5840         * config/arm/constraints.md (M): Remove superfluous parentheses.
5841         (Pc): New constraint.
5842
5843 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5844
5845         PR debug/45006
5846         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
5847         operand's type if exp is tcc_unary class tree.
5848
5849 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5850
5851         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
5852         Reverse sense of if_then_else condition.
5853
5854 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5855
5856         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
5857         * config/rs6000/rs6000.c (rs6000_override_options): Set
5858         rs6000_block_move_inline_limit appropriately.
5859         (expand_block_move): Use rs6000_block_move_inline_limit.
5860         * doc/invoke.texi (mblock-move-inline-limit): Document.
5861
5862 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5863
5864         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
5865         FROM and TO.  All callers changed.  Don't look for tracked uses,
5866         just scan the RTL for DEBUG_INSNs and substitute.
5867         (reload_combine_recognize_pattern): Call fixup_debug_insns.
5868         (reload_combine): Ignore DEBUG_INSNs.
5869
5870 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5871
5872         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
5873         depth to 8 from 5.
5874
5875         PR debug/45003
5876         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
5877         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
5878         instead of the result's type.
5879
5880 2010-07-20  Richard Guenther  <rguenther@suse.de>
5881
5882         PR tree-optimization/44977
5883         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
5884         SSA form.
5885
5886 2010-07-20  Richard Guenther  <rguenther@suse.de>
5887
5888         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
5889         (lto_symtab_merge_decls_2): Likewise.
5890         * gimple.h (gimple_types_compatible_p): Declare.
5891         * gimple.c (gimple_queue_type_fixup): Remove.
5892         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
5893         (gimple_compatible_complete_and_incomplete_type_p): New function.
5894         (gimple_types_compatible_p): Adjust.
5895         (gimple_register_type): Remove type fixup code.
5896         (print_gimple_types_stats): Adjust.
5897         (free_gimple_type_tables): Likewise.
5898         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
5899         * tree-ssa.c (useless_type_conversion_p): Likewise.
5900
5901 2010-07-20  Richard Guenther  <rguenther@suse.de>
5902
5903         PR middle-end/44971
5904         PR middle-end/44988
5905         * tree-ssa.c (maybe_optimize_var): New function split out from ...
5906         (execute_update_addresses_taken): ... here.
5907         (non_rewritable_mem_ref_base): Likewise.
5908         (execute_update_addresses_taken): Do not iterate over all referenced
5909         vars but just all local decls and parms.
5910         Properly check call and asm arguments and rewrite call arguments.
5911
5912 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
5913
5914         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
5915         to top level.
5916         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
5917         definitions ...
5918         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
5919         New macro.
5920         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
5921
5922 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5923
5924         * gengtype.c (start_root_entry): New function, split out from
5925         write_root.  Check whether V is null and raise an error if so.
5926         (write_field_root): Check for V being null.  Don't raise an error here;
5927         set V to null instead.
5928         (write_root): Update comment above function.  Use start_root_entry.
5929
5930 2010-07-19  Xinliang David Li  <davidxl@google.com>
5931
5932         PR testsuite/44932
5933         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
5934         def edges.
5935         (find_uninit_use): Add dump.
5936         (is_use_properly_guarded): Ditto.
5937         (warn_uninitialized_phi): Ditto.
5938         (execute_late_warn_uninitialized): Ditto.
5939
5940 2010-07-19  Richard Guenther  <rguenther@suse.de>
5941
5942         PR middle-end/44941
5943         * expr.c (emit_block_move_hints): Move zero size check first.
5944         Move asserts to more useful places.
5945         * calls.c (load_register_parameters): Check for zero size.
5946
5947 2010-07-19  Richard Henderson  <rth@redhat.com>
5948
5949         * tree-optimize.c (execute_all_early_local_passes): New.  Change
5950         cgraph_state here ...
5951         (execute_early_local_optimizations): ... not here.  Remove.
5952         (pass_early_local_passes, pass_all_early_optimizations): Update.
5953
5954 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
5955
5956         * postreload.c (reload_combine_closest_single_use): Ignore the
5957         number of uses for DEBUG_INSNs.
5958         (fixup_debug_insns): New static function.
5959         (reload_combine_recognize_const_pattern): Use it.  Don't let the
5960         main loop be affected by DEBUG_INSNs.
5961         Really disallow moving adds past a jump insn.
5962         (reload_combine_recognize_pattern): Don't update use_ruid here.
5963         (reload_combine_note_use): Do it here.
5964         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
5965
5966 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
5967
5968         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
5969         of a loop.
5970         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
5971
5972 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
5973
5974         * config/i386/darwin.h: Define darwin_emit_branch_islands.
5975         (TARGET_MACHO_BRANCH_ISLANDS): New.
5976         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
5977         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
5978         default value.
5979         * config/i386/i386.c (output_pic_addr_const): Do not emit
5980         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
5981         (x86_output_mi_thunk): Adjust symbol creation.
5982         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
5983         Remove out of date comment.
5984         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
5985         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5986         (DARWIN_GENERATE_ISLANDS): Ditto.
5987         (output_call):  Do not emit branch islands unless
5988         darwin_emit_branch_islands is set.
5989         * config/darwin.c: Declare darwin_emit_branch_islands.
5990         (machopic_indirect_data_reference): Do not emit unless
5991         darwin_emit_branch_islands is set.
5992         (darwin_override_options): Set darwin_emit_branch_islands
5993         where it is needed.
5994         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5995
5996 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5997
5998         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5999         sse_runtime, sse2_runtime.
6000
6001 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
6002
6003         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
6004         low half of a single-register SCmode return value before ORing
6005         it with the high half.
6006         * config/mips/mips16.S (MERGE_GPRf): Likewise.
6007
6008 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6009
6010         PR target/44805
6011         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
6012         on all targets.
6013
6014 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
6015
6016         PR target/42235
6017         * postreload.c (reload_cse_move2add): Return bool, true if anything.
6018         changed.  All callers changed.
6019         (move2add_use_add2_insn): Likewise.
6020         (move2add_use_add3_insn): Likewise.
6021         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
6022         reload_combine.
6023         (RELOAD_COMBINE_MAX_USES): Bump to 16.
6024         (last_jump_ruid): New static variable.
6025         (struct reg_use): New members CONTAINING_MEM and RUID.
6026         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
6027         (reload_combine_split_one_ruid, reload_combine_split_ruids,
6028         reload_combine_purge_insn_uses, reload_combine_closest_single_use
6029         reload_combine_purge_reg_uses_after_ruid,
6030         reload_combine_recognize_const_pattern): New static functions.
6031         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
6032         is true for our reg and that we have available index regs.
6033         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
6034         callers changed.  Use them to initialize fields in struct reg_use.
6035         (reload_combine): Initialize last_jump_ruid.  Be careful when to
6036         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
6037         Call reload_combine_recognize_const_pattern.
6038         (reload_combine_note_store): Update REAL_STORE_RUID field.
6039
6040 2010-07-16  Jason Merrill  <jason@redhat.com>
6041
6042         * Makefile.in (opts-common.o): Depend on options.h.
6043
6044 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
6045
6046         * tree.c (build_common_builtin_nodes): Use build_function_type_list
6047         instead of build_function_type.
6048         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
6049         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
6050
6051 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
6052
6053         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
6054         do all the work.
6055         (rs6000_emit_int_cmove): Use function pointers for insn generation.
6056         Don't force values into registers unnecessarily.
6057         (output_isel): Assert that we're not given conditions we can't handle.
6058         Delete corresponding code.
6059         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
6060         scc_comparison_operator constraint.  Permit 0 for the consequent
6061         operand.  Permit any GPR for the alternative operand.
6062         (isel_unsigned_<mode>): Likewise.
6063
6064 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
6065
6066         PR target/44942
6067         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
6068         argument to const_tree.
6069         * config/i386/i386.c (function_arg_advance): If padding needs to be
6070         inserted before argument, increment cum->words by number of padding
6071         words as well.
6072         (contains_aligned_value_p): Change argument to const_tree.
6073         (ix86_function_arg_boundary): Change second argument to const_tree.
6074
6075 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
6076
6077         PR target/42235
6078         * function.c (record_hard_reg_sets): New static function.
6079         (assign_parm_setup_reg): If an optab for extending exists and the
6080         generated code clobbbers no hard regs, emit the insn directly and
6081         create a REG_EQUIV note.
6082
6083 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6084
6085         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
6086         TREE_CHAIN.
6087         * c-typeck.c (push_init_level): Likewise.
6088         (process_init_element): Likewise.
6089
6090 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
6091
6092         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
6093         (integer_three_node): Add.
6094         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
6095         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
6096         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
6097         of call build_int_cst.
6098         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
6099         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
6100         (find_interesting_uses_address): Ditto.
6101         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
6102         * tree-eh.c (lower_eh_constructs_2): Ditto.
6103         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
6104         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
6105         * expmed.c (expand_divmod): Ditto.
6106         * tree-mudflap.c (mx_register_decls): Ditto.
6107         * varasm.c (array_size_for_constructor): Ditto.
6108         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6109         * c-parser.c (c_parser_postfix_expression): Ditto.
6110
6111 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6112
6113         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
6114         New static variables.
6115         (reload_combine_recognize_pattern): New static function, broken out
6116         of reload_combine.
6117         (reload_combine): Use it.  Only initialize first_index_reg and
6118         last_index_reg once.
6119
6120 2010-07-15  Richard Henderson  <rth@redhat.com>
6121
6122         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
6123         when done.
6124
6125 2010-07-15  Jan Hubicka  <jh@suse.cz>
6126
6127         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
6128         comdats for broken gold.
6129         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
6130
6131 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6132
6133         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
6134
6135 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6136
6137         * tree.h (DECL_CHAIN): Define.
6138         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6139         * c-decl.c: Likewise.
6140         * c-parser.c: Likewise.
6141         * c-typeck.c: Likewise.
6142         * cfgexpand.c: Likewise.
6143         * cgraph.c: Likewise.
6144         * cgraphunit.c: Likewise.
6145         * combine.c: Likewise.
6146         * config/alpha/alpha.c: Likewise.
6147         * config/arm/arm.c: Likewise.
6148         * config/frv/frv.c: Likewise.
6149         * config/i386/i386.c: Likewise.
6150         * config/i386/winnt-cxx.c: Likewise.
6151         * config/ia64/ia64.c: Likewise.
6152         * config/iq2000/iq2000.c: Likewise.
6153         * config/mep/mep.c: Likewise.
6154         * config/mips/mips.c: Likewise.
6155         * config/pa/som.h: Likewise.
6156         * config/rs6000/rs6000.c: Likewise.
6157         * config/s390/s390.c: Likewise.
6158         * config/sh/sh.c: Likewise.
6159         * config/sh/symbian-cxx.c: Likewise.
6160         * config/sparc/sparc.c: Likewise.
6161         * config/spu/spu.c: Likewise.
6162         * config/stormy16/stormy16.c: Likewise.
6163         * config/vxworks.c: Likewise.
6164         * config/xtensa/xtensa.c: Likewise.
6165         * coverage.c: Likewise.
6166         * dbxout.c: Likewise.
6167         * dwarf2out.c: Likewise.
6168         * emit-rtl.c: Likewise.
6169         * expr.c: Likewise.
6170         * function.c: Likewise.
6171         * gimple-low.c: Likewise.
6172         * gimple-pretty-print.c: Likewise.
6173         * gimplify.c: Likewise.
6174         * integrate.c: Likewise.
6175         * ipa-inline.c: Likewise.
6176         * ipa-prop.c: Likewise.
6177         * ipa-split.c: Likewise.
6178         * ipa-struct-reorg.c: Likewise.
6179         * ipa-type-escape.c: Likewise.
6180         * langhooks.c: Likewise.
6181         * lto-cgraph.c: Likewise.
6182         * omp-low.c: Likewise.
6183         * stor-layout.c: Likewise.
6184         * tree-cfg.c: Likewise.
6185         * tree-complex.c: Likewise.
6186         * tree-dfa.c: Likewise.
6187         * tree-dump.c: Likewise.
6188         * tree-inline.c: Likewise.
6189         * tree-mudflap.c: Likewise.
6190         * tree-nested.c: Likewise.
6191         * tree-object-size.c: Likewise.
6192         * tree-pretty-print.c: Likewise.
6193         * tree-sra.c: Likewise.
6194         * tree-ssa-live.c: Likewise.
6195         * tree-ssa-loop-niter.c: Likewise.
6196         * tree-ssa-math-opts.c: Likewise.
6197         * tree-ssa-reassoc.c: Likewise.
6198         * tree-ssa-sccvn.c: Likewise.
6199         * tree-ssa-structalias.c: Likewise.
6200         * tree-tailcall.c: Likewise.
6201         * tree-vrp.c: Likewise.
6202         * tree.c: Likewise.
6203         * var-tracking.c: Likewise.
6204         * varasm.c: Likewise.
6205
6206 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6207
6208         PR target/44877
6209         * config/spu/spu.c (spu_expand_builtin_1): Allow references
6210         (as well as pointers) as argument to mask_for_load builtins.
6211
6212 2010-07-15  Richard Guenther  <rguenther@suse.de>
6213
6214         PR tree-optimization/44946
6215         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
6216         with accessing only padding properly.
6217
6218 2010-07-15  Jan Hubicka  <jh@suse.cz>
6219
6220         * ipa.c (function_and_variable_visibility): Variables marked as used
6221         should not be localized.
6222
6223 2010-07-15  Jan Hubicka  <jh@suse.cz>
6224
6225         * cgraph.c: Include lto-streamer.h
6226         (change_decl_assembler_name): Work when assembler name hash is at place.
6227         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
6228         be sure to rename it to avoid name clash.
6229         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
6230         Localize hidden symbols only when locally defined.
6231
6232 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
6233
6234         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
6235
6236 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
6237             Kevin F. Quinn  <kevquinn@gentoo.org>
6238
6239         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
6240         * common.opt: Add -Wtrampolines.
6241         * doc/invoke.texi: Add -Wtrampolines.
6242
6243 2010-07-15  Jie Zhang  <jie@codesourcery.com>
6244
6245         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
6246         cortex_a8_issue_ls.
6247
6248 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
6249
6250         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
6251         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
6252
6253 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6254
6255         * config/spu/spu.c (reg_names): Remove prototype.
6256         (call_used_regs): Likewise.
6257
6258 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
6259
6260         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
6261         "unused" with attribute "used".
6262         (__JCR_END__): Likewise.
6263         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
6264         "used" attribute.
6265         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
6266
6267 2010-07-14  Richard Guenther  <rguenther@suse.de>
6268
6269         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
6270         (maybe_fixup_decls): Likewise.
6271         (input_gimple_stmt): Do not fixup anything.
6272         * lto-streamer-out.c (output_gimple_stmt): Make sure all
6273         non-automatic variable uses are wrapped inside a MEM_REF.
6274
6275 2010-07-14  Richard Henderson  <rth@redhat.com>
6276
6277         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
6278         for functions.
6279         * varasm.c (assemble_variable): Remove early exit for functions;
6280         assert that we're given a variable.
6281
6282 2010-07-14  Jie Zhang  <jie@codesourcery.com>
6283
6284         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
6285         cortex_a8_default when neon_type is not none.
6286
6287 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6288
6289         * lower-subreg.c (subreg_context): New static bitmap.
6290         (decompose_multiword_subregs): Allocate and free it.
6291         (find_decomposable_subregs): Set a bit in it for a register that
6292         occurs in a subreg that changes mode but not size.
6293         (can_decompose_p): Test it instead of non_decomposable_context.
6294
6295 2010-07-14  Richard Guenther  <rguenther@suse.de>
6296
6297         PR tree-optimization/44824
6298         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
6299         is_gimple_mem_ref_addr.
6300         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
6301         non-decl_address_invariant_p addresses.
6302
6303 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6304
6305         * reload.c (find_reloads): Revert code to penalize small register
6306         classes that was brought in with the IRA merge.
6307
6308 2010-07-14  Richard Guenther  <rguenther@suse.de>
6309
6310         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
6311         as base of ARRAY_REFs.
6312
6313 2010-07-14  Richard Guenther  <rguenther@suse.de>
6314
6315         PR middle-end/44930
6316         * tree-pretty-print.c (do_niy): Do not print a newline.
6317
6318 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6319
6320         * ira-int.h (struct ira_object): New.
6321         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
6322         (struct ira_allocno): Remove members min, max,
6323         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
6324         conflict_allocnos_num and conflict_vec_p.  Add new member object.
6325         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
6326         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
6327         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
6328         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
6329         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
6330         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
6331         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
6332         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
6333         an ira_object_t rather than ira_allocno_t.  All uses changed.
6334         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6335         contains a vector of ira_object_t; all uses changed.
6336         (ira_objects_num): Declare variable.
6337         (ira_create_allocno_object): Declare function.
6338         (ira_conflict_vector_profitable_p): Adjust prototype.
6339         (ira_allocate_conflict_vec): Renamed from
6340         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
6341         (ira_allocate_object_conflicts): Renamed from
6342         ira_allocate_allocno_conflicts; first arg now ira_object_t.
6343         (struct ira_object_iterator): New.
6344         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
6345         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
6346         to conflict_vec_p.  All uses changed.
6347         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
6348         Changed to take into account that conflicts are now tracked for
6349         objects.
6350         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
6351         Args changed to accept ira_object_t.  All uses changed.
6352         (allocnos_conflict_p): New static function.
6353         (collected_conflict_objects): Renamed from collected_allocno_objects;
6354         now a vector of ira_object_t.  All uses changed.
6355         (build_conflict_bit_table): Changed to take into account that
6356         conflicts are now tracked for objects.
6357         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
6358         (print_allocno_conflicts, ira_build_conflicts): Likewise.
6359         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
6360         setup_allocno_left_conflicts_size, allocno_reload_assign,
6361         fast_allocation): Likewise.
6362         * ira-lives.c (make_hard_regno_born, make_allocno_born)
6363         process_single_reg_class_operands, process_bb_node_lives): Likewise.
6364         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
6365         Likewise.
6366         * ira-build.c (ira_objects_num): New variable.
6367         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6368         contains a vector of ira_object_t; all uses changed.
6369         (ira_object_id_map_vec): Corresponding change.
6370         (object_pool): New static variable.
6371         (initiate_allocnos): Initialize it.
6372         (finish_allocnos): Free it.
6373         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
6374         New functions.
6375         (ira_create_allocno): Don't set members that were removed.
6376         (ira_set_allocno_cover_class): Don't change conflict hard regs.
6377         (merge_hard_reg_conflicts): Changed to take into account that
6378         conflicts are now tracked for objects.
6379         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
6380         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
6381         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
6382         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
6383         setup_min_max_conflict_allocno_ids, ):  Likewise.
6384         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
6385         to ira_object_t; all callers changed.
6386         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
6387         to ira_object_t, all callers changed.
6388         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
6389         to ira_object_t, all callers changed.
6390         (conflict_check, curr_conflict_check_tick): Renamed from
6391         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
6392         changed.
6393         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
6394         arg changed to ira_object_t, all callers changed.
6395         (create_cap_allocno): Call ira_create_allocno_object.
6396         (finish_allocno): Free the corresponding object.
6397         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
6398         callers changed.  Adjusted for dealing with objects.
6399         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
6400         dealing with objects.
6401         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
6402
6403         * ira-int.h (struct live_range): Rename allocno member to object
6404         and change type to ira_object_t.
6405         (struct ira_object): New member live_ranges.
6406         (struct ira_allocno): Remove member live_ranges.
6407         (ALLOCNO_LIVE_RANGES): Remove.
6408         (OBJECT_LIVE_RANGES): New macro.
6409         (ira_create_live_range, ira_copy_live_range_list,
6410         ira_merge_live_range_list, ira_live_ranges_intersect_p,
6411         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
6412         * ira-build.c (ira_create_object): Initialize live ranges here.
6413         (ira_create_allocno): Not here.
6414         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
6415         changed to ira_object_t, all callers changed.
6416         (copy_live_range): Rename from copy_allocno_live_range, all callers
6417         changed.
6418         (ira_copy_live_range_list): Rename from
6419         ira_copy_allocno_live_range_list, all callers changed.
6420         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
6421         all callers changed.
6422         (ira_live_ranges_intersect_p): Rename from
6423         ira_allocno_live_ranges_intersect_p, all callers changed.
6424         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
6425         callers changed.
6426         (ira_finish_live_range_list): Rename from
6427         ira_finish_allocno_live_range_list, all callers changed.
6428         (change_object_in_range_list): Rename from change_allocno_in_range_list,
6429         last arg changed to ira_object_t, all callers changed.
6430         (finish_allocno): Changed to expect live ranges in the allocno's object.
6431         (move_allocno_live_ranges, copy_allocno_live_ranges,
6432         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
6433         ira_flattening, ira_build): Likewise.
6434         * ira-color.c (allocnos_have_intersected_live_ranges_p,
6435         slot_coalesced_allocno_live_ranges_intersect,
6436         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
6437         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6438         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
6439         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
6440         make_allocno_dead, create_start_finish_chains,
6441         remove_some_program_points_and_update_live_ranges,
6442         ira_debug_live_range_list): Likewise.
6443
6444         * ira-int.h (ira_object_conflict_iterator): Rename from
6445         ira_allocno_conflict_iterator.
6446         (ira_object_conflict_iter_init): Rename from
6447         ira_allocno_conflict_iter_init, second arg changed to
6448         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
6449         FOR_EACH_ALLOCNO_CONFLICT.
6450         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
6451         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
6452         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
6453         * ira-conflicts.c (print_allocno_conflicts): Likewise.
6454
6455 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
6456
6457         PR other/44874
6458         * tree-dump.c (dump_options): Add enumerate_locals entry.
6459         Add TDF_NOID exclusion to all entry.
6460         * tree-dump.h (dump_enumerated_decls): Declare.
6461         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
6462         Don't display type uid.
6463         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
6464         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
6465         * tree-ssa-live.c: Include gimple.h.
6466         (numbered_tree_d): New struct.
6467         (numbered_tree): New typedef.
6468         (DEF_VEC_O (numbered_tree): New.
6469         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
6470         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
6471         (dump_enumerated_decls): Likewise.
6472         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
6473         debug info and flag_dump_final_insns, call dump_enumerated_decls.
6474         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
6475         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
6476
6477 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
6478
6479         * expmed.h (MAX_BITS_PER_WORD): Move to...
6480         * defaults.h (MAX_BITS_PER_WORD): ...here.
6481
6482 2010-07-13  DJ Delorie  <dj@redhat.com>
6483
6484         * config/h8300/h8300.c (h8300_init_once): Default to
6485         -fstrict_volatile_bitfields.
6486
6487         * config/sh/sh.c (sh_override_options): Default to
6488         -fstrict_volatile_bitfields.
6489
6490         * config/rx/rx.c (rx_option_override): New.
6491
6492         * config/m32c/m32c.c (m32c_override_options): Default to
6493         -fstrict_volatile_bitfields.
6494
6495 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
6496
6497         * tree.h (build_function_call_expr): Delete.
6498         (build_call_expr_loc_array): New function.
6499         (build_call_expr_loc_vec): New function.
6500         * tree-flow.h (struct omp_region): Change type of ws_args field
6501         to a VEC.
6502         * builtins.c (build_function_call_expr): Delete.
6503         (build_call_expr_loc_array): New function.
6504         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
6505         (build_call_expr): Likewise.
6506         (build_call_expr_loc_vec): New function.
6507         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
6508         build_function_call_expr.
6509         * expr.c (emutls_var_address): Likewise.
6510         * varasm.c (emutls_common_1): Likewise.
6511         * omp-low.c (expand_omp_atomic_mutex): Likewise.
6512         (expand_omp_taskreg): Adjust for new type of region->ws_args.
6513         (get_ws_args_for): Return a VEC instead of a tree.
6514         (expand_parallel_call): Call build_call_expr_loc_vec instead of
6515         build_function_call_expr.
6516         * stor-layout.c (self_referential_size): Likewise.
6517
6518 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6519
6520         PR testsuite/44701
6521         * recog.c (constrain_operands): Allow side-effects in memory
6522         operands if either < or > constraint is used, rather than if
6523         both < and > is used.
6524
6525 2010-07-13  Richard Guenther  <rguenther@suse.de>
6526
6527         PR middle-end/44911
6528         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
6529         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
6530         without name.
6531
6532 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6533
6534         PR target/44761
6535         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
6536         to variable emited.
6537         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
6538         * config/sh/sh.md (symGOT_load): Likewise.
6539         (symDTPOFF2reg): Likewise.
6540         (symTPOFF2reg): Likewise.
6541
6542 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6543
6544         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
6545         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
6546
6547 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6548
6549         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
6550         explanation.
6551         Find ucontext_t * on Solaris 11.
6552         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
6553         Handle new Solaris 11 __sighndlr patterns.
6554
6555 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6556
6557         PR debug/44901
6558         * vec.h (VEC_block_remove): Fix comment.
6559         * tree-ssa-live.c (remove_unused_locals): Don't use
6560         VEC_unordered_remove on local_decls, instead replace a single
6561         vector element in each iteration if at least one element had
6562         to be removed and VEC_truncate at the end.
6563         * omp-low.c (expand_omp_taskreg): Likewise.
6564
6565 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6566
6567         * c-decl.c (finish_function): Fix typo in comment.
6568
6569 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6570
6571         PR bootstrap/44921
6572         * postreload.c (move2add_use_add3_insn): Silence gcc warning
6573         on min_regno.
6574
6575 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
6576
6577         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
6578         (simplify_stmt_using_ranges): Use it.
6579
6580 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6581
6582         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
6583         member.  Do not mark as GTY(()).
6584         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
6585         (spu_builtin_decls): New static variable.
6586         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
6587         (spu_init_builtins): Likewise.
6588         (spu_builtin_mul_widen_even): Likewise.
6589         (spu_builtin_mul_widen_odd): Likewise.
6590         (spu_builtin_mask_for_load): Likewise.
6591         (spu_builtin_vec_perm): Likewise.
6592         * config/spu/spu-c.c: Include "target.h".
6593         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
6594         of using spu_builtins[].fndecl.
6595
6596 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6597
6598         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
6599         imply -minterlink-mips16.
6600
6601 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6602
6603         * config/mips/mips.h (mips16_globals): Declare.
6604         (SWITCHABLE_TARGET): Define.
6605         * config/mips/mips.c: Include target-globals.h.
6606         (mips16_globals): New variable.
6607         (mips_set_mips16_mode): Use save_target_globals and
6608         restore_target_globals instead of target_reinit.
6609
6610 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6611
6612         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
6613         to say that the function can be called more than once.
6614         * target-globals.c (save_target_globals): Call init_reg_sets.
6615
6616 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6617
6618         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
6619         * bb-reorder.h: New file.
6620         * bb-reorder.c (default_target_bb_reorder): New variable.
6621         (this_target_bb_reorder): New conditional variable.
6622         (uncond_jump_length): Redefine as a macro.
6623         * target-globals.h (this_target_bb_reorder): Declare.
6624         (target_globals): Add a bb_reorder field.
6625         (restore_target_globals): Copy the bb_reorder field to
6626         this_target_bb-reorder.
6627         * target-globals.c: Include bb-reorder.h.
6628         (default_target_globals): Initialize the bb_reorder field.
6629         (save_target_globals): Likewise.
6630
6631 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6632
6633         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
6634         * gcse.h: New file.
6635         * gcse.c: Include gcse.h.
6636         (default_target_gcse): New variable.
6637         (this_target_gcse): New conditional variable.
6638         (can_copy): Redefine as a macro.
6639         (can_copy_init_p): New macro.
6640         (can_copy_p): Remove can_copy_init_p.
6641         * target-globals.h (this_target_gcse): Declare.
6642         (target_globals): Add a gcse field.
6643         (restore_target_globals): Copy the gcse field to this_target_gcse.
6644         * target-globals.c: Include gcse.h.
6645         (default_target_globals): Initialize the gcse field.
6646         (save_target_globals): Likewise.
6647
6648 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6649
6650         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
6651         and x_ira_prohibited_mode_move_regs_initialized_p.
6652         (ira_prohibited_mode_move_regs): Redefine as a macro.
6653         * ira.c (ira_prohibited_mode_move_regs): Delete.
6654         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
6655
6656 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6657
6658         * reload.h (target_reload): Add x_cached_reg_save_code and
6659         x_cached_reg_restore_code.
6660         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
6661         Redefine as macros.
6662
6663 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6664
6665         * Makefile.in (target-globals.o): Depend on builtins.h.
6666         * builtins.h: New file.
6667         * builtins.c: Include builtins.h.
6668         (default_target_builtins): New variable.
6669         (this_target_builtins): New conditional variable.
6670         (apply_args_mode, apply_result_mode): Redefine as macros.
6671         * target-globals.h (this_target_builtins): Declare.
6672         (target_globals): Add a builtins field.
6673         (restore_target_globals): Copy the builtins field to
6674         this_target_builtins.
6675         * target-globals.c: Include builtins.h.
6676         (default_target_globals): Initialize the builtins field.
6677         (save_target_globals): Likewise.
6678
6679 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6680
6681         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
6682         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
6683         from expmed.c.
6684         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
6685         (alg_hash, alg_hash_used_p): New macros.
6686         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
6687         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
6688         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
6689
6690 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6691
6692         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
6693         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
6694         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
6695         (this_op_costs, costs_classes): Redefine as macros.
6696         (record_reg_classes): Don't take op_costs as a parameter.
6697         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
6698         (scan_one_insn): Update call to record_operand_costs.
6699
6700 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6701
6702         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
6703         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
6704         (target_ira_int): New structure.
6705         (default_target_ira_int): Declare.
6706         (this_target_ira_int): Declare as a variable or define as a macro.
6707         (ira_reg_mode_hard_regset, ira_register_move_cost)
6708         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
6709         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
6710         (prohibited_class_mode_regs, ira_important_classes_num)
6711         (ira_important_classes, ira_reg_class_intersect)
6712         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
6713         (ira_reg_class_union): Redefine as macros.
6714         * ira.h (target_ira): New structure.
6715         (default_target_ira): Declare.
6716         (this_target_ira): Declare as a variable or define as a macro.
6717         (ira_available_class_regs, ira_hard_regno_cover_class)
6718         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
6719         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
6720         (ira_class_hard_regs_num): Redefine as macros.
6721         * ira.c (default_target_ira, default_target_ira_int): New variables.
6722         (this_target_ira, this_target_ira_int): New conditional variables.
6723         (ira_reg_mode_hard_regset, ira_memory_move_cost)
6724         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
6725         (ira_class_subset_p): Delete.
6726         (no_unit_alloc_regs): Redefine as a macro.
6727         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
6728         (ira_class_hard_regs_num, ira_class_hard_reg_index)
6729         (ira_available_class_regs): Delete.
6730         (alloc_reg_class_subclasses): Redefine as a macro.
6731         (ira_reg_class_cover_size, ira_reg_class_cover)
6732         (ira_important_classes_num, ira_important_classes)
6733         (ira_important_class_nums, ira_class_translate): Delete.
6734         (cover_class_order): Document the variable's lifetime.
6735         (reorder_important_classes): Don't set ira_important_class_nums.
6736         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
6737         (ira_reg_class_super_classes, ira_reg_class_union)
6738         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
6739         Delete.
6740         (setup_reg_class_nregs): Don't set ira_max_regs.
6741         (prohibited_class_mode_regs): Delete.
6742         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
6743         (target_globals): Add ira and ira_int fields.
6744         (restore_target_globals): Copy the ira field to this_target_ira
6745         and the ira_int field to this_target_ira_int.
6746         * target-globals.c: Include ira-int.h.
6747         (default_target_globals): Initialize the ira and ira_int fields.
6748         (save_target_globals): Likewise.
6749
6750 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6751
6752         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
6753         * cfgloop.h (target_cfgloop): New structure.
6754         (default_target_cfgloop): Declare.
6755         (this_target_cfgloop): Declare as a variable or define as a macro.
6756         (target_avail_regs, target_clobbered_regs, target_res_regs)
6757         (target_reg_cost, target_spill_cost): Redefine as macros.
6758         * cfgloopanal.c (default_target_cfgloop): New variable.
6759         (this_target_cfgloop): New conditional variable.
6760         (target_avail_regs, target_clobbered_regs, target_res_regs)
6761         (target_reg_cost, target_spill_cost): Delete.
6762         * target-globals.h (this_target_cfgloop): Declare.
6763         (target_globals): Add a cfgloop field.
6764         (restore_target_globals): Copy the cfgloop field to
6765         this_target_cfgloop.
6766         * target-globals.c: Include cfgloop.h.
6767         (default_target_globals): Initialize the cfgloop field.
6768         (save_target_globals): Likewise.
6769
6770 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6771
6772         * regs.h (target_regs): Add x_direct_load, x_direct_store and
6773         x_float_extend_from_mem.
6774         (direct_load, direct_store, float_extend_from_mem): New macros.
6775         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
6776
6777 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6778
6779         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
6780         (target-globals.o): Depend on $(LIBFUNCS_H).
6781         * libfuncs.h: Include hashtab.h.
6782         (libfunc_entry): Moved from optabs.c.
6783         (target_libfuncs): New structure.
6784         (default_target_libfuncs): Declare.
6785         (this_target_libfuncs): Declare as a variable or define as a macro.
6786         (libfunc_table): Redefine as a macro.
6787         * optabs.c (default_target_libfuncs): New variable.
6788         (this_target_libfuncs): New conditional variable.
6789         (libfunc_table): Delete.
6790         (libfunc_entry): Moved to optabs.h.
6791         (libfunc_hash): Redefine as a macro.
6792         (hash_libfunc, eq_libfunc): Fix comments.
6793         (init_optabs): Use libfunc_hash to detect cases where the function
6794         has already been called.  Clear the hash table instead of
6795         recreating it.
6796         * target-globals.h (this_target_libfuncs): Declare.
6797         (target_globals): Add a libfuncs field.
6798         (restore_target_globals): Copy the libfuncs field to
6799         this_target_libfuncs.
6800         * target-globals.c: Include libfuncs.h.
6801         (default_target_globals): Initialize the libfuncs field.
6802         (save_target_globals): Likewise.
6803
6804 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6805
6806         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
6807         in all dependency lists.
6808
6809 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6810
6811         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
6812         * optabs.h (target_optabs): New structure.
6813         (default_target_optabs): Declare.
6814         (this_target_optabs): Declare as a variable or define as a macro.
6815         (optab_table, convert_optab_table, direct_optab_table): Redefine
6816         as macros.
6817         * optabs.c (default_target_optabs): New variable.
6818         (this_target_optabs): New conditional variable.
6819         (optab_table, convert_optab_table, direct_optab_table): Delete.
6820         * target-globals.h (this_target_optabs): Declare.
6821         (target_globals): Add a optabs field.
6822         (restore_target_globals): Copy the optabs field to
6823         this_target_optabs.
6824         * target-globals.c: Include expr.h and optabs.h.
6825         (default_target_globals): Initialize the optabs field.
6826         (save_target_globals): Likewise.
6827
6828 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6829
6830         * flags.h (target_flagstate): Add x_flag_excess_precision.
6831         (flag_excess_precision): Redefine as a macro.
6832         * toplev.c (flag_excess_precision): Delete.
6833
6834 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6835
6836         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
6837         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
6838         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
6839         (no_caller_save_reg_set): Redefine as a macro.
6840         * reload.h (target_reload): Add x_caller_save_initialized_p and
6841         x_regno_save_mode.
6842         (caller_save_initialized_p): Redefine as a macro.
6843         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
6844         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
6845         (regno_save_mode): Redefine as a macro.
6846
6847 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6848
6849         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
6850         * expmed.h: New file.
6851         * expmed.c (default_target_costs): New variable.
6852         (this_target_costs): New conditional variable.
6853         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
6854         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
6855         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
6856         * target-globals.h (this_target_expmed): Declare.
6857         (target_globals): Add a expmed field.
6858         (restore_target_globals): Copy the expmed field to
6859         this_target_expmed.
6860         * target-globals.c: Include expmed.h.
6861         (default_target_globals): Initialize the expmed field.
6862         (save_target_globals): Likewise.
6863
6864 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6865
6866         * Makefile.in (target-globals.o): Depend on reload.h.
6867         * reload.h (target_reload): New structure.
6868         (default_target_reload): Declare.
6869         (this_target_reload): Declare as a variable or define as a macro.
6870         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
6871         * reload1.c (default_target_reload): New variable
6872         (this_target_reload): New conditional variable.
6873         (indirect_symref_ok, double_reg_address_ok): Delete.
6874         (spill_indirect_levels): Redefine as a macro.
6875         * target-globals.h (this_target_reload): Declare.
6876         (target_globals): Add a reload field.
6877         (restore_target_globals): Copy the reload field to
6878         this_target_reload.
6879         * target-globals.c: Include hard-reg-set.h.
6880         (default_target_globals): Initialize the reload field.
6881         (save_target_globals): Likewise.
6882
6883 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6884
6885         * rtl.h (target_rtl): Add x_static_reg_base_value.
6886         * alias.c (static_reg_base_value): Redefine as a macro.
6887
6888 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6889
6890         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
6891         (GTFILES): Remove reginfo.c.
6892         * rtl.h (target_rtl): Add x_top_of_stack.
6893         (top_of_stack): New macro.
6894         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
6895         (top_of_stack): Delete.
6896
6897 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6898
6899         * regs.h (target_regs): Add x_hard_regs_of_mode,
6900         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
6901         x_may_move_out_cost and x_last_mode_for_init_move_cost.
6902         (have_regs_of_mode, contains_reg_of_mode, move_cost)
6903         (may_move_in_cost, may_move_out_cost): Redefine as macros.
6904         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
6905         (may_move_in_cost, may_move_out_cost): Delete.
6906         (last_mode_for_init_move_cost): Redefine as a macro.
6907
6908 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6909
6910         * hard-reg-set.h (target_hard_regs): New structure.
6911         (default_target_hard_regs): Declare.
6912         (this_target_hard_regs): Declare as a variable or define as a macro.
6913         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
6914         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
6915         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
6916         (reg_class_size, reg_class_subclasses, reg_class_subunion)
6917         (reg_class_superunion, reg_names): Redefine as macros.
6918         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
6919         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
6920         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
6921         (reg_class_contents, reg_class_size, reg_class_subclasses)
6922         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
6923         (default_target_hard_regs): New variable
6924         (this_target_hard_regs, initial_call_really_used_regs)
6925         (initial_reg_alloc_order): New conditional variables.
6926         (initial_reg_names): New variable.
6927         (init_reg_sets): Assert that initial_call_really_used_regs,
6928         initial_reg_alloc_order and initial_reg_names
6929         are all the same size as their variable counterparts.  Use them to
6930         initialize those counterparts.
6931         * target-globals.h (this_target_hard_regs): Declare.
6932         (target_globals): Add a hard_regs field.
6933         (restore_target_globals): Copy the hard_regs field to
6934         this_target_hard_regs.
6935         * target-globals.c: Include hard-reg-set.h.
6936         (default_target_globals): Initialize the hard_regs field.
6937         (save_target_globals): Likewise.
6938
6939 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6940
6941         * Makefile.in (target-globals.o): Depend on $(RTL_H).
6942         * rtl.h (target_rtl): New structure.
6943         (default_target_rtl): Declare.
6944         (this_target_rtl): Declare as a variable or define as a macro.
6945         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
6946         Redefine as macros.
6947         * emit-rtl.c (default_target_rtl): New variable.
6948         (this_target_rtl): New conditional variable.
6949         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
6950         (return_address_pointer_rtx): Delete.
6951         (initial_regno_reg_rtx): New macro.
6952         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
6953         (init_emit_regs): Likewise.
6954         * target-globals.h (this_target_rtl): Declare.
6955         (target_globals): Add a rtl field.
6956         (restore_target_globals): Copy the rtl field to this_target_rtl.
6957         * target-globals.c: Include rtl.h.
6958         (default_target_globals): Initialize the rtl field.
6959         (save_target_globals): Likewise.
6960
6961 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6962
6963         * Makefile.in (target-globals.o): Depend on $(REGS_H).
6964         * regs.h (target_reg_modes): New structure.
6965         (default_target_reg_modes): Declare.
6966         (this_target_reg_modes): Declare as a variable or define as a macro.
6967         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
6968         * reginfo.c (default_target_reg_modes): New variable.
6969         (this_target_reg_modes): New conditional variable.
6970         (hard_regno_nregs, reg_raw_mode): Delete.
6971         * target-globals.h (this_target_regs): Declare.
6972         (target_globals): Add a regs field.
6973         (restore_target_globals): Copy the regs field to this_target_regs.
6974         * target-globals.c: Include regs.h.
6975         (default_target_globals): Initialize the regs field.
6976         (save_target_globals): Likewise.
6977
6978 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6979
6980         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
6981         * doc/tm.texi: Regenerate.
6982         * Makefile.in (OBJS-common): Add target-globals.o.
6983         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
6984         and target-globals.h.
6985         (target-globals.o): New rule.
6986         (GTFILES): Include $(srcdir)/target-globals.h.
6987         * defaults.h (SWITCHABLE_TARGET): Define.
6988         * gengtype.c (open_base_files): Add target-globals.h to the
6989         list of includes.
6990         * target-globals.h: New file.
6991         * target-globals.c: Likewise.
6992
6993         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
6994         * flags.h (target_flag_state): New structure.
6995         (default_target_flag_state): Declare.
6996         (this_target_flag_state): Declare as a variable or define as a macro.
6997         (align_loops_log): Redefine as a macro.
6998         (align_loops_max_skip, align_jumps_log): Likewise.
6999         (align_jumps_max_skip, align_labels_log): Likewise.
7000         (align_labels_max_skip, align_functions_log): Likewise.
7001         * toplev.c (default_target_flag_state): New variable.
7002         (this_target_flag_state): New conditional variable.
7003         (align_loops_log): Delete.
7004         (align_loops_max_skip, align_jumps_log): Likewise.
7005         (align_jumps_max_skip, align_labels_log): Likewise.
7006         (align_labels_max_skip, align_functions_log): Likewise.
7007         * target-globals.h (this_target_flag_state): Declare.
7008         (target_globals): Add a flag_state field.
7009         (restore_target_globals): Copy the flag_state field to
7010         this_target_flag_state.
7011         * target-globals.c: Include flags.h.
7012         (default_target_globals): Initialize the flag_state field.
7013         (save_target_globals): Likewise.
7014
7015 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7016
7017         * postreload.c (reg_symbol_ref[]): New.
7018         (move2add_use_add2_insn): New.
7019         (move2add_use_add3_insn): New.
7020         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
7021         (move2add_note_store): Likewise.
7022
7023 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
7024
7025         PR rtl-optimization/44752
7026         * genautomata.c (main): Don't emit an empty file even if there
7027         is no automaton.
7028
7029 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7030
7031         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
7032         ix86_solaris_return_in_memory.
7033         * config/i386-protos.h: Reflect this.
7034         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
7035         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
7036         Move ...
7037         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
7038
7039 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7040
7041         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
7042         align the stack when it's going to be saved.
7043
7044 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7045
7046         PR pch/14940
7047         * config/host-solaris.c (mmap_fixed): New function.
7048         (sol_gt_pch_get_address): Use it.
7049         (sol_gt_pch_use_address): Likewise.
7050
7051 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7052
7053         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7054         pentiumpro on Solaris 8 and 9/x86.
7055         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
7056         Document SSE/SSE2 support.
7057         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
7058
7059 2010-07-12  Andi Kleen  <ak@linux.intel.com>
7060
7061         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
7062         instead of gcc_assert to print better error message for multiple
7063         prevailing defs.
7064
7065 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
7066
7067         * config/i386/i386.c (ix86_asm_output_function_label): Change format
7068         string placeholder from 0x%x to %#x.
7069         (ix86_code_end): Use putc to output '\n'.
7070         (ix86_print_operand) <case ';'>: Use putc to output ';'.
7071
7072 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
7073
7074         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
7075         in directive -export.
7076
7077 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
7078
7079         * reginfo.h (reg_classes_intersect_p): Change arguments type to
7080         reg_class_t.
7081         * rtl.h (reg_classes_intersect_p): Adjust prototype.
7082
7083         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7084         Remove macros.
7085         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
7086         rs6000_memory_move_cost): Remove
7087         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
7088         TARGET_MEMORY_MOVE_COST): Define.
7089         (rs6000_register_move_cost): Make static. Change arguments type from
7090         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
7091         (rs6000_memory_move_cost): Make static. Change arguments type from
7092         'enum reg_class' to reg_class_t.
7093
7094 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
7095
7096         PR middle-end/42505
7097         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
7098         lookup code into....
7099         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
7100         new functions.
7101         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
7102         * cfgloopanal.c (target_clobbered_regs): Define.
7103         (init_set_costs): Initialize target_clobbered_regs.
7104         (estimate_reg_pressure_cost): Add call_p argument.  When true,
7105         adjust the number of available registers to exclude the
7106         call-clobbered registers.
7107         * cfgloop.h (target_clobbered_regs): Declare.
7108         (estimate_reg_pressure_cost): Adjust declaration.
7109         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
7110         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
7111         (determine_set_costs): Dump target_clobbered_regs.
7112         (loop_body_includes_call): New function.
7113         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
7114         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
7115         call_p flag through.
7116         (best_gain_for_invariant): Likewise.
7117         (find_invariants_to_move): Likewise.
7118         (move_single_loop_invariants): Likewise, using already-computed
7119         has_call field.
7120
7121 2010-07-10  Richard Guenther  <rguenther@suse.de>
7122             Joern Rennecke  <joern.rennecke@embecosm.com>
7123
7124         PR debug/44832
7125         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
7126         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
7127         unless they have DECL_IGNORED_P set.
7128
7129 2010-07-10  Richard Guenther  <rguenther@suse.de>
7130
7131         PR lto/44889
7132         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
7133         helper function.
7134         (gimple_types_compatible_p): Similar to pointed-to
7135         types allow and merge a mix of complete and incomplete aggregate.
7136         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
7137         (iterative_hash_gimple_type): Adjust for that.
7138
7139 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
7140
7141         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
7142
7143 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
7144
7145         PR objc/44140
7146         * config/darwin.c (output_objc_section_asm_op): Save and restore
7147         section when outputting ObjC section list.
7148
7149 2010-07-09  Jan Hubicka  <jh@suse.cz>
7150
7151         * lto-streamer-out.c (produce_symtab): Do not write alias
7152         cgraph/varpool nodes.
7153
7154 2010-07-09  Jan Hubicka  <jh@suse.cz>
7155
7156         * tree-inline.c (declare_return_variable): Fix ICE while
7157         inlining DECL_BY_VALUE function not in SSA form
7158
7159 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
7160
7161         PR tree-optimization/44576
7162         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
7163         New.  Pull out from is_loop_prefetching_profitable to implement
7164         the trip count to ahead ratio heuristic.
7165         (mem_ref_count_reasonable_p): New.  Pull out from
7166         is_loop_prefetching_profitable to implement the instruction to
7167         memory reference ratio heuristic.  Also consider not reasonable if
7168         the memory reference count is above a threshold (to avoid
7169         explosive compilation time.
7170         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
7171         is_loop_prefetching_profitable to implement the instruction to
7172         prefetch ratio heuristic.
7173         (is_loop_prefetching_profitable): Removed.
7174         (loop_prefetch_arrays): Distribute the cost analysis across the
7175         function to allow early exit of the prefetch analysis.
7176         is_loop_prefetching_profitable is splitted into three functions,
7177         with each one called as early as possible.
7178         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
7179         number of memory references in a loop is considered too many.
7180
7181 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7182
7183         * reload.c (find_reloads): Don't clear badop if we have a winreg
7184         alternative, but not win, and the class only has fixed regs.
7185         * hard-reg-set.h (class_only_fixed_regs): Declare.
7186         * reginfo.c (class_only_fixed_regs): New array.
7187         (init_reg_sets_1): Initialize it.
7188         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
7189         discourage alternatives using the stack pointer.
7190
7191         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
7192
7193         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
7194
7195         * config/arm/arm.md (cbranchqi4): Fix array size.
7196         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
7197         calculating length.
7198
7199 2010-07-09  Richard Guenther  <rguenther@suse.de>
7200
7201         * gimple.c (struct type_fixup_s): New struct and VEC type.
7202         (gimple_register_type_fixups): New static global.
7203         (gimple_queue_type_fixup): New function.
7204         (gimple_types_compatible_p): Queue type fixups instead of
7205         applying them here.
7206         (gimple_register_type): Apply queued fixups for the
7207         canonical type.  Empty the type fixup queue.
7208
7209 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7210
7211         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
7212         * configure: Regenerate.
7213         * config.in: Ditto.
7214
7215 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7216             Denys Vlasenko  <dvlasenk@redhat.com>
7217             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7218
7219         PR tree-optimization/28632
7220         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
7221         (extract_range_from_binary_expr): Further optimize
7222         BIT_AND_EXPR and BIT_IOR_EXPR.
7223
7224 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
7225
7226         * tree-if-conv.c (fold_or_predicates): New.
7227         (add_to_predicate_list): Call it.
7228
7229 2010-07-09  Richard Guenther  <rguenther@suse.de>
7230
7231         PR middle-end/44890
7232         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
7233         if base is a pointer.
7234         * tree-cfg.c (verify_expr): Update MEM_REF checking.
7235
7236 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7237
7238         PR target/44877
7239         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
7240         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
7241         builtin mask for load/store builtins.
7242
7243 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7244
7245         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
7246         for "lock addl".
7247         * configure: Regenerate.
7248         * config/i386/i386.c (ix86_print_operand) <case ';'>:
7249         Remove TARGET_MACHO.
7250
7251 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
7252
7253         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
7254         default ISA flags.
7255         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
7256
7257 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
7258
7259         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
7260
7261 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
7262
7263         * config/picochip/picochip.md (commsTestPort): Emit more
7264         efficient sequence for tstport instruction.
7265
7266 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7267
7268         * config/i386/i386.c (ix86_veclib_handler): Make static.
7269
7270 2010-07-09  Richard Guenther  <rguenther@suse.de>
7271
7272         PR tree-optimization/44852
7273         * tree-ssa-alias.c: Include toplev.h for exact_log2.
7274         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
7275         in MEM_REF.
7276         (indirect_refs_may_alias_p): Likewise.
7277         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
7278
7279 2010-07-09  Richard Guenther  <rguenther@suse.de>
7280
7281         PR tree-optimization/44882
7282         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
7283         sets do conflict.
7284         (vectorizable_load): Likewise.
7285
7286 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7287
7288         PR target/40657
7289         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
7290         All callers changed.
7291         Handle the case when we're called for the epilogue.
7292         (thumb_unexpanded_epilogue): Use it.
7293         (thumb1_expand_epilogue): Likewise.
7294
7295 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7296
7297         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
7298         both ranges are range_int_cst_p with non-negative minimum,
7299         try harder to derive smaller range.
7300
7301 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7302
7303         * genrecog.c: Include diagnostic-core.h before toplev.h.
7304         * genoutput.c: Likewise.
7305         * genextract.c: Likewise.
7306         * genautomata.c: Likewise.
7307         * genemit.c: Likewise.
7308         * genpeep.c: Likewise.
7309         * genattrtab.c: Likewise.
7310         * genconditions.c: Likewise.
7311         * genpreds.c: Likewise.
7312
7313 2010-07-08  Andi Kleen  <ak@linux.intel.com>
7314
7315         * lto-section-in.c (lto_section_name): Add missing comma.
7316
7317 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
7318
7319         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
7320         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
7321         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
7322         (ia64_override_options): Rename to...
7323         (ia64_option_override): ... this one. Make static.
7324
7325 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7326
7327         PR middle-end/44843
7328         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
7329         pointed-to type of the offset in a MEM_REF to compute the alignment.
7330
7331 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
7332
7333         * final.c (final_scan_insn): Replace
7334         TARGET_UNWIND_INFO macro check by unwind_emit
7335         hook NULL check.
7336         * targhooks.c (default_unwind_emit): Removed.
7337         * targhooks.h (default_unwind_emit): Likewise.
7338         * target.def (unwind_emit): Set default value to NULL.
7339
7340         * config/i386/i386-protos.h (ix86_asm_output_function_label):
7341         New prototype.
7342         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
7343         for NULL fntype argument and allow 64-bit targets.
7344         (ix86_asm_output_function_label): New function.
7345         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
7346         (ix86_handle_fndecl_attribute): Likewise.
7347         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
7348         * doc/doc/tm.texi: Regenerated.
7349         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
7350         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
7351         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
7352         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
7353         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7354         * config/elfos.h: Likewise.
7355         * config/i386/cygming.h: Likewise.
7356         * config/netbsd-aout.h: Likewise.
7357         * config/openbsd.h: Likewise.
7358         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
7359         by ix86_asm_output_function_label function call.
7360         * varasm.c (assemble_start_function): Use
7361         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7362
7363 2010-07-08  Jan Hubicka  <jh@suse.cz>
7364
7365         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
7366         New function.
7367         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
7368         Declare.
7369         * ipa-cp.c (ipcp_estimate_growth): Use it.
7370         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
7371         Likewise.
7372
7373 2010-07-08  Jan Hubicka  <jh@suse.cz>
7374
7375         * tree-inline.c (declare_return_variable): Allocate annotation for new
7376         temporary.
7377
7378 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7379
7380         PR tree-optimization/44710
7381         * tree-if-conv.c (parse_predicate): New.
7382         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
7383         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
7384
7385 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7386
7387         * common.opt (ftree-loop-if-convert): New flag.
7388         * doc/invoke.texi (ftree-loop-if-convert): Documented.
7389         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
7390         when flag_tree_loop_if_convert is set.
7391
7392 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
7393
7394         * config/i386/i386.c: Use short syntax for function calls
7395         through function pointers.
7396         * config/i386/i386.md: Ditto.
7397
7398 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7399
7400         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
7401
7402 2010-07-08  Richard Guenther  <rguenther@suse.de>
7403
7404         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
7405         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
7406
7407 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
7408
7409         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
7410         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
7411         (loc_list_from_tree): Likewise.
7412         (output_loc_operands): Handle outputting DW_OP_const[48]u
7413         with loc->dtprel set.
7414         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
7415
7416 2010-07-08  Jan Hubicka  <jh@suse.cz>
7417
7418         * ipa.c: Include pointer-set.h
7419         (cgraph_externally_visible_p): New attribute ALIASED;
7420         when in LTO, hidden symbols are local unless they are aliased.
7421         (function_and_variable_visibility): Compute aliased nodes;
7422         handle LTO and hidden symbol on functions and vars.
7423         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
7424         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
7425
7426 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7427
7428         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7429         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7430         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7431         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7432         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7433         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
7434         (ix86_gen_probe_stack_range): Likewise.
7435         (override_options): Set them.
7436         (ix86_target_stack_probe): New function.
7437         (ix86_compute_frame_layout): Force use of push instructions to
7438         save registers if stack checking with probes is enabled.
7439         (get_scratch_register_on_entry): New function.
7440         (release_scratch_register_on_entry): Likewise.
7441         (ix86_adjust_stack_and_probe): Likewise.
7442         (output_adjust_stack_and_probe): Likewise.
7443         (ix86_emit_probe_stack_range): Likewise.
7444         (output_probe_stack_range): Likewise.
7445         (ix86_expand_prologue): Emit stack checking code if static built-in
7446         stack checking is enabled.
7447         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
7448         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
7449         (output_adjust_stack_and_probe): Likewise.
7450         (output_probe_stack_range): Likewise.
7451         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7452         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
7453         TARGET_STACK_PROBE.
7454         (allocate_stack_worker_64): Likewise.
7455         (allocate_stack): Likewise.
7456         (adjust_stack_and_probe): New insn.
7457         (probe_stack_range): Likewise.
7458
7459 2010-07-08  Richard Guenther  <rguenther@suse.de>
7460
7461         PR tree-optimization/44831
7462         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
7463         a MEM_REF preserving TBAA info of the original dereference.
7464         Dereference the original pointer if the address is not invariant.
7465         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
7466         at least one invariant address that we are going to dereference.
7467
7468 2010-07-08  Richard Guenther  <rguenther@suse.de>
7469
7470         PR tree-optimization/44861
7471         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
7472         information when building MEM_REFs.
7473         (vectorizable_load): Likewise.
7474         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7475
7476 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7477
7478         * config/sol2-c.c: Do not include diagnostic-core.h.
7479
7480 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7481
7482         PR bootstrap/44768
7483         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
7484         with respect to current_function_decl. Pass decl of the function.
7485         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
7486         * ipa-inline.c (compute_inline_parameters): Pass decl to
7487         estimated_stack_frame_size.
7488
7489 2010-07-08  Richard Guenther  <rguenther@suse.de>
7490
7491         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7492         New function.
7493         (valueize_refs): Call it.
7494
7495 2010-07-08  Richard Guenther  <rguenther@suse.de>
7496
7497         PR rtl-optimization/44838
7498         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
7499         SSA form do not use pointer equivalence.
7500
7501 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7502
7503         * dwarf2out.c (AT_linkage_name): Delete.
7504         (add_linkage_attr): New function.
7505         (add_linkage_name): Call it to emit the linkage attribute.
7506         (dwarf2out_finish): Likewise.
7507         (move_linkage_attr): Explicitly accept both attribute variants.
7508
7509 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7510
7511         * toplev.h: Do not include diagnostic-core.h.
7512         Include diagnostic-core.h in every file that includes toplev.h.
7513         * c-tree.h: Do not include toplev.h.
7514         * pretty-print.h: Update comment.
7515         * Makefile.in: Update dependencies.
7516         * alias.c: Include diagnostic-core.h in every file that includes
7517         toplev.h.
7518         * attribs.c: Likewise.
7519         * auto-inc-dec.c: Likewise.
7520         * bb-reorder.c: Likewise.
7521         * bt-load.c: Likewise.
7522         * caller-save.c: Likewise.
7523         * calls.c: Likewise.
7524         * cfg.c: Likewise.
7525         * cfganal.c: Likewise.
7526         * cfgbuild.c: Likewise.
7527         * cfgcleanup.c: Likewise.
7528         * cfghooks.c: Likewise.
7529         * cfgloop.c: Likewise.
7530         * combine.c: Likewise.
7531         * config/alpha/alpha.c: Likewise.
7532         * config/arc/arc.c: Likewise.
7533         * config/arm/arm.c: Likewise.
7534         * config/arm/pe.c: Likewise.
7535         * config/avr/avr.c: Likewise.
7536         * config/bfin/bfin.c: Likewise.
7537         * config/cris/cris.c: Likewise.
7538         * config/crx/crx.c: Likewise.
7539         * config/darwin-c.c: Likewise.
7540         * config/darwin.c: Likewise.
7541         * config/fr30/fr30.c: Likewise.
7542         * config/frv/frv.c: Likewise.
7543         * config/h8300/h8300.c: Likewise.
7544         * config/host-darwin.c: Likewise.
7545         * config/i386/i386.c: Likewise.
7546         * config/i386/netware.c: Likewise.
7547         * config/i386/nwld.c: Likewise.
7548         * config/i386/winnt-cxx.c: Likewise.
7549         * config/i386/winnt-stubs.c: Likewise.
7550         * config/i386/winnt.c: Likewise.
7551         * config/ia64/ia64-c.c: Likewise.
7552         * config/ia64/ia64.c: Likewise.
7553         * config/iq2000/iq2000.c: Likewise.
7554         * config/lm32/lm32.c: Likewise.
7555         * config/m32c/m32c-pragma.c: Likewise.
7556         * config/m32c/m32c.c: Likewise.
7557         * config/m32r/m32r.c: Likewise.
7558         * config/m68hc11/m68hc11.c: Likewise.
7559         * config/m68k/m68k.c: Likewise.
7560         * config/mcore/mcore.c: Likewise.
7561         * config/mep/mep-pragma.c: Likewise.
7562         * config/mep/mep.c: Likewise.
7563         * config/mmix/mmix.c: Likewise.
7564         * config/mn10300/mn10300.c: Likewise.
7565         * config/moxie/moxie.c: Likewise.
7566         * config/pa/pa.c: Likewise.
7567         * config/pdp11/pdp11.c: Likewise.
7568         * config/picochip/picochip.c: Likewise.
7569         * config/rs6000/rs6000-c.c: Likewise.
7570         * config/rs6000/rs6000.c: Likewise.
7571         * config/rx/rx.c: Likewise.
7572         * config/s390/s390.c: Likewise.
7573         * config/score/score.c: Likewise.
7574         * config/score/score3.c: Likewise.
7575         * config/score/score7.c: Likewise.
7576         * config/sh/sh.c: Likewise.
7577         * config/sh/symbian-base.c: Likewise.
7578         * config/sh/symbian-c.c: Likewise.
7579         * config/sh/symbian-cxx.c: Likewise.
7580         * config/sol2-c.c: Likewise.
7581         * config/sol2.c: Likewise.
7582         * config/sparc/sparc.c: Likewise.
7583         * config/spu/spu.c: Likewise.
7584         * config/stormy16/stormy16.c: Likewise.
7585         * config/v850/v850-c.c: Likewise.
7586         * config/v850/v850.c: Likewise.
7587         * config/vax/vax.c: Likewise.
7588         * config/vxworks.c: Likewise.
7589         * config/xtensa/xtensa.c: Likewise.
7590         * convert.c: Likewise.
7591         * cse.c: Likewise.
7592         * cselib.c: Likewise.
7593         * dbgcnt.c: Likewise.
7594         * dbxout.c: Likewise.
7595         * ddg.c: Likewise.
7596         * dominance.c: Likewise.
7597         * emit-rtl.c: Likewise.
7598         * explow.c: Likewise.
7599         * expmed.c: Likewise.
7600         * fixed-value.c: Likewise.
7601         * fold-const.c: Likewise.
7602         * fwprop.c: Likewise.
7603         * gcse.c: Likewise.
7604         * ggc-common.c: Likewise.
7605         * ggc-page.c: Likewise.
7606         * ggc-zone.c: Likewise.
7607         * gimple-low.c: Likewise.
7608         * gimplify.c: Likewise.
7609         * graph.c: Likewise.
7610         * haifa-sched.c: Likewise.
7611         * ifcvt.c: Likewise.
7612         * implicit-zee.c: Likewise.
7613         * integrate.c: Likewise.
7614         * ira-build.c: Likewise.
7615         * ira-color.c: Likewise.
7616         * ira-conflicts.c: Likewise.
7617         * ira-costs.c: Likewise.
7618         * ira-lives.c: Likewise.
7619         * ira.c: Likewise.
7620         * lists.c: Likewise.
7621         * loop-doloop.c: Likewise.
7622         * loop-iv.c: Likewise.
7623         * lto-opts.c: Likewise.
7624         * lto-symtab.c: Likewise.
7625         * main.c: Likewise.
7626         * modulo-sched.c: Likewise.
7627         * optabs.c: Likewise.
7628         * params.c: Likewise.
7629         * plugin.c: Likewise.
7630         * postreload-gcse.c: Likewise.
7631         * postreload.c: Likewise.
7632         * predict.c: Likewise.
7633         * profile.c: Likewise.
7634         * real.c: Likewise.
7635         * regcprop.c: Likewise.
7636         * reginfo.c: Likewise.
7637         * regmove.c: Likewise.
7638         * reorg.c: Likewise.
7639         * resource.c: Likewise.
7640         * rtl.c: Likewise.
7641         * rtlanal.c: Likewise.
7642         * sched-deps.c: Likewise.
7643         * sched-ebb.c: Likewise.
7644         * sched-rgn.c: Likewise.
7645         * sdbout.c: Likewise.
7646         * sel-sched-dump.c: Likewise.
7647         * sel-sched-ir.c: Likewise.
7648         * simplify-rtx.c: Likewise.
7649         * stmt.c: Likewise.
7650         * stor-layout.c: Likewise.
7651         * store-motion.c: Likewise.
7652         * targhooks.c: Likewise.
7653         * tree-cfg.c: Likewise.
7654         * tree-cfgcleanup.c: Likewise.
7655         * tree-dump.c: Likewise.
7656         * tree-eh.c: Likewise.
7657         * tree-inline.c: Likewise.
7658         * tree-nomudflap.c: Likewise.
7659         * tree-object-size.c: Likewise.
7660         * tree-optimize.c: Likewise.
7661         * tree-outof-ssa.c: Likewise.
7662         * tree-phinodes.c: Likewise.
7663         * tree-profile.c: Likewise.
7664         * tree-ssa-ccp.c: Likewise.
7665         * tree-ssa-coalesce.c: Likewise.
7666         * tree-ssa-live.c: Likewise.
7667         * tree-ssa-loop-niter.c: Likewise.
7668         * tree-ssa-loop-prefetch.c: Likewise.
7669         * tree-ssa-loop.c: Likewise.
7670         * tree-ssa-structalias.c: Likewise.
7671         * tree-ssa-uninit.c: Likewise.
7672         * tree-ssa.c: Likewise.
7673         * tree-vect-data-refs.c: Likewise.
7674         * tree-vect-loop-manip.c: Likewise.
7675         * tree-vect-loop.c: Likewise.
7676         * tree-vect-patterns.c: Likewise.
7677         * tree-vect-stmts.c: Likewise.
7678         * tree-vrp.c: Likewise.
7679         * varasm.c: Likewise.
7680         * vec.c: Likewise.
7681         * web.c: Likewise.
7682         * xcoffout.c: Likewise.
7683
7684 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
7685
7686         * gengtype.c (write_field_root): New function.
7687         (write_root): Use it.
7688
7689 2010-07-07  Wei Guozhi  <carrot@google.com>
7690
7691         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7692         of lowest bits to lshift/compare): Add a missing line.
7693
7694 2010-07-07  Wei Guozhi  <carrot@google.com>
7695
7696         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7697         of lowest bits to lshift/compare): New.
7698
7699 2010-07-07  Tom Tromey  <tromey@redhat.com>
7700
7701         * doc/tm.texi: Update.
7702         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
7703         Add @hook.
7704         * target.def (want_debug_pub_sections): New hook.
7705         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
7706         * dwarf2out.c (add_pubname_string): Check
7707         targetm.want_debug_pub_sections.
7708         (add_pubname): Likewise.
7709         (add_pubtype): Likewise.
7710
7711 2010-07-07  Jie Zhang  <jie@codesourcery.com>
7712
7713         * genautomata.c (output_automata_list_min_issue_delay_code):
7714         Correctly decompress min_issue_delay.
7715
7716 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7717
7718         PR rtl-optimization/44404
7719         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
7720         possible, use reg_overlap_mentioned_p instead.
7721
7722 2010-07-07  Duncan Sands  <baldrick@free.fr>
7723
7724         PR middle-end/41355
7725         * tree.c (build_function_type_skip_args): Copy the original type using
7726         build_distinct_type_copy rather than copy_node.
7727
7728 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7729
7730         PR target/44850
7731         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
7732         revision 161876.
7733         (ix86_expand_prologue): Likewise.
7734         (ix86_handle_fndecl_attribute): Likewise.
7735         (ix86_asm_declare_function_name): Likewise.
7736         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7737         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7738         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
7739         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
7740         * doc/extend.texi: Likewise.
7741
7742 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7743
7744         PR target/44844
7745         * config/i386/i386.md (rdrand<mode>): Changed to expand to
7746         retry if the carry flag isn't valid.
7747         (rdrand<mode>_1): New.
7748
7749 2010-07-07  Richard Guenther  <rguenther@suse.de>
7750
7751         PR middle-end/44790
7752         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
7753         for expanding the constant offset for MEM_REFs.
7754
7755 2010-07-07  Richard Guenther  <rguenther@suse.de>
7756
7757         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
7758         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
7759         * gimple.h (is_gimple_operand): Remove.
7760         * gimple.c (is_gimple_operand): Likewise.
7761         (walk_gimple_op): Fix wi->val_only setting for calls.
7762         * tree-cfg.c (verify_gimple_call): Fix argument validation.
7763         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
7764         invalid gimple calls.
7765
7766 2010-07-06  Jan Hubicka  <jh@suse.cz>
7767
7768         * lto-cgraph.c (output_cgraph): Add missing declaration.
7769
7770 2010-07-06  Jan Hubicka  <jh@suse.cz>
7771
7772         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
7773         partition.
7774
7775 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
7776
7777         * doc/gimple.texi (GIMPLE_DEBUG): Document.
7778         * doc/rtl.texi (Debug Information): New node.
7779         (NOTE_INSN_VAR_LOCATION): Document.
7780         (debug_insn): Likewise.
7781         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
7782
7783 2010-07-07  Jan Hubicka  <jh@suse.cz>
7784
7785         With parts by Richard Guenther.
7786
7787         PR middle-end/44813
7788         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
7789         for functions passed by reference.
7790         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
7791         in memory when passed by reference.
7792         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
7793         beggining.
7794         * ipa-split.c (split_function): Cleanup way return value is passed;
7795         handle SSA DECL_BY_REFERENCE retvals.
7796         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
7797         DECL_BY_REFERENCE is set.
7798         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
7799         find_what_p_points_to): Handle RESULT_DECL.
7800         * tree-inline.c (declare_return_variable): Get new entry_block argument;
7801         when passing by reference ensure that RESULT_DECL is gimple_val.
7802         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
7803         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
7804
7805 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7806
7807         PR rtl-optimization/44787
7808         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
7809         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
7810
7811 2010-07-06  Jan Hubicka  <jh@suse.cz>
7812
7813         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
7814         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
7815         with body can prevail.
7816         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
7817         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
7818         * cgraph.c (cgraph_get_node_or_alias): New function.
7819         * cgraph.h (cgraph_get_node_or_alias): Declare.
7820
7821 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
7822
7823         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
7824         support.
7825         (ix86_expand_prologue): Likewise.
7826         (ix86_handle_fndecl_attribute): Likewise.
7827         (ix86_asm_declare_function_name): New function for
7828         ASM_DECLARE_FUNCTION_NAME.
7829         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
7830         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
7831         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
7832         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
7833         * doc/extend.texi: Adjust documentation about ms_hook_prologue
7834         attribute.
7835
7836 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7837
7838         * config/i386/i386.md (immediate_operand): New mode attribute.
7839
7840         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
7841         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
7842         using P mode iterator.
7843         (pro_epilogue_adjust_stack_di_2): Rename from
7844         pro_epilogue_adjust_stack_rex64_2.
7845
7846         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
7847
7848 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7849
7850         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
7851         through gen_mov_insv_1 function pointer.
7852         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
7853         gen_truncxf<mode>2 through gen_truncxf function pointer.
7854         (remainder<mode>3): Ditto.
7855         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
7856         (allocate_stack): Call gen_allocate_stack_worker_64 or
7857         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
7858         function pointer.
7859         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
7860         function pointer.
7861
7862 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7863
7864         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
7865         operand constraint instead of <r><i>m.
7866
7867 2010-07-06  Richard Guenther  <rguenther@suse.de>
7868
7869         PR middle-end/44828
7870         * convert.c (convert_to_integer): Watch out for overflowing
7871         MULT_EXPR as well.
7872
7873 2010-07-05  Jan Hubicka  <jh@suse.cz>
7874
7875         * lto-streamer.c (write_symbol_vec): Rename to ...
7876         (write_symbol) ... this one; write only symbol given and when
7877         present in cache. Sanity check that what is defined is present
7878         in cgraph/varpool with body/finalized decl.
7879         (write_symbols_of_kind): Remove.
7880         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
7881         pairs to produce symtab.
7882         (produce_asm_for_decls): Update call of produce_symtab; don't do so
7883         when doing WPA streaming.
7884
7885 2010-07-05  Jan Hubicka  <jh@suse.cz>
7886
7887         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
7888         function is still available to fold into.
7889
7890 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7891
7892         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
7893         * function.h (struct_function): Change type of local_decls field
7894         to a VEC.
7895         (add_local_decl): New function.
7896         (FOR_EACH_LOCAL_DECL): New macro.
7897         * cfgexpand.c (init_vars_expansion): Adjust for new type of
7898         cfun->local_decls.
7899         (estimated_stack_frame_size): Likewise.
7900         (expand_used_vars): Likewise.
7901         * cgraphbuild.c (build_cgraph_edges): Likewise.
7902         * function.c (instantiate_decls_1): Likewise.
7903         * ipa-struct-reorg.c (build_data_structure): Likewise.
7904         * ipa-type-escape.c (analyze_function): Likewise.
7905         * lto-streamer-in.c (input_function): Likewise.
7906         * lto-streamer-out.c (output_function): Likewise.
7907         * tree-ssa-live.c (remove_unused_locals): Likewise.
7908         * tree.c (free_lang_data_in_decl): Likewise.
7909         (find_decls_types_in_node): Likewise.
7910         * omp-low.c (remove_exit_barrier): Likewise.
7911         (expand_omp_taskreg): Likewise.
7912         (list2chain): Rename to...
7913         (vec2chain): ...this.  Adjust.
7914         * cgraphunit.c (assemble_thunk): Call add_local_decl.
7915         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
7916         * gimple-low.c (record_vars_into): Likewise.
7917         * tree-inline.c (remap_decls): Likewise.
7918         (declare_return_variable): Likewise.
7919         (declare_inline_vars): Likewise.
7920         (copy_forbidden): Adjust for new type of cfun->local_decls.
7921         (add_local_variables): New function.
7922         (expand_call_inline): Call it.
7923         (tree_function_versioning): Likewise.
7924
7925 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7926
7927         AVX Programming Reference (June, 2010)
7928         * config/i386/cpuid.h (bit_F16C): New.
7929         (bit_RDRND): Likewise.
7930         (bit_FSGSBASE): Likewise.
7931
7932         * config/i386/i386-builtin-types.def: Add
7933         "DEF_FUNCTION_TYPE (UINT16)", function types for
7934         float16 <-> float conversions and
7935         "DEF_FUNCTION_TYPE (VOID, UINT64)".
7936
7937         * config/i386/i386-c.c (ix86_target_macros_internal): Support
7938         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
7939         OPTION_MASK_ISA_F16C.
7940
7941         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
7942         (OPTION_MASK_ISA_RDRND_SET): Likewise.
7943         (OPTION_MASK_ISA_F16C_SET): Likewise.
7944         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
7945         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
7946         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
7947         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
7948         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
7949         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
7950         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
7951         (override_options): Handle them.
7952         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
7953         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
7954         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
7955         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
7956         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
7957         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
7958         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
7959         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
7960         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
7961         (bdesc_args): Likewise.
7962         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
7963         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
7964         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
7965         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
7966         Handle non-memory store.
7967
7968         * config/i386/i386.h (TARGET_FSGSBASE): New.
7969         (TARGET_RDRND): Likewise.
7970         (TARGET_F12C): Likewise.
7971
7972         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
7973         (UNSPEC_VCVTPS2PH): Likewise.
7974         (UNSPECV_RDFSBASE): Likewise.
7975         (UNSPECV_RDGSBASE): Likewise.
7976         (UNSPECV_WRFSBASE): Likewise.
7977         (UNSPECV_WRGSBASE): Likewise.
7978         (UNSPECV_RDRAND): Likewise.
7979         (rdfsbase<mode>): Likewise.
7980         (rdgsbase<mode>): Likewise.
7981         (wrfsbase<mode>): Likewise.
7982         (wrgsbase<mode>): Likewise.
7983         (rdrand<mode>): Likewise.
7984
7985         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
7986
7987         * config/i386/immintrin.h (_rdrand_u16): New.
7988         (_rdrand_u32): Likewise.
7989         (_readfsbase_u32): Likewise.
7990         (_readfsbase_u64): Likewise.
7991         (_readgsbase_u32): Likewise.
7992         (_readgsbase_u64): Likewise.
7993         (_writefsbase_u32): Likewise.
7994         (_writefsbase_u64): Likewise.
7995         (_writegsbase_u32): Likewise.
7996         (_writegsbase_u64): Likewise.
7997         (_rdrand_u64): Likewise.
7998         (_cvtsh_ss): Likewise.
7999         (_mm_cvtph_ps): Likewise.
8000         (_mm256_cvtph_ps): Likewise.
8001         (_cvtss_sh): Likewise.
8002         (_mm_cvtps_ph): Likewise.
8003         (_mm256_cvtps_ph): Likewise.
8004
8005         * config/i386/sse.md (vcvtph2ps): New.
8006         (*vcvtph2ps_load): Likewise.
8007         (vcvtph2ps256): Likewise.
8008         (vcvtps2ph): Likewise.
8009         (*vcvtps2ph): Likewise.
8010         (*vcvtps2ph_store): Likewise.
8011         (vcvtps2ph256): Likewise.
8012
8013         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
8014
8015         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
8016
8017 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
8018
8019         PR bootstrap/44512
8020         * genenums.c (main): Output include of insn-constants.h
8021         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
8022
8023 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
8024
8025         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
8026         (override_options): Initialize it.
8027         (ix86_expand_prologue): Use it.
8028
8029 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8030
8031         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
8032
8033 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8034
8035         * double-int.h (fit_double_type): Remove declaration.
8036         * double-int.c (fit_double_type): Remove function.
8037         * tree.h (int_fits_type_p): Adjust prototype.
8038         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
8039         instead of fit_double_type.
8040         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
8041         instead of fit_double_type and build_int_cst_wide.
8042         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
8043         instead of fit_double_type and build_int_cst_wide.
8044         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
8045         of fit_double_type.
8046
8047 2010-07-05  Jan Hubicka  <jh@suse.cz>
8048
8049         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
8050         in_other_partition.
8051         * lto-cgraph.c (referenced_from_other_partition_p,
8052         reachable_from_other_partition_p): Use in_other_partition flags.
8053         (output_node, output_varpool_node): COMDAT nodes always have private
8054         copies and thus are never used from other partition.
8055
8056 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8057
8058         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8059         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
8060         * config/ia64/ia64.c Include reload.h.
8061         (ia64_memory_move_cost): New function.
8062         (TARGET_MEMORY_MOVE_COST): Define.
8063         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
8064         memory_move_cost.
8065
8066 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8067
8068         PR middle-end/42505
8069         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
8070         comments about cost model.
8071         (try_add_cand_for):  Add second strategy for choosing initial set
8072         based on original IVs, controlled by ORIGINALP argument.
8073         (get_initial_solution): Add ORIGINALP argument.
8074         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
8075         (find_optimal_iv_set): Try two different strategies for choosing
8076         the IV set, and return the one with lower cost.
8077
8078 2010-07-05  Richard Guenther  <rguenther@suse.de>
8079
8080         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
8081
8082 2010-07-05  Richard Guenther  <rguenther@suse.de>
8083
8084         * tree.c (reference_alias_ptr_type): New function.
8085         * tree.h (reference_alias_ptr_type): Declare.
8086         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
8087         allow non-TARGET_MEM_REF new refs.
8088         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
8089         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
8090         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
8091         (create_mem_ref): Get alias pointer type.  Adjust calls to
8092         create_mem_ref_raw.
8093         (maybe_fold_tmr): Likewise.
8094         * tree-flow.h (create_mem_ref): Adjust prototype.
8095
8096 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8097
8098         PR c++/44808
8099         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
8100         *from_p is VAR_DECL.
8101
8102 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8103
8104         * tree.h (build_call_list): Remove.
8105         * tree.c (build_call_list): Remove.
8106
8107 2010-07-05  Richard Guenther  <rguenther@suse.de>
8108
8109         * double-int.h (double_int_sub): Declare.
8110         * double-int.c (double_int_sub): New function.
8111         * dwarf2out.c (field_byte_offset): Use it.
8112         * fixed-value.c (do_fixed_add): Likewise.
8113         (do_fixed_multiply): Likewise.
8114         (do_fixed_divide): Likewise.
8115         * tree-predcom.c (add_ref_to_chain): Likewise.
8116         (determine_roots_comp): Likewise.
8117         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8118
8119 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8120
8121         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
8122         implementations.
8123
8124 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
8125
8126         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
8127         * arm-modes.def (CC_NOTB): Don't define.
8128         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
8129         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
8130         (LTUGEU): New code_iterator.
8131         (cnb, optab): New corresponding code_attrs.
8132         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
8133         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
8134         using LTUGEU.
8135         (addsi3_carryin_shift_<optab>): Likewise.
8136         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
8137         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
8138         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
8139         (subsi3_compare): Renamed from subsi3_compare0_c.
8140         Change CC_NOTB to CC.
8141         (arm_subsi3_insn): Allow constants for operand 0.
8142         (compare_scc peephole for eq case): New.
8143         (compare_scc splitters): Change CC_NOTB to CC.
8144
8145 2010-07-05  Richard Guenther  <rguenther@suse.de>
8146
8147         * tree-ssa-loop-im.c (for_each_index): Do not handle
8148         ALIGN_INDIRECT_REF.
8149         (gen_lsm_tmp_name): Likewise.
8150         * tree-dump.c (dequeue_and_dump): Likewise.
8151         * tree-pretty-print.c (dump_generic_node): Likewise.
8152         (op_code_prio): Likewise.
8153         (op_symbol_code): Likewise.
8154         * tree.c (staticp): Likewise.
8155         (build1_stat): Likewise.
8156         * tree.h (INDIRECT_REF_P): Likewise.
8157         * fold-const.c (maybe_lvalue_p): Likewise.
8158         (operand_equal_p): Likewise.
8159         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8160         (ao_ref_init_from_vn_reference): Likewise.
8161         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8162         (find_interesting_uses_address): Likewise.
8163         * dwarf2out.c (loc_list_from_tree): Likewise.
8164         * gimplify.c (gimplify_expr): Likewise.
8165         * tree-eh.c (tree_could_trap_p): Likewise.
8166         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8167         * cfgexpand.c (expand_debug_expr): Likewise.
8168         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8169         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8170         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8171         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
8172         * tree-ssa-operands.c (get_expr_operands): Likewise.
8173         * expr.c (safe_from_p): Likewise.
8174         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
8175         * tree-vect-data-refs.c (vect_setup_realignment): Build
8176         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
8177         * tree-vect-stmts.c (vectorizable_load): Likewise.
8178         * tree.def (ALIGN_INDIRECT_REF): Remove.
8179
8180 2010-07-05  Richard Guenther  <rguenther@suse.de>
8181
8182         PR tree-optimization/44784
8183         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
8184         for inserted stmts.
8185         (find_or_generate_expression): Fix SCCVN insertion check.
8186
8187 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
8188
8189         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
8190         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
8191         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
8192         directives.
8193
8194 2010-07-05  Ira Rosen  <irar@il.ibm.com>
8195
8196         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
8197         statements that are not vectorized.
8198         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
8199         in INSIDE_COST.
8200
8201 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
8202
8203         PR bootstrap/44820
8204         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
8205
8206 2010-07-05  Richard Guenther  <rguenther@suse.de>
8207
8208         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
8209         RESULT_DECLs properly.
8210
8211 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8212
8213         PR rtl-optimization/44695
8214         * config/i386/i386.md (extract_code): Removed.
8215         (<u>divmodqi4): Likewise.
8216         (divmodqi4): New.
8217         (udivmodqi4): Likewise.
8218         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
8219         (udivmodhiqi3): Likewise.
8220
8221 2010-07-04  Jan Hubicka  <jh@suse.cz>
8222
8223         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
8224
8225 2010-07-04  Jan Hubicka  <jh@suse.cz>
8226
8227         * cgraphunit.c (init_cgraph): Only initialize dump file if it
8228         is not already initialized.
8229
8230 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8231
8232         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
8233         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
8234         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
8235         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
8236         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
8237         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
8238         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
8239         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
8240         (sync_new_nand_optab): Redefine as macros.
8241         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
8242         Delete.
8243         (direct_optab_index): New enum.
8244         (direct_optab_d): New structure.
8245         (direct_optab): New typedef.
8246         (direct_optab_table): Declare.
8247         (direct_optab_handler, set_direct_optab_handler): New functions.
8248         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
8249         (sync_lock_release_optab): New macros.
8250         * optabs.c (direct_optab_table): New variable.
8251         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
8252         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
8253         cmpstr_optab and cmpstrn_optab.
8254         (emit_conditional_move): Likewise for movcc_optab.
8255         (can_conditionally_move_p): Likewise for movcc_gen_code.
8256         (init_insn_codes): Clear direct_optab_table.
8257         (init_optabs): Don't initialize the new "direct optabs" here.
8258         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
8259         vcond_gen_code.
8260         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
8261         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
8262         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
8263         (expand_sync_operation): Likewise other sync_*_optabs.
8264         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
8265         to sync_compare_and_swap_optab.
8266         (expand_sync_lock_test_and_set): Use direct_optab_handler for
8267         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
8268         to the names of both.
8269         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
8270         cmpstr_optab and cmpstrn_optab.
8271         (expand_builtin_lock_release): Likewise sync_lock_release.
8272         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
8273         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
8274         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
8275         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
8276         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
8277         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
8278         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
8279         (sync_lock_test_and_set, sync_lock_release): Delete.
8280         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
8281         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
8282         * genopinit.c (optabs): Use set_direct_optab_handler for the new
8283         macro optabs.
8284         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
8285         the "optab" local variable.  Use direct_optab_handler for optab and
8286         sync_compare_and_swap_optab.
8287         * reload1.c (reload_in_optab, reload_out_optab): Delete.
8288         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
8289         reload_in_optab and reload_out_optab.
8290         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8291         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
8292         * config/pa/pa.c (pa_secondary_reload): Likewise.
8293         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
8294         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
8295         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
8296         (VMSupportsCS8_builtin): Likewise.
8297
8298 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8299
8300         * optabs.h (optab_handlers): Change type of insn_code to int.
8301         (optab_handler, set_optab_handler, convert_optab_handler)
8302         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
8303         CODE_FOR_nothing".
8304         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
8305         (init_insn_codes): Zero both the above arrays.
8306         (init_optabs): Never call init_insn_codes first time around.
8307
8308 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8309
8310         * optabs.h (optab_handler, convert_optab_handler): Turn into
8311         inline functions that return an insn code.
8312         (set_optab_handler, set_convert_optab_handler): New functions.
8313         * builtins.c: Replace optab_handler(X)->insn_code with
8314         optab_handler or set_optab_handler thoughout.  Likewise
8315         convert_optab_handler(X)->insn_code with convert_optab_handler
8316         and set_convert_optab_handler.
8317         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
8318         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
8319         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
8320         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
8321         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
8322         config/spu/spu.c: Likewise.
8323
8324 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8325
8326         PR target/44531
8327         * config.gcc (sh*-*-*): Use regular expressions instead of
8328         the 'i' modifier for sed substitutions.
8329
8330 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
8331
8332         * gimple.c (gimple_body): Comments added.
8333
8334 2010-07-04  Richard Guenther  <rguenther@suse.de>
8335
8336         PR middle-end/44809
8337         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
8338         of an INDIRECT_REF.
8339
8340 2010-07-04  Richard Guenther  <rguenther@suse.de>
8341
8342         PR tree-optimization/44479
8343         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
8344         extra SSA name copy statements which preserves points-to
8345         information.
8346         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8347         Copy points-to information for all pointers.  Properly handle
8348         MEM_REFs.
8349         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
8350         copy statements.
8351         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
8352         dependency.
8353
8354 2010-07-04  Richard Guenther  <rguenther@suse.de>
8355
8356         PR middle-end/44785
8357         * tree-inline.c (initialize_inlined_parameters): Do not
8358         re-use pointer-map slot over remap_type call.
8359
8360 2010-07-04  Richard Guenther  <rguenther@suse.de>
8361
8362         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
8363
8364 2010-07-04  Richard Guenther  <rguenther@suse.de>
8365
8366         PR tree-optimization/44656
8367         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
8368         again after value-replacing in the defintions lhs.
8369
8370 2010-07-04  Ira Rosen  <irar@il.ibm.com>
8371             Revital Eres  <eres@il.ibm.com>
8372
8373         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
8374         Document new arguments.
8375         * doc/tm.texi: Regenerate.
8376         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
8377         Handle unaligned store.
8378         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
8379         * target.def (builtin_vectorization_cost): Add new arguments.
8380         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
8381         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
8382         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
8383         (vect_vfa_segment_size): Fix indentation.
8384         * tree-vectorizer.h (struct _vect_peel_info): New.
8385         (struct _vect_peel_extended_info): New.
8386         (struct _loop_vec_info): Add new field for peeling hash table and a
8387         macro for its access.
8388         (VECT_MAX_COST): Define.
8389         (vect_get_load_cost): Declare.
8390         (vect_get_store_cost, vect_get_known_peeling_cost,
8391         vect_get_single_scalar_iteraion_cost): Likewise.
8392         (vect_supportable_dr_alignment): Add new argument.
8393         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
8394         field.
8395         (destroy_loop_vec_info): Free peeling hash table.
8396         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
8397         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
8398         vect_analyze_slp. Fix indentation.
8399         (vect_get_single_scalar_iteraion_cost): New function.
8400         (vect_get_known_peeling_cost): Likewise.
8401         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
8402         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
8403         statement. Move outside cost calculation inside unknown peeling case.
8404         Call vect_get_known_peeling_cost for known amount of peeling.
8405         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
8406         reference to the print message of forced alignment.
8407         (vect_verify_datarefs_alignment): Update call to
8408         vect_supportable_dr_alignment.
8409         (vect_get_data_access_cost): New function.
8410         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
8411         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
8412         vect_peeling_hash_choose_best_peeling): Likewise.
8413         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
8414         to store all the accesses in the loop and find best possible access to
8415         align using peeling for known alignment case. For unknown alignment
8416         check if stores are preferred or if peeling is worthy.
8417         (vect_find_same_alignment_drs): Analyze pairs of loads too.
8418         (vect_supportable_dr_alignment): Add new argument and check aligned
8419         accesses according to it.
8420         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
8421         (cost_for_stmt): Call vect_get_stmt_cost.
8422         (vect_model_simple_cost): Likewise.
8423         (vect_model_store_cost): Call vect_get_stmt_cost. Call
8424         vect_get_store_cost to calculate the cost of the statement.
8425         (vect_get_store_cost): New function.
8426         (vect_model_load_cost): Call vect_get_stmt_cost. Call
8427         vect_get_load_cost to calculate the cost of the statement.
8428         (vect_get_load_cost): New function.
8429         (vectorizable_store): Update call to vect_supportable_dr_alignment.
8430         (vectorizable_load): Likewise.
8431         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
8432         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
8433         arguments. Handle unaligned store.
8434         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
8435         (rs6000_builtin_support_vector_misalignment): Return true for word and
8436         double word alignments for VSX.
8437         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
8438         vect_supportable_dr_alignment and builtin_vectorization_cost.
8439
8440 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8441
8442         PR target/44597
8443         * config/pa/predicates.md (prefetch_cc_operand): Remove.
8444         (prefetch_nocc_operand): Likewise.
8445         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
8446         (prefetch_20): New insn.
8447         (prefetch_cc): Remove.
8448         (prefetch_nocc): Likewise.
8449
8450 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8451
8452         * expr.c (vector_mode_valid_p): Move to c-common.c.
8453         * expr.h (vector_mode_valid_p): Do not declare here.
8454         * system.h: Poison GCC_EXPR_H in front-ends.
8455         * Makefile.in: Update dependencies.
8456
8457 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8458
8459         PR target/44705
8460         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
8461
8462 2010-07-03  Jan Hubicka  <jh@suse.cz>
8463
8464         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
8465         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
8466         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
8467         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
8468         Likewise.
8469
8470         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
8471         Update timevars.V
8472         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
8473         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
8474         TV_IPA_LTO_DECL_OUT): New.
8475         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
8476
8477 2010-07-03  Jan Hubicka  <jh@suse.cz>
8478
8479         * ipa-inline.c (update_edge_key): Break out from ...
8480         update_callers_keys): ... here;
8481         (update_callee_keys): Update only the edges from caller to callee.
8482         (update_all_calle_keys): Do what update_calle_keys did.
8483         (decide_inlining_of_small_functions): Avoid recomputing of all
8484         callees when badness increase.
8485
8486 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8487
8488         * config/arm/arm.c (arm_attr_length_move_neon): New.
8489         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
8490         * config/arm/neon.md (define_mode_attr V_slen): Remove.
8491         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
8492         to compute length attribute.
8493
8494 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8495
8496         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
8497         as predicate for operand 1 and remove its constraint.
8498         * config/arm/predicates.md (vfp_register_operand): New.
8499         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
8500         (*push_fp_multi): Likewise.
8501
8502 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8503
8504         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
8505
8506 2010-07-03  Jan Hubicka  <jh@suse.cz>
8507
8508         * config/i386/i386.c (override_options): Revert accidental commit.
8509
8510 2010-07-02  Le-Chun Wu  <lcwu@google.com>
8511
8512         PR c++/44128
8513         * doc/invoke.texi: Update documentation of -Wshadow.
8514
8515 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
8516             Julian Brown  <julian@codesourcery.com>
8517             Sandra Loosemore <sandra@codesourcery.com>
8518
8519         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
8520         comparisons.  Adjust to take both operands.
8521         (arm_select_cc_mode): Handle DImode comparisons.
8522         (arm_gen_compare_reg): Generate a scratch register for DImode
8523         comparisons which require one.  Use xor for Thumb equality checks.
8524         (arm_const_double_by_immediates): New.
8525         (arm_print_operand): Allow 'Q' and 'R' for constants.
8526         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
8527         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
8528         arm_canonicalize_comparison.
8529         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
8530         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8531         prototype.
8532         (arm_const_double_by_immediates): Declare.
8533         * config/arm/constraints.md (Di): New constraint.
8534         * config/arm/predicates.md (arm_immediate_di_operand)
8535         (arm_di_operand, cmpdi_operand): New.
8536         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
8537         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
8538         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
8539         (cstoredi4): Handle non-Cirrus also.
8540
8541 2010-07-02  Julian Brown  <julian@codesourcery.com>
8542             Sandra Loosemore <sandra@codesourcery.com>
8543
8544         PR target/43703
8545         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
8546         (smax<mode>3): Disable for NEON float modes when
8547         flag_unsafe_math_optimizations is false.
8548         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
8549         (*mul<mode>3_neon)
8550         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
8551         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
8552         for NEON float modes when flag_unsafe_math_optimizations is false.
8553         (quad_halves_<code>v4sf): Only enable if
8554         flag_unsafe_math_optimizations is true.
8555         * doc/invoke.texi (ARM Options): Add note about floating point
8556         vectorization requiring -funsafe-math-optimizations.
8557
8558 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8559             Julian Brown  <julian@codesourcery.com>
8560
8561         * config/arm/neon.md (UNSPEC_VABA): Delete.
8562         (UNSPEC_VABAL): Delete.
8563         (UNSPEC_VABS): Delete.
8564         (UNSPEC_VMUL_N): Delete.
8565         (adddi3_neon): New.
8566         (subdi3_neon): New.
8567         (mul<mode>3add<mode>_neon): Make the pattern named.
8568         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
8569         (neon_vadd<mode>): Replace with define_expand, and move the remaining
8570         unspec parts...
8571         (neon_vadd<mode>_unspec): ...to this.
8572         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
8573         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
8574         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
8575         (neon_vaba<mode>): Rewrite in terms of vabd.
8576         (neon_vabal<mode>): Rewrite in terms of vabdl.
8577         (neon_vabs<mode>): Rewrite without unspec.
8578         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
8579         (*arm_subdi3): Likewise.
8580         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
8581         No_op attribute to disable assembly output checks.
8582         * config/arm/arm_neon.h: Regenerated.
8583         * doc/arm-neon-intrinsics.texi: Regenerated.
8584
8585 2010-07-02  Jan Hubicka  <jh@suse.cz>
8586
8587         * ipa-split.c (split_function): For aggregate values, set the return
8588         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
8589         *<retval> = fncall.part ().
8590         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
8591
8592 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8593
8594         * config/arm/neon.md (UNSPEC_VAND): Delete.
8595         (UNSPEC_VBIC): Delete.
8596         (UNSPEC_VCLZ): Delete.
8597         (UNSPEC_VCNT): Delete.
8598         (UNSPEC_VEOR): Delete.
8599         (UNSPEC_VORN): Delete.
8600         (UNSPEC_VORR): Delete.
8601         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
8602         core registers too.
8603         (anddi3_neon): Likewise.
8604         (orndi3_neon): Likewise.
8605         (bicdi3_neon): Likewise.
8606         (xordi3_neon): Likewise.
8607         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
8608         rid of unspec and handle unused operand.
8609         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
8610         * config/arm/predicates.md (imm_for_neon_logic_operand):
8611         Require TARGET_NEON.
8612         (imm_for_neon_inv_logic_operand): Likewise.
8613         * config/arm/arm.md (define_split for logical_binary_operator):
8614         Disable for NEON registers.
8615         (anddi3): Add new define_expand, and rename the insn.  Disable
8616         this insn for NEON, where anddi3_neon now applies.
8617         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
8618         (iordi3): As for anddi3.
8619         (xordi3): Likewise.
8620         * config/arm/neon.ml (Vand): Split DImode variants and mark them
8621         as No_op to disable testing for exact instruction match.
8622         (Vorr): Likewise.
8623         (Veor): Likewise.
8624         (Vbic): Likewise.
8625         (Vorn): Likewise.
8626         * config/arm/arm_neon.h: Regenerated.
8627         * doc/arm-neon-intrinsics.texi: Regenerated.
8628
8629 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8630
8631         * expr.h (emit_stack_probe): Declare.
8632         * explow.c (emit_stack_probe): Make global.
8633         (anti_adjust_stack_and_probe): Fix comments.
8634         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8635         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8636         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8637         * config/sparc/sparc.c: Include except.h.
8638         (sparc_emit_probe_stack_range): New function.
8639         (output_probe_stack_range): Likewise.
8640         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
8641         built-in stack checking is enabled.
8642         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
8643         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8644         (probe_stack_range): New insn.
8645
8646 2010-07-02  Richard Guenther  <rguenther@suse.de>
8647
8648         PR target/43958
8649         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
8650         for argument alignment.
8651
8652 2010-07-02  Jan Hubicka  <jh@suse.cz>
8653
8654         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
8655         walk backwards from entry_bb to check only those basic block of header
8656         that might lead to execution of split part.
8657         (consider_split) ... here.
8658         (find_return_bb): Allow assignment in return BB.
8659         (find_retval): New.
8660         (split_function): Fix name of cloned function; take care of updating
8661         return value in return_bb containing move.
8662
8663 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
8664
8665         PR target/44771
8666         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
8667         used variable insn.
8668
8669 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8670
8671         * implicit-zee.c (combine_reaching_defs): Fix long lines.
8672         (is_set_with_extension_DI): Delete.
8673         (struct zero_extend_info): New structure.
8674         (add_removable_zero_extend): New function.
8675         (find_removable_zero_extends): Use note_stores to find SETs.
8676         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
8677
8678 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8679
8680         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
8681         is_miss_rate_acceptable. Pull total_positions computation
8682         out of the loops.  Early return if miss_positions exceeds
8683         the acceptable threshold.
8684         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
8685         is_miss_rate_acceptable after renaming of compute_miss_rate.
8686
8687 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8688
8689         PR middle-end/44576
8690         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
8691         of 1000) for miss rate if the address diference is greater than or
8692         equal to the cache line size (the two reference will never hit the
8693         same cache line).
8694
8695 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
8696
8697         PR target/42835
8698         * config/arm/arm-modes.def (CC_NOTB): New mode.
8699         * config/arm/arm.c (get_arm_condition_code): Handle it.
8700         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
8701         * config/arm/arm.md (subsi3_compare0_c): New pattern.
8702         (compare_scc): Now a define_and_split.  Add a number of extra
8703         splitters before it.
8704
8705         PR target/42172
8706         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
8707         and ZERO_EXTEND.
8708         (arm_rtx_costs_1): Likewise.
8709         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
8710         * config/arm/arm.md (is_arch6): New attribute.
8711         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
8712         extendqisi2): Tighten the code somewhat, avoiding invalid
8713         RTL to occur in the expander patterns.
8714         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
8715         (thumb1_zero_extendhisi2_v6): Delete.
8716         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
8717         (thumb1_extendhisi2_v6): Delete.
8718         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
8719         (thumb1_extendqisi2_v6): Delete.
8720         (zero_extendhisi2 for register input splitter): New.
8721         (zero_extendqisi2 for register input splitter): New.
8722         (thumb1_extendhisi2 for register input splitter): New.
8723         (extendhisi2 for register input splitter): New.
8724         (extendqisi2 for register input splitter): New.
8725         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
8726         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
8727         and add support for a register alternative requiring a split.
8728         (thumb1_zero_extendqisi2): Likewise.
8729         (arm_zero_extendqisi2): Likewise.
8730         (arm_extendhisi2): Likewise.
8731         (arm_extendqisi2): Likewise.
8732
8733 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8734
8735         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
8736         instead of an unspec.
8737         (neon_expand_vector_init): Likewise.
8738         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
8739         (UNSPEC_VDUP_LANE): Delete.
8740         (UNSPEC VDUP_N): Delete.
8741         (UNSPEC_VGET_HIGH): Delete.
8742         (UNSPEC_VGET_LANE): Delete.
8743         (UNSPEC_VGET_LOW): Delete.
8744         (UNSPEC_VMVN): Delete.
8745         (UNSPEC_VSET_LANE): Delete.
8746         (V_double_vector_mode): New.
8747         (vec_set<mode>_internal): Make code emitted match that for the
8748         corresponding intrinsics.
8749         (vec_setv2di_internal): Likewise.
8750         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
8751         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
8752         (neon_vset_lane<mode>): Combine double and quad patterns and
8753         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
8754         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
8755         (neon_vdup_n<mode>): Rewrite RTL without unspec.
8756         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
8757         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
8758         with neon_vdup_lanev2di, adjusting the pattern from the latter
8759         to be predicable for consistency.
8760         (neon_vdup_lane<mode>_internal): New.
8761         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
8762         to avoid using an unspec.
8763         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
8764         (neon_vdup_lanev2di): Turn into a define_expand.
8765         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
8766         (neon_vget_high<mode>): Replace with....
8767         (neon_vget_highv16qi): New pattern using canonical RTL.
8768         (neon_vget_highv8hi): Likewise.
8769         (neon_vget_highv4si): Likewise.
8770         (neon_vget_highv4sf): Likewise.
8771         (neon_vget_highv2di): Likewise.
8772         (neon_vget_low<mode>): Replace with....
8773         (neon_vget_lowv16qi): New pattern using canonical RTL.
8774         (neon_vget_lowv8hi): Likewise.
8775         (neon_vget_lowv4si): Likewise.
8776         (neon_vget_lowv4sf): Likewise.
8777         (neon_vget_lowv2di): Likewise.
8778
8779         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
8780         test for this emitting vmov.
8781         (Vset_lane): Likewise.
8782         (Vdup_n): Likewise.
8783         (Vmov_n): Likewise.
8784
8785         * doc/arm-neon-intrinsics.texi: Regenerated.
8786
8787 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8788
8789         * config/arm/neon.md (vec_extractv2di): Correct error in register
8790         numbering to reconcile with neon_vget_lanev2di.
8791
8792 2010-07-02  Richard Guenther  <rguenther@suse.de>
8793
8794         * tree-ssa-structalias.c (pt_solution_set_var): New function.
8795         * tree-ssa-alias.h (pt_solution_set_var): Declare.
8796         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
8797         points-to information.
8798
8799 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
8800
8801         * config/s390/s390.c (override_options): Adopt prefetching
8802         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
8803
8804 2010-07-02  Jan Hubicka  <jh@suse.cz>
8805
8806         * df-problems.c (df_kill_notes): Do not collect dead  notes.
8807         (df_set_note): Just call add_reg_note.
8808         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
8809         df_create_unused_note): Do not deal with lists of old notes.
8810         (df_note_bb_compute): Likewise.
8811
8812 2010-07-02  Richard Guenther  <rguenther@suse.de>
8813
8814         * tree-ssa-structalias.c (find_func_aliases): Handle
8815         pointer alignment via BIT_AND_EXPR.
8816         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
8817
8818 2010-07-02  Richard Guenther  <rguenther@suse.de>
8819
8820         * tree-data-ref.c (initialize_data_dependence_relation): Handle
8821         mismatching number of dimensions properly.
8822
8823 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8824
8825         PR target/44707
8826         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
8827         (lo_sum (high ...) ...) patterns generated by earlier passes.
8828
8829 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8830
8831         * doc/install.texi (Prerequisites): Document Perl requirement on
8832         Solaris 2.
8833         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
8834
8835 2010-07-02  Richard Guenther  <rguenther@suse.de>
8836
8837         PR middle-end/44777
8838         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
8839
8840 2010-07-02  Jan Hubicka  <jh@suse.cz>
8841
8842         PR middle-end/44706
8843         * predict.c (predict_paths_for_bb): Handle case when control dependence
8844         BB has only abnormal edges.
8845
8846 2010-07-02  Richard Guenther  <rguenther@suse.de>
8847
8848         PR tree-optimization/44748
8849         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
8850         the embedded conversion in MEM_REFs.
8851
8852 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
8853
8854         * reload.c: Include toplev.h.
8855         * recog.c:  Likewise.
8856         * Makefile.in: Adjust dependencies.
8857
8858 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
8859
8860         PR debug/44694
8861         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
8862         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
8863
8864 2010-07-01  Richard Guenther  <rguenther@suse.de>
8865
8866         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
8867         types for offsets.
8868
8869 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8870
8871         PR target/44732
8872         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
8873         Fix argument types.
8874
8875 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
8876
8877         PR target/44727
8878         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8879         Make sure operand 0 dies.
8880
8881 2010-07-01  Richard Guenther  <rguenther@suse.de>
8882
8883         PR middle-end/42834
8884         PR middle-end/44468
8885         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
8886         * doc/generic.texi (References to storage): Document MEM_REF.
8887         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
8888         (print_call_name): Likewise.
8889         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
8890         (build_simple_mem_ref_loc): New function.
8891         (mem_ref_offset): Likewise.
8892         * tree.h (build_simple_mem_ref_loc): Declare.
8893         (build_simple_mem_ref): Define.
8894         (mem_ref_offset): Declare.
8895         * fold-const.c: Include tree-flow.h.
8896         (operand_equal_p): Handle MEM_REF.
8897         (build_fold_addr_expr_with_type_loc): Likewise.
8898         (fold_comparison): Likewise.
8899         (fold_unary_loc): Fold
8900         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
8901         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
8902         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
8903         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
8904         (ptr_deref_may_alias_ref_p_1): Likewise.
8905         (ao_ref_base_alias_set): Properly differentiate base object for
8906         offset and TBAA.
8907         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
8908         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
8909         (indirect_refs_may_alias_p): Likewise.
8910         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
8911         chasing code.
8912         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
8913         (call_may_clobber_ref_p_1): Likewise.
8914         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
8915         * expr.c (expand_assignment): Handle MEM_REF.
8916         (store_expr): Handle MEM_REFs from STRING_CSTs.
8917         (store_field): If expanding a MEM_REF of a non-addressable
8918         decl use bitfield operations.
8919         (get_inner_reference): Handle MEM_REF.
8920         (expand_expr_addr_expr_1): Likewise.
8921         (expand_expr_real_1): Likewise.
8922         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
8923         * alias.c (ao_ref_from_mem): Handle MEM_REF.
8924         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
8925         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
8926         (dr_analyze_indices): Likewise.
8927         (dr_analyze_alias): Likewise.
8928         (object_address_invariant_in_loop_p): Likewise.
8929         * gimplify.c (mark_addressable): Handle MEM_REF.
8930         (gimplify_cond_expr): Build MEM_REFs.
8931         (gimplify_modify_expr_to_memcpy): Likewise.
8932         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
8933         (gimple_fold_indirect_ref): Adjust.
8934         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
8935         * tree.def (MEM_REF): New tree code.
8936         * tree-dfa.c: Include toplev.h.
8937         (get_ref_base_and_extent): Handle MEM_REF.
8938         (get_addr_base_and_unit_offset): New function.
8939         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
8940         * gimple-fold.c (may_propagate_address_into_dereference): Handle
8941         MEM_REF.
8942         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
8943         accesses if the array has just one dimension.  Remove always true
8944         parameter.  Do not require type compatibility here.
8945         (maybe_fold_offset_to_component_ref): Remove.
8946         (maybe_fold_stmt_indirect): Remove.
8947         (maybe_fold_reference): Remove INDIRECT_REF handling.
8948         Fold back to non-MEM_REF.
8949         (maybe_fold_offset_to_address): Simplify.  Deal with type
8950         mismatches here.
8951         (maybe_fold_reference): Likewise.
8952         (maybe_fold_stmt_addition): Likewise.  Also handle
8953         &ARRAY + I in addition to &ARRAY[0] + I.
8954         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
8955         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
8956         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
8957         * tree-ssa.c (useless_type_conversion_p): Make most pointer
8958         conversions useless.
8959         (warn_uninitialized_var): Handle MEM_REF.
8960         (maybe_rewrite_mem_ref_base): New function.
8961         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
8962         to SSA form.
8963         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
8964         INDIRECT_REF handling.
8965         (copy_tree_body_r): Handle MEM_REF.
8966         * gimple.c (is_gimple_addressable): Adjust.
8967         (is_gimple_address): Likewise.
8968         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
8969         invariant base are invariant.
8970         (is_gimple_min_lval): Adjust.
8971         (is_gimple_mem_ref_addr): New function.
8972         (get_base_address): Handle MEM_REF.
8973         (count_ptr_derefs): Likewise.
8974         (get_base_loadstore): Likewise.
8975         * gimple.h (is_gimple_mem_ref_addr): Declare.
8976         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
8977         * tree-cfg.c (verify_address): New function, split out from ...
8978         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
8979         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
8980         INDIRECT_REFs.
8981         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
8982         INDIRECT_REF.  Allow conversions.
8983         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
8984         a register does not change its size.
8985         (verify_types_in_gimple_reference): Verify MEM_REF.
8986         (verify_gimple_assign_single): Disallow INDIRECT_REF.
8987         Handle MEM_REF.
8988         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
8989         New.
8990         (mark_address_taken): Handle MEM_REF.
8991         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
8992         (get_asm_expr_operands): Pass opf_not_non_addressable.
8993         (get_expr_operands): Handle opf_[not_]non_addressable.
8994         Handle MEM_REF.  Remove INDIRECT_REF handling.
8995         * tree-vrp.c (check_array_ref): Handle MEM_REF.
8996         (search_for_addr_array): Likewise.
8997         (check_array_bounds): Likewise.
8998         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
8999         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
9000         (ref_always_accessed_p): Likewise.
9001         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
9002         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
9003         Handle MEM_REF.
9004         * cgraphbuild.c (mark_load): Properly check for NULL result
9005         from get_base_address.
9006         (mark_store): Likewise.
9007         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
9008         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
9009         handling for MEM_REF.
9010         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
9011         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
9012         * builtins.c (stabilize_va_list_loc): Use the function ABI
9013         valist type if we couldn't canonicalize the argument type.
9014         Always dereference with the canonical va-list type.
9015         (maybe_emit_free_warning): Handle MEM_REF.
9016         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
9017         memmove to memcpy.
9018         * builtins.c (fold_builtin_memory_op): Use ref-all types
9019         for all memcpy foldings.
9020         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
9021         (build_outer_var_ref): Likewise.
9022         (scan_omp_1_op): Likewise.
9023         (lower_rec_input_clauses): Likewise.
9024         (lower_lastprivate_clauses): Likewise.
9025         (lower_reduction_clauses): Likewise.
9026         (lower_copyprivate_clauses): Likewise.
9027         (expand_omp_atomic_pipeline): Likewise.
9028         (expand_omp_atomic_mutex): Likewise.
9029         (create_task_copyfn): Likewise.
9030         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
9031         Remove old union trick.  Initialize constant offsets.
9032         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
9033         INDIRECT_REF.  Init base_alias_set properly.
9034         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
9035         (vn_reference_fold_indirect): Adjust for MEM_REFs.
9036         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
9037         for ARRAY_REFs.
9038         (may_insert): Remove.
9039         (visit_reference_op_load): Do not test may_insert.
9040         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
9041         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9042         a field to store the constant offset this op applies.
9043         (run_scc_vn): Adjust prototype.
9044         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
9045         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
9046         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
9047         bother about volatile qualifiers on pointers.
9048         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
9049         * tree-ssa-loop-ivopts.c
9050         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
9051         (strip_offset_1): Likewise.
9052         (find_interesting_uses_address): Replace INDIRECT_REF handling with
9053         MEM_REF handling.
9054         (get_computation_cost_at): Likewise.
9055         * ipa-pure-const.c (check_op): Handle MEM_REF.
9056         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
9057         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
9058         and constants.
9059         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
9060         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
9061         (eliminate_local_variables_1): Likewise.
9062         (create_call_for_reduction_1): Likewise.
9063         (create_loads_for_reductions): Likewise.
9064         (create_loads_and_stores_for_name): Likewise.
9065         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
9066         (ssa_accessed_in_tree): Handle MEM_REF.
9067         (ssa_accessed_in_assign_rhs): Likewise.
9068         (update_type_size): Likewise.
9069         (analyze_accesses_for_call_stmt): Likewise.
9070         (analyze_accesses_for_assign_stmt): Likewise.
9071         (transform_access_sites): Likewise.
9072         (transform_allocation_sites): Likewise.
9073         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
9074         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9075         not handle INDIRECT_REF.
9076         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
9077         (cond_store_replacement): Likewise.
9078         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9079         MEM_REF, no not handle INDIRECT_REFs.
9080         (insert_into_preds_of_block): Properly initialize avail.
9081         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
9082         for ARRAY_REFs.  Properly handle reference lookups that
9083         require a bit re-interpretation.
9084         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
9085         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
9086         (build_ref_for_offset_1): Remove.
9087         (build_ref_for_offset): Build MEM_REFs.
9088         (gate_intra_sra): Disable for now.
9089         (sra_ipa_modify_expr): Handle MEM_REF.
9090         (ipa_early_sra_gate): Disable for now.
9091         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
9092         MEM_REF handling.
9093         (disqualify_base_of_expr): Likewise.
9094         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
9095         MEM_REF handling.
9096         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
9097         Use mem_ref_offset.  Remove bogus folding.
9098         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
9099         (make_fancy_name_1): Add support for MEM_REF.
9100         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
9101         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
9102         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
9103         (compute_complex_ancestor_jump_func): Likewise.
9104         (ipa_analyze_virtual_call_uses): Likewise.
9105         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
9106         INDIRECT_REF folding with more generalized MEM_REF folding.
9107         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
9108         (forward_propagate_addr_into_variable_array_index): Also handle
9109         &ARRAY + I in addition to &ARRAY[0] + I.
9110         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
9111         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
9112         creates assignments with overlap.
9113         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
9114         (get_frame_field): Likewise.
9115         (get_nonlocal_debug_decl): Likewise.
9116         (convert_nonlocal_reference_op): Likewise.
9117         (struct nesting_info): Add mem_refs pointer-set.
9118         (create_nesting_tree): Allocate it.
9119         (convert_local_reference_op): Insert to be folded mem-refs.
9120         (fold_mem_refs): New function.
9121         (finalize_nesting_tree_1): Perform defered folding of mem-refs
9122         (free_nesting_tree): Free the pointer-set.
9123         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
9124         (vectorizable_load): Likewise.
9125         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
9126         (propagate_with_phi): Likewise.
9127         * tree-object-size.c (addr_object_size): Handle MEM_REFs
9128         instead of INDIRECT_REFs.
9129         (compute_object_offset): Handle MEM_REF.
9130         (plus_stmt_object_size): Handle MEM_REF.
9131         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
9132         for &MEM_REF.
9133         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
9134         (symbol_marked_for_renaming): Likewise.
9135         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
9136         (fold-const.o): Add $(TREE_FLOW_H).
9137         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
9138         (find_func_clobbers): Likewise.
9139         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
9140         (decompose_access): Likewise.
9141         (replace_field_acc): Likewise.
9142         (replace_field_access_stmt): Likewise.
9143         (insert_new_var_in_stmt): Likewise.
9144         (get_stmt_accesses): Likewise.
9145         (reorg_structs_drive): Disable.
9146         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
9147         (ix86_canonical_va_list_type): Likewise.
9148
9149 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9150
9151         PR other/44566
9152         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
9153         * target.def (struct gcc_target): Replace enum reg_class with
9154         reg_class_t in hook argument / return types.
9155         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
9156         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
9157         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
9158         * targhooks.h (default_branch_target_register_class): Likewise.
9159         (default_ira_cover_classes, default_secondary_reload): Likewise.
9160         (default_memory_move_cost, default_register_move_cost): Likewise.
9161         * targhooks.c (default_branch_target_register_class): Likewise.
9162         (default_ira_cover_classes, default_secondary_reload): Likewise.
9163         (default_memory_move_cost, default_register_move_cost): Likewise.
9164         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
9165         * bt-load.c (branch_target_load_optimize): Likewise.
9166         * ira.c (setup_cover_and_important_classes): Likewise.
9167         * ira-costs.c (copy_cost): Likewise.
9168         * reload1.c (emit_input_reload_insns): Likewise.
9169         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9170         * config/frv/frv.c (frv_secondary_reload): Likewise.
9171         * config/s390/s390.c (s390_secondary_reload): Likewise.
9172         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
9173         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
9174         (ix86_register_move_cost): Likewise.
9175         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
9176         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
9177         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
9178         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
9179         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
9180         (rs6000_ira_cover_classes): Likewise.
9181         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
9182         * config/picochip/picochip-protos.h (picochip_secondary_reload):
9183         Likewise.
9184         * config/pa/pa.c (pa_secondary_reload): Likewise.
9185         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
9186         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
9187         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
9188         * doc/tm.texi: Regenerate.
9189
9190 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
9191
9192         PR bootstrrap/44726
9193         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
9194         use.
9195         (build_alias_set_optimal_p): Likewise.
9196         (build_base_obj_set_for_drs): Likewise.
9197
9198 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9199
9200         * target.def: Remove comment about licensing problems of function
9201         declarations.
9202
9203         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
9204         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
9205         * doc/tm.texi: Regenerate.
9206
9207         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
9208         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
9209
9210         * target.def (enum_va_list_p): Use DEFHOOK.
9211         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
9212         Rename ptype to ptree.
9213         * doc/tm.texi: Regenerate.
9214
9215         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
9216         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
9217         * doc/tm.texi: Regenerate.
9218
9219         * target.def (memory_move_cost): Use DEFHOOK.
9220         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
9221         Rename regclass AKA class to rclass.
9222         * doc/tm.texi: Regenerate.
9223
9224         * target.def (pragma_parse): Use DEFHOOK.
9225         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
9226         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
9227         * doc/tm.texi: Regenerate.
9228
9229         * target.def (pass_by_reference): Use DEFHOOK.
9230         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
9231         * doc/tm.texi: Regenerate.
9232
9233         * target.def (resolve_overloaded_builtin): Rename params to arglist.
9234         Use DEFHOOK.
9235         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
9236         * doc/tm.texi: Regenerate.
9237
9238         * target.def (return_pops_args): Use DEFHOOK.
9239         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
9240         Rename stack-size to size.
9241         * doc/tm.texi: Regenerate.
9242
9243         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
9244         last-sched_cycle to last_clock, cur_cycle to clock.
9245         * doc/tm.texi.in: Use @hook.
9246         * doc/tm.texi: Regenerate.
9247
9248         * target.def (print_operand, print_operand_address): Update comment.
9249         (print_operand_punct_valid_p): Likewise.
9250
9251 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9252
9253         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
9254         to rtl.h.
9255         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
9256         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
9257         * rtl-error.h: New.
9258         * regrename.c: Do not include toplev.h. Include rtl-error.h.
9259         * rtl-error.c: Likewise.
9260         * reload.c: Likewise.
9261         * recog.c:  Likewise.
9262         * sel-sched.c: Likewise.
9263         * function.c: Likewise.
9264         * reg-stack.c: Likewise.
9265         * cfgrtl.c: Likewise.
9266         * reload1.c: Likewise.
9267         * final.c: Include rtl-error.
9268         * Makefile.in: Adjust dependencies.
9269
9270 2010-06-30  Jan Hubicka  <jh@suse.cz>
9271
9272         PR middle-end/PR44706
9273         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
9274         to return the value.
9275
9276 2010-06-30  Michael Matz  <matz@suse.de>
9277
9278         PR bootstrap/44699
9279         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
9280         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
9281         a gimple reg, attach the original VDEF to the last store in the
9282         sequence.
9283
9284 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
9285
9286         PR other/44034
9287         * config/darwin.c (darwin_override_options): Use renamed
9288         targetm.asm_out.emit_unwind_label.
9289
9290 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9291
9292         PR tree-optimization/39799
9293         * tree-inline.c (remap_ssa_name): Initialize variable only if
9294         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9295
9296 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
9297
9298         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
9299
9300 2010-06-30  Richard Guenther  <rguenther@suse.de>
9301
9302         PR target/44722
9303         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
9304         against oscillation with reverse peephole2.
9305
9306 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9307
9308         PR target/44721
9309         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9310         Fix last commit.
9311
9312 2010-06-30  Nick Clifton  <nickc@redhat.com>
9313
9314         * config/rx/rx-modes.def: New file.
9315         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
9316         (CC_REGNUM): Define.
9317         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
9318         register.
9319         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
9320         (SELECT_CC_MODE): Define.
9321         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
9322         (reg:CC CC_REG) instead of (cc0).
9323         (attr "cc"): Delete.
9324         (cbranchsi4): Do not split compare and branch here. Instead move
9325         it to...
9326         (cbranchsi4_<code>): ... here.  New patterns.
9327         (cmpsi): Call rx-compare_redundant to find out if it is necessary
9328         to emit the compare instruction.
9329         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
9330         cc_status flags.
9331         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
9332         FIRST_PSEUDO_REGNUM.
9333         (rx_expand_prologue, rx_expand_epilogue): Likewise.
9334         (rx_notice_update_cc): Delete.
9335         (rx_cc_modes_compatible): New function.
9336         (flags_needed_for_conditional): New function.
9337         (flags_from_mode): New function.
9338         (rx_compare_redundant): New function - scans backwards through
9339         insn list to find out if condition flags are already set correctly.
9340         (TARGET_CC_MODES_COMPATIBLE): Define.
9341         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
9342
9343         * config/rx/rx.h (BRANCH_COST): Define.
9344         (REGISTER_MOVE_COST): Define.
9345         * config/rx/predicates (rx_source_operand): Allow all constant types.
9346         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
9347         (tstsi4): New pattern.
9348         * config/rx/rx.c (rx_memory_move_cost): Define.
9349         (TARGET_MEMORY_MOVE_COST): Define.
9350
9351 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9352
9353         * tree.h (block_may_fallthru): Declare here.
9354         * tree-flow.h (block_may_fallthru): Do not declare here.
9355         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
9356         bitmap.h
9357         * Makefile.in (c-typeck.o): Update dependencies.
9358
9359 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
9360
9361         PR debug/44694
9362         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
9363         * cselib.c (cfa_base_preserved_regno): New static variable.
9364         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
9365         of REGNO (cfa_base_preserved_val->locs->loc).
9366         (cselib_preserve_cfa_base_value): Add regno argument, set
9367         cfa_base_preserved_regno to it.
9368         (cselib_invalidate_regno): Allow removal of registers other than
9369         cfa_base_preserved_regno from cfa_base_preserved_val.
9370         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
9371         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
9372         of MEM addresses, if not on LHS.
9373         (reverse_op): Don't add reverse ops for cfa_base_rtx.
9374         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
9375
9376 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9377
9378         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
9379         static variables.
9380         (peep2_buf_position): New static function.
9381         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
9382         peephole2_optimize): Use it.
9383         (peep2_attempt, peep2_update_life): New static functions, broken out
9384         of peephole2_optimize.
9385         (peep2_fill_buffer): New static function.
9386         (peephole2_optimize): Change the main loop to try to fill the buffer
9387         with the maximum number of insns before matching them against
9388         peepholes.  Use a forward scan.  Remove special case for targets with
9389         conditional execution.
9390         * genrecog.c (change_state): Delete dead code.
9391         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9392         Rewrite so as not to expect the second insn to have had a peephole
9393         applied yet.
9394
9395 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9396
9397         * genhooks.c (emit_findices): Cast field precision to int.
9398         (emit_documentation): Likewise.
9399
9400 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
9401
9402         PR tree-optimization/43801
9403         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
9404         if old_decl was DECL_ONE_ONLY.
9405
9406         PR debug/44668
9407         * dwarf2out.c (add_accessibility_attribute): New function.
9408         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
9409         instead of adding DW_AT_accessibility manually.
9410         (gen_enumeration_type_die, gen_struct_or_union_type_die,
9411         gen_typedef_die): Use it.
9412
9413 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9414
9415         * vmsdbgout.c (full_name): Just output the file name if not native.
9416
9417 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9418
9419         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
9420         (funcnam_table): New static table.
9421         (funcnum_table): New static table.
9422         (write_rtnbeg): Write value saved in funcnum_table.
9423         (write_rtnend): Write value saved in funcnum_table.
9424         (vmsdbgout_begin_function): Save current function info in
9425         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
9426         (vmsdbgout_finish): Iterate over funcnum_table.
9427
9428 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9429
9430         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
9431         (vmsdbgout_type_decl): Declare
9432         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
9433         (FUNC_EPILOGUE_LABEL): New macro
9434         (vmsdbgout_begin_epilogue): New function.
9435         (vmsdbgout_type_decl): New function.
9436
9437 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9438
9439         * vmsdbg.h: Update copyright.
9440
9441 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9442
9443         * vmsdbg.h (DST_K_TBG): New DST constant.
9444         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
9445         (write_modbeg): Cast module_language to avoid warning.
9446         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
9447
9448 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9449
9450         PR other/44034
9451         * target.def, doc/tm.texi.in, genhooks.c: New files.
9452         * target.h: Instead of defining individual hook members,
9453         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
9454         include target.def.
9455         * target-def.h: Instead of defining individual hook initializers,
9456         include target-hooks-def.h.
9457         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
9458         targetm.live_on_entry -> targetm.extra_live_on_entry
9459         targetm.sched.md_finish ->targetm.sched.finish
9460         targetm.sched.md_init -> targetm.sched.init
9461         targetm.sched.md_init_global -> targetm.sched.init_global
9462         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
9463         targetm.asm_out.except_table_label ->
9464           targetm.asm_out.emit_except_table_label
9465         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
9466         targetm.target_help -> targetm.help
9467         targetm.vectorize.builtin_support_vector_misalignment ->
9468           targetm.vectorize.support_vector_misalignment
9469         targetm.file_start_app_off -> targetm.asm_file_start_app_off
9470         targetm.file_start_file_directive ->
9471          targetm.asm_file_start_file_directive
9472         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
9473         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
9474         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
9475         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
9476           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
9477         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
9478           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
9479         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
9480         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
9481         * Makefile.in (TARGET_H): Depend on target.def.
9482         (TARGET_DEF_H): Depend on target-hooks-def.h.
9483         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
9484         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
9485         * doc/tm.texi: Regenerate.
9486
9487         * Makefile.in (s-tm-texi): Remove stray tab / rule.
9488
9489         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
9490         (targetm.sched.init): Likewise.
9491
9492 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9493
9494         PR bootstrap/44713
9495         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
9496         (function_arg_advance_32): Const-ify TYPE parameter.
9497         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
9498         (ix86_function_arg_advance): Change type of NAMED to bool.
9499         (function_arg_32): Const-ify CUM and TYPE parameters.
9500         (function_arg_64): Likewise.  Change type of NAMED to bool.
9501         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
9502         to bool.
9503         (ix86_function_arg): Change type of NAMED to bool.
9504         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
9505         last argument as a bool.
9506
9507 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9508
9509         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
9510         (OVERRIDE_OPTIONS): Add note of obsolescence.
9511         Replace references with references to TARGET_OPTION_OVERRIDE.
9512         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
9513          the macro).
9514         * targhooks.c (default_target_option_override): New function.
9515         * targhooks.h (default_target_option_override): Declare.
9516         * target.h (struct gcc_target): Add override member to
9517         target_option member.
9518         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
9519         targetm.target_option.override call.
9520         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
9521         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
9522
9523 2010-06-29  Jan Hubicka  <jh@suse.cz>
9524
9525         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
9526
9527 2010-06-29  Jan Hubicka  <jh@suse.cz>
9528
9529         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
9530         unreachable.
9531         (rebuild_frequencies): New function.
9532         * predict.h (rebuild_frequencies): Declare.
9533         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
9534         entry block and edge reaching new_entry.
9535         (tree_function_versioning): When doing partial cloning, rebuild
9536         frequencies when done.
9537         * passes.c (execute_function_todo): Use rebild_frequencies.
9538
9539 2010-06-29  Richard Guenther  <rguenther@suse.de>
9540
9541         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
9542         * tree-flow.h (enum noalias_state): Remove.
9543         (struct var_ann_d): Remove noalias_state member.
9544
9545 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9546
9547         PR target/43902
9548         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
9549         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
9550         (maddhidi4): Likewise.
9551
9552         Revert parts of the change for PR25130.
9553         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9554         MEM_ALIAS_SET.
9555
9556 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9557
9558         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
9559         targetm.calls.function_incoming_arg, and
9560         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
9561         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
9562         * target.h (struct gcc_target): Add function_arg_advance,
9563         function_arg, and function_incoming_arg fields.
9564         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
9565         (TARGET_FUNCTION_INCOMING_ARG): Define.
9566         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
9567         and TARGET_FUNCTION_INCOMING_ARG.
9568         * targhooks.h (default_function_arg_advance): Declare.
9569         (default_function_arg, default_function_incoming_arg): Declare.
9570         * targhooks.c (default_function_arg_advance): New function.
9571         (default_function_arg, default_function_incoming_arg): New function.
9572         * config/i386/i386.c (function_arg_advance): Rename to...
9573         (ix86_function_arg_advance): ...this.  Make static.
9574         (function_arg): Rename to...
9575         (ix86_function_arg): ...this.  Make static.
9576         (TARGET_FUNCTION_ARG_ADVANCE): Define.
9577         (TARGET_FUNCTION_ARG): Define.
9578         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
9579         (FUNCTION_ARG): Delete.
9580         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
9581         (function_arg): Delete prototype.
9582
9583 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9584
9585         * reginfo.c (init_reg_sets_1): Adjust comments.
9586         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
9587         * calls.c (prepare_call_address): Likewise.
9588         (emit_call_1): Use targetm.calls.return_pops_args.
9589         (expand_call): Likewise.
9590         * function.c (assign_parms): Likewise.
9591         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
9592         * target.h (struct gcc_target) [struct calls]: Add
9593         return_pops_args field.
9594         * targhooks.h (default_return_pops_args): Declare.
9595         * targhooks.c (default_return_pops_args): Define.
9596         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
9597         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
9598         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
9599         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
9600         documentation.
9601         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
9602         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
9603         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
9604         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
9605         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
9606         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
9607         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
9608         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
9609         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
9610         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
9611         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
9612         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
9613         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
9614         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
9615         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
9616         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
9617         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
9618         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
9619         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
9620         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
9621         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
9622         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
9623         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
9624         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
9625         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
9626         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
9627         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
9628         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
9629         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
9630         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
9631         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
9632         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
9633         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
9634         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
9635         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
9636         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
9637         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
9638         * config/i386/i386.c (ix86_return_pops_args): Make static.
9639         Constify arguments.
9640         (TARGET_RETURN_POPS_ARGS): Define.
9641         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
9642         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
9643         (TARGET_RETURN_POPS_ARGS): Define.
9644         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
9645         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
9646         (TARGET_RETURN_POPS_ARGS): Define.
9647
9648 2010-06-29  Richard Guenther  <rguenther@suse.de>
9649
9650         PR middle-end/44667
9651         * tree-inline.c (initialize_inlined_parameters): Make sure
9652         to remap the inlined parameter variable substitutions types.
9653
9654 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9655
9656         PR rtl-optimization/44659
9657         * combine.c (make_compound_operation) <SUBREG>: Do not return the
9658         result of force_to_mode if it partially re-expanded the compound.
9659
9660 2010-06-28  Jan Hubicka  <jh@suse.cz>
9661
9662         PR middle-end/44671
9663         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
9664         RESULT_DECL.
9665
9666 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
9667
9668         * double-int.h (force_fit_type_double): Remove declaration.
9669         * double-int.c (force_fit_type_double): Move to tree.c.
9670         * tree.h (force_fit_type_double): Declare.
9671         * tree.h (force_fit_type_double): Moved from double-int.c. Use
9672         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
9673         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
9674         * convert.c (convert_to_pointer): Adjust call to
9675         force_fit_type_double.
9676         * tree-vrp.c (extract_range_from_assert,
9677         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
9678         * fold-const.c: Update comment.
9679         (int_const_binop, fold_convert_const_int_from_int,
9680         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
9681         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
9682         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
9683         round_up_loc): Adjust call to force_fit_type_double.
9684
9685 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9686
9687         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
9688
9689 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9690
9691         * tree-sra.c (convert_callers): New parameter, change fndecls of
9692         recursive calls.
9693         (modify_function): Pass the old decl to convert_callers.
9694
9695 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9696
9697         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
9698         ipa_check_create_node_params and ipa_initialize_node_params with
9699         checking asserts they are not necessary.
9700
9701 2010-06-28  Jan Hubicka  <jh@suse.cz>
9702
9703         PR tree-optimization/44687
9704         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
9705
9706 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9707
9708         PR c++/44535
9709         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
9710         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
9711         instead of BINFO_BASE_BINFO.
9712
9713 2010-06-28  Michael Matz  <matz@suse.de>
9714
9715         PR middle-end/44592
9716         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
9717         proper VDEF chain for intermediate stores in the sequence.
9718
9719 2010-06-28  Jan Hubicka  <jh@suse.cz>
9720
9721         PR tree-optimization/44357
9722         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
9723         uninlinable functions.
9724
9725 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9726
9727         * config.gcc (powerpc*-*-*): Handle titan.
9728         * config/rs6000/rs6000.c (titan_cost): New costs.
9729         (rs6000_override_options): Add "titan" to processor_target_table.
9730         Add Titan to branch alignment logic.
9731         Correctly set rs6000_cost for titan.
9732         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
9733         * config/rs6000/titan.md: New file.
9734         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
9735
9736 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9737
9738         * tree-browser.c (TB_history_stack): Convert to a VEC.
9739         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
9740         (TB_history_prev): Likewise.
9741
9742 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9743
9744         * vec.h (vec_heap_free): Add parentheses around free.
9745
9746 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
9747
9748         * system.h: Poison GCC_EXCEPT_H for front-end files.
9749
9750         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
9751         langhook.
9752         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
9753         Define to NULL by default.
9754         * except.h: Define GCC_EXCEPT_H.
9755         (doing_eh): Remove prototype.
9756         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
9757         (lang_protect_cleanup_actions): Remove.
9758         * except.c (lang_protect_cleanup_actions): Remove.
9759         (doing_eh): Remove.
9760         (gen_eh_region): Don't check doing_eh here.
9761         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
9762         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
9763         instead of lang_protect_cleanup_actions.
9764         * omp-low.c (maybe_catch_exception): Likewise.
9765         * Makefile.in: Update dependencies.
9766
9767 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
9768
9769         * cgraph.h (struct varpool_node): new used_from_object_file flag.
9770         (struct cgraph_local_info): new used_from_object_file flag.
9771         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
9772         (cgraph_clone_node): initialize used_from_object_file.
9773         (cgraph_create_virtual_clone): initialize used_from_object_file.
9774         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
9775         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
9776         when compiling with -fwhole-program.
9777         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
9778         internal resolver.
9779         * ipa.c (function_and_variable_visibility): Set externally_visible
9780         flag of varpool_node if used_from_object_file flag is set.
9781         (cgraph_externally_visible_p): check used_from_object_file flag.
9782         * doc/invoke.texi (-fwhole-program option): Change description of
9783         externally_visible attribute accordingly.
9784         * doc/extend.texi (externally_visible): Ditto.
9785
9786 2010-06-27  Jan Hubicka  <jh@suse.cz>
9787
9788         * params.def (max-inline-insns-auto): Default to 40.
9789         * doc/invoke.texi (max-inline-insns-auto): Document the change.
9790
9791 2010-06-27  Jan Hubicka  <jh@suse.cz>
9792
9793         PR middle-end/44671
9794         PR middle-end/44686
9795         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
9796         signature change.
9797         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
9798         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
9799
9800 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
9801
9802         * target.h (struct gcc_target): Add register_move_cost field.
9803         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
9804         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
9805         * targhooks.c (default_register_move_cost): New function.
9806         * targhooks.h (default_register_move_cost): Declare function.
9807         * defaults.h (REGISTER_MOVE_COST): Delete.
9808         * ira-int.h (ira_register_move_cost): Update comment.
9809         * ira.c (ira_register_move_cost): Update comment.
9810         * reload.h (register_move_cost): Declare.
9811         * reginfo.c (register_move_cost): New function.
9812         (move_cost): Update comment.
9813         (init_move_cost, memory_move_secondary_cost): Replace
9814         REGISTER_MOVE_COST with register_move_cost.
9815         * postreload.c (reload_cse_simplify_set): (Ditto.).
9816         * reload.c (find_valid_class, find_reloads): (Ditto.).
9817         * reload1.c (choose_reload_regs): (Ditto.).
9818         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
9819         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
9820         * doc/md.texi (can_create_pseudo_p): Update documentation.
9821
9822         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9823         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9824         * config/i386/i386.h (ix86_memory_move_cost): Make static.
9825         (TARGET_MEMORY_MOVE_COST): Define.
9826
9827         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9828         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
9829         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
9830         (TARGET_MEMORY_MOVE_COST): Define.
9831
9832 2010-06-27  Richard Guenther  <rguenther@suse.de>
9833
9834         PR tree-optimization/44683
9835         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
9836         false edge from the inverted condition.
9837
9838 2010-06-27  Richard Guenther  <rguenther@suse.de>
9839
9840         PR middle-end/44684
9841         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
9842         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
9843         for register LHS.  Or non-store assignments.
9844
9845 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9846
9847         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
9848         (sparc_emit_set_const64): Likewise.  Remove disabled code.
9849         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
9850         (sparc_emit_set_const64): Likewise.
9851
9852 2010-06-26  Catherine Moore  <clm@codesourcery.com>
9853
9854         * config/mips/mips.md (alu_type): New attribute.
9855         (type): Infer type from alu_type.
9856         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
9857         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
9858         *subsi3_extended, negsi2, negdi2, *low<mode>,
9859         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
9860         xor<mode>3, *nor<mode>3,
9861         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
9862         *zero_extendhi_truncqi):  Set alu_type instead of type.
9863
9864 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
9865
9866         * config/alpha/alpha.c (alpha_need_linkage): Adjust
9867         splay_tree_new_ggc call.
9868         (alpha_use_linkage): Likewise.
9869
9870 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9871
9872         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
9873         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
9874         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
9875         (static_specs): Remove switches_need_spaces.
9876         (process_command, do_self_spec): Hardcode handling "-o" instead of
9877         checking switches_need_spaces.
9878         * system.h (SWITCHES_NEED_SPACES): Poison.
9879
9880 2010-06-26  Richard Guenther  <rguenther@suse.de>
9881
9882         PR tree-optimization/44393
9883         * tree-loop-distribution.c (generate_loops_for_partition): Fix
9884         stmt removal and VOP renaming.
9885         (generate_memset_zero): Remove redundant stmt updating.
9886         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
9887         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
9888
9889 2010-06-26  Jan Hubicka  <jh@suse.cz>
9890
9891         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
9892         edges comming from header are equivalent.
9893         (visit_bb): Handle PHIs correctly.
9894         * tree-inline.c (copy_phis_for_bb): Be able to copy
9895         PHI from entry edge.
9896         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
9897
9898 2010-06-26  Richard Guenther  <rguenther@suse.de>
9899
9900         PR middle-end/44674
9901         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
9902         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
9903
9904 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9905
9906         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
9907         add_infile, alloc_switch): New.
9908         (process_command): Remove variable lang_n_infiles.  Process
9909         options in a single pass.  Use new functions for allocating
9910         infiles and switches arrays.  Properly skip operands of
9911         -Xpreprocessor and -Xassembler.
9912
9913 2010-06-26  Jan Hubicka  <jh@suse.cz>
9914
9915         PR middle-end/44671
9916         * cgraphunit.c (cgraph_function_versioning): Remove wrong
9917         cgraph_make_decl_local call; fix typo copying RTL data.
9918
9919 2010-06-25  DJ Delorie  <dj@redhat.com>
9920
9921         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
9922         (m32c_output_aligned_common): Likewise.
9923         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9924         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9925         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
9926         (m32c_register_pragmas): Register it.
9927         * config/m32c/m32c.c (m32c_get_pragma_address): New.
9928         (m32c_insert_attributes): Set #pragma address decls volatile.
9929         (pragma_entry_eq): New.
9930         (pragma_entry_hash): New.
9931         (m32c_note_pragma_address): New.
9932         (m32c_get_pragma_address): New.
9933         (m32c_output_aligned_common): New.
9934         * doc/extend.texi: Document the new pragma.
9935
9936         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
9937         also.
9938         * config/m32c/predicates.md (m32c_any_operand): Check the code
9939         instead of memory_operand so as to allow matching volatile MEMs.
9940         (m32c_nonimmediate_operand): Likewise.
9941         (mra_operand): Allow volatiles.
9942
9943 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
9944
9945         PR debug/44610
9946         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
9947         address if the offset is unknown.
9948
9949 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
9950
9951         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
9952         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
9953         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
9954         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
9955         to ia64_start_function. Invoke it.
9956         * config/ia64/ia64.c (ia64_start_function): Call new function
9957         dwarf2out_vms_debug_main_pointer.
9958
9959 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9960
9961         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
9962         statements computing the true predicate.
9963
9964 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9965
9966         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
9967         to boolean_true_node.
9968         (reset_bb_predicate): New.
9969         (predicate_bbs): Call reset_bb_predicate.
9970
9971 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9972
9973         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
9974         (tree_if_conversion): Returns true when something has been changed.
9975         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
9976         changed something.
9977
9978 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9979
9980         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
9981         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
9982         * tree-if-conv.c: Include dbgcnt.h.
9983         (tree_if_conversion): Use if_conversion_tree to count the number of
9984         if-convertible loops.
9985
9986 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
9987
9988         * common.opt (fprefetch-loop-arrays): Re-define
9989         -fprefetch-loop-arrays as a tri-state option with the initial
9990         value of -1.
9991         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
9992         pass only when flag_prefetch_loop_arrays > 0.
9993         * toplev.c (process_options): Note that, with tri-states,
9994         flag_prefetch_loop_arrays>0 means prefetching is enabled.
9995         * config/i386/i386.c (override_options): Enable prefetching at -O3
9996         for a set of CPUs that sw prefetching is helpful.
9997         (software_prefetching_beneficial_p): New.  Return TRUE if software
9998         prefetching is beneficial for the given CPU.
9999
10000 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10001
10002         PR rtl-optimization/44326
10003         * implicit-zee.c (find_removable_zero_extends): Replace
10004         INSN_P with NONDEBUG_INSN_P.
10005
10006 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10007
10008         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
10009         (struct ipa_node_params): Removed the modification_analysis_done flag.
10010         (ipa_is_param_modified): Removed.
10011         (ipa_analyze_node): Declare.
10012         (ipa_compute_jump_functions): Remove declaration.
10013         (ipa_count_arguments): Likewise.
10014         (ipa_detect_param_modifications): Likewise.
10015         (ipa_analyze_params_uses): Likewise.
10016         * ipa-prop.c (struct param_analysis_info): New type.
10017         (visit_store_addr_for_mod_analysis): Removed.
10018         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
10019         moved down in the file.
10020         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
10021         (ipa_count_arguments): Made static.
10022         (mark_modified): New function.
10023         (is_parm_modified_before_call): New function.
10024         (compute_pass_through_member_ptrs): New parameter parms_info, call
10025         is_parm_modified_before_call instead of ipa_is_param_modified.
10026         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
10027         it to compute_pass_through_member_ptrs.
10028         (ipa_compute_jump_functions): New parameter parms_info, pass it to
10029         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
10030         on the callee if it is analyzed.  Made static.
10031         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
10032         is_parm_modified_before_call instead of ipa_is_param_modified.
10033         (ipa_analyze_call_uses): New parameter parms_info, pass it to
10034         ipa_analyze_indirect_call_uses.
10035         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
10036         ipa_analyze_call_uses.
10037         (ipa_analyze_params_uses): New parameter parms_info, pass it to
10038         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
10039         (ipa_analyze_node): New function.
10040         (ipa_print_node_params): Do not dump the modified flag.
10041         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
10042         it.  Do not stream the modified parameter flag.
10043         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
10044         it.  Do not stream the modified parameter flag.
10045         * ipa-cp.c (ipcp_analyze_node): Removed.
10046         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
10047         with only a call to ipa_analyze_node.
10048         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
10049         node with only a call to ipa_analyze_node.
10050
10051 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10052
10053         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
10054
10055 2010-06-25  Jan Hubicka  <jh@suse.cz>
10056
10057         * tree-pass.h (pass_split_functions): Declare.
10058         * opts.c (decode_options): Enable function splitting at -O2
10059         * timevar.def (TV_IPA_FNSPLIT): New macro.
10060         * ipa-split.c: New file.
10061         * common.opt (-fpartial-inlining): New flag.
10062         * Makefile.in (ipa-split.o): New object file.
10063         * passes.c (init_optimization_passes): Add ipa-split.
10064         * params.def (partial-inlining-entry-probability): New parameters.
10065         * doc/invoke.texi (-fpartial-inlining): New.
10066
10067 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10068
10069         PR 44665
10070         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
10071         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
10072         (gimplify_expr): Likewise.
10073
10074 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10075
10076         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
10077         statements instead of bailing out on them.
10078         (ipa_analyze_indirect_call_uses): Do not require that loads from the
10079         parameter are in the same BB as the condition.  Update comments.
10080
10081 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
10082
10083         PR middle-end/43866
10084         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
10085         true or always false, return NULL_TREE.
10086         (tree_unswitch_single_loop): Optimize conditions even when reaching
10087         max-unswitch-level parameter.  If num > 0, optimize first all conditions
10088         using entry checks, then do still reachable block discovery and consider
10089         only conditions in still reachable basic blocks in the loop.
10090
10091         PR tree-optimization/44539
10092         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
10093         the call doesn't have LHS, but has VDEF.
10094
10095 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10096
10097         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
10098         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
10099         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
10100         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
10101         * system.h (MODIFY_TARGET_NAME): Poison.
10102
10103 2010-06-25  Alan Modra  <amodra@gmail.com>
10104
10105         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
10106         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
10107         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10108         CMODEL_LARGE as default.
10109         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
10110         (offsettable_ok_by_alignment): Delete.
10111         (rs6000_emit_move): Remove mcmodel=medium optimization.
10112
10113 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10114
10115         With large parts from Jim Wilson:
10116         PR target/43902
10117         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
10118         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10119         * optabs.c (optab_for_tree_code): Likewise.
10120         (expand_widen_pattern_expr): Likewise.
10121         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
10122         out of execute_optimize_widening_mul.
10123         (convert_plusminus_to_widen): New function.
10124         (execute_optimize_widening_mul): Use the two new functions.
10125         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
10126         Remove code to generate widening multiply-accumulate.  Add support
10127         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10128         * gimple-pretty-print.c (dump_ternary_rhs): New function.
10129         (dump_gimple_assign): Call it when appropriate.
10130         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
10131         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10132         (expand_gimple_stmt_1): Likewise.
10133         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
10134         WIDEN_MULT_MINUS_EXPR.
10135         * tree-ssa-operands.c (get_expr_operands): Likewise.
10136         * tree-inline.c (estimate_operator_cost): Likewise.
10137         * gimple.c (extract_ops_from_tree_1): Renamed from
10138         extract_ops_from_tree.  Add new arg for a third operand; fill it.
10139         (gimple_build_assign_stat): Support operations with three operands.
10140         (gimple_build_assign_with_ops_stat): Likewise.
10141         (gimple_assign_set_rhs_from_tree): Likewise.
10142         (gimple_assign_set_rhs_with_ops_1): Renamed from
10143         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
10144         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
10145         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
10146         WIDEN_MULT_MINUS_EXPR.
10147         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
10148         (extract_ops_from_tree_1): Adjust declaration.
10149         (gimple_assign_set_rhs_with_ops_1): Likewise.
10150         (gimple_build_assign_with_ops): Pass NULL for last operand.
10151         (gimple_build_assign_with_ops3): New macro.
10152         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
10153         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
10154         functions.
10155         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
10156         (verify_gimple_assign): Call it.
10157         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
10158         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
10159         functions for dealing with three-operand statements.
10160         * tree.c (commutative_ternary_tree_code): New function.
10161         * tree.h (commutative_ternary_tree_code): Declare it.
10162         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
10163         ternary statements.
10164         (gimple_assign_nonzero_warnv_p): Likewise.
10165         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
10166         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
10167         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
10168         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
10169         (struct hashtable_expr): New member ternary in the union.
10170         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
10171         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
10172         (iterative_hash_hashable_expr): Likewise.
10173         (print_expr_hash_elt): Handle EXPR_TERNARY.
10174         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
10175         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
10176         statements.  Handle GIMPLE_TERNARY_RHS.
10177
10178 2010-06-25  Jan Hubicka  <jh@suse.cz>
10179
10180         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
10181
10182 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
10183
10184         PR c/44517
10185         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
10186         parameters are not good.
10187         (c_parser_parameter_declaration): Error unknown type name if the type
10188         name can't start declaration specifiers.
10189
10190 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10191
10192         * gcc.c (translate_options): Don't mention +e in comment.
10193         (process_command): Don't handle +e specially.
10194
10195 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10196
10197         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
10198
10199         * ira-build.c (merge_hard_reg_conflicts): New function.
10200         (create_cap_allocno, copy_info_to_removed_store_destinations,
10201         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
10202         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
10203         (remove_unnecessary_allocnos, remove_low_level_allocnos)
10204         copy_nifo_to_removed_store_destination): Use them.
10205         * ira-lives.c (make_hard_regno_born): New function, split out of
10206         make_regno_born.
10207         (make_allocno_born): Likewise.
10208         (make_hard_regno_dead): New function, split out of make_regno_dead.
10209         (make_allocno_dead): Likewise.
10210         (inc_register_pressure): New function, split out of set_allocno_live.
10211         (dec_register_pressure): New function, split out of clear_allocno_live.
10212         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
10213         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
10214         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
10215         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
10216         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
10217         mark_pseudo_regno_live.
10218         (process_bb_node_lives): Use mark_pseudo_regno_live,
10219         make_hard_regno_born and make_allocno_dead.
10220         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
10221         set_allocno_live, clear_allocno_live): Delete functions.
10222
10223         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
10224         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
10225         functions.
10226         (ira_flattening): Use ira_parent_allocno.
10227         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
10228         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
10229
10230         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
10231         statement.
10232
10233         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
10234         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
10235         minmax_set_iter_cond, minmax_set_iter_next,
10236         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
10237         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
10238         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
10239         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
10240         uses changed.
10241
10242         * ira-int.h (struct live_range, live_range_t): Renamed from struct
10243         ira_allocno_live_range and allocno_live_range_t; all uses changed.
10244         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
10245         All uses changed.
10246
10247 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
10248
10249         * thumb2.md (thumb2_tlobits_cbranch): Delete.
10250         (peephole2 to convert zero_extract/compare of single bit to
10251          lshift/compare): New.
10252
10253 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
10254
10255         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
10256         recursive call and call to 'int_const_binop'.
10257         (build_range_check, fold_cond_expr_with_comparison, unextend,
10258         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
10259         multiple_of_p): Adjust call to const_binop.
10260
10261 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
10262
10263         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
10264         determine size of XFmode operand.
10265         (XFmode extended DFmode push splitter): Ditto.
10266         (XFmode extended SFmode push splitter): Ditto.
10267
10268 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10269
10270         PR target/44588
10271         * config/i386/i386.md (extract_code): New.
10272         (<u>divmodqi4): Likewise.
10273         (divmodhiqi3): Likewise.
10274         (udivmodhiqi3): Likewise.
10275         (<u>divqi3): Remvoved.
10276
10277 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
10278
10279         PR middle-end/44492
10280         * recog.h (struct recog_data): Add is_asm field.
10281         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
10282         present in constraints of inline-asm operand and memory operand
10283         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
10284         (extract_insn): Initialize recog_data.is_asm.
10285         * doc/md.texi (Constraints): Document operand side-effect rules.
10286
10287 2010-06-24  Andi Kleen  <ak@linux.intel.com>
10288
10289         * c-parser.c (c_parser_conditional_expression): Call
10290         warn_for_omitted_condop.
10291         * doc/invoke.texi: Document omitted condop warning.
10292
10293 2010-06-24  Nick Clifton<nickc@redhat.com>
10294
10295         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
10296         insn in the sequence is a jump insn before setting its label.
10297
10298 2010-06-24  Alan Modra  <amodra@gmail.com>
10299
10300         * collect2.c (main): Match exactly --version and --help.
10301
10302 2010-06-24  DJ Delorie  <dj@redhat.com>
10303
10304         * config/m32c/m32c-pragma.c: Don't include rtl.h.
10305
10306 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
10307
10308         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
10309         using X87MODEF mode iterator.
10310         (pushsf splitter): Macroize splitter using P mode iterator.
10311         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
10312         mode iterator.
10313
10314         (*movxf_internal): Rename from *movxf_integer.
10315         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
10316         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
10317         (*movdf_internal): Rename from *movdf_integer.
10318         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
10319         (*movsf_internal): Rename from *movdf_1.
10320
10321 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
10322
10323         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
10324         (const_gimple_seq_node): Removed typedefs.
10325
10326         * gimple.h (gimple_seq_node_d, gimple_seq_node)
10327         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
10328
10329 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10330
10331         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
10332         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
10333         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
10334         and CODE_FOR_vec_extract_lo_v4df.
10335
10336         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
10337         Changed to define_insn_and_split.
10338         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
10339         (vec_extract_lo_v16hi): Likewise.
10340         (vec_extract_lo_v32qi): Likewise.
10341         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
10342         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
10343
10344 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
10345
10346         PR target/44640
10347         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
10348         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
10349         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
10350         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
10351         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
10352
10353         PR target/44640
10354         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
10355
10356         PR other/44644
10357         * df-core.c (struct df): Rename to df_d.
10358         * df.h (struct df): Likewise.
10359         * dse.h (struct df): Remove forward declaration.
10360         * recog.h (struct insn_data): Rename to:
10361         (struct_insn_data_d).  Adjusted all users.
10362
10363 2010-06-23  Arnaud Charlet  <charlet@adacore.com
10364
10365         PR ada/22220
10366         * doc/install.texi: Update requirements to build GNAT.
10367
10368 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
10369
10370         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
10371         enum type.
10372         (m68k_sched_attr_opx_type): Remove unreachable return.
10373         (m68k_sched_attr_opy_type): Likewise.
10374         (m68k_sched_attr_size): Likewise.
10375         (sched_get_opxy_mem_type): Likewise.
10376         (m68k_sched_attr_op_mem): Likewise.
10377
10378 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10379
10380         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
10381         new statement and adjust VDEF only if necessary.  Remove superfluous
10382         call to maybe_clean_or_replace_eh_stmt.
10383         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
10384         copy the flags.
10385         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
10386         * tree-inline.c (copy_bb): ...and not there.
10387
10388 2010-06-22  Cary Coutant  <ccoutant@google.com>
10389
10390         * dwarf2out.c (is_nested_in_subprogram): New function.
10391         (should_move_die_to_comdat): Use it.
10392         (copy_ancestor_tree): Don't mark DIEs here.
10393         (copy_decls_walk): Start walk from root of newly-added tree;
10394         mark DIEs here instead.
10395
10396 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10397
10398         * config/i386/i386.md (unit): Also check sseishft1.
10399
10400 2010-06-22  Jan Hubicka  <jh@suse.cz>
10401
10402         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
10403         enabled.
10404
10405 2010-06-22  Jan Hubicka  <jh@suse.cz>
10406
10407         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
10408         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
10409         Return true if something changed.
10410         * df.h (df_confluence_function_n): Return bool.
10411         * df-core.c (df_worklist_propagate_forward,
10412         df_worklist_propagate_backward): Track changes and ages.
10413         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
10414         track ages.
10415         * dse.c (dse_confluence_n): Return always true.
10416
10417 2010-06-22  Jan Hubicka  <jh@suse.cz>
10418
10419         * bitmap.c (bitmap_clear_bit): Micro optimize.
10420
10421 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
10422
10423         * config/i386/i386.md (SWI1248x): New mode iterator.
10424         (SWI48x): Ditto.
10425         (SWI12): Ditto.
10426         (SWI24): Ditto.
10427
10428         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
10429         SWI1248x mode iterator.
10430         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
10431         using SWI124 mode iterator.
10432         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
10433         mode iterator.
10434         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
10435         *pushdi2_prologue_rex64 using P mode iterator.
10436         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
10437         using SWI48 mode iterator.
10438         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
10439         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
10440         using SWI1248x mode iterator.
10441         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
10442         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
10443         SWI48 mode iterator.
10444         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
10445         iterator.
10446         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
10447         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
10448         SWI12 mode iterator.
10449         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
10450         SWI12 mode iterator.
10451         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
10452         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
10453         SWI24 mode iterator.
10454         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
10455         SWI48 mode iterator.
10456         (mov<mode>_insn_1): New expander.
10457         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
10458         using SWI48x mode iterator.
10459
10460         (*movoi_internal_avx): Rename from *movoi_internal.
10461         (*movti_internal_rex64): Rename from *movti_rex64.
10462         (*movti_internal_sse): Rename from *movti_sse.
10463         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
10464         (*movdi_internal): Rename from *movdi_2.
10465         (*movsi_internal): Rename from *movsi_1.
10466         (*movhi_internal): Rename from *movhi_1.
10467         (*movqi_internal): Rename from *movqi_1.
10468
10469         (insv): Update the call to gen_movsi_insv_1 for rename.
10470         * config/i386/i386.c (promote_duplicated_reg): Ditto.
10471
10472 2010-06-22  Jan Hubicka  <jh@suse.cz>
10473
10474         * passes.c (execute_function_todo): Move call of statistics_fini_pass
10475         to ...
10476         (execute_todo) ... this one.
10477
10478 2010-06-22  Alan Modra  <amodra@gmail.com>
10479
10480         PR target/44364
10481         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10482         * caller-save.c (insert_restore, insert_save): Use non-validate
10483         form of adjust_address.
10484
10485 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10486
10487         PR target/39690
10488         * config/pa/pa.c (override_options): Disable
10489         -freorder-blocks-and-partition.
10490
10491 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10492
10493         PR target/44615
10494         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
10495
10496         * config/i386/i386.md (type): Add sseishft1
10497
10498         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
10499         (ppro_insn_load): Likewise.
10500         (ppro_insn_store): Likewise.
10501         (ppro_insn_both): Likewise.
10502
10503         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
10504         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
10505         for type.
10506         (*vec_extractv2di_1_avx): Likewise.
10507         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
10508         type.  Remove atom_unit.
10509         (*vec_extractv2di_1_sse2): Likewise.
10510
10511 2010-06-21  DJ Delorie  <dj@redhat.com>
10512
10513         * diagnostic.h (diagnostic_classification_change_t): New.
10514         (diagnostic_context): Add history and push/pop list.
10515         (diagnostic_push_diagnostics): Declare.
10516         (diagnostic_pop_diagnostics): Declare.
10517         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
10518         from pragmas in a history chain instead of the global table.
10519         (diagnostic_push_diagnostics): New.
10520         (diagnostic_pop_diagnostics): New.
10521         (diagnostic_report_diagnostic): Scan history chain to find state
10522         of diagnostics as of the diagnostic location.
10523         * opts.c (set_option): Pass UNKNOWN_LOCATION to
10524         diagnostic_classify_diagnostic.
10525         (enable_warning_as_error): Likewise.
10526         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
10527         use in the history chain.
10528         * doc/extend.texi: Document pragma GCC diagnostic changes.
10529
10530 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
10531
10532         * dwarf2out.c (add_linkage_name): New function.  Don't add
10533         anything to DW_TAG_member DIEs.
10534         (add_name_and_src_coords_attributes): Use it.
10535         (gen_variable_die): Call it for C++ static data members if
10536         specification is DW_TAG_member.
10537
10538         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
10539         C++ char16_t and char32_t.
10540
10541         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
10542         * genattrtab.c: Include vecprim.h.
10543         (cached_attrs, cached_attr_count, attrs_seen_once,
10544         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
10545         attrs_cached_after): New variables.
10546         (find_attrs_to_cache): New function.
10547         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
10548         (write_test_expr): Add attrs_cached argument, return it too,
10549         attempt to cache non-const attributes used more than once in
10550         a single case handling.
10551         (write_attr_get): Use find_attrs_to_cache, for caching candidates
10552         emit cached_* variables.  Adjust write_attr_set callers.
10553         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
10554         to find attributes that should be cached in this block.  Adjust
10555         write_test_expr callers.
10556         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
10557         callers.
10558         (make_automaton_attrs): Adjust write_test_expr caller.
10559
10560         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
10561         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
10562         (make_automaton_attrs): If find_tune_attr returns non-NULL,
10563         write separate internal_dfa_insn_code_* and insn_default_latency_*
10564         functions for each attribute's value and emit init_sched_attrs
10565         function and function pointers.
10566         * genattr.c (const_attrs, reservations): New variables.
10567         (gen_attr): Add const attributes to const_attrs vector.
10568         (check_tune_attr, find_tune_attr): New functions.
10569         (main): Add reservations to reservations vector.  If find_tune_attr
10570         returns true, add prototype for init_sched_attrs and make
10571         internal_dfa_insn_code and insn_default_latency function pointers,
10572         otherwise define init_sched_attrs as dummy macro.
10573         * cfgexpand.c: Include insn-attr.h.
10574         (gimple_expand_cfg): Call init_sched_attrs.
10575
10576         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
10577
10578         PR target/44575
10579         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
10580         va_arg from a set of register save slots into a temporary,
10581         if the container is bigger than type size, do the copying
10582         using smaller mode or using memcpy.
10583
10584         PR bootstrap/44426
10585         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
10586         prototype.
10587         (sel_print_to_dot): Remove macro.
10588         (sel_print): Likewise.  New prototype.
10589         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
10590         (sel_print): New function.
10591
10592 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10593
10594         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
10595         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
10596
10597 2010-06-21  Nick Clifton  <nickc@redhat.com>
10598
10599         * config/rx/rx.h (PTRDIFF_TYPE): Define.
10600         (SMALL_REGISTER_CLASS): Define (to zero).
10601         (PRINT_OPERAND): Delete.
10602         (PRINT_OPERAND_ADDRESS): Delete.
10603         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
10604         (rx_print_operand_address): Delete prototype.
10605         * config/rx/rx.c (rx_print_operand): Make static.
10606         Allow %H and %L to handle CONST_DOUBLEs.
10607         (rx_print_operand_address): Make static.
10608         (rx_gen_move_template): Rename local variable 'template' to
10609         out_template.
10610         (rx_function_arg): Do not pass unknown sized objects in registers.
10611         (TARGET_PRINT_OPERAND): Define.
10612         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10613
10614 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10615
10616         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
10617
10618 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
10619
10620         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
10621         stack-alignment for simple leaf-functions.
10622
10623 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10624
10625         * doc/install.texi: Document bootstrap-lto.
10626
10627 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10628
10629         PR debug/44248
10630         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
10631         (input_function): Drop them here, if VTA is disabled.
10632
10633 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
10634
10635         PR target/44546
10636         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
10637         New predicate.
10638         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
10639         ix86_swapped_fp_comparsion_operator instead of
10640         ix86_fp_comparison_operator.
10641
10642         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
10643         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
10644         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
10645         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
10646         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
10647         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
10648
10649 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
10650
10651         PR other/32998
10652         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
10653         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
10654         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
10655         (decode_cmdline_option): Update for this return value.  Set
10656         orig_option_with_args_text field.  Set arg field for unknown
10657         options.  Make static.
10658         (decode_cmdline_options_to_array): New.
10659         (prune_options): Update handling of find_opt return value.
10660         * opts.c (read_cmdline_option): Take decoded option.  Return void.
10661         (read_cmdline_options): Take decoded options.
10662         (decode_options): Add parameters for decoded options.  Use
10663         decode_cmdline_options_to_array.  Use decoded options for -O
10664         scan.  Use integral_argument for -O parameters.  Update call to
10665         read_cmdline_options.
10666         (enable_warning_as_error): Update handling of find_opt return value.
10667         * opts.h: Update comment on unknown options.
10668         (struct cl_decoded_option): Update comments on opt_index and arg.
10669         Add orig_option_with_args_text.
10670         (decode_cmdline_option): Remove.
10671         (decode_cmdline_options_to_array): Declare.
10672         (decode_options): Update prototype.
10673         * toplev.c (save_argv): Remove.
10674         (save_decoded_options, save_decoded_options_count): New.
10675         (read_integral_parameter): Remove.
10676         (print_switch_values): Use decoded options.
10677         (toplev_main): Don't set save_argv.  Update call to decode_options.
10678         * toplev.h (read_integral_parameter): Remove.
10679         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
10680
10681 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
10682
10683         PR target/44072
10684         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
10685         immediate.
10686         * constraints.md (Pw, Px): New constraints.
10687         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
10688
10689 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
10690
10691         * config/i386/sse.md (fma4modesuffixf4): Removed.
10692         (ssemodesuffixf2s): Likewise.
10693         (ssemodesuffixf4): Likewise.
10694         (ssemodesuffixf2c): Likewise.
10695         (ssescalarmodesuffix2s): Likewise.
10696         (avxmodesuffixf2c): Likewise.
10697         (ssemodesuffix): New.
10698         (ssescalarmodesuffix): Likewise.
10699         Update patterns with ssemodesuffix and ssescalarmodesuffix.
10700
10701 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
10702
10703         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
10704
10705 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10706
10707         * stor-layout.c (debug_rli): Remove unused local variables.
10708
10709 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10710
10711         PR rtl-optimization/40900
10712         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
10713         original expression for later reuse.
10714         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
10715         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
10716
10717 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
10718
10719         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
10720         double_int_fits_in_uhwi_p): Implement as static inline.
10721         (double_int_xor): New inline function.
10722         (double_int_lrotate, double_int_rrotate, double_int_max,
10723         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10724         double_int_smin): Declare.
10725         (lrotate_double, rrotate_double): Remove declaration.
10726         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
10727         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
10728         (double_int_lrotate, double_int_rrotate, double_int_max,
10729         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10730         double_int_smin): New function.
10731         * fold-const.c (int_const_binop): Clean up, use double_int_*
10732         functions.
10733         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
10734         double_int_* and immed_double_int_const functions.
10735
10736 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10737
10738         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
10739         * function.c (types_used_by_cur_var_decl): Likewise.
10740         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
10741
10742 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10743
10744         * tree.h (record_layout_info): Change type of pending_statics field
10745         to a VEC.
10746         * stor-layout.c (start_record_layout): Store NULL into
10747         pending_statics.
10748         (debug_rli): Call debug_vec_tree instead of debug_tree.
10749         (place_field): Likewise.
10750         (finish_record_layout): Likewise.
10751
10752 2010-06-18  Alan Modra  <amodra@gmail.com>
10753
10754         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
10755
10756 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10757
10758         PR target/43740
10759         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
10760         for SET source operand from SET destination operand.
10761
10762 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
10763
10764         PR rtl-optimization/39871
10765         * reload1.c (init_eliminable_invariants): For flag_pic, disable
10766         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
10767         (function_invariant_p): Rule out a plus of frame or arg pointer with
10768         a SYMBOL_REF.
10769         * ira.c (find_reg_equiv_invariant_const): Likewise.
10770
10771 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
10772
10773         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
10774         print_operand_address and puts to output the operand for CONST.
10775
10776 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
10777
10778         PR debug/44572
10779         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
10780         hook.
10781
10782 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10783
10784         * v850-protos.h (print_operand): Delete.
10785         (print_operand_address): Delete.
10786         * v850.h (PRINT_OPERAND): Delete.
10787         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10788         (PRINT_OPERAND_ADDRESS): Delete.
10789         * v850.c (print_operand_address): Rename to...
10790         (v850_print_operand_address): ...this.  Make static. Call
10791         v850_print_operand.
10792         (print_operand): Rename to...
10793         (v850_print_operand): ...this.  Make static.  Call
10794         v850_print_operand_address.
10795         (v850_print_operand_punct_valid_p): New function.
10796         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10797         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10798
10799 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10800
10801         * config/sh/sh-protos.h (print_operand): Delete.
10802         (print_operand_address): Delete.
10803         * config/sh/sh.h (PRINT_OPERAND): Delete.
10804         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10805         (PRINT_OPERAND_ADDRESS): Delete.
10806         * config/sh/sh.c (sh_print_operand_address): Make static.
10807         (sh_print_operand): Make static.  Call sh_print_operand_address
10808         and sh_print_operand.
10809         (sh_print_operand_punct_valid_p): New function.
10810         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10811         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10812
10813 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10814
10815         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
10816         (mcore_print_operand_address): Delete.
10817         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
10818         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10819         (PRINT_OPERAND_ADDRESS): Delete.
10820         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
10821         (mcore_print_operand): Make static.
10822         (mcore_print_operand_punct_valid_p): New function.
10823         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
10824         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10825
10826 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10827
10828         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
10829         (print_operand_address): Delete.
10830         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
10831         (PRINT_OPERAND_ADDRESS): Delete.
10832         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
10833         static.
10834         (m68hc11_print_operand): Make static.
10835         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10836
10837 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10838
10839         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
10840         (m32r_print_operand_address): Delete.
10841         * config/m32r/m32r.h (m32r_punct_chars): Delete.
10842         (PRINT_OPERAND): Delete.
10843         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10844         (PRINT_OPERAND_ADDRESS): Delete.
10845         * config/m32r/m32r.c (m32r_punct_chars): Make static.
10846         (m32r_print_operand_address): Make static.
10847         (m32r_print_operand): Make static.
10848         (m32r_print_operand_punct_valid_p): New function.
10849         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10850         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10851
10852 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10853
10854         * config/iq2000/iq2000-protos.h (print_operand): Delete.
10855         (print_operand_address): Delete.
10856         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
10857         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10858         (PRINT_OPERAND_ADDRESS): Delete.
10859         (iq2000_print_operand_punct): Delete.
10860         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
10861         (iq2000_print_operand_address): Make static.
10862         (iq2000_print_operand): Make static.
10863         (iq2000_print_operand_punct_valid_p): New function.
10864         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10865         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10866
10867 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10868
10869         * config/frv/frv-protos.h (frv_print_operand): Delete.
10870         (frv_print_operand_address): Delete.
10871         * config/frv/frv.h (PRINT_OPERAND): Delete.
10872         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10873         (PRINT_OPERAND_ADDRESS): Delete.
10874         * config/frv/frv.c (frv_print_operand_address): Make static.
10875         (frv_print_operand): Make static.
10876         (frv_print_operand_punct_valid_p): New function.
10877         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10878         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10879
10880 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10881
10882         * tree.h (vec_member): Declare.
10883         * tree.c (vec_member): Define.
10884
10885 2010-06-17  Richard Guenther  <rguenther@suse.de>
10886
10887         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
10888         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
10889
10890 2010-06-17  Richard Guenther  <rguenther@suse.de>
10891
10892         * tree-inline.c (declare_return_variable): Remove bogus code.
10893
10894 2010-06-17  Richard Guenther  <rguenther@suse.de>
10895
10896         * gimplify.c (gimplify_bind_expr): Always promote complex
10897         and vector variables to registers if possible.
10898
10899 2010-06-17  Richard Guenther  <rguenther@suse.de>
10900
10901         * expr.c (get_inner_reference): Use double_int for bit_offset
10902         calculation.
10903
10904 2010-06-16  DJ Delorie  <dj@redhat.com>
10905
10906         * common.opt (-fstrict-volatile-bitfields): new.
10907         * doc/invoke.texi: Document it.
10908         * fold-const.c (optimize_bit_field_compare): For volatile
10909         bitfields, use the field's type to determine the mode, not the
10910         field's size.
10911         * expr.c (expand_assignment): Likewise.
10912         (get_inner_reference): Likewise.
10913         (expand_expr_real_1): Likewise.
10914         * expmed.c (store_fixed_bit_field): Likewise.
10915         (extract_bit_field_1): Likewise.
10916         (extract_fixed_bit_field): Likewise.
10917
10918 2010-06-16  Richard Guenther  <rguenther@suse.de>
10919
10920         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
10921
10922 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
10923
10924         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
10925         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
10926         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
10927         * debug.c: Likewise.
10928         * sdbout.c: Likewise.
10929         * vmsdbgout.c: Likewise.
10930         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
10931         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
10932         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
10933         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
10934         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
10935         * dwarf2out.c (dw_fde_struct): New fields
10936         dw_fde_vms_{end,begin}_prologue.
10937         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
10938         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
10939         (dwarf2out_vms_end_prologue): New function.
10940         (dwarf2out_vms_begin_epilogue): New function.
10941         (dw_val_struct): New value dw_val_class_vms_delta.
10942         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
10943         begin_epilogue for VMS.
10944         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
10945         new static functions.
10946         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
10947         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
10948         static functions.
10949         (print_die): New case dw_val_class_vms_delta.
10950         (attr_checksum): Likewise.
10951         (same_dw_val_p: Likewise.
10952         (size_of_die): Likewise.
10953         (value_format): Likewise.
10954         (output_die): Likewise.
10955         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
10956         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
10957         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
10958         dwarf2out_cfi_begin_epilogue
10959         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
10960
10961 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10962
10963         * config/cris/cris-protos.h (cris_print_operand): Delete.
10964         (cris_print_operand_address): Delete.
10965         * config/cris/cris.h (PRINT_OPERAND): Delete.
10966         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10967         (PRINT_OPERAND_ADDRESS): Delete.
10968         * config/cris/cris.c (cris_print_operand_address): Make static.
10969         (cris_print_operand): Make static.
10970         (cris_print_operand_punct_valid_p): New function.
10971         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10972         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10973
10974 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10975
10976         * config/arm/arm-protos.h (arm_print_operand): Delete.
10977         (arm_print_operand_address): Delete.
10978         * config/arm/arm.h (PRINT_OPERAND): Delete.
10979         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10980         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
10981         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
10982         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
10983         (arm_print_operand): Make static.
10984         (arm_print_operand_punct_valid_p): New function.
10985         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10986         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10987
10988 2010-06-16  Nick Clifton  <nickc@redhat.com>
10989
10990         * config/rx/constraints.md (NEGint4): New constraint.
10991         * config/rx/rx.md (attr cc): Add set_zsc.
10992         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
10993         initialised.
10994         (cmpsf): Likewise.
10995         (call_internal): Clobber the cc0 register.
10996         (call_value_internal): Likewise.
10997         (cstoresi4): Likewise.
10998         (movsieq): Likewise.
10999         (movsine): Likewise.
11000         (addsi3): Add alternative to handle small negative constants.
11001         (sunsi3): Likewise.
11002         (addsi3): Do not set the O bit in the cc0 register.
11003         (adddi3): Likewise.
11004         (subsi3): Likewise.
11005         (subdi3): Likewise.
11006         (andsi3): Reorder alternatives to prefer shorter forms.
11007         (mulsi3): Likewise.
11008         (iorsi3): Likewise.
11009         (negsi2): Note that the cc0 flags are set.
11010         (rotlsi3): Note that only the Z and S bits are set in cc0.
11011         (lshrsi3): Likewise.
11012         (ashlsi3): Likewise.
11013         (subsf3): Use %Q for the MEM operand.
11014         (fix_truncsfsi2): Likewise.
11015         (floatsisf2): Likewise.
11016         (bitset): Remove early clobber from destination.
11017         (bitset_in_memory): Likewise.
11018         (lrintsf2): Clobber the cc0 register.
11019         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
11020         (rx_print_operand): Handle %N.
11021
11022 2010-06-16  Jan Hubicka  <jh@suse.cz>
11023
11024         * df-core.c (df_compact_blocks): Free problem_temps vector.
11025
11026 2010-06-16  Martin Jambor  <mjambor@suse.cz>
11027
11028         PR tree-optimization/43905
11029         * tree-sra.c: Include tree-inline.h.
11030         (create_abstract_origin): Removed.
11031         (modify_function): Version the call graph node instead of creating
11032         abstract origins and dealing with same_body aliases.
11033         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
11034         function is versionable.
11035         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
11036
11037 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
11038
11039         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
11040         (CHOOSE_DYNAMIC_LINKER): Update.
11041
11042 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
11043
11044         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
11045         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
11046         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
11047         *prefetch_3dnow_rex.
11048
11049 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
11050
11051         * target.h (struct asm_out):Add declare_constant_name field.
11052         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11053         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
11054         * output.h (default_asm_declare_constant_name): Declare.
11055         (assemble_label): Update prototype.
11056         * varasm.c (assemble_constant_contents): Use
11057         targetm.asm_out.declare_constant_name target hook.
11058         (assemble_label): Add 'file' argument.
11059         (default_asm_declare_constant_name): New function.
11060         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
11061         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
11062         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
11063
11064         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
11065         * config/darwin.c (darwin_asm_declare_constant_name): New function.
11066         (machopic_output_indirection): Update assemble_label argument list.
11067         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
11068         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11069
11070 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
11071
11072         PR middle-end/44391
11073         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11074         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
11075
11076 2010-06-15  Richard Guenther  <rguenther@suse.de>
11077
11078         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
11079
11080 2010-06-15  Paul Brook  <paul@codesourcery.com>
11081
11082         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
11083         hard-float ABI.
11084
11085 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
11086
11087         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
11088         don't get a vector type for output.
11089
11090 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
11091
11092         PR fortran/44536
11093         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
11094         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
11095         (LANG_HOOKS_DECLS): Add it.
11096         * gimplify.c (omp_notice_variable): Call
11097         lang_hooks.decls.omp_report_decl.
11098
11099 2010-06-15  Martin Jambor  <mjambor@suse.cz>
11100
11101         PR lto/44464
11102         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
11103         on the newly dead SSA name.
11104
11105 2010-06-15  Alan Modra  <amodra@gmail.com>
11106
11107         * doc/invoke.texi: Add mcmodel to powerpc options.
11108         * configure.ac: Add HAVE_LD_LARGE_TOC test.
11109         * configure: Regenerate.
11110         * config.in: Regenerate.
11111         * config/rs6000/linux64.opt (mcmodel): New.
11112         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
11113         (TARGET_CMODEL, SET_CMODEL): Define.
11114         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
11115         select CMODEL_MEDIUM default.
11116         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
11117         (TARGET_CMODEL): Define default.
11118         * config/rs6000/rs6000.c (cmodel): New variable.
11119         (rs6000_explicit_options): Add cmodel field.
11120         (rs6000_handle_option): Handle -mcmodel.
11121         (create_TOC_reference): Add largetoc_reg param.  Generate high,
11122         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
11123         (rs6000_delegitimize_address): Recognise new toc reference rtl
11124         and minimal-toc rtl.
11125         (rs6000_legitimize_reload_address): Handle new toc references.
11126         (print_operand_address): Handle legitimate_constant_pool_address_p
11127         match before lo_sum.
11128         (rs6000_eliminate_indexed_memrefs): Tidy.
11129         (rs6000_emit_move): Tweak threshold for inlining constants.
11130         Keep rs6000_emit_allocate_stack large stack frame offsets
11131         loaded into r0 inline.
11132         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
11133         (tocrel_base, tocrel_offset): New variables.
11134         (toc_relative_expr_p): Set them here.
11135         (print_operand_address): Skip over any offset on constant pool address.
11136         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
11137         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
11138         (offsettable_ok_by_alignment): New function.
11139         (rs6000_emit_move): Address suitably aligned local symbol_refs
11140         relative to the toc pointer for -mcmodel=medium.
11141         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
11142         strict param.  Allow lo_sum version of addressing.  Verify reg
11143         used for -mminimal-toc and -mcmodel != small.  Update all callers.
11144         * config/rs6000/constraints.md: Update for above change.
11145         * config/rs6000/predicates.md: Likewise.
11146         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
11147         code.
11148         (tls_gd): Split for -mcmodel=medium/large.
11149         (tls_gd_high, tls_gd_low): New.
11150         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
11151         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
11152         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
11153         (largetoc_high, largetoc_low): New.
11154         (cmptf_internal2): Add clobber.
11155         * config/rs6000/rs6000-protos.h: Update.
11156
11157 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
11158
11159         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
11160         true if no prefetch is going to be generated for a given group.
11161         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
11162         estimate the prefetch_count.
11163         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
11164         prefetch count by considering the unroll_factor and prefetch_mod
11165         for is_loop_prefetching_profitable.
11166
11167 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
11168
11169         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
11170         anything if the argument is not a MEM.
11171
11172 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11173
11174         PR debug/43650
11175         PR debug/44181
11176         PR debug/44247
11177         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
11178         debug stmts.
11179         (canonicalize_loop_ivs): Likewise.
11180
11181 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11182
11183         PR debug/43656
11184         * haifa-sched.c (setup_insn_reg_pressure_info,
11185         update_register_pressure): Reject debug insns.
11186         (ready_sort): Don't setup reg pressure for debug insns.
11187         (schedule_insn): Don't update reg pressure for debug insns.
11188
11189 2010-06-14  Richard Guenther  <rguenther@suse.de>
11190
11191         * lto-streamer.c (cached_bp): Remove.
11192         (bitpack_delete): Likewise.
11193         (bitpack_create): Likewise.
11194         (bp_get_next_word): Likewise.
11195         (bp_pack_value, bp_unpack_value): Move ...
11196         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
11197         Re-implement.
11198         (struct bitpack_d): Likewise.
11199         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
11200         New inline functions.
11201         * lto-streamer-out.c (lto_output_bitpack): Remove.
11202         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11203         (pack_value_fields): Adjust.
11204         (lto_write_tree): Likewise.
11205         (output_gimple_stmt): Likewise.
11206         (output_function): Likewise.
11207         * lto-streamer-in.c (input_gimple_stmt): Adjust.
11208         (input_function): Likewise.
11209         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11210         (lto_input_bitpack): Remove.
11211         (lto_materialize_tree): Adjust.
11212         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
11213         * lto-cgraph.c (lto_output_edge): Adjust.
11214         (lto_output_node): Likewise.
11215         (lto_output_varpool_node): Likewise.
11216         (lto_output_ref): Likewise.
11217         (input_node): Likewise.
11218         (input_varpool_node): Likewise.
11219         (input_ref): Likewise.
11220         (input_edge): Likewise.
11221         (output_node_opt_summary): Likewise.
11222         (input_node_opt_summary): Likewise.
11223         * ipa-pure-const.c (pure_const_write_summary): Likewise.
11224         (pure_const_read_summary): Likewise.
11225         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
11226         (ipa_read_indirect_edge_info): Likewise.
11227         (ipa_write_node_info): Likewise.
11228         (ipa_read_node_info): Likewise.
11229
11230 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11231
11232         PR target/44534
11233         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
11234         (vec_extract_lo_v16hi): Likewise.
11235         (vec_extract_lo_v32qi): Likewise.
11236
11237 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11238
11239         PR bootstrap/44426
11240         * tree.h (build_call_expr): Don't define as vararg macro, instead
11241         add a prototype.
11242         * builtins.c (build_call_nofold): Remove.
11243         (expand_builtin_int_roundingfn, expand_builtin_pow,
11244         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
11245         expand_builtin_memset_args, expand_builtin_strcmp,
11246         expand_builtin_strncmp, expand_builtin_memory_chk): Use
11247         build_call_nofold_loc instead of build_call_nofold.
11248         (build_call_expr): New function.
11249
11250         PR tree-optimization/44508
11251         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
11252         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
11253         don't eliminate trivially dead stmts.
11254         * tree-vrp.c (vrp_finalize): Pass false as last argument
11255         to substitute_and_fold.
11256         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
11257         to substitute_and_fold.
11258         * tree-ssa-ccp.c (ccp_finalize): Likewise.
11259
11260         PR bootstrap/44509
11261         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
11262
11263 2010-06-14  Ira Rosen  <irar@il.ibm.com>
11264
11265         PR tree-optimization/44507
11266         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
11267         to build initial vector for BIT_AND_EXPR.
11268         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
11269
11270 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11271
11272         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
11273         adjust z10prop set_attr.
11274
11275 2010-06-13  Jan Hubicka  <jh@suse.cz>
11276
11277         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11278         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
11279         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
11280         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
11281         datastructure checks into checking asserts.
11282         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
11283         * tree-ssa-sccvn.c (VN_INFO): Likewise.
11284         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
11285         df_ref_create_structure): Likewise.
11286         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
11287         pool_free): Use gcc_checking_assert.
11288         * alias.c (get_alias_set): Likewise.
11289         * var-tracking.c (variable_htab_free, shared_hash_copy,
11290         canonicalize_values_mark, variable_merge_over_cur): Likewise.
11291         * lto-streamer.c (bp_unpack_value): Likewise.
11292
11293 2010-06-13  Richard Guenther  <rguenther@suse.de>
11294
11295         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
11296         Do not stream but initialize TYPE_CANONICAL to NULL.
11297         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
11298         * gimple.c (gimple_types_compatible_p): Disregard
11299         TYPE_STRUCTURAL_EQUALITY_P.
11300         (gimple_register_type): Use TYPE_CANONICAL as cache.
11301         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
11302         before registering common types.
11303         * config/i386/i386.c (ix86_function_arg_boundary): Do not
11304         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
11305         * tree.h (TYPE_CANONICAL): Clarify documentation.
11306
11307 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
11308
11309         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11310         LIBCALL_VALUE): Remove macros.
11311         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
11312         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11313         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11314         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
11315         (ia64_function_value): Make static. Handle receiving the function
11316         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
11317
11318 2010-06-12  Jan Hubicka  <jh@suse.cz>
11319
11320         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
11321         at correct place.
11322
11323 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
11324
11325         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
11326
11327 2010-06-12  Jan Hubicka  <jh@suse.cz>
11328
11329         * df-core.c (df_clear_bb_info): New function.
11330         (df_set_blocks): bb_info is always allocated.
11331         (df_get_bb_info): Use block_info_elt_size.
11332         (df_set_bb_info): Likewise.
11333         (df_compact_blocks): Update for new block_info.
11334         (grow_bb_info): New function.
11335         * df-problems.c (df_grow_bb_info): Move to df-core.c
11336         (df_rd_set_bb_info): Remove.
11337         (df_rd_free_bb_info): Do not free block pool.
11338         (df_rd_alloc): Do not create pool, use check for
11339         obstack presence instead of NULL pointer for new blocks.
11340         (df_rd_free): DO not free alloc pool; clear block_info.
11341         (problem_RD): Add size of block info structure.
11342         (df_lr_set_bb_info): Remove.
11343         (df_lr_free_bb_info): Do not free block pool.
11344         (df_lr_alloc): Do not create pool, use check for
11345         obstack presence instead of NULL pointer for new blocks.
11346         (df_lr_free): DO not free alloc pool; clear block_info.
11347         (problem_LR): Add size of block info structure.
11348         (df_live_set_bb_info): Remove.
11349         (df_live_free_bb_info): Do not free block pool.
11350         (df_live_alloc): Do not create pool, use check for
11351         obstack presence instead of NULL pointer for new blocks.
11352         (df_live_free): DO not free alloc pool; clear block_info.
11353         (problem_LIVE): Add size of block info structure.
11354         (problem_CHAIN): Add size of block info structure.
11355         (df_byte_lr_set_bb_info): Remove.
11356         (df_byte_lr_free_bb_info): Do not free block pool.
11357         (df_byte_lr_alloc): Do not create pool, use check for
11358         obstack presence instead of NULL pointer for new blocks.
11359         (df_byte_lr_free): DO not free alloc pool; clear block_info.
11360         (problem_BYTE_LR): Add size of block info structure.
11361         (problem_NOTE): Add size of block info structure.
11362         (df_byte_MD_set_bb_info): Remove.
11363         (df_byte_MD_free_bb_info): Do not free block pool.
11364         (df_byte_MD_alloc): Do not create pool, use check for
11365         obstack presence instead of NULL pointer for new blocks.
11366         (df_byte_MD_free): DO not free alloc pool; clear block_info.
11367         (problem_BD): Add size of block info structure.
11368         * df-scan.c (df_scan_free_internal): Free block pool.
11369         (df_scan_set_bb_info): Remove.
11370         (df_scan_free_bb_info): Check for artificial_defs instead
11371         of bb_info being non-NULL.
11372         (df_scan_alloc): DO not create df_scan_block pool.
11373         (problem_SCAN): Set size of block info.
11374         (df_bb_refs_record): Do not allocate bb_info.
11375         * df.h (df_problem): Add block_info_elt_size.
11376         (struct dataflow): Change block_info to void *.
11377         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
11378         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
11379         in-line structures.
11380
11381 2010-06-12  Jan Hubicka  <jh@suse.cz>
11382
11383         PR tree-optimize/44485
11384         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
11385         containing use of return value of noreturn function.
11386
11387 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
11388
11389         * targhooks.c (default_function_value): Don't use
11390         FUNCTION_OUTGOING_VALUE.
11391         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
11392         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
11393
11394 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
11395
11396         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
11397         Add crtfastmath.o to extra_parts.
11398         * config/mips/crtfastmath.c: New.
11399         * config/mips/linux.h (ENDFILE_SPEC): New.
11400
11401 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
11402
11403         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
11404         old_type in parameter.
11405         (gcc_type_for_value): Update call to gcc_type_for_interval.
11406         (compute_type_for_level_1): Renamed compute_type_for_level.
11407         Update call to gcc_type_for_interval.
11408
11409 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11410
11411         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
11412         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
11413
11414 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11415
11416         * opts-common.c: Include options.h.
11417         (integral_argument): Move from opts.c.
11418         (decode_cmdline_option): New.  Based on read_cmdline_option.
11419         * opts.c (integral_argument): Move to opts-common.c.
11420         (read_cmdline_option): Move most contents to
11421         decode_cmdline_option.  Use %qs in diagnostics.
11422         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
11423         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
11424         decode_cmdline_option): New.
11425
11426 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11427
11428         PR target/44481
11429         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
11430         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
11431         (partiysi2_cmp): Ditto.
11432         (*partiyhi2_cmp): Ditto.
11433         (*parityqi2_cmp): Remove.
11434
11435 2010-06-11  Jan Hubicka  <jh@suse.cz>
11436
11437         * bitmap.h (bmp_iter_next_bit): New.
11438         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
11439
11440 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
11441             Eric Botcazou  <ebotcazou@adacore.com>
11442
11443         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
11444         computed cost.
11445
11446 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11447
11448         * config/i386/i386.md (unspec): New define_c_enum.
11449         (unspecv): Ditto.
11450
11451 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
11452
11453         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
11454
11455 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
11456
11457         PR middle-end/44483
11458         * tree-if-conv.c (bb_predicate_s): New struct.
11459         (bb_predicate_p): New.
11460         (bb_has_predicate): New.
11461         (bb_predicate): New.
11462         (set_bb_predicate): New.
11463         (bb_predicate_gimplified_stmts): New.
11464         (set_bb_predicate_gimplified_stmts): New.
11465         (add_bb_predicate_gimplified_stmts): New.
11466         (init_bb_predicate): New.
11467         (free_bb_predicate): New.
11468         (is_predicated): Use bb_predicate.
11469         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
11470         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
11471         before processing their successors.
11472         (clean_predicate_lists): Removed.
11473         (find_phi_replacement_condition): Use bb_predicate.
11474         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
11475         computations.
11476         (insert_gimplified_predicates): New.
11477         (combine_blocks): Call insert_gimplified_predicates.
11478         (tree_if_conversion): Call free_bb_predicate instead of
11479         clean_predicate_lists.
11480
11481 2010-10-11  Paul Brook  <paul@codesourcery.com>
11482
11483         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
11484         * config/arm/arm.c (all_architectures): Change v7e-m default to
11485         cortexm4.
11486         * config/arm/arm-cores.def: Add cortex-m4.
11487         * config/arm/arm-tune.md: Regenerate.
11488
11489 2010-06-11  Jan Hubicka  <jh@suse.cz>
11490
11491         * ipa-pure-const.c (special_builtlin_state): New function.
11492         (check_call): Use it instead of special casign BUILT_IN_RETURN.
11493         (propagate_pure_const): Use it.
11494
11495 2010-06-11  Jan Hubicka  <jh@suse.cz>
11496
11497         * df-problems.c (df_live_scratch): Convert to bitmap_head.
11498         (df_live_alloc): Initialize df_live_scratch when initializing
11499         problem_data.
11500         (df_live_transfer_function): Update uses of df_live_scratch.
11501         (df_live_free): Free problem_data; clear df_live_scratch before
11502         releasing the obstack.
11503         (df_md_free): Free problem data.
11504
11505 2010-06-11  Jan Hubicka  <jh@suse.cz>
11506
11507         * doc/invoke.texi (Wsuggest-attribute): Document.
11508         (Wmissing-noreturn): Remove.
11509         * ipa-pure-const.c (warn_function_noreturn): New function.
11510         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
11511         warn_missing_noreturn.
11512         * common.opt (Wsuggest-attribute=noreturn): New.
11513         * tree-flow.h (warn_function_noreturn): Declare.
11514         * tree-cfg.c (execute_warn_function_noreturn): Use
11515         warn_function_noreturn.
11516         (gate_warn_function_noreturn): New.
11517         (pass_warn_function_noreturn): Update.
11518
11519 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11520
11521         * c-typeck.c (handle_warn_cast_qual): Add loc
11522         parameter. Improve warning message.
11523         (build_c_cast): Pass location to handle_warn_cast_qual.
11524
11525 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11526
11527         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
11528         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
11529         insn mnemonic.
11530         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
11531
11532 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
11533
11534         Fix bootstap on mips
11535         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
11536         be naming typedefs.
11537
11538 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
11539
11540         * system.h (helper_const_non_const_cast): New inline for
11541         gcc version <= 4.0.
11542         (CONST_CAST2): For gcc version <= 4.0 use
11543         new helper to do const/non-const casting.
11544
11545 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11546
11547         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
11548         * Makefile.in (OBJS-common): Include insn-enums.o.
11549         (insn-enums.o): New rule.
11550         (simple_generated_c): Add insn-enums.c.
11551         (build/genenums.o): New rule.
11552         (genprogmd): Add "enums".
11553         * genconstants.c (print_enum_type): Declare a C string array
11554         for each enum.
11555         * genenums.c: New file.
11556         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
11557         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
11558         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
11559
11560 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11561
11562         * doc/md.texi (define_enum_attr): Document.
11563         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
11564         * read-md.h (lookup_enum_type): Declare.
11565         * read-md.c (lookup_enum_type): New function.
11566         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
11567         * genattrtab.c (attr_desc): Add an enum_name field.
11568         (evaluate_eq_attr): Take the associated attribute as argument.
11569         Get the enum prefix from the enum_name field, if defined.
11570         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
11571         (simplify_test_exp): Pass attr to evaluate_eq_attr.
11572         (add_attr_value): New function, split out from...
11573         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
11574         (write_test_expr): Pass attr to evaluate_eq_attr.
11575         (write_attr_get): Use the enum_name as the enum tag, if defined.
11576         (write_attr_valueq): Use the enum_name as a prefix, if defined.
11577         (find_attr): Initialize enum_name.
11578         (main): Handle DEFINE_ENUM_ATTR.
11579         * gensupport.c (process_rtx): Likewise.
11580         * config/mips/mips.h (mips_tune_attr): Delete.
11581         * config/mips/mips.md (cpu): Use define_attr_enum.
11582
11583 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11584
11585         * doc/md.texi (define_c_enum, define_enum): Document.
11586         * read-md.h (md_constant): Add a parent_enum field.
11587         (enum_value, enum_type): New structures.
11588         (upcase_string, traverse_enum_types): Declare.
11589         * read-md.c (enum_types): New variable.
11590         (upcase_string, add_constant): New functions.
11591         (handle_constants): Don't create the hash table here.
11592         Use add_constant.
11593         (traverse_md_constants): Don't check for a null md_constants.
11594         (decimal_string, handle_enum, traverse_enum_types): New functions.
11595         (read_md_files): Initialize md_constants and md_enums.
11596         * genconstants.c (print_md_constant): Ignore info argument.
11597         Only print constants that belong to no enum.
11598         (print_enum_type): New function.
11599         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
11600         for each defined enum type.
11601         * config/mips/mips.md (processor): New define_enum.
11602         (unspec): New define_c_enum.
11603         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
11604         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
11605         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
11606         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
11607         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
11608         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
11609         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
11610         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
11611         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
11612         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
11613         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
11614         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
11615         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
11616         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
11617         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
11618         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
11619         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
11620         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
11621         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
11622         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
11623         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
11624         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
11625         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11626         (UNSPEC_RDDSP): Move to mips-dsp.md.
11627         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
11628         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
11629         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
11630         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
11631         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
11632         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
11633         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
11634         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
11635         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
11636         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
11637         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
11638         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
11639         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
11640         Moved to mips-dspr2.md.
11641         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
11642         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
11643         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
11644         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
11645         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
11646         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
11647         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11648         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11649         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11650         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11651         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11652         UNSPEC_LOONGSON_PSADBH)
11653         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11654         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11655         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
11656         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11657         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11658         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11659         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
11660         (cpu): Update comment.
11661         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
11662         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
11663         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
11664         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
11665         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
11666         UNSPEC_LOONGSON_PCMPEQ)
11667         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
11668         UNSPEC_LOONGSON_PINSR_0)
11669         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11670         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11671         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11672         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11673         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11674         UNSPEC_LOONGSON_PSADBH)
11675         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11676         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11677         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
11678         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11679         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11680         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11681         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
11682         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
11683         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
11684         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
11685         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
11686         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
11687         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
11688         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
11689         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
11690         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
11691         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
11692         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
11693         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
11694         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
11695         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
11696         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
11697         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
11698         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
11699         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
11700         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
11701         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11702         (UNSPEC_RDDSP): Moved from mips.md.
11703         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
11704         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
11705         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
11706         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
11707         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
11708         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
11709         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
11710         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
11711         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
11712         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
11713         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
11714         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
11715         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
11716         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
11717         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
11718         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
11719         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
11720         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
11721         (UNSPEC_SCC): Moved from mips.md.
11722         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
11723         "processor_type" to "processor".
11724         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
11725         * config/mips/mips.h (processor_type): Delete.
11726         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
11727         "processor_type" to "processor".
11728
11729 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11730
11731         * configure.ac (tm_include_list): Add insn-constants.h.
11732         * configure: Regenerate.
11733         * Makefile.in (GTM_H): Move insn-constants.h here from...
11734         (TM_H): ...here.
11735         * mkconfig.sh: Remove special handling for insn-constants.h.
11736
11737 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11738
11739         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
11740         (BUILD_MD): ...this new variable.
11741         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
11742         that include the old contents of simple_generated_h and
11743         simple_generated_c.
11744         (simple_generated_h, simple_generated_c): Include them.  Add
11745         insn-constants.h.
11746         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
11747         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
11748         Remove these dependencies from the main rule and include
11749         insn-conditions.md in the command line only if it appears
11750         in the dependency list.
11751         (insn-constants.h, s-constants): Delete.
11752         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
11753         or gensupport.h.
11754         (build/genmddeps.o): Likewise.
11755         (genprogrtl): New variable that contains everything from genprogmd
11756         except mddeps and constants.
11757         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
11758         depend on $(BUILD_MD)
11759         (genprog): New variable.  Make these programs depend on
11760         $(BUILD_ERRORS).
11761         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
11762         (main): Use read_md_files instead of init_rtx_reader_args.
11763         * genconstants.c: As for genmddeps.c.
11764         * read-md.h (read_skip_construct): Declare.
11765         * read-md.c (read_skip_construct): New function.
11766         (handle_file): Allow a null handle_directive, skipping the
11767         construct if so.
11768         (parse_include): Update the comment accordingly.
11769
11770 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11771
11772         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
11773         * genmddeps.c: Include read-md.h.
11774         (main): Call init_rtx_reader_args instead of init_md_reader_args.
11775         * genattr.c (main): Likewise.
11776         * genattrtab.c (main): Likewise.
11777         * genautomata.c (main): Likewise.
11778         * gencodes.c (main): Likewise.
11779         * genconditions.c (main): Likewise.
11780         * genconfig.c (main): Likewise.
11781         * genconstants.c (main): Likewise.
11782         * genemit.c (main): Likewise.
11783         * genextract.c (main): Likewise.
11784         * genflags.c (main): Likewise.
11785         * genopinit.c (main): Likewise.
11786         * genoutput.c (main): Likewise.
11787         * genpeep.c (main): Likewise.
11788         * genrecog.c (main): Likewise.
11789         * genpreds.c (main): Likewise.
11790         * gensupport.h (in_fname): Move to read-md.h.
11791         (init_md_reader_args_cb): Rename to...
11792         (init_rtx_reader_args_cb): ...this and return a bool.
11793         (init_md_reader_args): Rename to...
11794         (init_rtx_reader_args): ...this and return a bool.
11795         (include_callback): Move to read-md.h.
11796         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
11797         (file_name_list, first_dir_md_include): Move to read-md.c
11798         (first_bracket_include): Delete unused variable.
11799         (last_dir_md_include): Move to read-md.c.
11800         (process_include): Delete, moving code to read-md.c:handle_include.
11801         (process_rtx): Don't handle INCLUDE.
11802         (save_string): Delete.
11803         (rtx_handle_directive): New function.
11804         (init_md_reader_args_cb): Rename to...
11805         (init_rtx_reader_args_cb): ...this and return a boolean success value.
11806         Use read_md_args.
11807         (init_md_reader_args): Rename to...
11808         (init_rtx_reader_args): ...this and return a boolean success value.
11809         * rtl.def (INCLUDE): Delete.
11810         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
11811         argument.
11812         * read-rtl.c (read_conditions): Don't gobble ')' here.
11813         (read_mapping): Likewise.
11814         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
11815         Handle top-level non-rtx constructs here rather than in read_rtx_1.
11816         Store the whole queue in *X.  Remove call to init_md_reader.
11817         (read_rtx_1): Rename to...
11818         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
11819         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
11820         here.
11821         (read_nested_rtx): New function.  Handle (nil) here rather than
11822         in read_rtx_code.
11823         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
11824         gobble ')' here.
11825         * read-md.h (directive_handler_t): New type.
11826         (in_fname, include_callback): Moved from read-md.h.
11827         (read_constants, init_md_reader): Delete.
11828         (read_md_files): Declare.
11829         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
11830         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
11831         from gensupport.c.
11832         (read_constants): Rename to...
11833         (handle_constants): ...this.  Don't gobble ')' here.
11834         (handle_include, handle_file, handle_toplevel_file)
11835         (parse_include): New functions, mostly taken from gensupport.c.
11836         (init_md_reader): Subsume into...
11837         (read_md_files): ...this new function.
11838
11839 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11840
11841         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
11842         (unread_char): Decrement read_md_lineno after putting back '\n'.
11843         * read-md.c (fatal_with_file_and_line): Push back any characters
11844         that we decide not to add to the context.
11845         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
11846         fatal_expected_char in cases where '/' ends a line (for example).
11847         (read_name): Don't increment read_md_lineno here.
11848         (read_escape): Likewise.
11849         (read_quoted_string): Likewise.
11850         (read_braced_string): Likewise.
11851
11852 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11853
11854         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
11855         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
11856         * genconstants.c: Include read-md.h.
11857         * read-rtl.c (md_constants): Move to read-md.c.
11858         (md_name): Move to read-md.h.
11859         (initialize_iterators): Use leading_string_hash instead of def_hash
11860         and leading_string_eq_p instead of def_name_eq_p.
11861         (read_name): Move to read-md.c.
11862         (def_hash, def_name_eq_p): Delete.
11863         (read_constants, traverse_md_constants): Move to read-md.c.
11864         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
11865         * read-md.h: Include hashtab.h.
11866         (md_name): Moved from read-rtl.c.
11867         (md_constant): Moved from read-md.h.
11868         (leading_string_hash, leading_string_eq_p, read_name)
11869         (read_constants, traverse_md_constants): Declare.
11870         * read-md.c (md_constants): Moved from read-rtl.c.
11871         (leading_string_hash, leading_string_eq_p): New functions.
11872         (read_name, read_constants, traverse_md_constants): Moved from
11873         read-rtl.c.
11874
11875 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11876
11877         * read-rtl.c (md_name): New structure.
11878         (read_name): Take an md_name instead of a buffer pointer.
11879         Use the "string" field instead of strcpy when expanding constants.
11880         (read_constants): Remove the tmp_char argument.  Update the calls
11881         to read_name, using two local name buffers instead of the tmp_char
11882         argument.  Merge the constant-creation code.
11883         (read_conditions): Remove the tmp_char argument.  Update the calls
11884         to read_name, using a local name buffer instead of the tmp_char
11885         argument.
11886         (read_mapping): Replace tmp_char variable with a local name buffer.
11887         Update the calls to read_name.
11888         (read_rtx_1): Likewise.  Update the calls to read_constants and
11889         read_conditions.
11890
11891 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11892
11893         * Makefile.in (build/read-md.o): Depend on errors.h.
11894         * read-md.h (error_with_line): Declare.
11895         * read-md.c: Include errors.h.
11896         (message_with_line_1): New function, extracted from...
11897         (message_with_line): ...here.
11898         (error_with_line): New function.
11899         * genattrtab.c: If a call to message_with_line is followed by
11900         "have_error = 1;", replace both statements with a call to
11901         error_with_line.
11902         * genoutput.c: Likewise.
11903         * genpreds.c: Likewise.
11904         * genrecog.c: If a call to message_with_line is followed by
11905         "error_count++;", replace both statements with a call to
11906         error_with_line.
11907         (errorcount): Delete.
11908         (main): Don't check it.
11909         * gensupport.c: If a call to message_with_line is followed by
11910         "errors = 1;", replace both statements with a call to error_with_line.
11911         (errors): Delete.
11912         (process_define_cond_exec): Check have_error instead of errors.
11913         (init_md_reader_args_cb): Likewise.  Don't set errors.
11914
11915 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11916
11917         * read-md.h (read_md_file): Declare.
11918         (read_char, unread_char): New functions.
11919         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11920         (read_quoted_string, read_string): Remove FILE * argument.
11921         * read-md.c (read_md_file): New variable.
11922         (read_md_filename, read_md_lineno): Update comments and remove
11923         unnecessary initialization.
11924         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11925         (read_escape, read_quoted_string, read_braced_string, read_string):
11926         Remove FILE * argument.  Update calls accordingly, using read_char
11927         and unread_char instead of getc and ungetc.
11928         * rtl.h (read_rtx): Remove FILE * argument.
11929         * read-rtl.c (iterator_group): Remove FILE * argument from
11930         "find_builtin".
11931         (iterator_traverse_data): Remove "infile" field.
11932         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
11933         (add_mapping, read_name, read_constants, read_conditions)
11934         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
11935         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
11936         Remove file arguments from all calls, using read_char and unread_char
11937         instead of getc and ungetc.
11938         * gensupport.c (process_include): Preserve read_md_file around
11939         the include.  Set read_md_file to the handle of the included file.
11940         Update call to read_rtx.
11941         (init_md_reader_args_cb): Set read_md_file to the handle of the file
11942         and remove local FILE *.  Update calls to read_rtx.
11943
11944 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11945
11946         * read-md.h (read_rtx_lineno): Rename to...
11947         (read_md_lineno): ...this.
11948         (read_rtx_filename): Rename to...
11949         (read_md_filename): ...this.
11950         (copy_rtx_ptr_loc): Rename to...
11951         (copy_md_ptr_loc): ...this.
11952         (print_rtx_ptr_loc): Rename to...
11953         (print_md_ptr_loc): ...this.
11954         * read-md.c: Likewise.  Update references after renaming.
11955         (string_obstack): Replace RTL with MD in comment.
11956         (set_rtx_ptr_loc): Rename to...
11957         (set_md_ptr_loc): ...this.
11958         (get_rtx_ptr_loc): Rename to...
11959         (get_md_ptr_loc): ...this.
11960         * genconditions.c: Update references after renaming.
11961         * genemit.c: Likewise.
11962         * genoutput.c: Likewise.
11963         * genpreds.c: Likewise.
11964         * gensupport.c: Likewise.
11965         * read-rtl.c: Likewise.
11966
11967 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11968
11969         * Makefile.in (READ_MD_H): New variable.
11970         (BUILD_RTL): Add build/read-md.o.
11971         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
11972         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
11973         (build/genattrtab.o, build/genconditions.o build/genemit.o)
11974         (build/genextract.o, build/genflags.o, build/genoutput.o)
11975         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
11976         (build/read-md.o): New rule.
11977         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
11978         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
11979         * coretypes.h: ...here.
11980         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
11981         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
11982         * genattr.c: Include read-md.h.
11983         * genattrtab.c: Likewise.
11984         * genconditions.c: Likewise.
11985         * genemit.c: Likewise.
11986         * genextract.c: Likewise.
11987         * genflags.c: Likewise.
11988         * genoutput.c: Likewise.
11989         * genpreds.c: Likewise.
11990         * genrecog.c: Likewise.
11991         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
11992         (join_c_conditions, print_c_condition, read_rtx_filename)
11993         (read_rtx_lineno): Move to read-md.h.
11994         * read-rtl.c: Include read-md.h.
11995         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
11996         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
11997         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
11998         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
11999         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
12000         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
12001         (read_braced_string, read_string): Move to read-md.c.
12002         (read_rtx): Move some initialization to init_md_reader and call
12003         init_md_reader here.
12004         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
12005         Move to read-md.h.
12006         * gensupport.c: Include read-md.h.
12007         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
12008         * read-md.h, read-md.c: New files.
12009
12010 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
12011
12012         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12013         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12014         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
12015         * config/moxie/moxie.c (moxie_function_value): Make static.
12016         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
12017         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12018
12019 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12020
12021         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
12022         * dbgcnt.def (tree_sra): New counter.
12023         * tree-sra.c: Include dbgcnt.h.
12024         (gate_intra_sra): Check tree_sra debug counter.
12025
12026 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12027
12028         PR tree-optimization/44258
12029         * tree-sra.c (build_access_subtree): Return false iff there is a
12030         partial overlap.
12031         (build_access_trees): Likewise.
12032         (analyze_all_variable_accesses): Disqualify candidates if
12033         build_access_trees returns true for them.
12034
12035 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
12036
12037         PR debug/41371
12038         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
12039         tail-recurse into canonical node.  Fast-forward over
12040         non-canonical VALUEs.
12041
12042 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
12043
12044         PR boostrap/44470
12045         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
12046         (*addsi_1_zext) <TYPE_LEA>: Likewise.
12047         (add lea splitter): Likewise.
12048         (add_zext lea splitter): Likewise.
12049
12050 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
12051
12052         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
12053
12054 2010-06-10  Jan Hubicka  <jh@suse.cz>
12055
12056         * df-problems.c (df_live_problem_data): Add live_bitmaps.
12057         (df_live_alloc): Initialize problem data and live_osbtacks.
12058         (df_live_finalize): Remove obstack, problem data; do not
12059         clear all bitmaps.
12060         (df_live_top_dump, df_live_bottom_dump): Do not dump old
12061         data when not allocated.
12062         (df_live_verify_solution_start): Do not allocate problem data.
12063         (df_live_verify_solution_end): Check if out is allocated.
12064         (struct df_md_problem_data): New structure.
12065         (df_md_alloc): Allocate problem data.
12066         (df_md_free): Free problem data; do not clear bitmaps.
12067
12068 2010-06-10  Jan Beulich  <jbeulich@novell.com>
12069
12070         PR bootstrap/37304
12071         * configure.ac: Replace $() with ${} when intending to expand
12072         variables rather than invoking commands.
12073         * configure: Re-generate.
12074
12075 2010-06-10  Jan Hubicka  <jh@suse.cz>
12076
12077         PR rtl-optimization/44460
12078         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
12079         TYPE_NEEDS_CONSTRUCTING sanity check.
12080
12081 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
12082
12083         * doc/include/fdl.texi: Move to GFDL version 1.3.
12084
12085         * doc/cpp.texi: Move to GFDL version 1.3.
12086         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
12087         * doc/gccint.texi: Move to GFDL version 1.3.
12088         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
12089         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
12090         * doc/invoke.texi: Move to GFDL version 1.3.
12091
12092 2010-06-09  Jan Hubicka  <jh@suse.cz>
12093
12094         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
12095         Break out from ...
12096         (propagate) ... here; swap the order.
12097
12098 2010-06-09  Jan Hubicka  <jh@suse.cz>
12099
12100         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
12101         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
12102         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
12103         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
12104
12105 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12106
12107         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
12108         Do not the gather memory reference in the outer loop if the step
12109         is not a constant.
12110
12111 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12112
12113         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
12114         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
12115         8 to 4.  Minor change of the related comments.
12116
12117 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12118
12119         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
12120         the scev analysis when the variable is not used outside the loop
12121         in a close phi node: call compute_overall_effect_of_inner_loop.
12122
12123 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12124
12125         * graphite-sese-to-poly.c (single_pred_cond): Renamed
12126         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
12127         (build_sese_conditions_before): Renamed call to single_pred_cond.
12128         (build_sese_conditions_after): Same.
12129
12130 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12131
12132         * graphite-poly.h: Fix comments and indentation.
12133         * graphite-sese-to-poly.c: Same.
12134         (build_sese_conditions_before): Compute stmt and gbb only when needed.
12135         * tree-chrec.c: Fix comments and indentation.
12136         (tree-ssa-loop-niter.c): Same.
12137
12138 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12139
12140         PR rtl-optimization/42461
12141         * dce.c (deletable_insn_p): Return true for const or pure calls again.
12142         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
12143
12144 2010-06-09  Jan Hubicka  <jh@suse.cz>
12145
12146         * bitmap.c (bitmap_and): Walk array forward.
12147         (bitmap_and_compl_into): Likewise.
12148         (bitmap_xor): Likewise.
12149         (bitmap_xor_into):  Likewise.
12150         (bitmap_equal_p): Likewise.
12151         (bitmap_intersect_p): Likewise.
12152         (bitmap_intersect_compl_p): Likewise.
12153         (bitmap_ior_and_into): Likewise.
12154         (bitmap_elt_copy): Likewise.
12155         (bitmap_and_compl): Likewise.
12156         (bitmap_elt_ior): Likewise.
12157
12158 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
12159
12160         * opts-common.c (prune_options): Ensure replacement argv array
12161         is correctly terminated by a NULL entry.
12162
12163 2010-06-09  Jan Hubicka  <jh@suse.cz>
12164
12165         * cgraph.h (varpool_first_static_initializer,
12166         varpool_next_static_initializer): Make checking only when
12167         checking enabled.
12168         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
12169         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
12170         gcc_assert to gcc_checking_assert.
12171         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
12172         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
12173         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
12174         op_iter_init_phiuse, op_iter_init_phidef,
12175         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
12176         gcc_checking_assert.
12177         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
12178         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
12179         partition_is_global, live_on_entry, live_on_exit,
12180         live_merge_and_clear): Likewise.
12181         * system.h (gcc_checking_assert): New macro.
12182         * gimple.h (set_bb_seq): Use gcc_checking_assert.
12183
12184 2010-06-09  Jason Merrill  <jason@redhat.com>
12185
12186         * Makefile.in (TAGS): Collect tags info from c-family.
12187
12188 2010-06-09  Jan Hubicka  <jh@suse.cz>
12189
12190         * gimple.h (gcc_gimple_checking_assert): New macro.
12191         (gimple_set_def_ops, gimple_set_use_ops,
12192         gimple_set_vuse, gimple_set_vdef,
12193         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
12194         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
12195         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
12196         gimple_asm_output_op, gimple_asm_output_op_ptr,
12197         gimple_asm_set_output_op, gimple_asm_clobber_op,
12198         gimple_asm_set_clobber_op, gimple_asm_label_op,
12199         gimple_asm_set_label_op, gimple_try_set_kind,
12200         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
12201         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
12202         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
12203         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
12204         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
12205         gimple_omp_for_set_initial, gimple_omp_for_final,
12206         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
12207         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
12208         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
12209         conditional with ENABLE_GIMPLE_CHECKING.
12210         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
12211
12212 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
12213
12214         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
12215         (get_computation_cost_at): Use it.
12216         (determine_use_iv_cost_condition): Likewise.
12217         (determine_iv_cost): Likewise.
12218
12219 2010-06-09  Richard Guenther  <rguenther@suse.de>
12220
12221         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
12222         replace constants.
12223
12224 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
12225
12226         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
12227
12228 2010-06-09  Martin Jambor  <mjambor@suse.cz>
12229
12230         PR tree-optimization/44423
12231         * tree-sra.c (dump_access): Dump also grp_assignment_read.
12232         (analyze_access_subtree): Pass negative allow_replacements to children
12233         if the current type is scalar.
12234
12235 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12236
12237         PR testsuite/42843
12238         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
12239         * doc/plugins.texi (Plugin license check): Update information
12240         on type of plugin_is_GPL_compatible.
12241         * Makefile.in (PLUGINCC): Define as $(COMPILER).
12242         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
12243
12244 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12245
12246         * config/arm/arm.c (thumb2_reorg): New function.
12247         (arm_reorg): Call it.
12248         * config/arm/thumb2.md (define_peephole2 for flag clobbering
12249         arithmetic operations): Delete.
12250
12251 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
12252
12253         PR target/44067
12254         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
12255         e500v2 target.
12256
12257 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12258
12259         PR plugins/44459
12260         * gcc-plugin.h: Encapsulate all declarations in extern "C".
12261
12262 2010-06-08  Jan Hubicka  <jh@suse.cz>
12263
12264         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
12265         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
12266
12267 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
12268
12269         PR tree-optimization/39874
12270         PR middle-end/28685
12271         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
12272         Declare.
12273         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
12274         same_bool_result_p): New.
12275         (and_var_with_comparison, and_var_with_comparison_1,
12276         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
12277         (or_var_with_comparison, or_var_with_comparison_1,
12278         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
12279         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
12280         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
12281         of combine_comparisons.
12282         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
12283
12284 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
12285
12286         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12287         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12288         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
12289         pdp11_function_value_regno_p): New functions.
12290         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12291         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12292
12293 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
12294
12295         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
12296         Thumb-2 in the MINUS case.
12297
12298 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12299
12300         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
12301
12302         * doc/gty.texi (GTY Options): Document typed GC allocation and
12303         variable_size GTY option.
12304
12305         * ggc-internal.h: New.
12306
12307         * ggc.h: Update copyright year.
12308         (digit_string): Move to stringpool.c.
12309         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
12310         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
12311         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
12312         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
12313         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
12314         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
12315         (ggc_force_collect, ggc_get_size, ggc_statistics)
12316         (ggc_print_common_statistics): Move to ggc-internal.h.
12317         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
12318         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
12319         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
12320         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
12321         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
12322         (ggc_alloc_zone_pass_stat): Remove.
12323         (ggc_internal_alloc_stat, ggc_internal_alloc)
12324         (ggc_internal_cleared_alloc_stat): New.
12325         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
12326         (ggc_internal_vec_alloc_stat)
12327         (ggc_internal_cleared_vec_alloc_stat)
12328         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
12329         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
12330         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
12331         (ggc_cleared_alloc_ptr_array_two_args): New.
12332         (htab_create_ggc, splay_tree_new_ggc): Redefine.
12333         (ggc_splay_alloc): Change the type of the first argument to
12334         enum gt_types_enum.
12335         (ggc_alloc_string): Make macro.
12336         (ggc_alloc_string_stat): New.
12337         (ggc_strdup): Redefine.
12338         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
12339         (ggc_alloc_rtvec_sized): New.
12340         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
12341         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
12342         (ggc_internal_cleared_alloc_zone_stat)
12343         (ggc_internal_zone_alloc_stat)
12344         (ggc_internal_zone_cleared_alloc_stat)
12345         (ggc_internal_zone_vec_alloc_stat)
12346         (ggc_alloc_zone_rtx_def_stat)
12347         (ggc_alloc_zone_tree_node_stat)
12348         (ggc_alloc_zone_cleared_tree_node_stat)
12349         (ggc_alloc_cleared_gimple_statement_d_stat): New.
12350
12351         * ggc-common.c: Include ggc-internal.h.
12352         (ggc_internal_cleared_alloc_stat): Rename from
12353         ggc_alloc_cleared_stat.
12354         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
12355         (ggc_calloc): Remove.
12356         (ggc_cleared_alloc_htab_ignore_args): New.
12357         (ggc_cleared_alloc_ptr_array_two_args): New.
12358         (ggc_splay_alloc): Add obj_type parameter.
12359         (init_ggc_heuristics): Formatting fixes.
12360
12361         * ggc-none.c: Update copyright year.
12362         (ggc_alloc_stat): Rename to ggc_alloc_stat.
12363         (ggc_alloc_cleared_stat): Rename to
12364         ggc_internal_cleared_alloc_stat.
12365         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12366
12367         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
12368         Remove references to ggc_alloc in comments.
12369         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
12370         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
12371         (new_ggc_zone, destroy_ggc_zone): Remove.
12372         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12373
12374         * ggc-zone.c: Include ggc-internal.h.  Remove references to
12375         ggc_alloc in comments.
12376         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
12377         (ggc_internal_alloc_zone_pass_stat): New.
12378         (ggc_internal_cleared_alloc_zone_stat): New.
12379         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
12380         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
12381         (new_ggc_zone, destroy_ggc_zone): Remove.
12382
12383         * stringpool.c: Update copyright year.  Include ggc-internal.h
12384         (digit_vector): Make static.
12385         (digit_string): Moved from ggc.h.
12386         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
12387         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
12388
12389         * Makefile.in (GGC_INTERNAL_H): New.
12390         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
12391         $(GGC_INTERNAL_H) to dependencies.
12392
12393         * gentype.c: Update copyright year.
12394         (walk_type): Accept variable_size GTY option.
12395         (USED_BY_TYPED_GC_P): New macro.
12396         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
12397         whitespace at the end of strings.
12398         (get_type_specifier, variable_size_p): New functions.
12399         (alloc_quantity, alloc_zone): New enums.
12400         (write_typed_alloc_def): New function.
12401         (write_typed_struct_alloc_def): Likewise.
12402         (write_typed_typed_typedef_alloc_def): Likewise.
12403         (write_typed_alloc_defns): Likewise.
12404         (output_typename, write_splay_tree_allocator_def): Likewise.
12405         (write_splay_tree_allocators): Likewise.
12406         (main): Call write_typed_alloc_defns and
12407         write_splay_tree_allocators.
12408
12409         * lto-streamer.h (lto_file_decl_data_ptr): New.
12410
12411         * passes.c (order): Define using cgraph_node_ptr.
12412
12413         * strinpool.c (struct string_pool_data): Declare nested_ptr using
12414         ht_identifier_ptr.
12415
12416         * gimple.h (union gimple_statement_d): Likewise.
12417
12418         * rtl.h (struct rtx_def): Likewise.
12419         (struct rtvec_def): Likewise.
12420
12421         * tree.h (union tree_node): Likewise.
12422
12423         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
12424
12425         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
12426
12427         * tree-scalar-evolution.c (scev_initialize): Likewise.
12428
12429         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
12430
12431         * dwarf2asm.c (dw2_force_const_mem): Likewise.
12432
12433         * omp-low.c (lower_omp_critical): Likewise.
12434
12435         * bitmap.h (struct bitmap_head_def): Update comment to not
12436         reference ggc_alloc.
12437
12438         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
12439
12440         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
12441
12442         * ipa-prop.c (duplicate_ggc_array): Rename to
12443         duplicate_ipa_jump_func_array.  Use typed GC allocation.
12444         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
12445
12446         * gimple.c (gimple_alloc_stat): Use
12447         ggc_alloc_cleared_gimple_statement_d_stat.
12448
12449         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
12450
12451         * tree.c (make_node_stat): Use
12452         ggc_alloc_zone_cleared_tree_node_stat.
12453         (make_tree_vec_stat): Likewise.
12454         (build_vl_exp_stat): Likewise.
12455         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
12456         (make_tree_binfo_stat): Likewise.
12457         (tree_cons_stat): Likewise.
12458
12459         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
12460         (shallow_copy_rtx_stat): Likewise.
12461         (make_node_stat): Likewise.
12462
12463         * lto-symtab.c: Fix comment.
12464
12465         * tree-cfg.c (create_bb): Update comment to not reference
12466         ggc_alloc_cleared.
12467         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
12468
12469         * varpool.c (varpool_node): Use typed GC allocation.
12470         (varpool_extra_name_alias): Likewise.
12471
12472         * varasm.c (emutls_decl): Likewise.
12473         (get_unnamed_section): Likewise.
12474         (get_noswitch_section): Likewise.
12475         (get_section): Likewise.
12476         (get_block_for_section): Likewise.
12477         (build_constant_desc): Likewise.
12478         (create_constant_pool): Likewise.
12479         (force_const_mem): Likewise.
12480
12481         * tree.c (build_vl_exp_stat): Likewise.
12482         (build_real): Likewise.
12483         (build_string): Likewise.
12484         (decl_debug_expr_insert): Likewise.
12485         (decl_value_expr_insert): Likewise.
12486         (type_hash_add): Likewise.
12487         (build_omp_clause): Likewise.
12488
12489         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
12490
12491         * tree-ssa.c (init_tree_ssa): Likewise.
12492
12493         * tree-ssa-structalias.c (heapvar_insert): Likewise.
12494
12495         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12496
12497         * tree-ssa-loop-niter.c (record_estimate): Likewise.
12498
12499         * tree-ssa-alias.c (get_ptr_info): Likewise.
12500
12501         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12502
12503         * tree-phinodes.c (allocate_phi_node): Likewise.
12504
12505         * tree-iterator.c (tsi_link_before): Likewise.
12506         (tsi_link_after): Likewise.
12507
12508         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12509
12510         * tree-dfa.c (create_var_ann): Likewise.
12511
12512         * tree-cfg.c (create_bb): Likewise.
12513
12514         * toplev.c (alloc_for_identifier_to_locale): Likewise.
12515         (general_init): Likewise.
12516
12517         * stringpool.c (stringpool_ggc_alloc): Likewise.
12518         (gt_pch_save_stringpool): Likewise.
12519
12520         * sese.c (if_region_set_false_region): Likewise.
12521
12522         * passes.c (do_per_function_toporder): Likewise.
12523
12524         * optabs.c (set_optab_libfunc): Likewise.
12525         (set_conv_libfunc): Likewise.
12526
12527         * lto-symtab.c (lto_symtab_register_decl): Likewise.
12528
12529         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12530         (input_eh_region): Likewise.
12531         (input_eh_lp): Likewise.
12532         (make_new_block): Likewise.
12533         (unpack_ts_real_cst_value_fields): Likewise.
12534
12535         * lto-section-in.c (lto_new_in_decl_state): Likewise.
12536
12537         * lto-cgraph.c (input_node_opt_summary): Likewise.
12538
12539         * loop-init.c (loop_optimizer_init): Likewise.
12540
12541         * lambda.h (lambda_vector_new): Likewise.
12542
12543         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
12544
12545         * ira.c (update_equiv_regs): Likewise.
12546
12547         * ipa.c (cgraph_node_set_new): Likewise.
12548         (cgraph_node_set_add): Likewise.
12549         (varpool_node_set_new): Likewise.
12550         (varpool_node_set_add): Likewise.
12551
12552         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
12553         (duplicate_ipa_jump_func_array): Likewise.
12554         (ipa_read_node_info): Likewise.
12555
12556         * ipa-cp.c (ipcp_create_replace_map): Likewise.
12557
12558         * integrate.c (get_hard_reg_initial_val): Likewise.
12559
12560         * gimple.c (gimple_alloc_stat): Likewise.
12561         (gimple_build_omp_for): Likewise.
12562         (gimple_seq_alloc): Likewise.
12563         (gimple_copy): Likewise.
12564
12565         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
12566         (gsi_insert_after_without_update): Likewise.
12567
12568         * function.c (add_frame_space): Likewise.
12569         (insert_temp_slot_address): Likewise.
12570         (assign_stack_temp_for_type): Likewise.
12571         (allocate_struct_function): Likewise.
12572         (types_used_by_var_decl_insert): Likewise.
12573
12574         * except.c (init_eh_for_function): Likewise.
12575         (gen_eh_region): Likewise.
12576         (gen_eh_region_catch): Likewise.
12577         (gen_eh_landing_pad): Likewise.
12578         (add_call_site): Likewise.
12579
12580         * emit-rtl.c (get_mem_attrs): Likewise.
12581         (get_reg_attrs): Likewise.
12582         (start_sequence): Likewise.
12583         (init_emit): Likewise.
12584
12585         * dwarf2out.c (new_cfi): Likewise.
12586         (queue_reg_save): Likewise.
12587         (dwarf2out_frame_init): Likewise.
12588         (new_loc_descr): Likewise.
12589         (find_AT_string): Likewise.
12590         (new_die): Likewise.
12591         (add_var_loc_to_decl): Likewise.
12592         (clone_die): Likewise.
12593         (clone_as_declaration): Likewise.
12594         (break_out_comdat_types): Likewise.
12595         (new_loc_list): Likewise.
12596         (loc_descriptor): Likewise.
12597         (add_loc_descr_to_each): Likewise.
12598         (add_const_value_attribute): Likewise.
12599         (tree_add_const_value_attribute): Likewise.
12600         (add_comp_dir_attribute): Likewise.
12601         (add_name_and_src_coords_attributes): Likewise.
12602         (lookup_filename): Likewise.
12603         (store_vcall_insn): Likewise.
12604         (dwarf2out_init): Likewise.
12605
12606         * dbxout.c (dbxout_init): Likewise.
12607
12608         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12609
12610         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12611
12612         * config/score/score7.c (score7_output_external): Likewise.
12613
12614         * config/score/score3.c (score3_output_external): Likewise.
12615
12616         * config/s390/s390.c (s390_init_machine_status): Likewise.
12617
12618         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12619         (rs6000_init_machine_status): Likewise.
12620         (output_toc): Likewise.
12621
12622         * config/pa/pa.c (pa_init_machine_status): Likewise.
12623         (get_deferred_plabel): Likewise.
12624
12625         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12626
12627         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12628
12629         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12630
12631         * config/mep/mep.c (mep_init_machine_status): Likewise.
12632         (mep_note_pragma_flag): Likewise.
12633
12634         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12635
12636         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12637
12638         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12639
12640         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12641         (i386_pe_maybe_record_exported_symbol): Likewise.
12642
12643         * config/i386/i386.c (get_dllimport_decl): Likewise.
12644         (ix86_init_machine_status): Likewise.
12645         (assign_386_stack_local): Likewise.
12646
12647         * config/frv/frv.c (frv_init_machine_status): Likewise.
12648
12649         * config/darwin.c (machopic_indirection_name): Likewise.
12650
12651         * config/cris/cris.c (cris_init_machine_status): Likewise.
12652
12653         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12654
12655         * config/avr/avr.c (avr_init_machine_status): Likewise.
12656
12657         * config/arm/arm.c (arm_init_machine_status): Likewise.
12658
12659         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12660         (alpha_need_linkage): Likewise.
12661         (alpha_use_linkage): Likewise.
12662
12663         * cgraph.c (cgraph_allocate_node): Likewise.
12664         (cgraph_create_edge_1): Likewise.
12665         (cgraph_create_indirect_edge): Likewise.
12666         (cgraph_add_asm_node): Likewise.
12667
12668         * cfgrtl.c (init_rtl_bb_info): Likewise.
12669
12670         * cfgloop.c (alloc_loop): Likewise.
12671         (rescan_loop_exit): Likewise.
12672
12673         * cfg.c (init_flow): Likewise.
12674         (alloc_block): Likewise.
12675         (unchecked_make_edge): Likewise.
12676
12677         * c-parser.c (c_parse_init): Likewise.
12678         (c_parse_file): Likewise.
12679
12680         * c-decl.c (bind): Likewise.
12681         (record_inline_static): Likewise.
12682         (push_scope): Likewise.
12683         (make_label): Likewise.
12684         (lookup_label_for_goto): Likewise.
12685         (finish_struct): Likewise.
12686         (finish_enum): Likewise.
12687         (c_push_function_context): Likewise.
12688
12689         * bitmap.c (bitmap_element_allocate): Likewise.
12690         (bitmap_gc_alloc_stat): Likewise.
12691
12692         * alias.c (record_alias_subset): Likewise.
12693         (init_alias_analysis): Likewise.
12694
12695 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
12696
12697         * fold-const.c (fold_comparison): Remove redundant parenthesis.
12698         * tree-inline.c (expand_call_inline): Pass translated return value of
12699         cgraph_inline_failed_string to diagnostic function.
12700
12701 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
12702             Shujing Zhao  <pearly.zhao@oracle.com>
12703
12704         PR c/37724
12705         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
12706         implicit bad conversions is initialization.
12707         (error_init): Use gmsgid instead of msgid for argument name and change
12708         the call for error.
12709         (pedwarn_init): Use gmsgid instead of msgid for argument name and
12710         change the call for pedwarn.
12711         (warning_init): Use gmsgid instead of msgid for argument name and
12712         change the call for warning.
12713
12714 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
12715
12716         * config/mips/mips-protos.h (mips_print_operand): Delete.
12717         (mips_print_operand_address): Delete.
12718         * config/mips/mips.h (mips_print_operand_punct): Delete.
12719         (PRINT_OPERAND): Delete.
12720         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12721         (PRINT_OPERAND_ADDRESS): Delete.
12722         * config/mips/mips.c (mips_print_operand_punct): Make static.
12723         (mips_print_operand_address): Make static.
12724         (mips_print_operand): Make static.  Call
12725         mips_print_operand_punct_valid_p.
12726         (mips_print_operand_punct_valid_p): New function.
12727         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12728         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12729
12730 2010-06-07  Jan Hubicka  <jh@suse.cz>
12731
12732         PR middle-end/44454
12733         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
12734         are allocated.
12735
12736 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12737
12738         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
12739         name of RECORD.
12740
12741 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12742
12743         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12744         attributes): Document gas.
12745
12746 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
12747
12748         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
12749         <TYPE_LEA>: Split instruction.
12750         <default>: Remove alternative 2 handling.
12751         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
12752         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
12753         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
12754
12755         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
12756         (ashift_zext lea splitter): Use DImode for multiplication.
12757
12758         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
12759         to generate addition.
12760
12761 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
12762
12763         * common.opt (fira-verbose): Use Var.
12764         (fpcc-struct-return): Use Init instead of VarExists.
12765         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
12766         toplev.c.
12767         * flags.h (flag_signed_char, flag_short_enums,
12768         flag_pcc_struct_return, flag_ira_verbose,
12769         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
12770         * toplev.c (flag_detailed_statistics, flag_signed_char,
12771         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
12772         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
12773         * toplev.h (flag_crossjumping, flag_if_conversion,
12774         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
12775         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
12776         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
12777         flag_cprop_registers, time_report, flag_ira_loop_pressure,
12778         flag_ira_coalesce, flag_ira_move_spills,
12779         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
12780
12781 2010-06-07  Jan Hubicka  <jh@suse.cz>
12782
12783         * df-core.c (df_analyze_problem): Do verification after allocation.
12784
12785         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
12786         (df_lr_alloc): Initialize problem data; move bitmaps to
12787         lr_bitmaps obstack.
12788         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
12789         (df_lr_verify_solution_start): Do not initialize problem data;
12790         allocate bitmaps in lr_bitmaps.
12791         (df_lr_verify_solution_end): Do not free problem data.
12792
12793 2010-06-07  Jan Hubicka  <jh@suse.cz>
12794
12795         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
12796         if caller is noreturn.
12797         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
12798         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
12799         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
12800         * ipa-pure-const.c (check_decl): Add IPA parameter.
12801         (state_from_flags): New function.
12802         (better_state, worse_state): New functions.
12803         (check_call): When in IPA mode, do not care about callees.
12804         (check_load, check_store): Update.
12805         (check_ipa_load, check_ipa_store): New.
12806         (check_stmt): When in IPA mode, use IPA checkers.
12807         (analyze_function): Use state_from_flags.
12808         (propagate): Check indirect edges and references.
12809
12810 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
12811
12812         PR rtl-optimization/44404
12813         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
12814         of count_occurrences to see if it's safe to modify mem_insn.
12815
12816 2010-06-07  Richard Guenther  <rguenther@suse.de>
12817
12818         * gimplify.c (gimplify_cleanup_point_expr): For empty body
12819         and EH-only cleanup drop the cleanup instead of inserting it
12820         unconditionally.
12821
12822 2010-06-07  Ira Rosen  <irar@il.ibm.com>
12823
12824         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
12825         documentation.
12826         * targhooks.c (default_builtin_vectorization_cost): New function.
12827         * targhooks.h (default_builtin_vectorization_cost): Declare.
12828         * target.h (enum vect_cost_for_stmt): Define.
12829         (builtin_vectorization_cost): Change argument and comment.
12830         * tree-vectorizer.h: Remove cost model macros.
12831         * tree-vect-loop.c: Include target.h.
12832         (vect_get_cost): New function.
12833         (vect_estimate_min_profitable_iters): Replace cost model macros with
12834         calls to vect_get_cost.
12835         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
12836         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
12837         default implementation.
12838         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
12839         calls to target hook builtin_vectorization_cost.
12840         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
12841         Likewise.
12842         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
12843         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
12844         implementation to return costs.
12845         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12846         * config/spu/spu.h: Remove vectorizer cost model macros.
12847         * config/i386/i386.h: Likewise.
12848         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
12849         a call to target hook builtin_vectorization_cost.
12850
12851 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
12852
12853         PR target/44319
12854         * config/i386/i386.c (override_options): Turn zee pass on for level 2
12855         and above and defer till target is known.
12856         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
12857         turn off otherwise.
12858
12859 2010-05-25  Jan Hubicka  <jh@suse.cz>
12860
12861         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
12862         (df_compact_blocks): Likewise.
12863         * df.h (struct df): Turn hardware_regs_used,
12864         regular_block_artificial_uses, eh_block_artificial_uses,
12865         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
12866         bitmap_head.
12867         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
12868         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
12869         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
12870         df_scan_blocks, df_insn_delete, df_insn_rescan,
12871         df_insn_rescan_debug_internal, df_insn_rescan_all,
12872         df_process_deferred_rescans, df_process_deferred_rescans,
12873         df_notes_rescan, df_get_call_refs, df_get_call_refs,
12874         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
12875         df_record_entry_block_defs, df_record_exit_block_uses,
12876         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
12877         df_scan_verify): Update.
12878
12879 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12880
12881         PR c++/44188
12882         * c-common.c (is_typedef_decl): Move this definition ...
12883         * tree.c (is_typedef_decl): ... here.
12884         (typdef_variant_p): Move definition here from cp/tree.c.
12885         * c-common.h (is_typedef_decl): Move this declaration ...
12886         * tree.h (is_typedef_decl): ... here.
12887         (typedef_variant_p): Move declaration here from cp/cp-tree.h
12888         * dwarf2out.c (is_naming_typedef_decl): New function.
12889         (gen_tagged_type_die): Split out of ...
12890         (gen_type_die_with_usage): ... this function. When an anonymous
12891         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12892         is emitted for the typedef.
12893         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12894         anonymous tagged types.
12895
12896 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12897
12898         PR c/20000
12899         * c-decl.c (grokdeclarator): Delete warning.
12900
12901 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12902
12903         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
12904         newly built CALL_EXPR.
12905         * tree-profile.c (tree_profiling): Don't profile functions produced
12906         for built-in stuff.
12907
12908 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
12909
12910         PR bootstrap/44427
12911         PR bootstrap/44428
12912         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
12913         endianness-independent.
12914
12915 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
12916
12917         * c-common.c: Move to c-family/.
12918         * c-common.def: Likewise.
12919         * c-common.h: Likewise.
12920         * c-cppbuiltin.c: Likewise.
12921         * c-dump.c: Likewise.
12922         * c-format.c: Likewise.
12923         * c-format.h : Likewise.
12924         * c-gimplify.c: Likewise.
12925         * c-lex.c: Likewise.
12926         * c-omp.c: Likewise.
12927         * c.opt: Likewise.
12928         * c-opts.c: Likewise.
12929         * c-pch.c: Likewise.
12930         * c-ppoutput.c: Likewise.
12931         * c-pragma.c: Likewise.
12932         * c-pragma.h: Likewise.
12933         * c-pretty-print.c: Likewise.
12934         * c-pretty-print.h: Likewise.
12935         * c-semantics.c: Likewise.
12936         * stub-objc.c: Likewise.
12937
12938         * gengtype.c (get_file_langdir): Special-case files in c-family/.
12939         (get_output_file_with_visibility): Fix name for c-common.h.
12940         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
12941
12942         * c-tree.h: Update include path for moved files.
12943         * c-lang.c: Likewise.
12944         * c-lang.h: Likewise.
12945         * c-parser.c: Likewise.
12946         * c-convert.c: Likewise.
12947         * c-decl.c: Likewise.
12948         * c-objc-common.c: Likewise.
12949         * configure.ac: Make sure c-family/ exists in the build directory.
12950         * configure: Regenerate.
12951         * Makefile.in: Update paths for moved files.  Regroup files per
12952         location and update dependencies.  Move generated_files down after
12953         ALL_GTFILES_H.
12954
12955         * config/spu/spu-c.c: Update paths for moved files.
12956         * config/mep/mep-pragma.c: Likewise.
12957         * config/darwin-c.c: Likewise.
12958         * config/i386/msformat-c.c: Likewise.
12959         * config/i386/i386-c.c: Likewise.
12960         * config/avr/avr-c.c: Likewise.
12961         * config/sol2-c.c: Likewise.
12962         * config/ia64/ia64-c.c: Likewise.
12963         * config/rs6000/rs6000-c.c: Likewise.
12964         * config/arm/arm.c: Likewise.
12965         * config/arm/arm-c.c: Likewise.
12966         * config/h8300/h8300.c: Likewise.
12967         * config/v850/v850-c.c: Likewise.
12968
12969         * config/t-darwin: Fix dependencies for moved files.
12970         * config/t-sol2: Fix dependencies for moved files.
12971         * config/mep/t-mep: Fix dependencies for moved files.
12972         * config/ia64/t-ia64: Fix dependencies for moved files.
12973         * config/rs6000/t-rs6000: Fix dependencies for moved files.
12974         * config/v850/t-v850: Fix dependencies for moved files.
12975         * config/v850/t-v850e: Fix dependencies for moved files.
12976
12977         * config/m32c/m32c-pragma.c
12978
12979         * po/exgettext: Look in c-family/ also.
12980
12981 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
12982
12983         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
12984         (mark_control_dependent_edges_necessary): Call it instead of marking
12985         the last statement manually.
12986         (propagate_necessity): Likewise.
12987
12988 2010-06-05  Jan Hubicka  <jh@suse.cz>
12989
12990         * basic-block.h (compute_dominance_frontiers): Updated.
12991         (compute_idf): Likewise.
12992
12993         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
12994         for dominance frontiers.
12995         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
12996         (insert_updated_phi_nodes_for): Likewise.
12997         (update_ssa): Likewise.
12998         * cfganal.c (compute_dominance_frontiers_1): Likewise.
12999         (compute_dominance_frontiers): Likewise.
13000         (compute_idf): Likewise.
13001         * df-problems.c (df_md_local_compute): Likewise.
13002
13003 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
13004
13005         * target.h (struct gcc_target): Add memory_move_cost field.
13006         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
13007         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
13008         * targhooks.c (default_memory_move_cost): New function.
13009         * targhooks.h (default_memory_move_cost): Declare function.
13010         * reload.h (memory_move_cost): Declare.
13011         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13012         * reginfo.c (memory_move_cost): New function.
13013         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13014         * ira.h (ira_memory_move_cost): Update comment.
13015         * ira.c (ira_memory_move_cost): Update comment.
13016         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
13017         with memory_move_cost.
13018         * postreload.c (reload_cse_simplify_set): (Ditto.).
13019         * reload1.c (choose_reload_regs): (Ditto.).
13020         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
13021         (MEMORY_MOVE_COST):  Revise documentation.
13022
13023         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13024         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13025         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
13026         type of 'in' argument to bool.
13027         (TARGET_MEMORY_MOVE_COST): Define.
13028
13029 2010-06-05  Jan Hubicka  <jh@suse.cz>
13030
13031         * ipa-pure-const.c (propagate): Fix typo in handling of functions
13032         that cannot return.  Be more careful when merging the results with
13033         previously known ones.
13034
13035 2010-06-05  Matthias Klose  <doko@ubuntu.com>
13036
13037         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
13038         function to add the -iplugindir option.
13039         (find_plugindir_spec_function): Add new declaration and function.
13040         (static_spec_func): Use it for "find-plugindir".
13041
13042 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
13043
13044         PR c++/44361
13045         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
13046         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
13047         statement expression.
13048
13049 2010-06-05  Jan Hubicka  <jh@suse.cz>
13050
13051         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
13052         (df_rd_problem_data): Convert sparse_invalidated_by_call,
13053         dense_invalidated_by_call to bitmap head.
13054         (df_rd_alloc, df_rd_bb_local_compute_process_def,
13055         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
13056         df_rd_start_dump, df_lr_verify_transfer_functions,
13057         df_live_verify_transfer_functions, df_chain_create_bb,
13058         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
13059         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
13060         df_simulate_one_insn_forwards, df_md_alloc,
13061         df_md_bb_local_compute_process_def,
13062         df_md_bb_local_compute_process_def, df_md_local_compute,
13063         df_md_transfer_function df_md_free): Update.
13064
13065 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
13066
13067         PR c/44322
13068         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
13069         target type for ADDR_EXPR; require no changes to qualifiers except
13070         for function types.
13071         * c-tree.h (c_build_type_variant): Remove.
13072
13073 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13074
13075         * genautomata.c (get_excl_set): Do work per element, not per char.
13076         (check_presence_pattern_sets): Similar.
13077         (check_absence_pattern_sets): Similar.
13078
13079 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13080
13081         * genautomata.c (curr_state_pass_num): Delete.
13082         (min_issue_delay_pass_states): Delete.
13083         (min_issue_delay): Delete.
13084         (initiate_min_issue_delay_pass_states): Delete.
13085         (output_min_issue_delay_table): Compute min_issue_delay_vect
13086         using a breadth-first search variant.
13087         (output_tables): Don't call initiate_min_issue_delay_pass_states.
13088
13089 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13090
13091         PR boostrap/44421
13092         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
13093         (df_byte_lr_bb_local_compute): Likewise.
13094
13095 2010-06-03  Jason Merrill  <jason@redhat.com>
13096
13097         Implement noexcept operator (5.3.7)
13098         * c-common.c (c_common_reswords): Add noexcept.
13099         * c-common.h (enum rid): Add RID_NOEXCEPT.
13100
13101 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
13102
13103         * config/darwin-driver.c (darwin_default_min_version): Use
13104         GCC-specific formats in diagnostics.
13105         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
13106         diagnostics.
13107         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
13108         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
13109         eval_spec_function, handle_braces, process_brace_body, main,
13110         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
13111         getenv_spec_function, compare_version_strings,
13112         version_compare_spec_function): Use GCC-specific formats in
13113         diagnostics.
13114
13115 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13116
13117         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
13118         that operand 0 and operand 1 are equal.
13119         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
13120         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
13121         and operand 1 are equal.
13122         <default>: Ditto.  Remove ??? comment.
13123         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
13124         and operand 1 are equal.
13125         <default>: Ditto.  Remove ??? comment.
13126         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
13127         are equal.
13128         (*add<mode>_4) <default>: Ditto.
13129         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
13130
13131 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
13132
13133         * config/i386/i386-protos.h (ix86_print_operand): Declare.
13134         * config/i386/i386.c (ix86_print_operand): Make non-static.
13135         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
13136         * output.h (output_operand): Declare.
13137         * final.c (output_operand): Make non-static.
13138
13139 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
13140
13141         PR rtl-optimization/44013
13142         * sched-deps.c (add_dependence_list_and_free): Don't free lists
13143         when processing debug insns.
13144
13145         PR debug/41371
13146         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
13147         recursing.  Check that recursion is bounded.  Rename inner var
13148         to avoid hiding incoming argument.
13149
13150 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13151
13152         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
13153         operands[2] == 255.
13154         (*addqi_3): Ditto.
13155         (*addqi_4): Ditto.
13156         (*addqi_5): Ditto.
13157         (*addqi_ext_1_rex64): Ditto.
13158         (*addqi_ext_1): Ditto.
13159
13160         (*addqi_4): Check for incdec_operand in QImode.
13161
13162         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
13163         using SWI mode iterator.
13164         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
13165         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
13166         mode iterator.
13167         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
13168         using SWI mode iterator.
13169
13170 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13171
13172         PR c/25880
13173         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
13174         * c-format.c (gcc_diag_flag_specs): Add hash.
13175         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
13176         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
13177         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
13178         pp_c_cv_qualifiers. Handle qualifiers spelling here.
13179         (pp_c_type_qualifier_list): Call the function above.
13180         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
13181         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
13182         (WARN_FOR_QUALIFIERS): New macro.
13183         (convert_for_assignment): Use it.
13184
13185 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
13186
13187         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
13188
13189 2010-06-04  Jan Hubicka  <jh@suse.cz>
13190
13191         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
13192         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
13193         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
13194         DF_BYTE_LR_OUT): Update for embedded bitmaps.
13195         * fwprop.c (single_def_use_enter_block): Likewise.
13196         * ddg.c (create_ddg_dep_from_intra_loop_link,
13197         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
13198         * loop-iv.c (latch_dominating_def): Likewise.
13199         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
13200         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
13201         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
13202         df_rd_transfer_function, df_rd_top_dump,
13203         df_rd_bottom_dump): Update.
13204         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
13205         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
13206         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
13207         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
13208         df_lr_verify_solution_start, df_lr_verify_solution_end,
13209         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
13210         df_live_free_bb_info, df_live_alloc, df_live_reset,
13211         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
13212         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
13213         df_live_verify_solution_start, df_live_verify_solution_end,
13214         df_live_verify_transfer_functions, df_chain_create_bb,
13215         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
13216         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13217         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13218         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
13219         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
13220         df_byte_lr_transfer_function, df_byte_lr_top_dump,
13221         df_byte_lr_bottom_dump, df_create_unused_note,
13222         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
13223         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
13224         df_md_transfer_function, df_md_init, df_md_confluence_0,
13225         df_md_confluence_n,
13226         df_md_top_dump, df_md_bottom_dump): Update.
13227         (struct df_lr_problem_data): Embedd bitmap headers.
13228
13229 2010-06-04  Jan Hubicka  <jh@suse.cz>
13230
13231         * dce.c (dce_process_block): Do not re-scan already marked
13232         instructions.
13233
13234 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
13235
13236         PR rtl-optimization/39871
13237         PR rtl-optimization/40615
13238         PR rtl-optimization/42500
13239         PR rtl-optimization/42502
13240         * ira.c (init_reg_equiv_memory_loc: New function.
13241         (ira): Call it twice.
13242         * reload.h (calculate_elim_costs_all_insns): Declare.
13243         * ira-costs.c: Include "reload.h".
13244         (regno_equiv_gains): New static variable.
13245         (init_costs): Allocate it.
13246         (finish_costs): Free it.
13247         (ira_costs): Call calculate_elim_costs_all_insns.
13248         (find_costs_and_classes): Take estimated elimination costs
13249         into account.
13250         (ira_adjust_equiv_reg_cost): New function.
13251         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
13252         * reload1.c (init_eliminable_invariants, free_reg_equiv,
13253         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
13254         (elim_bb): New static variable.
13255         (reload): Move code out of here into init_eliminable_invariants and
13256         free_reg_equiv.  Call them.
13257         (calculate_elim_costs_all_insns): New function.
13258         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
13259         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
13260         but call note_reg_elim_costly if we turned a valid memory address
13261         into an invalid one.
13262         * Makefile.in (ira-costs.o): Depend on reload.h.
13263
13264 2010-06-04  Julian Brown  <julian@codesourcery.com>
13265
13266         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
13267         for pool ranges.
13268
13269 2010-06-04  Richard Guenther  <rguenther@suse.de>
13270
13271         PR lto/41584
13272         * cgraph.h (struct varpool_node): Add lto_file_data field.
13273         * lto-cgraph.c (input_varpool_node): Initialize it.
13274
13275 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13276
13277         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
13278         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
13279         predicate in "type" attribute calculation.
13280         (*addsi_1_zext): Ditto.
13281         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
13282         (*addsi_2_zext): Ditto.
13283         (*add<mode>_3): Ditto.
13284         (*addsi_3_zext): Ditto.
13285         (*add<mode>_5): Ditto.
13286
13287 2010-06-03  Jan Hubicka  <jh@suse.cz>
13288
13289         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
13290         of bitmap_bit_p.
13291         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13292
13293 2010-06-03  Jan Hubicka  <jh@suse.cz>
13294
13295         * df-problems.c (df_create_unused_note, df_note_bb_compute):
13296         micro-optimize the checks when to add new note.
13297
13298 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
13299
13300         * final.c (output_asm_insn): Call
13301         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
13302         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
13303         (output_address): Call targetm.asm_out.print_operand_address.
13304         Update comments.
13305         * target.h (struct gcc_target): Add print_operand,
13306         print_operand_address, and print_operand_punct_valid_p fields.
13307         * targhooks.h (default_print_operand): Declare.
13308         (default_print_operand_address): Declare.
13309         (default_print_operand_punct_valid_p): Declare.
13310         * targhooks.c (default_print_operand): Define.
13311         (default_print_operand_address): Define.
13312         (default_print_operand_punct_valid_p): Define.
13313         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
13314         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
13315         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
13316         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
13317         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
13318         * vmsdbgout.c (addr_const_to_string): Update comment.
13319         * config/i386/i386.c (print_operand): Rename to...
13320         (ix86_print_operand): ...this.  Make static.
13321         (print_operand_address): Rename to...
13322         (ix86_print_operand_address): ...this.  Make static.  Call
13323         ix86_print_operand instead of PRINT_OPERAND.
13324         (ix86_print_operand_punct_valid_p): New function.
13325         (TARGET_PRINT_OPERAND): Define.
13326         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13327         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13328         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
13329         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13330         (PRINT_OPERAND): Delete.
13331         (PRINT_OPERAND_ADDRESS): Delete.
13332         * config/i386/i386-protos.h (print_operand): Delete prototype.
13333         (print_operand_address): Delete prototype.
13334
13335 2010-06-03  Richard Guenther  <rguenther@suse.de>
13336
13337         PR tree-optimization/44403
13338         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13339         Preserve pointer qualifiers.
13340         (vect_create_data_ref_ptr): Likewise.
13341
13342 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13343
13344         PR c++/44294
13345         * defaults.h (MAX_FIXED_MODE_SIZE): New.
13346
13347         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
13348
13349 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
13350
13351         PR debug/44375
13352         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
13353         return false if merging the bbs would lead to goto_locus
13354         location being lost from the IL.
13355
13356 2010-06-03  Jan Hubicka  <jh@suse.cz>
13357             Jakub Jelinek  <jakub@redhat.com>
13358
13359         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
13360         set->regs[i] is NULL or has just one entry.
13361
13362 2010-06-03  Jan Hubicka  <jh@suse.cz>
13363
13364         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
13365         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
13366
13367 2010-06-03  Paul Brook  <paul@codesourcery.com>
13368
13369         * config/arm/arm.c (FL_TUNE): Define.
13370         (arm_default_cpu, arm_cpu_select): Remove.
13371         (all_cores): Populate core field.
13372         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
13373         (arm_find_cpu): New function.
13374         (arm_handle_option): Lookup cpu/architecture names.
13375         (arm_override_options): Cleanup mcpu/march/mtune handling.
13376         (arm_file_start): Ditto.
13377
13378 2010-06-03  Alan Modra  <amodra@gmail.com>
13379
13380         PR target/44169
13381         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
13382         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
13383         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
13384         (rs6000_emit_load_toc_table): Likewise.
13385
13386 2010-06-02  Jan Hubicka  <jh@suse.cz>
13387
13388         * passes.c (init_optimization_passes): Put ipa reference
13389         after ipa pure-const.
13390
13391 2010-06-02  Jan Hubicka  <jh@suse.cz>
13392
13393         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
13394         calls_read_all and calls_write_all.
13395         (get_reference_optimization_summary): Fix formatting.
13396         (is_proper_for_analysis): Check that decl is not readonly.
13397         (propagate_bits): Check CONST/PURE/noreturn flags.
13398         (ipa_init): Move all_module_statics to optimization_summary_obstack.
13399         (analyze_function): Ignore indirect edges.
13400         (copy_global_bitmap): For all module statics, do nothing.
13401         (generate_summary): Do not print calls_read_all/calls_write_all.
13402         (read_write_all_from_decl): Take node as argument; check
13403         cgraph_node_cannot_return.
13404         (propagate): Reorganize read_all/write_all computation;
13405         check indirect edges; check ecf flags; use all_module_statics
13406         in the results; do not free all_module_statics.
13407         (stream_out_bitmap): Handle all_module_statics.
13408         (ipa_reference_write_optimization_summary): Likewise; use
13409         varpool/cgraph encoders to get boundaries.
13410         (ipa_reference_read_optimization_summary): Read in all_module_statics;
13411         use it when possible.
13412
13413 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13414
13415         PR target/44218
13416         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
13417         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
13418
13419         * doc/extend.texi (powerpc builtins): Document vec_recip,
13420         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
13421
13422         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
13423         (rs6000_emit_swrsqrt): Ditto.
13424         (rs6000_emit_swdivsf): Delete.
13425         (rs6000_emit_swdivdf): Ditto.
13426         (rs6000_emit_swrsqrtsf): Ditto.
13427
13428         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
13429         describe the reciprocal estimate support for each type.
13430         (recip_options): Map -mrecip=<opt> into option bits.
13431         (gen_2arg_fn_t): New typedef for binary rtx gen function.
13432         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
13433         reciprocal estimate instructions.
13434         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
13435         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
13436         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
13437         cost information if -mdebug=cost or -mdebug=reg.
13438         (rs6000_override_options): Set -mrecip-precision for power6, and
13439         power7 machines.  If -mvsx or -mdfp, enable various options that
13440         came in previous instruction set ISAs, unless the option was
13441         explicitly disabled by the command line option.  Parse
13442         -mrecip=<opt> options.
13443         (rs6000_builtin_vectorized_function): Add support for vectorizing
13444         the reciprocal estimate builtins and expansions.
13445         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
13446         (bdesc_2arg): Add reciprocal estimate builtins.
13447         (bdesc_1arg): Add reciprocal square root estimate builtins.
13448         (rs6000_expand_builtin): Rewrite to use a switch statement,
13449         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
13450         (rs6000_init_builtins): Create declarations for reciprocal
13451         estimate builtins.
13452         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
13453         sized, prefer traditional floating point registers, if integer
13454         vector types, prefer altivec registers.  Don't actually look at
13455         the memory address any more.
13456         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
13457         builtins.
13458         (rs6000_load_constant_and_splat): New helper function to load up
13459         the constant for reciprocal estimate instructions.
13460         (rs6000_emit_madd): New helper function for generating
13461         multiply/add type instructions, based on the current switches.
13462         (rs6000_emit_msub): Ditto.
13463         (rs6000_emit_mnsub): Ditto.
13464         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
13465         replace a divide with a reciprocal estimate and fixup, adding
13466         support for machines with high precision and vectors.
13467         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
13468         low precision machines.
13469         (rs6000_emit_swdiv): New common function to be called to replace a
13470         division with reciprocal estimate and fixup.
13471         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
13472         for double and vector types.  Add support for high precision machines.
13473
13474         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
13475         the reciprocal estimate instructions can be generated.
13476         (TARGET_FRE): Ditto.
13477         (TARGET_FRSQRTES): Ditto.
13478         (TARGET_FRSQRTE): Ditto.
13479         (RS6000_RECIP_*): New macros for reciprocal estimate support.
13480
13481         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
13482         square root estimate on vectors.
13483         (re<mode>2): New insn for reciprocal division estimate on vectors.
13484
13485         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
13486         New builtin.
13487         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
13488         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
13489         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
13490         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
13491         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
13492         (RS6000_BUILTIN_RSQRT): Ditto.
13493         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
13494         floating point builtin.
13495
13496         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13497         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
13498         __RECIP_PRECISION__ based on the command line switches.
13499         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
13500
13501         * config/rs6000/rs6000.opt (-mrecip): Document add support for
13502         replacing division instructions with reciprocal estimate and fixup.
13503         (-mrecip=<opt>): New option.
13504         (-mrecip-precision): Ditto.
13505
13506         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
13507         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
13508         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
13509         precision scalar.
13510
13511         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
13512         (UNSPEC_VREFP): Ditto.
13513         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
13514         conterparts with regard to support of -mno-fused-madd and -ffast-math.
13515         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
13516         reciprocal estimate instructions to be generated.
13517         (altivec_vrefp): Ditto.
13518
13519         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
13520         estimate support.
13521         (rreg): New mode attribute for reciprocal estimate support.
13522         (recip<mode>3): New insn for division using reciprocal estimate
13523         and fixup builtins.
13524         (divide define_split): New define_split to convert floating point
13525         division to use reciprocal estimate if the user used the
13526         appropriate options and the split is run when we can add new
13527         pseudo registers for the fixup.
13528         (rsqrt<mode>2): New insn for reciprocal square root support.
13529         (recipsf3): Move into recip<mode>3.
13530         (recipdf3): Ditto.
13531         (fres): Use TARGET_FRES.
13532         (rsqrtsf2): Move into rsqrt<mode>2.
13533         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
13534         (copysignsf3): Add support for VSX.
13535         (fred): Use TARGET_FRE.
13536         (fred_fpr): Ditto.
13537         (rsqrtdf_internal1): New function for frsqrte instruciton.
13538
13539         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
13540         (vec_rsqrt): Ditto.
13541
13542 2010-06-03  Richard Guenther  <rguenther@suse.de>
13543
13544         PR middle-end/44291
13545         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
13546         (set_user_assembler_libfunc): Likewise.
13547
13548 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13549
13550         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
13551         defaults.h.
13552         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
13553         to defaults.h
13554         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
13555         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
13556         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
13557         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
13558         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
13559         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
13560         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
13561         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
13562         * defaults.h: Updated for above mentioned changes.
13563
13564 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
13565
13566         * c-common.c: Remove header include of tm_p.h.
13567         * Makefile.in (c-common.o): Remove TM_P_H dependency.
13568
13569 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
13570
13571         * tree.h (struct tree_decl_map): New type.
13572         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
13573         (tree_decl_map_hash): New prototype.
13574         (debug_expr_for_decl, value_expr_for_decl): Change into
13575         tree_decl_map hashtab from tree_map.
13576         (init_ttree): Adjust initialization.
13577         (tree_decl_map_hash): New function.
13578         (decl_debug_expr_lookup, decl_debug_expr_insert,
13579         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
13580
13581 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13582
13583         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
13584         linker emulations.
13585         * configure: Regenerate.
13586         * config.in: Regenerate.
13587
13588         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
13589         (X86_64_EMULATION): Define.
13590         (TARGET_LD_EMULATION): Use them.
13591
13592         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
13593         (SPARC64_EMULATION): Define.
13594         (LINK_ARCH_SPEC): Use them.
13595
13596 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13597
13598         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
13599         smallest_mode_for_size for computing the precision types of new
13600         graphite IVs.  Do not call lang_hooks.types.type_for_size.
13601
13602 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13603
13604         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
13605         information.
13606         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
13607
13608 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13609
13610         PR middle-end/44363
13611         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
13612         return false instead.
13613
13614 2010-06-02  Jan Hubicka  <jh@suse.cz>
13615
13616         PR middle-end/44295
13617         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
13618         create new cgraph node to check callee.
13619
13620 2010-06-02  Richard Guenther  <rguenther@suse.de>
13621
13622         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
13623
13624 2010-06-02  Richard Guenther  <rguenther@suse.de>
13625
13626         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
13627         (lto_wrapper_cleanup): ... this.  Do not exit.
13628         (fatal): Adjust.  Exit here.
13629         (fatal_perror): Likewise.
13630         (fatal_signal): New function.
13631         (main): Set up signal handlers to cleanup temporary files.
13632         * Makefile.in (lto-wrapper.o): Adjust dependencies.
13633
13634 2010-06-02  Richard Guenther  <rguenther@suse.de>
13635
13636         PR tree-optimization/44377
13637         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
13638
13639 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13640
13641         * config/s390/2097.md (z10_fhex): Remove insn reservation.
13642         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
13643         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
13644         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
13645         instruction.
13646         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
13647
13648 2010-06-02  Jan Hubicka  <jh@suse.cz>
13649
13650         * bitmap.c (bitmap_descriptor): Add search_iter.
13651         (bitmap_find_bit): Increment it.
13652         (print_statistics): Print it.
13653
13654 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
13655
13656         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
13657         instead of gimple_build_call_vec.  Delete unnecessary local variable.
13658
13659 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13660
13661         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
13662         change from yesterday.
13663
13664 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13665
13666         * c-ada-spec.c: Clean up redundant includes.
13667
13668 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
13669
13670         * gimplify.c: Do not include except.h and optabs.h.
13671         (gimplify_body): Do not initialize RTL profiling.
13672         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
13673         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
13674         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
13675         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
13676         langhooks.h.
13677
13678         * tree-pretty-print.h: Include pretty-print.h.
13679         * gimple-pretty-print.h: Include pretty-print.h.
13680
13681         * tree-pretty-print.c: Do not include diagnostic.h.
13682         * tree-vrp.c: Likewise.
13683         * tree-tailcall.c: Likewise
13684         * tree-scalar-evolution.c: Likewise
13685         * tree-ssa-dse.c: Likewise
13686         * tree-chrec.c: Likewise
13687         * tree-ssa-sccvn.c: Likewise
13688         * tree-ssa-copyrename.c: Likewise
13689         * tree-nomudflap.c: Likewise
13690         * tree-call-cdce.c: Likewise
13691         * tree-stdarg.c: Likewise
13692         * tree-ssa-math-opts.c: Likewise
13693         * tree-nrv.c: Likewise
13694         * tree-ssa-sink.c: Likewise
13695         * tree-browser.c: Likewise
13696         * tree-ssa-loop-ivcanon.c: Likewise
13697         * tree-ssa-loop.c: Likewise
13698         * tree-parloops.c: Likewise
13699         * tree-ssa-address.c: Likewise
13700         * tree-ssa-ifcombine.c: Likewise
13701         * tree-if-conv.c: Likewise
13702         * tree-data-ref.c: Likewise
13703         * tree-affine.c: Likewise
13704         * tree-ssa-phiopt.c: Likewise
13705         * tree-ssa-coalesce.c: Likewise
13706         * tree-ssa-pre.c: Likewise
13707         * tree-ssa-live.c: Likewise
13708         * tree-predcom.c: Likewise
13709         * tree-ssa-forwprop.c: Likewise
13710         * tree-ssa-dce.c: Likewise
13711         * tree-ssa-ter.c: Likewise
13712         * tree-ssa-loop-prefetch.c: Likewise
13713         * tree-optimize.c: Likewise
13714         * tree-ssa-phiprop.c: Likewise
13715         * tree-object-size.c: Likewise
13716         * tree-outof-ssa.c: Likewise
13717         * tree-ssa-structalias.c: Likewise
13718         * tree-switch-conversion.c: Likewise
13719         * tree-ssa-reassoc.c: Likewise
13720         * tree-ssa-operands.c: Likewise
13721         * tree-vectorizer.c: Likewise
13722         * tree-vect-data-refs.c: Likewise
13723         * tree-vect-generic.c: Likewise
13724         * tree-vect-stmts.c: Likewise
13725         * tree-vect-patterns.c: Likewise
13726         * tree-vect-slp.c: Likewise
13727         * tree-vect-loop.c: Likewise
13728         * tree-ssa-loop-ivopts.c: Likewise
13729         * tree-ssa-loop-im.c: Likewise
13730         * tree-ssa-loop-niter.c: Likewise
13731         * tree-ssa-loop-unswitch.c: Likewise
13732         * tree-ssa-loop-manip.c: Likewise
13733         * tree-ssa-loop-ch.c: Likewise
13734         * tree-dump.c: Likewise
13735         * tree-complex.c: Likewise
13736
13737         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
13738         * tree-ssa-uninit.c: Likewise
13739         * tree-ssa-threadupdate.c: Likewise
13740         * tree-ssa-uncprop.c: Likewise
13741         * tree-ssa-ccp.c: Likewise
13742         * tree-ssa-dom.c: Likewise
13743         * tree-ssa-propagate.c: Likewise
13744         * tree-ssa-alias.c: Likewise
13745         * tree-dfa.c: Likewise
13746         * tree-cfgcleanup.c: Likewise
13747         * tree-sra.c: Likewise
13748         * tree-ssa-copy.c: Likewise
13749         * tree-ssa.c: Likewise
13750         * tree-profile.c: Likewise
13751         * tree-cfg.c: Likewise
13752         * tree-ssa-threadedge.c: Likewise
13753         * tree-vect-loop-manip.c: Likewise
13754
13755         * tree-inline.c: Do not include diagnostic.h and expr.h.
13756         Include rtl.h.
13757         (copy_decl_for_dup_finish): Do not use NULL_RTX.
13758
13759         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
13760         * tree-loop-distribution.c: Likewise.
13761
13762 2010-06-01  Jan Hubicka  <jh@suse.cz>
13763
13764         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
13765
13766 2010-06-01  Jan Hubicka  <jh@suse.cz>
13767
13768         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
13769         remove return value.
13770         (split_bbs_on_noreturn_calls) .... here.
13771         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
13772         * tree-flow.h (fixup_noreturn_call): New.
13773
13774 2010-06-01  Jan Hubicka  <jh@suse.cz>
13775
13776         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
13777
13778 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
13779
13780         * tree.h (build_nt_call_list): Delete.
13781         * tree.c (build_nt_call_list): Delete.
13782
13783 2010-06-01  Jan Hubicka  <jh@suse.cz>
13784
13785         * fwprop.c: Make emit-rtl.h include last.
13786         * rtlanal.c: Include emit-rtl.h.
13787         * genautomata.c: Output emit-rtl include into insn-automata.c
13788         * df-scan.c: Include emit-rtl.h.
13789         * haifa-sched.c: Indlude emit-rtl.h.
13790         * mode-switching.c: Indlude emit-rtl.h.
13791         * graph.c: Indlude emit-rtl.h.
13792         * sel-sched.c: Include emit-rtl.h.
13793         * sel-sched-ir.c: Include emit-rtl.h.
13794         * ira-build.c: Include emit-rtl.h.
13795         * emit-rtl.c (first_insn, last_insn): Remove defines.
13796         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
13797         Move to emit-rtl.h.
13798         (set_new_first_and_last_insn, get_last_insn_anywhere,
13799         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
13800         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
13801         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
13802         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
13803         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
13804         Use accessor functions.
13805         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13806          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13807         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13808         mem_expr_equal_p): Move here from rtl.h.
13809         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
13810         Move here from emit-rtl.c; make inline.
13811         * cfglayout.h: Include emit-rtl.h.
13812         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13813          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13814         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13815         mem_expr_equal_p, get_insns, set_first-insn,
13816         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
13817         * reg-stack.c: Include emit-rtl.h.
13818         * dce.c: Likewise.
13819
13820 2010-06-01  Jan Hubicka  <jh@suse.cz>
13821
13822         * cgraph.h (tree_function_versioning): Update prototype.
13823         (cgraph_function_versioning): Update prototype.
13824         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
13825         bitmap.
13826         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
13827         (cgraph_materialize_clone, save_inline_function_body): Update use of
13828         tree_function_versioning.
13829         * tree-inline.c (copy_bb): Look for previous copied block to link
13830         after; fix debug output.
13831         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
13832         (copy_body): Likewise.
13833         (expand_call_inline): Update use of copy_body.
13834         (tree_function_versioning): Update use of copy body; accept
13835         blocks_to_copy and new_entry.
13836
13837 2010-06-01  Jan Hubicka  <jh@suse.cz>
13838
13839         * gegenrtl.c: Remove unnecesary prototypes.
13840         (gendecl): Remove.
13841         (gendef): Produce static inline.
13842         (gencode): Remove.
13843         (main): Do not decode parameters; generate header only.
13844         * Makefile.in (genrtl.c): Remove.
13845
13846 2010-06-01  Jan Hubicka  <jh@suse.cz>
13847
13848         * tree-switch-conversion.c (build_one_array): Make it readonly.
13849
13850 2010-06-01  Richard Guenther  <rguenther@suse.de>
13851
13852         * optabs.c (init_optabs): Guard all accesses to reinit.
13853         * ipa-pure-const.c (propagate): Fix another typo.
13854         * opts.c (common_handle_option): Split assignment to bool.
13855         * c-opts.c (c_common_handle_option): Likewise.
13856
13857 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
13858             Matthew Gingell  <gingell@adacore.com>
13859
13860         * doc/invoke.texi: Mention -fdump-ada-spec.
13861         * tree-dump.c (dump_files): Add ada-spec.
13862         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
13863         * tree-pass.h (tree_dump_index): Add TDI_ada.
13864         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
13865         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
13866         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
13867         * c-decl.c: Include c-ada-spec.h.
13868         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
13869         functions.
13870         (c_write_global_declarations): Add handling of -fdump-ada-spec.
13871         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
13872         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
13873         * c-ada-spec.h, c-ada-spec.c: New files.
13874
13875 2010-06-01  Richard Guenther  <rguenther@suse.de>
13876
13877         PR lto/43853
13878         * ipa-pure-const.c (get_function_state): Hand back varying state
13879         if we do not have one.
13880         (has_function_state): New function.
13881         (duplicate_node_data): Adjust.
13882         (remove_node_data): Likewise.
13883         (pure_const_write_summary): Likewise.
13884         (propagate): Likewise.  Fix typo.
13885
13886 2010-06-01  Jan Hubicka  <jh@suse.cz>
13887
13888         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
13889         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
13890         (execute_all_ipa_transforms): Do not play with the states.
13891
13892 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13893
13894         * config/arm/t-linux-androideabi: New.
13895         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
13896
13897 2010-06-01  Jan Hubicka  <jh@suse.cz>
13898
13899         * tree-inline.c (estimate_num_insns): For stdarg functions look
13900         into call statement to count cost of argument passing.
13901
13902 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
13903
13904         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
13905         argument for fprintf.
13906         (ix86_output_addr_diff_elt): Likewise.
13907         (x86_function_profiler): Likewise.
13908         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
13909         (LPREFIX): Likewise.
13910         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
13911
13912 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13913
13914         PR target/44338
13915         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
13916         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
13917         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
13918         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
13919         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
13920         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
13921         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
13922         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
13923         TARGET_FUSED_MADD.
13924
13925 2010-05-31  Jan Hubicka  <jh@suse.cz>
13926
13927         * tree.h (tree_range_check_failed): Declare noreturn.
13928
13929 2010-05-31  Jan Hubicka  <jh@suse.cz>
13930
13931         * gimple.c (gimple_call_builtin_p): New function.
13932         * gimple.h (gimple_call_builtin_p): Declare.
13933         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
13934         to exit.
13935         (execute_warn_function_return): BUILT_IN_RETURN is return.
13936         (split_critical_edges): Return edges are not critical.
13937         (is_ctrl_altering_stmt): Builtin_in_return is altering.
13938         (gimple_verify_flow_info): Handle built_in_return.
13939         (execute_warn_function_return): Handle built_in_return.
13940         * ipa-pure-const.c (check_call): Ignore builtin_return.
13941
13942 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13943
13944         PR middle-end/44337
13945         * expr.c (expand_assignment): Don't store anything for out-of-bounds
13946         array accesses with non-MEM.
13947
13948         PR tree-optimization/44182
13949         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
13950         newly needs to end a bb is followed by debug stmts, instead return
13951         true from the function at the end.
13952         (maybe_move_debug_stmts_to_successors): New function.
13953         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
13954
13955 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
13956
13957         PR target/44161
13958         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
13959
13960 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
13961
13962         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
13963         for nested functions in non-optimized compilation.
13964
13965 2010-05-31  Richard Guenther  <rguenther@suse.de>
13966
13967         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
13968
13969 2010-05-30  Jan Hubicka  <jh@suse.cz>
13970
13971         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
13972
13973 2010-05-30  Richard Guenther  <rguenther@suse.de>
13974
13975         PR lto/42975
13976         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
13977         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
13978         no longer needed.
13979
13980 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
13981
13982         * config/darwin.c (output_objc_section_asm_op): Add comment.
13983         (name_needs_quotes): Add '_' to list of valid comment chars.
13984         (machopic_output_function_base_name): Remove unneeded quotes.
13985         (darwin_encode_section_info): Adjust asm whitespace.
13986         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
13987         (ASM_OUTPUT_LOCAL): Ditto.
13988         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
13989         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
13990         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
13991
13992 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
13993
13994         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
13995         RS6000_OUTPUT_BASENAME unconditionally.
13996         (rs6000_output_function_epilogue): Likewise.
13997
13998 2010-05-30  Jan Hubicka  <jh@suse.cz>
13999
14000         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
14001         nodes.
14002
14003 2010-05-30  Richard Guenther  <rguenther@suse.de>
14004
14005         * tree-cfg.c (verify_gimple_assign_single): Implement
14006         verification for COND_EXPR rhs.
14007
14008 2010-05-30  Jan Hubicka  <jh@suse.cz>
14009
14010         * cgraph.h (cgraph_dump_file): Declare.
14011         * cgraphunit.c (cgraph_dump_file): Export.
14012         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
14013
14014 2010-05-30  Jan Hubicka  <jh@suse.cz>
14015
14016         * dwarf2out.c (reference_to_unused,
14017         premark_types_used_by_global_vars_helper): Avoid creation of new
14018         varpool nodes.
14019
14020 2010-05-30  Jan Hubicka  <jh@suse.cz>
14021
14022         * cgraph.h (cgraph_node_cannot_return,
14023         cgraph_edge_cannot_lead_to_return): New functions.
14024         * cgraph.c (cgraph_node_cannot_return,
14025         cgraph_edge_cannot_lead_to_return): Use them.
14026         * ipa-pure-const.c (pure_const_names): New static var.
14027         (check_call): Handle calls not leading to return.
14028         (pure_const_read_summary): Dump info read.
14029         (propagate): Dump info about propagation process; ignore side effects
14030         of functions not leading to exit; fix handling of pure functions.
14031
14032 2010-05-30  Jan Hubicka  <jh@suse.cz>
14033
14034         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
14035         for tail call epilogues.
14036
14037 2010-05-30  Jan Hubicka  <jh@suse.cz>
14038
14039         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
14040         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
14041         dump files.
14042
14043 2010-05-29  Jan Hubicka  <jh@suse.cz>
14044
14045         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
14046         node; remove references in node we no longer keep in cgrpah but need
14047         body of.
14048
14049 2010-05-29  Jan Hubicka  <jh@suse.cz>
14050
14051         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
14052
14053 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14054
14055         PR target/44165
14056         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
14057
14058 2010-05-29  Jan Hubicka  <jh@suse.cz>
14059
14060         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
14061         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
14062         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
14063         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
14064         debug_names_replaced_by, debug_update_ssa): Likewise.
14065         * sbitmap.c (debug_sbitmap): Likewise.
14066         * genrecog.c (debug_decision, debug_decision_list): Likewise.
14067         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
14068         debug_tree_chain): Likewise.
14069         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
14070         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
14071         * optabs.c (debug_optab_libfuncs): Likewise.
14072         (verify_loop_closed_ssa): Likewise.
14073         * value-prof.c (verify_histograms): Likewise.
14074         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
14075         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
14076         * cfghooks.c (verify_flow_info): Likewise.
14077         * fold-const.c (debug_fold_checksum): Likewise.
14078         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
14079         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
14080         Likewise.
14081         * omega.c (debug_omega_problem): Likewise.
14082         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
14083         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
14084         * dominance.c (verify_dominators, debug_dominance_info,
14085         debug_dominance_tree): Likewise.
14086         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
14087         * df_regno_debug, df_ref_debug,
14088         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
14089         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
14090         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
14091         * sel-sched.c (debug_state): Likewise.
14092         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
14093         Likewise.
14094         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
14095         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
14096         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
14097         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
14098         Likewise.
14099         * c-pretty-print.c (debug_c_tree): Likewise.
14100         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
14101         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
14102         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
14103         * ebitmap.c (debug_ebitmap): Likewise.
14104         * function.c (debug_find_var_in_block_tree): Likewise.
14105         * print-rtl.c (debug_rtx): Likewise.
14106         (debug_rtx_count): Likewise.
14107         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
14108         * stor-layout.c (debug_rli): Likewise.
14109         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
14110         * tree-data-ref.c (debug_data_references,
14111         debug_data_dependence_relations, debug_data_reference,
14112         debug_data_dependence_relation, debug_rdg_vertex,
14113         debug_rdg_component, debug_rdg): Likewise.
14114         * tree-affine.c (debug_aff): Likewise.
14115         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
14116         Likewise.
14117         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
14118         * emit-rtl.c (verify_rtl_sharing): Likewise.
14119         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
14120         debug_value_expressions): Likewise.
14121         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
14122         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
14123         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
14124         * cfglayout.c (verify_insn_chain): Likewise.
14125         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
14126         debug_clast_stmt, debug_generated_program): Likewise.
14127         * ggc-page.c (debug_print_page_list): Likewise.
14128         * tree-ssa-ter.c (debug_ter): Likewise.
14129         * graphite-dependences.c (debug_pddr): Likewise.
14130         * sched-deps.c (debug_ds): Likewise.
14131         * tree-ssa.c (verify_ssa): Likewise.
14132         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
14133         debug_scattering_functions, debug_iteration_domains, debug_pdr,
14134         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
14135         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
14136         * tree-inline.c (debug_find_tree): Likewise.
14137         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
14138         debug_ppl_powerset_matrix): Likewise.
14139         * var-tracking.c (debug_dv): Likewise.
14140         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
14141         * cfgloop.c (verify_loop_structure): Likewise.
14142         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
14143         * c-common.c (verify_sequence_points): Likewise.
14144         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
14145         debug_candidates, debug_rgn_dependencies): Likewise.
14146         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
14147         * debug_constraint_graph, debug_solution_for_var,
14148         debug_sa_points_to_info): Likewise.
14149         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
14150         Likewie.
14151         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
14152         debug_loops, debug_loop, debug_loop_num): Likewise.
14153         * passes.c (debug_pass): Likewise.
14154         (dump_properties): Likewise; add cfglayout property.
14155         (debug_properties): Likewise.
14156         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
14157         * varpool.c (debug_varpool): Likewise.
14158         * regcprop.c (debug_value_data): Likewise.
14159         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
14160         debug_immediate_uses_for): Likewise.
14161
14162 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14163
14164         PR bootstrap/44315
14165         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
14166         Filter out insn-flags.h.
14167
14168 2010-05-29  Jan Hubicka  <jh@suse.cz>
14169
14170         * cgraph.h (struct varpool_node_set_def,
14171         struct cgraph_node_set_def): Remove unused AUX pointer.
14172         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
14173         VEC_empty macro.
14174
14175 2010-05-29  Jan Hubicka  <jh@suse.cz>
14176
14177         PR middle-end/44324
14178         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
14179
14180 2010-05-29  Richard Guenther  <rguenther@suse.de>
14181
14182         * lto-streamer.c (cached_bp): New global variable.
14183         (bitpack_create): Return the cached bitpack, if available.
14184         (bitpack_delete): Clear and cache the bitpack, if appropriate.
14185         (bp_pack_value): Remove redundant asserts.
14186
14187 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14188
14189         PR middle-end/44306
14190         * tree-if-conv.c (is_true_predicate): New.
14191         (is_predicated): Use is_true_predicate.
14192         (add_to_predicate_list): Same.  Do not use unshare_expr.
14193         (add_to_dst_predicate_list): Same.
14194
14195 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14196
14197         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
14198         field on edges.
14199         (predicate_bbs): Same.
14200         (clean_predicate_lists): Same.
14201         (find_phi_replacement_condition): Do not AND the predicate from
14202         edge->aux.
14203
14204 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14205
14206         PR bootstrap/44315
14207         * Makefile.in (build/gencondmd.o): Add a missing `\'.
14208
14209 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14210
14211         PR target/44261
14212         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
14213         (negdf2): Adjust expander pattern and use negdf2_slow.
14214         (negsf2): Likewise.
14215
14216 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
14217
14218         * basic-block.h (struct control_flow_graph): Move last_label_uid field
14219         up.
14220         * df.h (struct df_base_ref): Move regno field up.
14221         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
14222         * expr.h (struct separate_ops): Move location field up.
14223         * optabs.h (struct optab_d): Move libcall_basename field down.
14224         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
14225         * config/i386/i386.h (struct machine_function): Convert call_abi field
14226         into a bitfield.  Move cfa field to the end of the structure.
14227
14228 2010-05-29  Jan Hubicka  <jh@suse.cz>
14229
14230         * varpool.c (varpool_get_node): Fix lookup.
14231
14232 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14233
14234         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
14235         RTL specific prototypes with #ifdef RTX_CODE.
14236         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
14237         * config/spu/t-spu-elf: Fix dependencies.
14238
14239         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
14240
14241 2010-05-29  Mike Stump  <mikestump@comcast.net>
14242
14243         PR bootstrap/44315
14244         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
14245         TM_H when building to avoid dependency loops.
14246
14247 2010-05-29  Jan Hubicka  <jh@suse.cz>
14248
14249         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
14250         refs and body; not the whole node for masters of materialized clones.
14251
14252 2010-05-29  Mike Stump  <mikestump@comcast.net>
14253
14254         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
14255
14256 2010-05-29  Jan Hubicka  <jh@suse.cz>
14257
14258         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
14259         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
14260         use of clone_function_name.
14261         * cgraph.h (cgraph_create_virtual_clone,
14262         cgraph_function_versioning): update prototypes.
14263         (clone_function_name): Declare.
14264         * ipa-cp.c (ipcp_insert_stage): Update call of
14265         cgraph_create_virtual_clone.
14266         * omp-low.c (create_omp_child_function_name): Use
14267         cgraph_create_virtual_clone.
14268         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
14269         (cgraph_function_versioning): Take SUFFIX argument; produce new name
14270         and make decl local.
14271
14272 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14273
14274         * vec.h: Include statistics.h
14275         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
14276         with VEC_H.
14277
14278 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14279
14280         * c-lex.c: Do not include c-tree.h.
14281         * c-pretty-print.c: Likewise.
14282         * c-opts.c: Likewise.
14283         * c-gimplify.c: Likewise.
14284         * c-common.c: Likewise.
14285         * c-dump.c: Likewise.  Include c-common.h.
14286
14287 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14288
14289         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
14290         before including diagnostic-core.h.
14291         (c_cpp_error): New prototype moved from c-tree.h.
14292         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
14293         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
14294         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
14295         (c_cpp_error): Prototype moved to c-common.h.
14296         * Makefile.in: Update dependency for C_COMMON_H.
14297
14298 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14299
14300         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
14301         * c-common.c (c_register_addr_space): Remove here.
14302         * c-decl.c (c_register_addr_space): Re-add here.
14303
14304 2010-05-28  Mike Stump  <mikestump@comcast.net>
14305
14306         * config/darwin-c.c: Remove c-tree.h include.
14307
14308 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14309
14310         * gcc.c: Include diagnostic.h.
14311         (error_count): Remove.  All users changed to use errorcount.
14312         (programname): Remove.  All users changed to use progname.
14313         (fancy_abort, internal_error, fatal_error, error, warning, inform,
14314         fnotice): Remove.
14315         (execute): Don't include "Internal error" and bug reporting
14316         information in argument of internal_error call.
14317         (process_command): Don't increment error_count after calling
14318         perror_with_name.
14319         (input_filename): Rename to gcc_input_filename.  All users
14320         changed.
14321         (main): Call diagnostic_initialize.  Register delete_temp_files
14322         with atexit.  Use seen_error to test for errors.
14323         * gcc.h: Include diagnostic-core.h.
14324         (fatal_error, error, warning): Remove.
14325         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
14326         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
14327         (gcc.o): Update dependencies.
14328
14329 2010-05-28  Jeff Law  <law@redhat.com>
14330
14331         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
14332         functions.
14333         * ira.h (ira_bad_reload_regno): Declare
14334         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
14335
14336         * ira-color.c (update_curr_costs): Free updated hard reg costs.
14337         (ira_reassign_conflict_allocnos): Remove bogus asserts.
14338         (allocno_reload_assign): Likewise.
14339
14340 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
14341
14342         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
14343         build1_stat.
14344
14345 2010-05-28  Richard Guenther  <rguenther@suse.de>
14346
14347         PR lto/44312
14348         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
14349         Stream fixed-point constants mode.
14350         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
14351         and TYPE_PRECISION.
14352         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
14353         Stream fixed-point constants mode.
14354         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
14355         and TYPE_PRECISION.
14356
14357 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14358
14359         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
14360         only place it was called from.
14361         (number_of_latch_executions): Do not return chrec_dont_know when the
14362         may_be_zero is a runtime condition: instead, return a COND_EXPR
14363         including the may_be_zero condition.
14364         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
14365         of nb_iterations.
14366         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
14367         COND_EXPRs.
14368
14369 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14370
14371         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
14372         generate COND_EXPRs for degenerate_phi_result.
14373
14374 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14375
14376         PR middle-end/44293
14377         * tree-if-conv.c (if_convertible_loop_p): Check the
14378         if-convertibility of phi nodes in non predicated BBs.
14379
14380 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14381
14382         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
14383
14384 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14385
14386         PR driver/15303
14387         * gcc.c (inform, warning, inform): New functions.
14388         (fatal_ice): Rename to internal_error; change cmsgid parameter to
14389         gmsgid.  All callers changed.
14390         (notice): Rename to fnotice; add parameter fp.  All callers changed.
14391         (fatal_error): Rename to fatal_signal.  All users changed.
14392         (fatal): Rename to fatal_error; change cmsgid parameter to
14393         gmsgid.  All callers changed.
14394         (process_command): Use warning instead of error for warnings.
14395         (end_going_arg): Don't use _() around argument of error.
14396         (do_spec_1): Use inform for message from %n specs.  Use warning
14397         instead of error for warnings.
14398         (main): Use inform for comparison messages.  Use warning for
14399         message about unused linker input.
14400         (error): Increment error_count.  Print "error: ".
14401         * gcc.h (fatal): Change to fatal_error.
14402         (warning): Declare.
14403         * config/darwin-driver.c (darwin_default_min_version): Use warning
14404         instead of fprintf for warnings.
14405         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
14406
14407 2010-05-28  Julian Brown  <julian@codesourcery.com>
14408
14409         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
14410         (*thumb2_addsi3_compare0_scratch): New.
14411         * config/arm/constraints.md (Pv): New.
14412         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
14413         for ARM mode only.
14414         (*addsi3_compare0_scratch): Likewise.
14415
14416 2010-05-28  Jan Hubicka  <jh@suse.cz>
14417
14418         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
14419         check.
14420         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
14421         only on local statics.
14422
14423 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
14424
14425         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
14426
14427 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14428
14429         PR bootstrap/44314
14430         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
14431         (OPTION_GLIBC): Define.
14432
14433 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14434
14435         PR debug/41048
14436         * dwarf2out.c (double_int_type_size_in_bits): New function.
14437         (round_up_to_align): Change first argument and return value to
14438         double_int.
14439         (field_byte_offset): Work internally on double_ints.
14440
14441         PR target/43636
14442         * builtins.c (expand_movstr): Use a temporary pseudo instead
14443         of target even when target is not NULL and not const0_rtx, but
14444         fails movstr predicate.
14445         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
14446
14447 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14448
14449         * final.c (rest_of_clean_state): Use %m in errors instead of
14450         strerror (errno).
14451         * gengtype.c (read_input_list, close_output_files): Use xstrerror
14452         instead of strerror.
14453         * toplev.c (process_options): Use %m in errors instead of strerror
14454         (errno).
14455         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
14456         (errno).
14457
14458 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
14459
14460         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
14461         (ix86_canonical_va_list_type): Make static.  Add declaration.
14462         (ix86_enum_va_list): Make static.  Reindent.
14463         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
14464         (ix86_canonical_va_list_type): Ditto.
14465         (ix86_enum_va_list): Ditto.
14466
14467 2010-05-28  Richard Guenther  <rguenther@suse.de>
14468
14469         * lto-wrapper.c (run_gcc): With -save-temps generate a
14470         user-visible ltrans filename.  Fixup ltrans unit numbering.
14471
14472 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
14473
14474         * c-common.c (c_common_nodes_and_builtins): Replace use
14475         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
14476         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
14477         to ix86_enum_va_list.
14478         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
14479         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
14480         (TARGET_ENUM_VA_LIST_P): Add hook description.
14481         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
14482         * target.h (gcc_target): Add enum_va_list hook.
14483
14484         PR bootstrap/44299
14485         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
14486         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
14487         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
14488
14489 2010-05-28  Alan Modra  <amodra@gmail.com>
14490
14491         PR target/44266
14492         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14493         emit_library_call machinery to set up __tls_get_addr calls.
14494
14495 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14496
14497         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
14498
14499 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
14500
14501         Revert fix for PR c++/44188
14502         * c-common.c (is_typedef_decl): Revert the moving of  this
14503         definition ...
14504         * tree.c (is_typedef_decl): ... here.
14505         (typdef_variant_p): Revert the moving of this  definition
14506         here from cp/tree.c.
14507         * c-common.h (is_typedef_decl): Revert the moving of this
14508         declaration ...
14509         * tree.h (is_typedef_decl): ... here.
14510         (typedef_variant_p): Revert the moving of this  declaration here
14511         from cp/cp-tree.h
14512         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
14513         (gen_tagged_type_die): Revert the splitting out of ...
14514         (gen_type_die_with_usage): ... this function. Revert the anonymous
14515         tagged type handling.
14516         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
14517         typedefs naming anonymous tagged types.
14518
14519 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14520
14521         * config/rs6000/rs6000-modes.def (PSImode): Delete.
14522
14523 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14524
14525         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
14526         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
14527         throughout.
14528         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
14529         "xer" to "ca".
14530         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
14531         XER_REGS to CA_REGS throughout.
14532         * config/rs6000/rs6000.h: Same.
14533         (ADDITIONAL_REGISTER_NAMES): Add "xer".
14534         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
14535         that mode_iterator "P" is the size for arithmetic carries as well.
14536         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
14537
14538 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14539
14540         PR bootstrap/44255
14541         * combine.c (struct rtx_subst_pair): Define unconditionally.
14542         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
14543         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
14544         Call make_compound_operation on pair->to.
14545         (propagate_for_debug): Don't call make_compound_operation here.
14546         Always use simplify_replace_fn_rtx.
14547
14548 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
14549
14550         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
14551         * config/xtensa/xtensa.c (override_options): Check
14552           TARGET_FORCE_NO_PIC and set flag_pic.
14553         * config/xtensa/xtensa.opt: Document -mforce-no-pic
14554
14555 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14556
14557         PR bootstrap/44299
14558         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
14559         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
14560
14561 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14562
14563         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
14564         toplev.h.
14565         * diagnostic.c: Don't include toplev.h.
14566         (progname): Define.  Moved from toplev.c.
14567         (seen_error): New function.
14568         * diagnostic.h: Include diagnostic-core.h.
14569         (diagnostic_t, emit_diagnostic): Don't declare here.
14570         * toplev.c (progname): Move to toplev.c.
14571         (emit_debug_global_declarations, compile_file, finalize,
14572         do_compile, toplev_main): Use seen_error.
14573         * toplev.h: Include diagnostic-core.h.
14574         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
14575         internal_error, warning, warning_at, error, error_n, error_at,
14576         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
14577         verbatim, fnotice, progname): Move to diagnostic-core.h.
14578         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
14579         (expand_builtin_expect): Use seen_error.
14580         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
14581         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
14582         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
14583         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
14584         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
14585         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
14586         errorcount for errors.
14587         * c-opts.c (c_common_finish): Use seen_error.
14588         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14589         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
14590         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
14591         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
14592         (get_coverage_counts): Use seen_error.
14593         * dwarf2out.c (dwarf2out_finish): Use seen_error.
14594         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
14595         gimplify_body): Use seen_error.
14596         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
14597         * ipa-pure-const.c (gate_pure_const): Use seen_error.
14598         * ipa-reference.c (gate_reference): Use seen_error.
14599         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
14600         * lambda-code.c: Include diagnostic-core.h instead of
14601         diagnostic.h.
14602         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14603         * lto-compress.c: Include diagnostic-core.h instead of
14604         diagnostic.h.
14605         * lto-section-in.c: Include diagnostic-core.h instead of
14606         diagnostic.h.
14607         * lto-streamer-out.c: Include diagnostic-core.h instead of
14608         diagnostic.h.
14609         * lto-streamer.c: Include diagnostic-core.h instead of
14610         diagnostic.h.
14611         (gate_lto_out): Use seen_error.
14612         * matrix-reorg.c: Include diagnostic-core.h instead of
14613         diagnostic.h.
14614         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
14615         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
14616         (gate_expand_omp, lower_omp_1): Use seen_error.
14617         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
14618         (rest_of_decl_compilation, rest_of_type_compilation,
14619         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
14620         * tree-cfg.c (label_to_block_fn): Use seen_error.
14621         * tree-inline.c (optimize_inline_calls): Use seen_error.
14622         * tree-mudflap.c (mudflap_finish_file): Use
14623         seen_error.
14624         * tree-optimize.c (gate_all_optimizations,
14625         gate_all_early_local_passes, gate_all_early_optimizations): Use
14626         seen_error.
14627         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
14628         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
14629         (varpool_remove_unreferenced_decls,
14630         varpool_assemble_pending_decls): Use seen_error.
14631         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
14632         (TOPLEV_H, DIAGNOSTIC_H): Update.
14633         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
14634         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
14635         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
14636         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
14637         coverage.o, lambda-code.o): Update dependencies.
14638
14639 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
14640
14641         PR c++/44188
14642         * c-common.c (is_typedef_decl): Move this definition ...
14643         * tree.c (is_typedef_decl): ... here.
14644         (typdef_variant_p): Move definition here from cp/tree.c.
14645         * c-common.h (is_typedef_decl): Move this declaration ...
14646         * tree.h (is_typedef_decl): ... here.
14647         (typedef_variant_p): Move declaration here from cp/cp-tree.h
14648         * dwarf2out.c (is_naming_typedef_decl): New function.
14649         (gen_tagged_type_die): Split out of ...
14650         (gen_type_die_with_usage): ... this function. When an anonymous
14651         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
14652         is emitted for the typedef.
14653         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
14654         anonymous tagged types.
14655
14656 2010-05-27  Jason Merrill  <jason@redhat.com>
14657
14658         * print-tree.c (debug_vec_tree): New fn.
14659         (print_vec_tree): New fn.
14660         * tree.h: Declare them.
14661         * gdbinit.in (pvt): New command.
14662
14663         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
14664
14665         * gdbinit.in (pdd): New command.
14666
14667 2010-05-27  Jan Hubicka  <jh@suse.cz>
14668
14669         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
14670         (update_caller_keys): Return early if there are no callers;
14671         only update fibheap when decresing the key.
14672         (update_callee_keys): Avoid recursion.
14673         (decide_inlining_of_small_functions): When badness does not match;
14674         re-insert into fibheap.
14675
14676 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
14677
14678         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
14679         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
14680         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
14681         (ALL_HOST_OBJS): Now a union of the above two.
14682         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
14683         all files in ALL_HOST_FRONTEND_OBJS.
14684         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
14685
14686         * c-common.c: Pretend to be a backend file by undefining
14687         IN_GCC_FRONTEND (still need rtl.h here).
14688
14689 2010-05-27  Jan Hubicka  <jh@suse.cz>
14690
14691         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
14692         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
14693
14694 2010-05-27  Jan Hubicka  <jh@suse.cz>
14695
14696         * sched-ebb.c: Rename struct deps to struct deps_desc.
14697         * ddg.c: Likewise.
14698         * sel-sched-ir.c: Likewise.
14699         * sched-deps.c: Likewise.
14700         * sched-int.h: Likewise.
14701         * sched-rgn.c: Likewise.
14702
14703 2010-05-27  Jon Beniston  <jon@beniston.com>
14704
14705         PR 43726
14706         * config/lm32/lm32.h: Remove definition of
14707         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
14708
14709 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14710
14711         PR lto/44230
14712         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
14713
14714 2010-05-27  Richard Guenther  <rguenther@suse.de>
14715
14716         PR tree-optimization/44284
14717         * tree-vect-stmts.c (vectorizable_assignment): Handle
14718         sign-changing conversions as simple copy.
14719
14720 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14721
14722         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
14723         Bionic C library.
14724         (__gthread_active_p): Check for pthread_create if compiling against
14725         Bionic C library.
14726
14727 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14728
14729         Support compilation for Android platform.  Reimplement -mandroid.
14730
14731         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
14732         (*android*): Set ANDROID_DEFAULT.
14733         (arm*-*-linux*): Include linux-android.h.
14734         (arm*-*-eabi*): Don't include previous -mandroid implementation.
14735         * config/arm/eabi.h: Remove, move Android-specific parts ...
14736         * config/linux-android.h: ... here.  New file.
14737         * config/arm/eabi.opt: Rename to ...
14738         * config/linux-android.opt: ... this.
14739         (mandroid): Allow -mno-android option.  Initialize based on
14740         ANDROID_DEFAULT.
14741         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
14742         Move logic to corresponding LINUX_TARGET_* macros.
14743         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
14744         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
14745         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
14746         Android definitions.
14747         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
14748         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
14749         Document.
14750
14751 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14752
14753         Add support for Bionic C library
14754
14755         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
14756         macro.
14757         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
14758         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
14759
14760         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
14761         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
14762         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
14763         to support multiple C libraries.  Handle Bionic.
14764         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
14765         (BIONIC_DYNAMIC_LINKER64): Define.
14766         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
14767         Update.
14768         (TARGET_HAS_SINCOS): Enable for Bionic.
14769
14770         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
14771         the last option specified on command line take effect.
14772         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
14773         (mbionic): New.
14774         (mglibc, muclibc): Update.
14775
14776         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
14777         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
14778         DEFAULT_LIBC.
14779
14780         * doc/invoke.texi (-mglibc, -muclibc): Update.
14781         (-mbionic): Document.
14782
14783 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14784
14785         * c-common.h (c_register_addr_space): Add prototype.
14786         (ADDR_SPACE_KEYWORD): Remove.
14787         * c-common.c (c_register_addr_space): New function.
14788         (c_addr_space_name): Reimplement.
14789         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
14790
14791         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
14792         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
14793
14794         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
14795         Remove TARGET_ADDR_SPACE_KEYWORDS.
14796
14797 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14798
14799         * input.c: New file.
14800         * input.h (main_input_filename): Move declaration to toplev.h.
14801         * toplev.c (input_location, line_table): Move to input.c
14802         * toplev.h (main_input_filename): Move declaration from input.h.
14803         * tree.c (expand_location): Move to input.c.
14804         * Makefile.in (OBJS-common): Add input.o.
14805         (input.o): Add dependencies.
14806
14807 2010-05-27  Richard Guenther  <rguenther@suse.de>
14808
14809         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
14810         for non-existant files.
14811         (fork_execute): Mark args_name file as deleted.
14812
14813 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14814
14815         PR bootstrp/44287
14816         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
14817         (narrow_signed_type): Likewise.
14818
14819 2010-05-26  Jan Hubicka  <jh@suse.cz>
14820
14821         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
14822         edge only when checking is enabled; check using former_clone_of;
14823         check inline clones too.
14824         (cgraph_materialize_clone): Record former_clone_of pointer.
14825         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
14826         combining redirections; dump args_to_skip bitmap
14827         (cgraph_materialize_all_clones): Do no redirection here.
14828         * ipa-inline.c (inline_transform): Do redirection here.
14829         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
14830         cheking only).
14831
14832 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14833
14834         * config/avr/avr-c.c: Do not include regs.h.
14835         Include cpplib.h for cpp_define and tree.h for c-common.h.
14836         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
14837         * config/avr/t-avr: Fix dependencies for avr-c.o.
14838
14839 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14840
14841         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
14842         string instead of SYMBOL_REF rtx.
14843         * rtl.h (set_stack_check_libfunc): Move prototype from here...
14844         * libfuncs.h: ...to here.  Adjust for explow.c change.
14845
14846 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14847
14848         * pretty-print.c: Don't include ggc.h.
14849         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
14850         (identifier_to_locale): Use them for allocation.
14851         * pretty-print.h (identifier_to_locale_alloc,
14852         identifier_to_locale_free): Declare.
14853         * toplev.c (alloc_for_identifier_to_locale): New.
14854         (general_init): Set identifier_to_locale_alloc and
14855         identifier_to_locale_free.
14856         * Makefile.in (pretty-print.o): Update dependencies.
14857
14858 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14859
14860         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
14861         pointer types if they have different alignment or mode.
14862
14863 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
14864
14865         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14866         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14867         * config/sparc/sparc-protos.h (function_value): Remove declaration.
14868         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
14869         sparc_function_value_regno_p): New functions.
14870         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14871         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14872         (function_value): Rename to...
14873         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
14874         argument to 'outgoing'.
14875         (function_arg_record_value, function_arg_union_value,
14876         function_arg_vector_value): Update comment.
14877
14878 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14879
14880         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
14881         (fde_needed_for_eh_p): New predicate.
14882         (output_call_frame_info): Use it throughout to decide whether FDEs
14883         are needed for EH purpose.
14884         (dwarf2out_begin_prologue): Reorder assignments.
14885
14886 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14887
14888         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
14889         special case loop->header.
14890         (is_predicated): New.
14891         (if_convertible_loop_p): Call it.
14892
14893 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14894
14895         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
14896         iterator in parameter.  Do not generate code during the analysis.
14897         (tree_if_convert_cond_stmt): Removed.
14898         (tree_if_convert_stmt): Removed.
14899         (predicate_bbs): New.
14900         (if_convertible_loop_p): Call predicate_bbs.
14901         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
14902         now contains all the analysis part.
14903
14904 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14905
14906         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
14907         statements in the analysis part.
14908         (tree_if_convert_stmt): Update comment.
14909         (remove_conditions_and_labels): New.
14910         (combine_blocks): Call remove_conditions_and_labels.
14911         (tree_if_conversion): Update comment.
14912
14913 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14914
14915         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
14916         than 2 predecessors or more than 2 successors.
14917
14918 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14919
14920         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
14921         of loops in which the data dependence analysis fails.
14922
14923 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14924
14925         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
14926         CDI_POST_DOMINATORS.
14927         (tree_if_conversion): Same.
14928
14929 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14930
14931         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
14932
14933 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14934
14935         * tree-if-conv.c: Update copyright years.  Fix comments.
14936         Fix indentation.
14937
14938 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
14939
14940         * builtin-types.def (BT_INT128): New primitive type.
14941         (BT_UINT128): Likewise.
14942         * c-common.c (c_common_r): Add __int128 keyword.
14943         (c_common_type_for_size): Handle __int128.
14944         (c_common_type_for_mode): Likewise.
14945         (c_common_signed_or_unsigned_type): Likewise.
14946         (c_common_nodes_and_builtins): Add builtin type
14947         if target supports 128-bit integer scalar.
14948         * c-common.h (enum rid): Add RID_INT128.
14949         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
14950         if target supports 128-bit integer scalar.
14951         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
14952         (finish_declspecs): Likewise.
14953         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
14954         (c_token_starts_declspecs): Likewise.
14955         (c_parser_declspecs): Likewise.
14956         (c_parser_attributes): Likewise.
14957         (c_parser_objc_selector): Likewise.
14958         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
14959         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
14960         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
14961         * tree.c (make_or_reuse_type): Likewise.
14962         (make_unsigned_type): Likewise.
14963         (build_common_tree_nodes_2): Likewise.
14964         * tree.h (enum integer_type_kind): Add itk_int128 and
14965         itk_unsigned_int128.
14966         (int128_integer_type_node): New define.
14967         (int128_unsigned_type_node): New define.
14968         * doc/extend.texi: Add documentation about __int128 type.
14969
14970 2010-05-26  Richard Guenther  <rguenther@suse.de>
14971
14972         * tree-ssa-sccvn.c (copy_nary): Adjust.
14973         (copy_phis): Rename to ...
14974         (copy_phi): ... this.  Adjust.
14975         (copy_references): Rename to ...
14976         (copy_reference): ... this.  Adjust.
14977         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
14978         result into the valid table.
14979
14980 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14981
14982         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
14983         insn-config.h, insn-codes.h, recog.h, and optabs.h.
14984
14985 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14986
14987         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
14988
14989 2010-05-26  Richard Guenther  <rguenther@suse.de>
14990
14991         * opts.c (common_handle_option): Handle OPT_Ofast.
14992
14993 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14994
14995         * diagnostic.c: Don't include opts.h.
14996         (permissive_error_option): Define.
14997         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
14998         for classify_diagnostic.  Don't use memset for
14999         classify_diagnostic.  Initialize new and recently added fields.
15000         (diagnostic_classify_diagnostic): Use context->n_opts instead of
15001         N_OPTS.
15002         (diagnostic_report_diagnostic): Pass context parameter to
15003         diagnostic_report_warnings_p.  Use option_enabled and option_name
15004         hooks from context.
15005         (emit_diagnostic): Use permissive_error_option.
15006         (permerror): Likewise.
15007         * diagnostic.h: Don't include options.h.
15008         (struct diagnostic_context): Add n_opts, opt_permissive,
15009         inhibit_warnings, warn_system_headers, option_enabled and
15010         option_name fields.  Change classify_diagnostic to a pointer.
15011         * opts-diagnostic.h: New file.
15012         * opts.c: Include opts-diagnostic.h.
15013         (common_handle_option): Set global_dc fields for -Wfatal-errors,
15014         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
15015         (option_name): New function.
15016         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
15017         (c_common_handle_option): Set global_dc->permissive for
15018         -fpermissive.
15019         * c-common.c (c_cpp_error): Save and restore
15020         global_dc->warn_system_headers, not variable warn_system_headers.
15021         * toplev.c: Include opts-diagnostic.h.
15022         (general_init): Update call to diagnostic_initialize.  Set
15023         global_dc->show_column, global_dc->option_enabled and
15024         global_dc->option_name.
15025         (process_options): Don't set global_dc fields here.
15026         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
15027         (diagnostic.o, opts.o, toplev.o): Update dependencies.
15028
15029 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
15030
15031         * config/picochip/picochip.md (movsi): Split a movsi from a
15032         const after reload.
15033
15034 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15035
15036         * ggc-zone.c: Update copyright year.
15037         (poison_region): Mark memory for Valgrind as undefined before
15038         memset () call and inaccessible afterwards.
15039         (ggc_pch_total_size): Change type of i to int.
15040
15041 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15042
15043         * ggc-common.c (ggc_free_overhead): Allow empty slot.
15044
15045 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15046
15047         * ggc-common.c: Update copyright year.
15048         (ggc_rlimit_bound): Remove prototype.  Compile only if
15049         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
15050         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
15051         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
15052         (ggc_min_heapsize_heuristic): Likewise.
15053
15054 2010-05-26  Richard Guenther  <rguenther@suse.de>
15055
15056         PR rtl-optimization/44164
15057         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
15058         no-common access-path disambiguation.
15059         (indirect_ref_may_alias_decl_p): Adjust.
15060         (indirect_refs_may_alias_p): Likewise.
15061         (refs_may_alias_p_1): Likewise.
15062
15063 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15064
15065         * c-typeck.c: Do not include expr.h.
15066
15067 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15068
15069         * rtl.h (decl_default_tls_model): Move prototype from here...
15070         * output.h: ...to here.
15071         * c-decl.c: Do not include rtl.h.
15072         * c-pragma.c: Likewise.
15073         * c-parser.c: Likewise.
15074         * c-gimplify.c: Likewise.  And also not hard-reg-set.
15075         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
15076         FIXME note for it.  Add a FIXME note for expr.h.
15077         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
15078         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
15079         defined.
15080
15081 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
15082
15083         PR target/44199
15084         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
15085         or total_size is larger than red zone size for non-V4 ABI, emit a
15086         stack_tie resp. frame_tie insn before stack pointer restore.
15087         * config/rs6000/rs6000.md (frame_tie): New insn.
15088
15089 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15090
15091         * function.h (struct function): Add can_throw_non_call_exceptions bit.
15092         * lto-streamer-in.c (input_function): Stream it in.
15093         * lto-streamer-out.c (output_function): Stream it out.
15094         * function.c (allocate_struct_function): Set it.
15095         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
15096         for flag_non_call_exceptions.
15097         * cfgbuild.c (control_flow_insn_p): Likewise.
15098         (make_edges): Likewise.
15099         * cfgexpand.c (expand_stack_alignment): Likewise.
15100         * combine.c (distribute_notes): Likewise.
15101         * cse.c (cse_extended_basic_block): Likewise.
15102         * except.c (insn_could_throw_p): Likewise.
15103         * gcse.c (simple_mem): Likewise.
15104         * ipa-pure-const.c (check_call): Likewise.
15105         (check_stmt ): Likewise.
15106         * lower-subreg.c (lower-subreg.c): Likewise.
15107         * optabs.c (emit_libcall_block): Likewise.
15108         (prepare_cmp_insn): Likewise.
15109         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
15110         * postreload.c (rest_of_handle_postreload): Likewise.
15111         * reload1.c (reload_as_needed): Likewise.
15112         (emit_input_reload_insns): Likewise.
15113         (emit_output_reload_insns): Likewise.
15114         (fixup_abnormal_edges): Likewise.
15115         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
15116         * store-motion.c (find_moveable_store): Likewise.
15117         * tree-eh.c (stmt_could_throw_p): Likewise.
15118         (tree_could_throw_p): Likewise.
15119         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15120         * config/arm/arm.c (arm_expand_prologue): Likewise.
15121         (thumb1_expand_prologue): Likewise.
15122         * config/rx/rx.md (cbranchsf4): Likewise.
15123         (cmpsf): Likewise.
15124         * config/s390/s390.c (s390_emit_prologue): Likewise.
15125         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
15126         (inline_forbidden_into_p): New predicate.
15127         (expand_call_inline): Use it to forbid inlining.
15128         (tree_can_inline_p): Likewise.
15129
15130 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15131
15132         * config/i386/i386-c.c: Do not include rtl.h.
15133         * config/i386/t-i386: Update dependencies.
15134
15135 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15136
15137         * attribs.c: Do not include rtl.h.
15138         * Makefile.in: Update dependencies.
15139
15140 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
15141
15142         * double-int.h (double_int_and): New.
15143         * combine.c (try_combine): Clean up, use double_int_* and
15144         immed_double_int_const functions.
15145
15146 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15147
15148         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
15149         stderr to /dev/null instead of grep -q.
15150         * configure: Regenerate.
15151
15152 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15153
15154         * Makefile.in (EXCEPT_H): Fix typo.
15155
15156 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
15157
15158         * ira-build.c (update_conflict_hard_reg_costs): New.
15159         (ira_build): Call update_conflict_hard_reg_costs.
15160
15161 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15162
15163         PR debug/41371
15164         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
15165         ENABLE_CHECKING.
15166         (intersect_loc_chains): Walk the s2var's loc_chain together
15167         with s1node chain as long as the locations are equal, don't
15168         call find_loc_in_1pdv in that case.
15169
15170         PR debug/42801
15171         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
15172         (copy_bind_expr): ... instead of here.
15173         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
15174         if the block hasn't been remapped.
15175         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
15176         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
15177
15178 2010-05-25  Richard Guenther  <rguenther@suse.de>
15179
15180         PR middle-end/44069
15181         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
15182         out-of-bounds array accesses.
15183
15184 2010-05-25  Richard Guenther  <rguenther@suse.de>
15185
15186         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
15187         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
15188         (run_gcc): Re-organize to make cleanup easier.
15189
15190 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15191
15192         * config/s390/s390.c (optimization_options): Fix and move the
15193         flag_prefetch_loop_arrays override ...
15194         (override_options): ... here.
15195
15196 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
15197
15198         * diagnostic.c: Don't include plugin.h.
15199         (diagnostic_report_diagnostic): Don't handle plugins specially
15200         here.  Pass context to internal_error callback.
15201         * diagnostic.h (struct diagnostic_context): Add context parameter
15202         to internal_error callback.
15203         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
15204         * plugin.h (struct diagnostic_context): Declare.
15205         (warn_if_plugins, plugins_internal_error_function): Declare.
15206         * toplev.c (general_init): Set global_dc->internal_error.
15207         * Makefile.in (diagnostic.o): Update dependencies.
15208
15209 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
15210
15211         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
15212         * config/rs6000/t-darwin64: New.
15213         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
15214         build crt2.
15215
15216 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
15217
15218         PR 44203
15219         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
15220         match the original (and intended) behaviour before r159557.  This
15221         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
15222         in two ways.
15223
15224 2010-05-25  Richard Guenther  <rguenther@suse.de>
15225
15226         * doc/invoke.texi: Document -Ofast.
15227         * target.h (struct gcc_target): Add handle_ofast.
15228         * target-def.h (TARGET_HANDLE_OFAST): Add.
15229         (TARGET_INITIALIZER): Adjust.
15230         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
15231         * common.opt (Ofast): Add.
15232
15233 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15234
15235         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
15236         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
15237
15238 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15239
15240         PR target/43610
15241         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
15242         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
15243         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
15244         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
15245
15246 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15247
15248         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
15249         DW_OP_minus with negated offset instead of DW_OP_plus.
15250         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
15251
15252 2010-05-25  Wei Guozhi  <carrot@google.com>
15253
15254         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
15255         tst instruction and a new alternative.
15256         * config/arm/constraints.md (Pu): New constraint.
15257
15258 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
15259
15260         * function.c (assign_stack_local_1): Initialize variable
15261         to avoid warning when bootstrapping at -O3.
15262
15263 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
15264
15265         * configure.ac (all_lang_makefiles): Remove everything related to it.
15266         * configure: Regenerate.
15267         * Makefile.in: Fix reference to ada Make-lang.in.
15268         Remove support for LANG_MAKEFILES.
15269
15270 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
15271             Sandra Loosemore  <sandra@codesourcery.com>
15272
15273         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
15274         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
15275         description.  Add arm_neon_fp16_ok.
15276         (Add Options): Add arm_neon and arm_neon_fp16.
15277
15278 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
15279
15280         * diagnostic.c: Don't include flags.h.
15281         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
15282         context parameters.  Check flags in the context passed as a parameter.
15283         (diagnostic_build_prefix): Add context parameter.  Check
15284         show_column flag in context.
15285         (diagnostic_action_after_output): Check fatal_errors flag in context.
15286         (diagnostic_report_current_module): Check show_column flag in context.
15287         (default_diagnostic_starter): Update call to
15288         diagnostic_build_prefix.
15289         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
15290         (emit_diagnostic): Pass context to permissive_error_kind.
15291         (permerror): Pass context to permissive_error_kind.
15292         * diagnostic.h (struct diagnostic_context): Add show_column,
15293         pedantic_errors, permissive and fatal_errors fields.
15294         (diagnostic_build_prefix): Update prototype.
15295         * langhooks.c
15296         * toplev.c (process_options): Set flags in global_dc from
15297         flag_show_column, flag_pedantic_errors, flag_permissive,
15298         flag_fatal_errors.
15299         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
15300         to diagnostic_build_prefix.
15301         * Makefile.in (diagnostic.o): Update dependencies.
15302
15303 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15304
15305         * config/i386/ia32intrin.h (__crc32q): Define only if
15306         __SSE4_2__ is defined.
15307
15308 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
15309
15310         PR target/44132
15311         PR middle-end/43602
15312         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
15313         DECL_VISIBILITY_SPECIFIED.
15314         (emutls_decl): Set DECL_PRESERVE_P and copy
15315         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
15316         (emutls_finalize_control_var): New callback.
15317         (emutls_finish): Finalize emutls control variables.
15318         * toplev.c (compile_file): Move the call to emutls_finish ()
15319         before varpool_assemble_pending_decls ().
15320
15321 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
15322
15323         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
15324         added to the preprocessor condition.
15325
15326 2010-05-24  Paul Brook  <paul@codesourcery.com>
15327
15328         * gengtype-lex.l: Add HARD_REG_SET.
15329         * expr.c (expand_expr_real_1): Record writes to hard registers.
15330         * function.c (rtl_data): Add asm_clobbers.
15331         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
15332         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
15333         Use crtl->asm_clobbers.
15334
15335 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15336
15337         * doc/makefile.texi (Makefile): Mention stages 'profile'
15338         and 'feedback' for profiledbootstrap.
15339
15340 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15341
15342         PR target/44245
15343         * config/i386/i386.c (def_builtin): Properly check
15344         OPTION_MASK_ISA_64BIT.
15345
15346 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
15347
15348         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
15349         typedefs with different but compatible types.  Allow duplicate
15350         typedefs with the same type except for pedantic non-C1X, but give
15351         warning for variably modified types.
15352         * c-typeck.c (tagged_types_tu_compatible_p,
15353         function_types_compatible_p, type_lists_compatible_p,
15354         comptypes_internal): Add parameter different_types_p; set
15355         *different_types_p for different but compatible types.  All
15356         callers changed.
15357         (comptypes_check_different_types): New.
15358         * c-tree.h (comptypes_check_different_types): Declare.
15359
15360 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15361
15362         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
15363         * jump.c: Include basic-block.h.
15364         * profile.c: Likewise.
15365         * tree-profile.c: Likewise.
15366         * coverage.c: Likewise.
15367         * basic-block.h (optimize_function_for_size_p): Move to function.h.
15368         (optimize_function_for_speed_p): Likewise.
15369         * function.h (optimize_function_for_size_p,
15370         optimize_function_for_speed_p): Moved here from basic-block.h.
15371         * Makefile.in: Update dependencies.
15372
15373 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15374
15375         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
15376         before calling make; allow override through $MAKE.
15377         * doc/invoke.texi (Optimize Options): Document override.
15378
15379 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
15380
15381         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
15382         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15383         (rs6000_mode_dependent_address_ptr): Make static.
15384         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15385         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
15386         Remove.
15387
15388 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
15389
15390         PR target/43869
15391         * config/i386/i386.c: Make sure that the correct regparm is passed.
15392
15393 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15394
15395         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
15396         * sbitmap.c: ...to here to internalize sbitmap element access.
15397         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
15398         Explain why basic-block.h is included.
15399         * function.h: Include tm.h for CUMULATIVE_ARGS.
15400         * Makefile.in: Update dependencies.
15401
15402 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15403
15404         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
15405         New core types.
15406         * sbitmap.h (struct sbitmap_def): Do not typedef here.
15407         * sbitmap.c: Include sbitmap.h.
15408         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
15409         hard-reg-set.h.  Split everything related to regsets out from here...
15410         * regset.h: ...to here.  New file.
15411         * df.h: Include regset.h and sbitmap.h.
15412         * tree-flow.h: Likewise.
15413         * cfgloop.h: Likewise.
15414         * except.h: Do not include sbitmap.h.  Include hashtab.h.
15415         * cgraph.h: Include vec.h and function.h.
15416         * reload.h (struct insn_chain): Change types of live_throughout
15417         and dead_or_set from regset_head to bitmap_head.
15418         (compute_use_by_pseudos): Be defined also if regset.h is not included.
15419         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
15420         spilled_regs from regset_head to bitmap_head to avoid dependency
15421         in regset.h.
15422         * sel-sched-ir.h: Include regset.h.
15423         * reload.c: Include df.h before reload.h.
15424         * caller-save.c: Likewise.
15425         * reload1.c: Likewise.
15426         * ira.c: Likewise.
15427         (mark_elimination): Update type of r to bitmap, consistent with
15428         DF_LR_IN.
15429         * dominance.c: Include bitmap.h.
15430         * modulo-sched.c: Include df.h.
15431         * cfganal.c: Include bitmap.h and sbitmap.h.
15432         * cfgbuild.c: Include sbitmap.h.
15433         * lcm.c: Include sbitmap.h.
15434         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
15435         * domwalk.c: Include sbitmap.h, exclude ggc.h.
15436         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
15437         * cselib.c: Include bitmap.h.
15438         * tree-optimize.c: Include regset.h.
15439         * stmt.c: Include bitmap.h.
15440         * Makefile.in: Update dependencies.
15441
15442 2010-05-22  Jan Hubicka  <jh@suse.cz>
15443
15444         * cgraph.h (struct varpool_node): Add same_comdat_group.
15445         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
15446         pointer.
15447         (output_varpool): Update call of lto_output_varpool_node.
15448         (input_varpool): Read same_comdat_group pointer.
15449         (input_varpool_1): Fixup same_comdat_group pointer.
15450         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
15451         group is needed, all are.
15452         * varpool.c (varpool_remove_node): Remove node from same comdat group
15453         linklist too.
15454         (varpool_analyze_pending_decls): Walk same comdat groups.
15455
15456 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15457
15458         * rtl.h (union rtunion_def): Remove rt_bit member.
15459         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
15460         * print-rtl (print_rtx): Do not print the member.
15461         * gengtype.c (adjust_field_rtx_def): Do not handle it.
15462         * gengenrtl.c (type_from_format): Likewise.
15463         (accessor_from_format): Likewise.
15464
15465 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
15466
15467         * dbgcnt.c: Include toplev.h instead of errors.h.
15468         * ira-emit.c: Don't include errors.h.
15469         * ira.c: Include toplev.h instead of errors.h.
15470         * lto-compress.c: Include toplev.h instead of errors.h.
15471         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
15472         ira.o, dbgcnt.o): Update dependencies.
15473
15474 2010-05-22  Richard Guenther  <rguenther@suse.de>
15475
15476         * gimple.c (gimple_types_compatible_p): Check type qualifications
15477         before merging pointer to complete and pointer to incomplete type.
15478         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
15479         we use our own resolution algorithm.  The gold linker plugin
15480         doesn't do the job we want it to do here.
15481
15482 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
15483
15484         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15485         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15486         (sparc_mode_dependent_address_p): New function.
15487
15488 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15489
15490         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
15491
15492         * timevar.c: Do not include any core headers.
15493         (timevar_print): De-i18n-ize.
15494         (print_time): Likewise.
15495         * timevar.h (timevar_push, timevar_pop): Make inline functions.
15496
15497 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
15498
15499         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
15500         langhooks-def.h.
15501         (diagnostic_initialize): Initialize x_data not last_function.
15502         (diagnostic_report_current_function): Move to tree-diagnostic.c.
15503         (default_diagnostic_starter): Call
15504         diagnostic_report_current_module not
15505         diagnostic_report_current_function.
15506         (diagnostic_report_diagnostic): Initialize x_data not
15507         abstract_origin.
15508         (verbatim): Likewise.
15509         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
15510         x_data.
15511         (struct diagnostic_context): Change last_function to x_data.
15512         (diagnostic_auxiliary_data): Replace with
15513         diagnostic_context_auxiliary_data and
15514         diagnostic_info_auxiliary_data.
15515         (diagnostic_last_function_changed, diagnostic_set_last_function,
15516         diagnostic_report_current_function): Move to tree-diagnostic.h.
15517         (print_declaration, dump_generic_node, print_generic_stmt,
15518         print_generic_stmt_indented, print_generic_expr,
15519         print_generic_decl, debug_c_tree, dump_omp_clauses,
15520         print_call_name, debug_generic_expr, debug_generic_stmt,
15521         debug_tree_chain, default_tree_printer): Move to
15522         tree-pretty-print.h.
15523         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
15524         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
15525         gimple-pretty-print.h.
15526         * pretty-print.c: Don't include tree.h
15527         (pp_base_format): Don't handle %K here.
15528         (pp_base_tree_identifier): Move to tree-pretty-print.c.
15529         * pretty-print.h (text_info): Change abstract_origin to x_data.
15530         (pp_tree_identifier, pp_unsupported_tree,
15531         pp_base_tree_identifier): Move to tree-pretty-print.h.
15532         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
15533         tree-pretty-print.h: New files.
15534         * tree-pretty-print.c: Include tree-pretty-print.h.
15535         (percent_K_format): New.  Moved from pretty-print.c.
15536         (pp_base_tree_identifier): Move from pretty-print.c.
15537         * c-objc-common.c: Include tree-pretty-print.h.
15538         (c_tree_printer): Handle %K here.
15539         * langhooks.c: Include tree-diagnostic.h.
15540         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
15541         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
15542         (default_tree_printer): Handle %K using percent_K_format.
15543         (general_init): Use default_tree_diagnostic_starter.
15544         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
15545         (free_lang_data): Use default_tree_diagnostic_starter.
15546         * c-pretty-print.c: Include tree-pretty-print.h.
15547         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15548         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15549         * dwarf2out.c: Include tree-pretty-print.h.
15550         * except.c: Include tree-pretty-print.h.
15551         * gimple-pretty-print.c: Include tree-pretty-print.h and
15552         gimple-pretty-print.h.
15553         * gimplify.c: Include tree-pretty-print.h.
15554         * graphite-poly.c: Include tree-pretty-print.h and
15555         gimple-pretty-print.h.
15556         * ipa-cp.c: Include tree-pretty-print.h.
15557         * ipa-inline.c: Include gimple-pretty-print.h.
15558         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15559         * ipa-pure-const.c: Include gimple-pretty-print.h.
15560         * ipa-struct-reorg.c: Include tree-pretty-print.h and
15561         gimple-pretty-print.h.
15562         * ipa-type-escape.c: Include tree-pretty-print.h.
15563         * print-rtl.c: Include tree-pretty-print.h.
15564         * print-tree.c: Include gimple-pretty-print.h.
15565         * sese.c: Include tree-pretty-print.h.
15566         * tree-affine.c: Include tree-pretty-print.h.
15567         * tree-browser.c: Include tree-pretty-print.h.
15568         * tree-call-cdce.c: Include gimple-pretty-print.h.
15569         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15570         * tree-chrec.c: Include tree-pretty-print.h.
15571         * tree-data-ref.c: Include tree-pretty-print.h and
15572         gimple-pretty-print.h.
15573         * tree-dfa.c: Include tree-pretty-print.h.
15574         * tree-if-conv.c: Include tree-pretty-print.h and
15575         gimple-pretty-print.h.
15576         * tree-inline.c: Include tree-pretty-print.h.
15577         * tree-into-ssa.c: Include tree-pretty-print.h and
15578         gimple-pretty-print.h.
15579         * tree-nrv.c: Include tree-pretty-print.h.
15580         * tree-object-size.c: Include tree-pretty-print.h and
15581         gimple-pretty-print.h.
15582         * tree-outof-ssa.c: Include tree-pretty-print.h and
15583         gimple-pretty-print.h.
15584         * tree-parloops.c: Include tree-pretty-print.h and
15585         gimple-pretty-print.h.
15586         * tree-predcom.c: Include tree-pretty-print.h and
15587         gimple-pretty-print.h.
15588         * tree-scalar-evolution.c: Include tree-pretty-print.h and
15589         gimple-pretty-print.h.
15590         * tree-sra.c: Include tree-pretty-print.h.
15591         * tree-ssa-address.c: Include tree-pretty-print.h.
15592         * tree-ssa-alias.c: Include tree-pretty-print.h.
15593         * tree-ssa-ccp.c: Include tree-pretty-print.h and
15594         gimple-pretty-print.h.
15595         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
15596         * tree-ssa-copy.c: Include tree-pretty-print.h and
15597         gimple-pretty-print.h.
15598         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
15599         * tree-ssa-dce.c: Include tree-pretty-print.h and
15600         gimple-pretty-print.h.
15601         * tree-ssa-dom.c: Include tree-pretty-print.h and
15602         gimple-pretty-print.h.
15603         * tree-ssa-dse.c: Include gimple-pretty-print.h.
15604         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
15605         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
15606         * tree-ssa-live.c: Include tree-pretty-print.h and
15607         gimple-pretty-print.h.
15608         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
15609         gimple-pretty-print.h.
15610         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
15611         gimple-pretty-print.h.
15612         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
15613         gimple-pretty-print.h.
15614         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
15615         gimple-pretty-print.h.
15616         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
15617         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
15618         * tree-ssa-operands.c: Include tree-pretty-print.h and
15619         gimple-pretty-print.h.
15620         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
15621         gimple-pretty-print.h.
15622         * tree-ssa-pre.c: Include tree-pretty-print.h and
15623         gimple-pretty-print.h.
15624         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
15625         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
15626         gimple-pretty-print.h.
15627         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
15628         gimple-pretty-print.h.
15629         * tree-ssa-sink.c: Include gimple-pretty-print.h.
15630         * tree-ssa-ter.c: Include tree-pretty-print.h and
15631         gimple-pretty-print.h.
15632         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
15633         * tree-ssa.c: Include tree-pretty-print.h and
15634         gimple-pretty-print.h.
15635         * tree-stdarg.c: Include gimple-pretty-print.h.
15636         * tree-switch-conversion.c: Include gimple-pretty-print.h.
15637         * tree-tailcall.c: Include tree-pretty-print.h and
15638         gimple-pretty-print.h.
15639         * tree-vect-data-refs.c: Include tree-pretty-print.h and
15640         gimple-pretty-print.h.
15641         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
15642         gimple-pretty-print.h.
15643         * tree-vect-loop.c: Include tree-pretty-print.h and
15644         gimple-pretty-print.h.
15645         * tree-vect-patterns.c: Include gimple-pretty-print.h.
15646         * tree-vect-slp.c: Include tree-pretty-print.h and
15647         gimple-pretty-print.h.
15648         * tree-vect-stmts.c: Include tree-pretty-print.h and
15649         gimple-pretty-print.h.
15650         * tree-vectorizer.c: Include tree-pretty-print.h.
15651         * tree-vrp.c: Include tree-pretty-print.h and
15652         gimple-pretty-print.h.
15653         * value-prof.c: Include tree-pretty-print.h and
15654         gimple-pretty-print.h.
15655         * var-tracking.c: Include tree-pretty-print.h.
15656         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
15657         (tree-diagnostic.o): New dependencies.
15658         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
15659         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
15660         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
15661         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
15662         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
15663         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
15664         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
15665         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
15666         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
15667         tree-ssa-address.o, tree-ssa-loop-niter.o,
15668         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
15669         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
15670         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
15671         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
15672         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
15673         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
15674         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
15675         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
15676         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
15677         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
15678         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
15679         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
15680         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
15681         tree-switch-conversion.o, var-tracking.o, value-prof.o,
15682         cfgexpand.o, pretty-print.o): Update dependencies.
15683
15684 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
15685
15686         * tree-ssa-structalias.c: Remove tm_p.h from include.
15687
15688 2010-05-21  Jeff Law  <law@redhat.com>
15689
15690         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
15691
15692 2010-05-21  Jason Merrill  <jason@redhat.com>
15693
15694         * tree-eh.c (cleanup_is_dead_in): New.
15695         (lower_try_finally): Don't generate a dead cleanup region.
15696         (lower_cleanup): Likewise.
15697
15698 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15699
15700         PR debug/44223
15701         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
15702         unchain each use from the cyclic next_regno_use chain first.
15703
15704 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15705
15706         * real: Do not include gmp.h, mpfr.h, and mpc.h.
15707         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
15708         (real_value_negate, real_value_abs): New prototypes.
15709         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
15710         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
15711         new include file for interface between MPFR and REAL_VALUE_TYPE.
15712         * real.c: Include realmpfr.h.
15713         (real_arithmetic2): Remove legacy function.
15714         (real_value_negate): New.
15715         (real_value_abs): New.
15716         (mfpr_from_real, real_from_mpfr): Move from here...
15717         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15718         * builtins.c: Include realmpfr.h.
15719         * fold-const.c: Include realmpfr.h.
15720         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
15721         (fold_negate_const): Likewise.
15722         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
15723         * toplev.c: Include realmpfr.h.
15724         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
15725         and real_value_negate.
15726         * fixed-value.c (check_real_for_fixed_mode): Likewise.
15727         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
15728         (vfp3_const_double_index): Likewise.
15729         (arm_print_operand): Likewise.
15730         * Makefile.in: Update dependencies.
15731
15732 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15733
15734         * config/s390/s390.c (override_options): Increase the default
15735         of max-completely-peel-times.
15736
15737 2010-05-21  Julian Brown  <julian@codesourcery.com>
15738             Mark Mitchell  <mark@codesourcery.com>
15739
15740         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
15741         sibling calls for Thumb-1.
15742         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
15743         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
15744         Thumb-2.
15745         (*call_insn, *call_value_insn): Don't use for Thumb-2.
15746         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
15747         for Thumb-2.
15748         (return): New expander.
15749         (*arm_return): New name for ARM return insn.
15750         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
15751
15752 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
15753
15754         * config.gcc (sparc64-*-rtems*): New target.
15755
15756 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15757
15758         * tree.c (build_function_decl_skip_args): Fix grammar.
15759         (build_function_type_list_1): Fix typos, adjust formatting.
15760
15761 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15762
15763         * tree.h: Include real.h and fixed-value.h as basic datatypes.
15764         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
15765         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
15766         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
15767         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
15768         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
15769         tree-pretty-print.c, tree-loop-distribution.c,
15770         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
15771         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
15772         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
15773         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
15774         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
15775         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
15776         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
15777         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
15778         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
15779         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
15780         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
15781         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
15782         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
15783         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
15784         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
15785         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
15786         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
15787         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
15788         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
15789         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
15790         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
15791         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
15792         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
15793         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
15794         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
15795         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
15796         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
15797         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
15798         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
15799         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
15800         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
15801         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
15802         config/score/score7.c, config/score/score.c, config/arm/arm.c,
15803         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
15804         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
15805         config/bfin/bfin.c: Clean up redundant includes.
15806         * Makefile.in: Update accordingly.
15807
15808 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15809
15810         PR middle-end/44204
15811         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
15812         statement has no arguments.
15813
15814 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
15815
15816         PR/44139
15817         * varasm.c (emutls_decl): Merge attributes to new decl.
15818
15819 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15820
15821         PR middle-end/44101
15822         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
15823         around the uniquized constructor if its type requires a conversion.
15824
15825 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15826
15827         PR debug/44205
15828         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
15829         at -O0 goto_locus of any of the incoming edges differs from
15830         goto_locus of outgoing edge, or gimple_location of any of the
15831         labels differs.
15832
15833 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
15834
15835         * ira.c (ira_non_ordered_class_hard_regs): Define.
15836         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
15837         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
15838         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
15839         cost of unaligned hard regs when allocating multi-reg pseudos.
15840
15841 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
15842
15843         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
15844         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
15845         for TARGET_NO_FLOAT.
15846         * config/mips/mips.c (mips_file_start): Expand conditional expression
15847         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
15848         (mips_override_options): Move -mno-float override -msoft-float and
15849         -mhard-float.
15850         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
15851         Condition(TARGET_SUPPORTS_NO_FLOAT).
15852         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
15853         __mips_no_float here.
15854         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
15855         (TARGET_SUPPORTS_NO_FLOAT): Define.
15856         * config/mips/sdemtk.opt: Delete.
15857
15858 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
15859
15860         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
15861
15862 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
15863
15864         PR target/43733
15865         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
15866         * configure: Regenerate.
15867         * config.in: Regenerate.
15868         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
15869         instead of sahf only for 64bit targets.
15870
15871 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15872
15873         PR debug/44178
15874         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
15875         setup_ref_regs for DEBUG_INSNs.
15876
15877 2010-05-20  Jan Hubicka  <jh@suse.cz>
15878
15879         PR middle-end/44197
15880         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
15881
15882 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15883
15884         PR bootstrap/43870
15885         * df-scan.c (df_ref_compare): Stabilize sort.
15886
15887 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15888
15889         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
15890         argument.  Don't use DW_OP_piece if offset is non-zero,
15891         put offset into second DW_OP_bit_piece argument.
15892         (dw_sra_loc_expr): Adjust callers.  For memory expressions
15893         compute offset.
15894
15895 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
15896
15897         PR target/44202
15898         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
15899         settings for 16-bit-constant "addo" alternative.
15900
15901 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
15902
15903         * config/mips/mips-dsp.md (add<DSPV:mode>3,
15904         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
15905
15906         PR target/43764
15907         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
15908         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
15909         Use it.
15910
15911 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
15912
15913         * diagnostic.c (FLOAT, FFS): Don't undefine.
15914         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
15915         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
15916         include ordering.
15917
15918 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15919
15920         * combine.c (propagate_for_debug): Call make_compound_operation
15921         on the source value.
15922         (try_combine): When implementing a split chosen by find_split_point,
15923         either copy i2src or set it to null.  Assert that i2src is not null
15924         before substituting into CALL_INSN_FUNCTION_USAGE.
15925
15926 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
15927
15928         * double-int.h (double_int_ior): New function.
15929         * tree.h (build_int_cst_wide_type): Remove.
15930         * tree.c (build_int_cst_wide_type): Remove.
15931         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
15932         of build_int_cst_wide_type.
15933         * stor-layout.c (set_sizetype): (Ditto.).
15934         * dojump.c (do_jump): Use build_int_cstu instead of
15935         build_int_cst_wide_type.
15936
15937 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15938
15939         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
15940         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
15941         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
15942         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
15943         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
15944         propagate the 'data' argument to copy_tree_r.
15945         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
15946         Propagate 'data' argument to walk_tree.
15947         (copy_if_shared): New function.
15948         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
15949         (unmark_visited): New function.
15950         (unshare_body): Call copy_if_shared instead of doing it manually.
15951         (unvisit_body): Call unmark_visited instead of doing it manually.
15952
15953 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
15954
15955         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
15956         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
15957         * hooks.c: Likewise.
15958         * target-def.h (TARGET_FOLD_BUILTIN): Define to
15959         hook_tree_tree_int_treep_bool_null.
15960         * target.h (struct gcc_target): Update signature of fold_builtin
15961         field.
15962         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
15963         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
15964         instead of the call expression.
15965         (fold_builtin_call_array): Pass n and argarray directly.
15966         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
15967         consing a list.
15968         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
15969         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
15970         `i' and use it in place of `arity'.
15971         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
15972         Dereference `args' directly.
15973         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
15974
15975 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15976
15977         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15978         3dnow, sse3, sse2.
15979         (Directives): Document optional dg-require-effective-target
15980         selector.
15981
15982 2010-05-19  Richard Guenther  <rguenther@suse.de>
15983
15984         PR lto/44196
15985         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
15986
15987 2010-05-19  Richard Guenther  <rguenther@suse.de>
15988
15989         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
15990         * common.opt (fwhopr=): New.
15991         * opts.c (common_handle_option): Handle OPT_fwhopr.
15992         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
15993         * collect2.c (main): Match -fwhopr*.
15994         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
15995         Execute ltrans stage in parallel when jobs is bigger than 1.
15996
15997 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15998
15999         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16000         pentiumpro on Solaris 8/x86 with Sun as.
16001         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
16002         hidden alias bug.
16003         (gcc_cv_as_ix86_quad): Check for .quad directive.
16004         * configure: Regenerate.
16005         * config.in: Regenerate.
16006         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
16007
16008 2010-05-19  Martin Jambor  <mjambor@suse.cz>
16009
16010         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
16011         also for indirect edges.  Actual printing moved...
16012         (ipa_print_node_jump_functions_for_edge): ...here.
16013         (ipa_compute_jump_functions): Renamed to
16014         ipa_compute_jump_functions_for_edge and made static.
16015         (ipa_compute_jump_functions): New function.
16016         (make_edge_direct_to_target): Check if the number of arguments on
16017         the newly direct edge is the same as the number of parametrs of
16018         the callee.
16019         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
16020         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
16021         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16022         analysis functions unconditionally, call the new
16023         ipa_analyze_params_uses on the node instead of every edge.
16024
16025 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
16026
16027         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
16028         to tree.
16029         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
16030         also checks for a constant int vs.  non-constant but
16031         loop-invariant steps.
16032         (find_or_create_group): Change the sort algorithm to only consider
16033         steps that are constant ints.
16034         (idx_analyze_ref): Adopt code to handle a tree instead of a
16035         HOST_WIDE_INT for step.
16036         (gather_memory_references_ref): Handle tree instead of int and be
16037         prepared to see a NULL_TREE.
16038         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
16039         prefetches if the step cannot be calculated at compile time.
16040         (issue_prefetch_ref): Issue prefetches for non-constant but
16041         loop-invariant steps.
16042
16043 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16044
16045         Revert:
16046         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16047
16048         * tree.h (build_call_list): Remove.
16049         * tree.c (build_call_list): Remove.
16050
16051 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16052
16053         * tree.h (build_call_list): Remove.
16054         * tree.c (build_call_list): Remove.
16055
16056 2010-05-18  Jan Hubicka  <jh@suse.cz>
16057
16058         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
16059
16060 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
16061
16062         PR rtl-optimization/43332
16063         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
16064
16065 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
16066
16067         * tree.h (build_int_cstu): Implement as static inline.
16068         * tree.c (build_int_cstu): Remove function.
16069         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
16070         sign extended.
16071
16072 2010-05-18  Richard Guenther  <rguenther@suse.de>
16073
16074         PR lto/44143
16075         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
16076         (debug): Initialize from -save-temps.
16077         (collect_execute): Print command-line when verbose.
16078         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
16079         for ltrans invocation.  Produce -dumpbase flag again.
16080         (process_args): Remove.
16081         (main): Simplify.
16082         * collect2.c (maybe_run_lto_and_relink): Only pass object
16083         files to lto-wrapper.
16084         * gcc.c (LINK_COMMAND_SPEC): Likewise.
16085
16086 2010-05-18  Jan Hubicka  <jh@suse.cz>
16087
16088         * opts.c (decode_options): Do not disable whopr at ipa_cp.
16089         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
16090
16091 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16092
16093         PR lto/44184
16094         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
16095         in a GIMPLE_ASM.
16096         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
16097         in a GIMPLE_ASM.
16098
16099 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
16100
16101         PR debug/41371
16102         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
16103         rtx_equal_p inline.
16104
16105 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16106
16107         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
16108         lto-macho as lto_binary_reader.
16109
16110         * darwin.c (darwin_asm_named_section): Do not add assembler comment
16111         after .section directive; just print it before the directive instead.
16112
16113 2010-05-17  Jan Hubicka  <jh@suse.cz>
16114
16115         * cgraph.c (cgraph_create_virtual_clone): Only check
16116         versionable_function_p when not in wpa and checking is enabled.
16117         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
16118         there are no more functions to materialize.
16119
16120 2010-05-17  Jan Hubicka  <jh@suse.cz>
16121
16122         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
16123         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
16124         New functions.
16125         (output_cgraph): Call output_cgraph_opt_summary.
16126         (input_cgrpah): Call input_cgraph_opt_summary.
16127         (output_cgraph_opt_summary_p, output_node_opt_summary,
16128         input_node_opt_summary, input_cgraph_opt_section): New functions.
16129         * lto-section-in.c (lto_section_name): Add cgraphopt.
16130         * tree-inline.c (tree_function_versioning): Handle parm_num.
16131         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
16132         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
16133
16134 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16135
16136         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
16137         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
16138         the insn to prefetch ratio heuristic to loops with known trip count.
16139
16140 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16141
16142         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
16143         (schedule_prefetches): Do not generate a prefetch if the unroll factor
16144         is far from what is required by the prefetch.
16145
16146 2010-05-17  Jan Hubicka  <jh@suse.cz>
16147
16148         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
16149         (ipcp_estimate_growth): Likewise.
16150         (ipcp_const_param_count): Likewise.
16151         (ipcp_insert_stage): Likewise.
16152         * ipa-prop.c (visit_load_for_mod_analysis): New function.
16153         (visit_store_addr_for_mod_analysis): Set used flag.
16154         (ipa_detect_param_modifications): Set used flag for SSE params;
16155         update use of walk_stmt_load_store_addr_ops.
16156         (ipa_print_node_params): Print used flag.
16157         (ipa_write_node_info): Stream used flag.
16158         (ipa_read_node_info): Likewise.
16159         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
16160         (ipa_is_param_used): New function.
16161         (lto_ipa_fixup_call_notes): Remove unused declaration.
16162
16163 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16164
16165         PR target/44074
16166         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
16167         * configure: Regenerate.
16168         * config.in: Regenerate.
16169         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
16170         !HAVE_AS_IX86_REP_LOCK_PREFIX.
16171         Don't emit whitespace.
16172         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
16173         (*rep_movsi): Likewise.
16174         (*rep_movsi_rex64): Likewise.
16175         (*rep_movqi): Likewise.
16176         (*rep_movqi_rex64): Likewise.
16177         (*rep_stosdi_rex64): Likewise.
16178         (*rep_stossi): Likewise.
16179         (*rep_stossi_rex64): Likewise.
16180         (*rep_stosqi): Likewise.
16181         (*rep_stosqi_rex64): Likewise.
16182         (*cmpstrnqi_nz_1): Use {%;} after repz.
16183         (*cmpstrnqi_nz_rex_1): Likewise.
16184         (*cmpstrnqi_1): Likewise.
16185         (*cmpstrnqi_rex_1): Likewise.
16186         (*strlenqi_1): Use {%;} after repnz.
16187         (*strlenqi_rex_1): Likewise.
16188         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
16189         (*sync_compare_and_swap<mode>): Likewise.
16190         (sync_double_compare_and_swap<mode>): Likewise.
16191         (*sync_double_compare_and_swapdi_pic): Likewise.
16192         (sync_old_add<mode>): Likewise.
16193         (sync_add<mode>): Likewise.
16194         (sync_sub<mode>): Likewise.
16195         (sync_<code><mode>): Likewise.
16196
16197 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16198
16199         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
16200         otr_token and polymorphic.
16201         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
16202         (cgraph_clone_edge): Copy the above fields.
16203         * tree.c (get_binfo_at_offset): New function.
16204         * tree.h (get_binfo_at_offset): Declare.
16205         * ipa-prop.h (enum jump_func_type): Added known_type jump function
16206         type, reordered items, updated comments.
16207         (union jump_func_value): Added base_type field, reordered fields.
16208         (enum ipa_lattice_type): Moved down in the file.
16209         (struct ipa_param_descriptor): New field polymorphic.
16210         (ipa_is_param_polymorphic): New function.
16211         * ipa-prop.c: Include gimple.h and gimple-fold.h.
16212         (ipa_print_node_jump_functions): Print known type jump functions.
16213         (compute_complex_pass_through): Renamed to...
16214         (compute_complex_assign_jump_func): this.
16215         (compute_complex_ancestor_jump_func): New function.
16216         (compute_known_type_jump_func): Likewise.
16217         (compute_scalar_jump_functions): Create known type and complex ancestor
16218         jump functions.
16219         (ipa_note_param_call): New parameter polymorphic, set the corresponding
16220         flag in the call note accordingly.
16221         (ipa_analyze_call_uses): Renamed to...
16222         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
16223         variable var only in the block where it is used.
16224         (ipa_analyze_virtual_call_uses): New function.
16225         (ipa_analyze_call_uses): Likewise.
16226         (combine_known_type_and_ancestor_jfs): Likewise.
16227         (update_jump_functions_after_inlining): Implemented handling of a
16228         number of new jump function types combination.
16229         (print_edge_addition_message): Removed.
16230         (make_edge_direct_to_target): New function.
16231         (try_make_edge_direct_simple_call): Likewise.
16232         (try_make_edge_direct_virtual_call): Likewise.
16233         (update_call_notes_after_inlining): Renamed to...
16234         (update_indirect_edges_after_inlining): this.  Moved edge creation for
16235         indirect calls to try_make_edge_direct_simple_call, also calls
16236         try_make_edge_direct_virtual_call for virtual calls.
16237         (ipa_print_node_params): Changed the header message.
16238         (ipa_write_jump_function): Stream also known type jump functions.
16239         (ipa_read_jump_function): Likewise.
16240         (ipa_write_indirect_edge_info): Stream new fields in
16241         cgraph_indirect_call_info.
16242         (ipa_read_indirect_edge_info): Likewise.
16243         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
16244         GIMPLE_FOLD_H.
16245
16246 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16247
16248         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
16249
16250 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16251
16252         * tree.h (CALL_EXPR_ARGS): Delete.
16253         (call_expr_arglist): Delete.
16254         * tree.c (call_expr_arglist): Delete.
16255         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
16256         targetm.fold_builtin.
16257         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
16258         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
16259         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
16260         arglist parameter.  Use CALL_EXPR_ARG.
16261         (picochip_expand_builtin_3op): Likewise.
16262         (picochip_expand_builtin_2opvoid): Likewise.
16263         (picochip_expand_array_get): Likewise.
16264         (picochip_expand_array_put): Likewise.
16265         (picochip_expand_array_testport): Likewise.
16266         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
16267         rather than arglist.
16268         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
16269         CALL_EXPR_ARGS.
16270         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
16271         than TREE_VALUE and TREE_CHAIN.
16272         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16273         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
16274         the arglist.
16275
16276 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16277
16278         PR bootstrap/42347
16279         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
16280         to have no fallthru edge.
16281
16282         PR middle-end/44102
16283         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
16284         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
16285         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
16286         add BARRIER after previous bb if needed.
16287
16288 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16289
16290         * tree.c (build_function_type_list_1): Remove bogus assert condition.
16291
16292 2010-05-17  Alan Modra  <amodra@gmail.com>
16293
16294         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
16295         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
16296         with copy_reg rtx param.
16297         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
16298         Correct cases where code for ABI_V4 did not initialise the reg
16299         used to access frame.  Also leave frame_reg_rtx as sp for large
16300         frames that save no regs.
16301
16302 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16303
16304         PR middle-end/44133
16305         * tree-sra.c (create_access_replacement): New parameter rename, mark
16306         the replaement for renaming only when it is true.
16307         (get_access_replacement): Pass true in the rename parameter of
16308         create_access_replacement.
16309         (get_unrenamed_access_replacement): New function.
16310         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
16311         replacement declaration from it.
16312
16313 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
16314
16315         * function.c (try_fit_stack_local, add_frame_space): New static
16316         functions.
16317         (assign_stack_local_1): Use them.  Look for opportunities to use
16318         space previously wasted on alignment.
16319         * function.h (struct frame_space): New.
16320         (struct rtl_data): Add FRAME_SPACE_LIST member.
16321         * reload1.c (something_was_spilled): New static variable.
16322         (alter_reg): Set it.
16323         (reload): Test it in addition to testing if the frame size changed.
16324
16325 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
16326
16327         * config/s390/s390.c: Define sane prefetch settings and activate
16328         flag_prefetch_loop_arrays on -O3.
16329         * config/s390/s390.h: Declare that read can use write prefetch.
16330
16331 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16332
16333         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
16334         build.
16335
16336 2010-05-16  Jan Hubicka  <jh@suse.cz>
16337
16338         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
16339         function body; do not check stdarg field of struct function.
16340
16341 2010-05-16  Jan Hubicka  <jh@suse.cz>
16342
16343         * cgraph.c (dump_cgraph_node): Dump versionable flag.
16344         * cgraph.h (cgraph_local_info): Add versionable flag.
16345         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
16346         (ipcp_versionable_function_p): Use it.
16347         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16348         versionable flag.
16349
16350 2010-05-16  Jan Hubicka  <jh@suse.cz>
16351
16352         * cgraph.c (cgraph_clone_node): Take decl argument and insert
16353         clone into hash when it is different from orig.
16354         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
16355         * cgraph.h (cgraph_clone_node): Update prototype.
16356         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
16357         (lto_cgraph_encoder_delete): Delete body map.
16358         (lto_cgraph_encoder_size): Move to header.
16359         (lto_cgraph_encoder_encode_body_p,
16360         lto_set_cgraph_encoder_encode_body): New.
16361         (lto_output_node): Do not take written_decls argument; output clone_of
16362         pointer.
16363         (add_node_to): Add include_body_argument; call
16364         lto_set_cgraph_encoder_encode_body on master of the clone.
16365         (add_references): Update use of add_node_to.
16366         (compute_ltrans_boundary): Likewise.
16367         (output_cgraph): Do not create written_decls bitmap.
16368         (input_node): Take nodes argument; stream in clone_of correctly.
16369         (input_cgraph_1): Update use of input_node.
16370         * lto-streamer-out.c (lto_output): Use encoder info to decide
16371         what bodies to output.
16372         * ipa-inline.c (cgraph_clone_inlined_nodes,
16373         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
16374         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
16375         (lto_cgraph_encoder_size): Define here.
16376         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
16377         Declare.
16378
16379 2010-05-16  Richard Guenther  <rguenther@suse.de>
16380
16381         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
16382         -fipa-type-escape.
16383         * ipa-type-escape.c (gate_type_escape_vars): Run when
16384         -fipa-struct-reorg runs.
16385         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
16386         * common.opt (fipa-type-escape): Remove.
16387
16388 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16389
16390         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
16391         (decode_options): Likewise.
16392         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
16393
16394 2010-05-16  Jan Hubicka  <jh@suse.cz>
16395
16396         * ipa.c (function_and_variable_visibility): Also bring local all
16397         aliases.
16398
16399 2010-05-16  Richard Guenther  <rguenther@suse.de>
16400
16401         * alias.c (nonoverlapping_memrefs_p): Remove use of
16402         IPA type-escape information.
16403
16404 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
16405
16406         * c-common.c (c_common_reswords): Add _Static_assert for C.
16407         * c-parser.c (c_token_starts_declaration,
16408         c_parser_next_token_starts_declaration,
16409         c_parser_static_assert_declaration_no_semi,
16410         c_parser_static_assert_declaration): New.
16411         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
16412         Handle static assertions if static_assert_ok.
16413         (c_parser_external_declaration, c_parser_declaration_or_fndef,
16414         c_parser_compound_statement_nostart, c_parser_label,
16415         c_parser_for_statement, c_parser_objc_methodprotolist,
16416         c_parser_omp_for_loop): All callers of
16417         c_parser_declaration_or_fndef changed.
16418         (c_parser_struct_declaration): Handle static assertions.
16419         (c_parser_compound_statement_nostart): Use
16420         c_parser_next_token_starts_declaration and
16421         c_token_starts_declaration to detect start of declarations.
16422         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
16423         Likewise.
16424
16425 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
16426
16427         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16428         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16429         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16430         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16431         (mmix_function_outgoing_value): Rename to...
16432         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
16433         (mmix_function_value_regno_p): Make static.
16434         (mmix_libcall_value): New function.
16435         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
16436         mmix_function_value_regno_p): Remove declaration.
16437
16438 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16439
16440         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
16441         BUILT_IN_ALLOCA if stack checking is enabled.
16442
16443 2010-05-16  Richard Guenther  <rguenther@suse.de>
16444
16445         * var-tracking.c (vars_copy_1): Inline ...
16446         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16447         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
16448         (variable_merge_over_cur): Adjust.  Merge asserts.
16449         (variable_merge_over_src): Likewise.
16450         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
16451         (variable_post_merge_new_vals): Merge asserts.
16452         (variable_post_merge_perm_vals): Likewise.
16453         (find_mem_expr_in_1pdv): Likewise.
16454         (dataflow_set_different_value): Remove.
16455         (onepart_variable_different_p): Merge asserts.
16456         (variable_different_p): Likewise.
16457         (dataflow_set_different_1): Inline ...
16458         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16459         (emit_notes_for_differences_1): Merge asserts.
16460
16461 2010-05-16  Richard Guenther  <rguenther@suse.de>
16462
16463         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
16464         * optabs.c (libfunc_decl_hash): Likewise.
16465         * varasm.c (emutls_decl): Likewise.
16466
16467 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
16468
16469         * c-decl.c: Don't include gimple.h.
16470         (merge_decls): Do not copy gimple_body.
16471
16472 2010-05-15  Jason Merrill  <jason@redhat.com>
16473
16474         * c.opt: Add -fnothrow-opt.
16475
16476 2010-05-15  Jan Hubicka  <jh@suse.cz>
16477
16478         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
16479         analyzed.
16480         * passes.c (ipa_write_summaries): Write all analyzed nodes.
16481
16482 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
16483
16484         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
16485         * Makefile.in: Add it.
16486         Fix all other Makefile dependencies for changes below.
16487         * tree.h: Include it instead of defining VEC primitives here.
16488         * gimple.h: Likewise.
16489         * rtl.h: Likewise.
16490         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
16491         * except.h: Include vecir.h, break dependence on tree.h.
16492
16493         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
16494         Move from here...
16495         * tree-iterator.c: ...to here.
16496         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
16497
16498         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
16499         tm_p.h.
16500         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
16501         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
16502         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
16503         tree-mudflap.h, and target.h.
16504         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
16505         predict.h, tree-inline.h, gimple.h, and langhooks.h.
16506         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
16507         Add FIXME for why gimple.h is still included (should be unnecessary
16508         since GCC 4.5 gimplification unit-at-a-time).
16509         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
16510         * c-pragma.c: Add FIXME for why function.h needs to be included just
16511         for cfun, at front-end level.
16512         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
16513         Do not include ggc.h, but include vecprim.h for VEC(char).
16514         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
16515         Explain why target.h is included.
16516         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
16517         Explain why gimple.h is included.
16518         * c-ppoutput.c: Do not include tm.h.
16519         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
16520         * c-parses.c: Explain why rtl.h is included, and that this (and only
16521         this) is also why tm.h must be included.
16522         Do not include except.h.
16523         * c-lang.c: Do not include ggc.h.
16524
16525 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
16526
16527         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
16528
16529 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
16530
16531         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
16532         unions by default if those structs and unions have no tags.  Do
16533         not condition anonymous struct and unions handling on flag_iso.
16534         Allow anonymous structs and unions for C1X.
16535         (finish_struct): Do not diagnose lack of named fields when
16536         anonymous structs and unions present for C1X.  Accept flexible
16537         array members in structure with anonymous structs or unions but no
16538         directly named fields.
16539         * doc/extend.texi (Unnamed Fields): Update.
16540
16541 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16542
16543         * gimple.h (compare_field_offset): Rename into...
16544         (gimple_compare_field_offset): ...this.
16545         * gimple.c (compare_field_offset): Rename into...
16546         (gimple_compare_field_offset): ...this.  Compare the full access if
16547         the offset is self-referential.
16548         (gimple_types_compatible_p): Adjust for above renaming.
16549         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
16550         DECL_NONADDRESSABLE_P flag of fields before merging them.
16551
16552 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
16553
16554         * tree.h (ctor_to_list): Delete.
16555         * tree.c (ctor_to_list): Delete.
16556
16557 2010-05-15  Jan Hubicka  <jh@suse.cz>
16558
16559         * ipa-reference.c: Include toplev.h
16560         (is_proper_for_analysis): Only add to all_module_statics
16561         if it is allocated.
16562         (write_node_summary_p, stream_out_bitmap,
16563         ipa_reference_write_optimization_summary,
16564         ipa_reference_read_optimization_summary): New.
16565         (struct ipa_opt_pass_d pass_ipa_reference): Add
16566         optimization summary streaming.
16567         * lto-cgraph.c (referenced_from_this_partition_p,
16568         reachable_from_this_partition_p): New functions.
16569         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
16570         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
16571         * opts.c (decode_options): Enable ipa_reference.
16572         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
16573         * lto-streamer.h (referenced_from_this_partition_p,
16574         reachable_from_this_partition_p): Declare.
16575
16576 2010-05-15  Richard Guenther  <rguenther@suse.de>
16577
16578         PR tree-optimization/44038
16579         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
16580         taking the address of a V_C_E of a constant.
16581
16582 2010-05-14  Jan Hubicka  <jh@suse.cz>
16583
16584         * tree.h (memory_identifier_string): Remove.
16585         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
16586         (ipa_reference_global_vars_info_d): Remove statics_not_read and
16587         statics_not_written.
16588         (ipa_reference_optimization_summary_d): New structure.
16589         (ipa_reference_optimization_summary_t): New type and vector.
16590         (ipa_reference_vars_info_d): Embedd structures instead of using
16591         pointers.
16592         (reference_vars_to_consider): Remove out of GGC space.
16593         (module_statics_escape): Remove.
16594         (global_info_obstack): Rename to ...
16595         (optimization_summary_obstack): ... this one.
16596         (initialization_status_t): Remove.
16597         (memory_identifier_string): Remove.
16598         (get_reference_vars_info): Fix indenting.
16599         (set_reference_vars_info): Likewise.
16600         (get_reference_optimization_summary): New.
16601         (set_reference_optimization_summary): New.
16602         (get_global_reference_vars_info): Remove.
16603         (ipa_reference_get_read_global): Remove.
16604         (ipa_reference_get_written_global): Remove.
16605         (ipa_reference_get_not_read_global): Update.
16606         (ipa_reference_get_not_written_global): Update.
16607         (is_proper_for_analysis): Outlaw addressable.
16608         (propagate_bits): Update for new datastructures.
16609         (analyze_variable): Remove.
16610         (init_function_info): Update for new datastructures.
16611         (clean_function_local_data): Remove.
16612         (clean_function): Remove.
16613         (copy_global_bitmap): Use optimizations_summary_obstack.
16614         (duplicate_node_data): Duplicate optimization summary only.
16615         (remove_node_data): Remove optimization summary only.
16616         (generate_summary): Do not analyze variables; do not compute
16617         module_statics_escape; do not prune solutions by it.
16618         (read_write_all_from_decl): Fix typos in comments.
16619         (propagate): Doscover readonly and nonaddressable first;
16620         update for new datastructures; share global bitmaps.
16621         * ipa-reference.h (ipa_reference_get_read_global,
16622         ipa_reference_get_written_global): Remove.
16623         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
16624         * Makefile.in: Remove ipa-refereference from GT files.
16625
16626 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16627
16628         PR debug/44112
16629         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
16630         for all SYMBOL_REF_DECLs.
16631
16632 2010-05-14  Jan Hubicka  <jh@suse.cz>
16633
16634         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
16635         (varpool_all_refs_explicit_p): New inline function.
16636         * ipa-reference.c: Update comment.
16637         (module_statics_written): Remove.
16638         (get_static_decl): Remove.
16639         (ipa_init): Do not initialize module_statics_written.
16640         (analyze_function): Likewise.
16641         (generate_summary): Likewise; do not compute module_statics_readonly
16642         and do not update variable flags.
16643         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
16644         * ipa.c: Inlucde flags.h
16645         (cgraph_local_node_p): New.
16646         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
16647         promote functions to local.
16648         (ipa_discover_readonly_nonaddressable_vars): New function.
16649         (function_and_variable_visibility): Use cgraph_local_node_p.
16650         * varpool.c (varpool_finalize_decl): Set force_output for
16651         DECL_PRESERVE_P vars.
16652
16653 2010-05-14  Jan Hubicka  <jh@suse.cz>
16654
16655         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
16656
16657 2010-05-14  Richard Guenther  <rguenther@suse.de>
16658
16659         PR tree-optimization/44119
16660         * tree-ssa-pre.c (eliminate): Properly mark replacement of
16661         a PHI node necessary.
16662
16663 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16664
16665         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
16666
16667 2010-05-14  Jason Merrill  <jason@redhat.com>
16668
16669         PR c++/44127
16670         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
16671         (gimple_call_set_nothrow): New.
16672         * gimple.c (gimple_build_call_from_tree): Call it.
16673         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
16674
16675         PR c++/44127
16676         * gimplify.c (gimplify_seq_add_stmt): No longer static.
16677         * gimple.h: Declare it.
16678         * gimple.c (gimple_build_eh_filter): No ops.
16679
16680 2010-05-14  Jan Hubicka  <jh@suse.cz>
16681
16682         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
16683         nodes already in queue.
16684         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
16685         re-enqueueing node.
16686
16687 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16688
16689         PR debug/44136
16690         * cfgexpand.c (expand_debug_expr): If non-memory op0
16691         has BLKmode, return NULL.
16692
16693 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
16694
16695         * config.gcc: Add support for --with-cpu option for bdver1.
16696         * config/i386/i386.h (TARGET_BDVER1): New macro.
16697         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
16698         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16699         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
16700         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16701         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
16702         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
16703         (processor_type): Add PROCESSOR_BDVER1.
16704         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
16705         processor_type in config/i386/i386.h.
16706         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
16707         movaps <reg, reg> instead of movapd <reg, reg> when replacing
16708         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
16709         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
16710         to emit packed xor instead of packed double/packed integer
16711         xor for SSE and AVX when moving a zero value.
16712         * config/i386/sse.md: Add check for
16713         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
16714         movapd/movdqa for SSE and AVX.
16715         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
16716         single logical operations i.e and, or and xor instead of packed double
16717         logical operations for SSE and AVX.
16718         * config/i386/i386-c.c (ix86_target_macros_internal):
16719         Add PROCESSOR_BDVER1.
16720         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
16721         (has_fma4, has_xop): New.
16722         * config/i386/i386.c (bdver1_cost): New variable.
16723         (m_BDVER1): New macro.
16724         (m_AMD_MULTIPLE): Add m_BDVER1.
16725         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
16726         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
16727         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
16728         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
16729         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
16730         x86_tune_sse_partial_reg_dependency,
16731         x86_tune_sse_unaligned_load_optimal,
16732         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
16733         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
16734         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
16735         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
16736         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
16737         Enable/disable for bdver1.
16738         (processor_target_table): Add bdver1_cost.
16739         (cpu_names): Add bdver1.
16740         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
16741          processor_alias_table.
16742         (ix86_expand_vector_move_misalign): Change.
16743         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
16744         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
16745         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
16746         of movupd/movdqu for SSE and AVX.
16747         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
16748         (ix86_tune_adjust_cost): Add code for bdver1.
16749         (standard_sse_constant_opcode): Add check for
16750         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
16751         of packed double xor for SSE and AVX.
16752
16753 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
16754
16755         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
16756         result to unsigned.
16757
16758 2010-05-14  Tristan Gingold  <gingold@adacore.com>
16759
16760         * toplev.c (default_debug_hooks): Remove this variable.
16761         (process_options): Remove assignments to default_debug_hooks.
16762
16763 2010-05-14  Martin Jambor  <mjambor@suse.cz>
16764
16765         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
16766         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
16767         * langhooks.h (struct lang_hooks_for_decls): Removed field
16768         fold_obj_type_ref.
16769         * tree.c (free_lang_data): Remove assignment to
16770         lang_hooks.fold_obj_type_ref.
16771         * tree.def (OBJ_TYPE_REF): Update comment.
16772
16773 2010-05-14  Richard Guenther  <rguenther@suse.de>
16774
16775         PR tree-optimization/44124
16776         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
16777
16778 2010-05-14  Alan Modra  <amodra@gmail.com>
16779
16780         PR target/44075
16781         * config/rs6000/rs6000.c (struct machine_function): Reorder
16782         fields for better packing.  Add lr_save_state.
16783         (rs6000_ra_ever_killed): Return lr_save_state if set.
16784         (rs6000_emit_eh_reg_restore): Set lr_save_state.
16785
16786 2010-05-13  Jan Hubicka  <jh@suse.cz>
16787
16788         * varpool.c (decide_is_variable_needed): Drop code checking
16789         TREE_SYMBOL_REFERENCED.
16790
16791 2010-05-13  Jan Hubicka  <jh@suse.cz>
16792
16793         * final.c (output_addr_const): Do not call mark_decl_referenced.
16794         * cgraphunit.c (process_function_and_variable_attributes): Use
16795         mark_needed_node dirrectly.
16796         (assemble_thunk): Do not call mark_decl_referenced.
16797
16798 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
16799
16800         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
16801
16802 2010-05-13  Jeff Law  <law@redhat.com>
16803
16804         * ira-conflicts.c (print_allocno_conflicts): New function broken out
16805         from...
16806         (print_conflicts): Call print_allocno_conflicts.
16807
16808 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16809
16810         PR debug/44104
16811         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
16812         if it is NULL.
16813
16814 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
16815
16816         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
16817         t-mingw-w64 or t-mingw-w32 for multilib configuration.
16818         * config/i386/t-mingw-w32: New.
16819         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
16820
16821 2010-05-13  Martin Jambor  <mjambor@suse.cz>
16822
16823         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
16824         gimple-fold.c).
16825         * gimple-fold.c (get_base_binfo_for_type): New function.
16826         (gimple_get_relevant_ref_binfo): Likewise.
16827         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16828         (gimple_fold_obj_type_ref): Likewise.
16829         (fold_gimple_call): Simplify condition for folding virtual calls
16830         and call gimple_fold_obj_type_ref.
16831         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
16832         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16833
16834 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
16835
16836         * config/rs6000/rs6000-protos.h
16837         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
16838         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
16839         (rs6000_debug_mode_dependent_address)
16840         (rs6000_mode_dependent_address_ptr): Likewise.
16841
16842 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16843
16844         PR debug/43983
16845         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
16846         by SRA.
16847         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
16848         * tree-sra.c (create_access_replacement): Call unshare_expr before
16849         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
16850         * dwarf2out.c: Include tree-flow.h.
16851         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
16852         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
16853         Handle DW_OP_bit_piece.
16854         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
16855         construct_piece_list, adjust_piece_list): New functions.
16856         (add_var_loc_to_decl): Handle SRA optimized variables.
16857         Adjust for var_loc_note to loc field renaming.
16858         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
16859         in VAR_LOCATION note.
16860         (new_loc_descr_op_bit_piece): New function.
16861         (dw_sra_loc_expr): New function.
16862         (dw_loc_list): Use it.  Don't handle the last range after the
16863         loop, handle it inside of the loop.  Adjust for var_loc_note
16864         to loc field renaming.
16865         (add_location_or_const_value_attribute): Only special case
16866         single entry loc lists if loc is NOTE_P.  Adjust for
16867         var_loc_note to loc field renaming.
16868         (dwarf2out_var_location): Don't set newloc->var_loc_note
16869         and newloc->next here.
16870
16871 2010-05-12  Jan Hubicka  <jh@suse.cz>
16872
16873         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
16874         flag.
16875         * cgraph.h (cgraph_only_called_directly_p,
16876         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
16877         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
16878         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
16879         (assemble
16880         * ipa.c (cgraph_remove_unreachable_nodes): Use
16881         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
16882         flags.
16883         * tree-inline.c (copy_bb): Check address_taken flag.
16884         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
16885         externally_visible flag.
16886
16887 2010-05-12  Jason Merrill  <jason@redhat.com>
16888
16889         PR bootstrap/44048
16890         PR target/44099
16891         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
16892         * sdbout.c (plain_type_1): Likewise.
16893         * dwarf2out.c (is_base_type): Likewise.
16894         (gen_type_die_with_usage): Likewise.  Generate
16895         DW_TAG_unspecified_type for any LANG_TYPE.
16896
16897 2010-05-12  Jan Hubicka  <jh@suse.cz>
16898
16899         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
16900         indrect edges too.
16901         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
16902         (cgraph_clone_edge): Update.
16903         (cgraph_node_remove_callees): Remove indirect calls too.
16904         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
16905         (cgraph_create_indirect_edge): Update prototype.
16906         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
16907         is_proper_for_analysis.
16908         (add_new_function, visited_nodes, function_insertion_hook_holder,
16909         get_local_reference_vars_info, mark_address_taken, mark_address,
16910         mark_load, mark_store, check_asm_memory_clobber, check_call,
16911         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
16912         (ipa_init): Do not initialize visited_nodes;
16913         function_insertion_hook_holder.
16914         (analyze_variable): Rewrite.
16915         (analyze_function): Rewrite.
16916         (copy_local_bitmap): Remove.
16917         (duplicate_node_dat): Do not duplicate local info.
16918         (generate_summary): Simplify to only walk cgraph.
16919         (write_node_summary_p, ipa_reference_write_summary,
16920         ipa_reference_read_summary): Remove.
16921         (propagate): Do not remove function insertion;
16922         generate summary.
16923         (pass_ipa_reference): NULLify summary handling fields.
16924         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
16925         (input_edge): Input ecf_flags.
16926         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
16927         (update_indirect_edges_after_inlining): Ignore edges with unknown
16928         param.
16929
16930 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
16931
16932         * implicit-zee.c: New file.
16933         * tree-pass.h (pass_implicit_zee): Declare.
16934         * passes.c (init_optimization_passes): Add zee pass.
16935         * common.opt (fzee): New flag.
16936         * timevar.def (TV_ZEE): Define.
16937         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
16938         and beyond.
16939         * Makefile.in (implicit-zee.o): Add new build file.
16940
16941 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16942             Nathan Froyd  <froydnj@codesourcery.com>
16943
16944         * c-common.c (sync_resolve_params): Remove write-only variable.
16945
16946 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
16947
16948         * target.h (struct gcc_target): Add mode_dependent_address_p field.
16949         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16950         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
16951         * targhooks.c (default_mode_dependent_address_p): New function.
16952         * targhooks.h (default_mode_dependent_address_p): Declare function.
16953         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16954         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
16955         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
16956         target hook. Change return type to bool.
16957         * recog.h (mode_dependent_address_p): Change return type to bool.
16958
16959 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16960             Nathan Froyd  <froydnj@codesourcery.com>
16961
16962         * tree-mudflap.c (build_function_type_0, build_function_type_1,
16963         build_function_type_2, build_function_type_3): Remove.
16964         (mudflap_init): Use build_function_type_list.
16965
16966 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16967             Nathan Froyd  <froydnj@codesourcery.com>
16968
16969         * coverage.c (build_fn_info_value): Call build_constructor instead of
16970         build_constructor_from_list.
16971         (build_ctr_info_value): Likewise.
16972         (build_gcov_info): Likewise.
16973
16974 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
16975
16976         * tree.c (build_constructor): Compute TREE_CONSTANT for the
16977         resultant constructor.
16978         (build_constructor_single): Don't set TREE_CONSTANT.
16979         (build_constructor_from_list): Don't compute TREE_CONSTANT.
16980
16981 2010-05-12  Jan Hubicka  <jh@suse.cz>
16982
16983         * cgraph.h (struct varpool_node): Add aux.
16984         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
16985         * varpool.c (varpool_remove_node): Do not remove initializer.
16986         (varpool_reset_queue): Export.
16987         (varpool_finalize_decl): Volatile vars are forced to be output.
16988         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
16989         replaced decl.
16990         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
16991         process_references, varpool_can_remove_if_no_refs): New functions.
16992         (cgraph_remove_unreachable_nodes): Handle variables too.
16993
16994 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16995
16996         PR target/44088
16997         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
16998
16999 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
17000
17001         PR middle-end/44085
17002         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
17003         change value of ORT_TASK.
17004         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
17005         (omp_notice_threadprivate_variable): New function.
17006         (omp_notice_variable): Call it for threadprivate variables.
17007         If enclosing ctx is a task, print enclosing task rather than
17008         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
17009         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
17010         if task has untied clause.
17011
17012         PR debug/42278
17013         * dwarf2out.c (base_type_die): Don't add name attribute here.
17014         (modified_type_die): Instead of sizetype use
17015         its underlying original type.  If a DW_TAG_base_type doesn't
17016         have name added, add __unknown__.
17017         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
17018         always call force_type_die instead.
17019
17020 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
17021
17022         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
17023         for __stack_chk_guard.
17024
17025 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17026
17027         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
17028         don't call start_source_file debug hook here...
17029         (finish_options): ... but here, after outputting predefined and
17030         command line defines and undefs.
17031
17032         PR middle-end/44071
17033         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
17034         no fallthru edge.
17035         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
17036         optimizing away empty bb with no successors, move over its
17037         footer chain to fallthru predecessor.
17038         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
17039         (rtl_split_edge): For asm goto call patch_jump_insn even if
17040         splitting fallthru edge.
17041
17042         PR c++/44059
17043         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
17044         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
17045         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17046         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
17047         on DW.ref.* decls.
17048
17049         PR c++/44062
17050         * c-parser.c (c_parser_expression): Mark LHS of a comma
17051         expression as read if it is a decl, handled component or
17052         COMPOUND_EXPR with that on the RHS.
17053         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
17054         if it is a decl or handled component.
17055
17056 2010-05-11  Jan Hubicka  <jh@suse.cz>
17057
17058         * lto-symtab.c (lto_symtab_free): New function.
17059         * lto-streamer.h (lto_symtab_free): Declare.
17060
17061 2010-05-11  Jan Hubicka  <jh@suse.cz>
17062
17063         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
17064         that if function is needed it is reachable.
17065         (lto_output_node): See if it the function is reachable or referenced.
17066         (output_cgraph): Update call of lto_output_node.
17067         * lto-streamer.h (reachable_from_other_partition_p): Declare.
17068
17069 2010-05-11  Jan Hubicka  <jh@suse.cz>
17070
17071         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
17072         Mark as used.
17073
17074 2010-05-11  Jan Hubicka  <jh@suse.cz>
17075
17076         PR tree-optimize/44063
17077         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
17078         queue.
17079         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
17080         limits.
17081         (estimate_function_body_sizes): Compute sizes even when disregarding.
17082
17083 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
17084
17085         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
17086
17087 2010-05-11  Jan Hubicka  <jh@suse.cz>
17088
17089         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
17090         into every boundary.
17091
17092 2010-05-11  Jan Hubicka  <jh@suse.cz>
17093
17094         * matrix-reorg.c (matrix_reorg): Rebuild edges.
17095
17096 2010-05-11  Jan Hubicka  <jh@suse.cz>
17097
17098         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
17099         lto_streamer_cache_delete): Put nodes into heap.
17100         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
17101         heap.
17102
17103 2010-05-11  Jan Hubicka  <jh@suse.cz>
17104
17105         * cgraphbuild.c (cgraph_rebuild_references): New.
17106         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
17107         out extern inlines.
17108         * cgraph.h (cgraph_rebuild_references): Declare.
17109         * tree-inline.c (tree_function_versioning): Use it.
17110         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
17111
17112 2010-05-11  Jan Hubicka  <jh@suse.cz>
17113
17114         * cgraph.c: Include ipa-utils.h
17115         (cgraph_create_virtual_clone): Update references.
17116         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
17117
17118 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17119
17120         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
17121         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
17122         cache size.
17123
17124 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17125
17126         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
17127
17128 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17129
17130         * gcc.c (execute): For -### don't quote arguments that
17131         contain just alphanumerics and _/-. characters.
17132         * doc/invoke.texi: Document that change for -###.
17133
17134         PR debug/44023
17135         * df-problems.c (struct dead_debug): Add to_rescan field.
17136         (dead_debug_init): Clear to_rescan field.
17137         (dead_debug_finish): Rescan all debug insns in to_rescan
17138         bitmap and free the bitmap.
17139         (dead_debug_insert_before): Instead of rescanning debug insns
17140         immediately queue their rescanning until dead_debug_finish.
17141         (df_note_bb_compute): After dead_debug_add do continue instead
17142         of break.
17143
17144 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
17145
17146         PR debug/44028
17147         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
17148         clear also INSN_REG_USE_LIST.
17149
17150 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17151
17152         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
17153
17154 2010-05-10  Jan Hubicka  <jh@suse.cz>
17155
17156         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
17157         commited change.
17158
17159 2010-05-10  Jan Hubicka  <jh@suse.cz>
17160
17161         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
17162         Allocate encoders.
17163         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
17164         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
17165         (lto_streamer_cache_create): Init alloc pool.
17166         (lto_streamer_cache_delete): Free alloc pool.
17167         * lto-streamer.h: Include alloc pool.
17168         (lto_streamer_cache_d): Use alloc pool.
17169         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
17170
17171 2010-05-10  Jan Hubicka  <jh@suse.cz>
17172
17173         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
17174         * cgraphbuild.c: Include except.h
17175         (record_type_list, record_eh_tables): New function.
17176         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
17177
17178 2010-05-10  Jan Hubicka  <jh@suse.cz>
17179
17180         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
17181         __frame_dummy_init_array_entry, force_to_data): Attribute as used
17182         rather than unused.
17183
17184 2010-05-10  Michael Matz  <matz@suse.de>
17185
17186         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
17187         (can_reassociate_p): Use FLOAT_TYPE_P.
17188         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
17189         (vect_force_simple_reduction): ... this.
17190         * tree-parloops.c (gather_scalar_reductions): Use
17191         vect_force_simple_reduction.
17192         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
17193         vect_is_simple_reduction, add modify argument, if true rewrite
17194         "a-b" into "a+(-b)".
17195         (vect_is_simple_reduction, vect_force_simple_reduction): New
17196         functions.
17197         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
17198
17199 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17200             Vladimir Makarov  <vmakarov@redhat.com>
17201
17202         PR rtl-optimization/44012
17203         * ira-build.c (remove_unnecessary_allocnos): Nullify
17204         regno_allocno_map of the removed allocno.
17205
17206 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17207
17208         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
17209         to /dev/null.
17210         * configure: Regenerate.
17211
17212 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17213
17214         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
17215         unused.
17216         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
17217         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
17218         support in Sun ld.
17219         * configure: Regenerate.
17220
17221 2010-05-10  Richard Guenther  <rguenther@suse.de>
17222
17223         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
17224         marked if the entry identifier is marked.
17225
17226 2010-05-10  Richard Guenther  <rguenther@suse.de>
17227
17228         * c-common.c (struct c_common_attributes): Add fnspec attribute.
17229         (handle_fnspec_attribute): New function.
17230         * gimple.h (gimple_call_return_flags): Declare.
17231         (gimple_call_arg_flags): Likewise.
17232         * gimple.c (gimple_call_arg_flags): New function.
17233         (gimple_call_return_flags): Likewise.
17234         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
17235         New argument flags.
17236         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
17237         return value flags.
17238         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
17239         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
17240         main work to ...
17241         (make_heapvar_for): ... this new function.
17242         (handle_rhs_call): Handle fnspec attribute argument specifiers.
17243         (handle_lhs_call): Likewise.
17244         (find_func_aliases): Adjust.
17245
17246 2010-05-10  Richard Guenther  <rguenther@suse.de>
17247
17248         PR tree-optimization/44050
17249         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
17250
17251 2010-05-10  Wei Guozhi  <carrot@google.com>
17252
17253         PR target/42879
17254         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
17255
17256 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17257
17258         PR c/10676
17259         * c-typeck.c (lookup_field): Take a type directly.  Update
17260         recursive calls.
17261         (build_component_ref): Update call to lookup_field.
17262         (set_init_label): Use lookup_field to find initialized field.
17263         Handle returned list of fields like a sequence of designators.
17264
17265 2010-05-09  Richard Guenther  <rguenther@suse.de>
17266
17267         PR middle-end/44024
17268         * fold-const.c (tree_single_nonzero_warnv_p): Properly
17269         handle &FUNCTION_DECL.
17270
17271 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17272
17273         PR c/4784
17274         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
17275         structures and unions recursively.
17276         (detect_field_duplicates): Move duplicate detection with a hash to
17277         detect_field_duplicates_hash.  Always use a hash if anonymous
17278         structures or unions are present.
17279         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
17280         give errors.
17281
17282 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17283
17284         PR target/44046
17285         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
17286         detect Atom, Core 2 and Core i7.
17287
17288 2010-05-09  Richard Guenther  <rguenther@suse.de>
17289
17290         * gcc.c (store_arg): Handle temporary file deletion for
17291         joined arguments.
17292
17293 2010-05-09  Richard Guenther  <rguenther@suse.de>
17294
17295         PR middle-end/44043
17296         * ipa-inline.c (estimate_function_body_sizes): Return after
17297         disregarding inline limits.
17298
17299 2010-05-09  Richard Guenther  <rguenther@suse.de>
17300
17301         * gcc.c (store_arg): Revert last change.
17302
17303 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
17304
17305         PR middle-end/28685
17306         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
17307         (optimize_ops_list): Call it.
17308
17309 2010-05-08  Richard Guenther  <rguenther@suse.de>
17310
17311         PR tree-optimization/44030
17312         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
17313         NECESSARY flag if we propagate from a inserted expression.
17314
17315 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17316
17317         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
17318         domain types as equal if they are both PLACEHOLDER_EXPRs.
17319
17320 2010-05-08  Richard Guenther  <rguenther@suse.de>
17321
17322         * lto-wrapper.c (run_gcc): Remove linker output from
17323         command line for LTRANS invocation.
17324
17325 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17326
17327         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17328         lto-macho as lto_binary_reader.
17329         * target.h (struct gcc_target): New hooks lto_start and lto_end.
17330         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
17331         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
17332         in lto_start and lto_end calls.
17333         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
17334         magic numbers.
17335         (scan_prog_file): Update is_elf_or_coff call.
17336         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
17337
17338         * collect2.c (main): Fix enum comparison.
17339
17340         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
17341         Add prototypes.
17342         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
17343         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
17344         and TARGET_ASM_LTO_END.
17345         * darwin.c: Include obstack.h and lto-streamer.h.
17346         (lto_section_names_offset, lto_section_names_obstack,
17347         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
17348         global variables.
17349         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
17350         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
17351         to a temporary file.
17352         (darwin_asm_lto_end): New function.  Restore asm_out_file.
17353         (darwin_asm_named_section): For LTO sections, replace the name with
17354         the offset of the section name in a string table, and build this
17355         table.
17356         (darwin_file_start): Initialize global vars for LTO support.
17357         (darwin_file_end): If output to asm_out_file was redirected, append it
17358         to the proper asm_out_file here.  Add the section names section.
17359
17360 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17361
17362         * c-pragma.c (pending_weak_d, pending_weak): New.
17363         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
17364         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
17365         handle_pragma_weak): Update the uses of pending_weaks.
17366
17367 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17368
17369         PR documentation/44016
17370         * doc/standards.texi (Standards): Link to unversioned
17371         cxx0x_status.html page.
17372
17373 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
17374
17375         PR target/43708
17376         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
17377         in addition to TREE_USED, to avoid "set but unused" warnings.
17378
17379 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17380
17381         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
17382         (is_loop_prefetching_profitable): Do not insert prefetches
17383         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
17384         times the prefetch ahead distance.
17385
17386 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17387
17388         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
17389         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
17390         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
17391         the unroll_factor.
17392
17393 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17394
17395         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
17396         a diagnostic info when the insn-to-mem ratio is too small.
17397
17398 2010-05-07  Richard Guenther  <rguenther@suse.de>
17399
17400         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
17401         the linker plugin.
17402         (store_arg): Queue temp_filename for deletion instead of
17403         the whole argument.
17404
17405 2010-05-07  Richard Guenther  <rguenther@suse.de>
17406
17407         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
17408         (run_gcc): Handle LTRANS phase invocation.
17409         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
17410
17411 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
17412
17413         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
17414         this is also meaningful on PARM_DECLs and RESULT_DECLs.
17415
17416 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17417
17418         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
17419
17420 2010-05-07  Richard Guenther  <rguenther@suse.de>
17421
17422         PR tree-optimization/44020
17423         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
17424         code when PRE is not yet initialized.
17425
17426 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17427
17428         * config/mips/dbxmdebug.h: Remove.
17429         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
17430
17431 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
17432
17433         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
17434         with null pointer and also warn about ordered comparison of zero with
17435         pointer if -Wextra.
17436
17437 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17438
17439         * graphite-blocking.c
17440         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
17441         * graphite-clast-to-gimple.c
17442         (clast_to_gcc_expression): Same.
17443         (precision_for_value): Same.
17444         (precision_for_interval): Same.
17445         (gcc_type_for_interval): Same.
17446         (graphite_create_new_guard): Same.
17447         (compute_bounds_for_level): Same.
17448         (graphite_create_new_loop_guard): Same.
17449         * graphite-interchange.c
17450         (build_linearized_memory_access): Same.
17451         (pdr_stride_in_loop): Same.
17452         (memory_strides_in_loop_1): Same.
17453         (memory_strides_in_loop): Same.
17454         (extend_scattering): Same.
17455         (psct_scattering_dim_for_loop_depth): Same.
17456         (pbb_number_of_iterations): Same.
17457         * graphite-poly.h
17458         (debug_iteration_domains): Same.
17459         * graphite-ppl.c
17460         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17461         (ppl_set_inhomogeneous_gmp): Same.
17462         (ppl_strip_loop): Same.
17463         (ppl_lexico_compare_linear_expressions): Same.
17464         (ppl_read_polyhedron_matrix): Same.
17465         (ppl_max_for_le_pointset): Same.
17466         * graphite-ppl.h
17467         (ppl_read_polyhedron_matrix): Same.
17468         (tree_int_to_gmp): Same.
17469         (gmp_cst_to_tree): Same.
17470         (ppl_set_inhomogeneous): Same.
17471         (ppl_set_inhomogeneous_tree): Same.
17472         (ppl_set_coef): Same.
17473         (ppl_set_coef_tree): Same.
17474         * graphite-sese-to-poly.c
17475         (build_pbb_scattering_polyhedrons): Same.
17476         (build_scop_scattering): Same.
17477         (scan_tree_for_params_right_scev): Same.
17478         (scan_tree_for_params): Same.
17479         (find_params_in_bb): Same.
17480         (find_scop_parameters): Same.
17481         (add_upper_bounds_from_estimated_nit): Same.
17482         (build_loop_iteration_domains): Same.
17483         (add_condition_to_domain): Same.
17484         (pdr_add_memory_accesses): Same.
17485
17486 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17487
17488         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
17489         CLooG's value_* macros to their respective mpz_* counterparts.
17490         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
17491         (graphite_create_new_loop_guard): Same.
17492         * graphite-interchange.c (build_linearized_memory_access): Same.
17493         (pdr_stride_in_loop): Same.
17494         (memory_strides_in_loop_1): Same.
17495         (1st_interchange_profitable_p): Same.
17496         * graphite-poly.c (extend_scattering): Same.
17497         (psct_scattering_dim_for_loop_depth): Same.
17498         (pbb_number_of_iterations): Same.
17499         (pbb_number_of_iterations_at_time): Same.
17500         * graphite-poly.h (new_1st_loop): Same.
17501         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
17502         (oppose_constraint): Same.
17503         (insert_constraint_into_matrix): Same.
17504         (ppl_set_inhomogeneous_gmp): Same.
17505         (ppl_set_coef_gmp): Same.
17506         (ppl_strip_loop): Same.
17507         (ppl_lexico_compare_linear_expressions): Same.
17508         (ppl_max_for_le_pointset): Same.
17509         (ppl_min_for_le_pointset): Same.
17510         (ppl_build_realtion): Same.
17511         * graphite-ppl.h (gmp_cst_to_tree): Same.
17512         (ppl_set_inhomogeneous): Same.
17513         (ppl_set_inhomogeneous_tree): Same.
17514         (ppl_set_coef): Same.
17515         (ppl_set_coef_tree): Same.
17516         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17517         (build_scop_scattering): Same.
17518         (add_value_to_dim): Same.
17519         (scan_tree_for_params_right_scev): Same.
17520         (scan_tree_for_params_int): Same.
17521         (scan_tree_for_params): Same.
17522         (find_params_in_bb): Same.
17523         (find_scop_parameters): Same.
17524         (add_upper_bounds_from_estimated_nit): Same.
17525         (build_loop_iteration_domains): Same.
17526         (create_linear_expr_from_tree): Same.
17527         (add_condition_to_domain): Same.
17528         (pdr_add_memory_accesses): Same.
17529
17530 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
17531             Jason Merrill  <jason@redhat.com>
17532
17533         * c-common.c (c_common_reswords): Add nullptr.
17534         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
17535         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
17536         (gen_type_die_with_usage): Likewise.
17537         * dbxout.c (dbxout_type): Likewise.
17538         * sdbout.c (plain_type_1): Likewise.
17539
17540 2010-05-06  Jason Merrill  <jason@redhat.com>
17541
17542         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
17543         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
17544         ret appropriately.
17545         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
17546
17547         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
17548         stripping WITH_SIZE_EXPR.
17549         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
17550         change.
17551
17552 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17553
17554         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
17555         list of obsolete configurations.
17556         Disabled check for obsolete configurations.
17557         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
17558         Removed support for previous versions.
17559         * config/mips/iris.h: Removed.
17560         * config/mips/iris5.h: Removed.
17561         * config/mips/iris6.h: Merged old iris.h contents.
17562         (TARGET_IRIX): Removed.
17563         (DRIVER_SELF_SPECS): Removed mabi=32.
17564         (IDENT_ASM_OP): Removed undef.
17565         (STARTFILE_SPEC): Removed mabi=32.
17566         (ENDFILE_SPEC): Likewise.
17567         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
17568         (MACHINE_TYPE): Update for IRIX 6.5.
17569         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
17570         TARGET_IRIX by TARGET_IRIX6.
17571         (mips_file_start): Likewise.
17572         (mips_output_external): Remove IRIX 5/6 O32 support.
17573         (mips_output_function_prologue): Likewise.
17574         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
17575         TARGET_IRIX6.
17576         (TARGET_CPU_CPP_BUILTINS): Likewise.
17577         (TARGET_IRIX): Removed.
17578         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
17579         (MULTILIB_DIRNAMES): Removed 32.
17580         (MULTILIB_OSDIRNAMES): Removed ../lib.
17581         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
17582         (Specific, mips-sgi-irix5): Document removal.
17583         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
17584         Remove references to older IRIX 6 releases and the O32 ABI.
17585
17586 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
17587
17588         PR bootstrap/43994
17589         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
17590         instead of DF_REF_REAL_REG.
17591
17592 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17593
17594         PR target/43888
17595         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
17596         handling to still return true for x64 targets.
17597
17598 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17599
17600         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
17601
17602 2010-05-06  Jan Hubicka  <jh@suse.cz>
17603
17604         PR tree-optimization/43791
17605         * ipa-inline.c (update_caller_keys): Remove bogus
17606         disregard_inline_limits check.
17607
17608 2010-05-06  Michael Matz  <matz@suse.de>
17609
17610         PR tree-optimization/43984
17611         * tree-ssa-pre.c (inserted_phi_names): Remove.
17612         (inserted_exprs): Change to bitmap.
17613         (create_expression_by_pieces): Set bits, don't append to vector.
17614         (insert_into_preds_of_block): Don't handle inserted_phi_names.
17615         (eliminate): Don't look at inserted_phi_names, remove deleted
17616         insns from inserted_exprs.
17617         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
17618         (init_pre, fini_pre): Allocate and free bitmaps.
17619         (execute_pre): Insert insns on edges before elimination.
17620
17621 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17622
17623         * tree.c (initializer_zerop): Handle STRING_CST.
17624
17625 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17626
17627         PR 40989
17628         * doc/invoke.texi (Wimplicit): Document as C only.
17629         * opts.c (common_handle_option): Add argument kind.
17630         (handle_option): Rename as read_cmdline_option. Factor out code to...
17631         (handle_option): ... here. New.
17632         (handle_options): Rename as read_cmdline_options.
17633         (decode_options): Update call.
17634         (set_option): Use option index instead of option pointer. Classify
17635         diagnostics correctly.
17636         (enable_warning_as_error): Call handle_option.
17637         * opts.h (set_option): Update declaration.
17638         (handle_option): Declare.
17639         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
17640         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
17641         * c-opts.c (set_Wimplicit): Delete.
17642         (c_family_lang_mask): New static constant.
17643         (c_common_handle_option): Add argument kind. Use handle_option
17644         instead of set_Wimplicit.
17645         (c_common_post_options): warn_implicit and warn_implicit_int
17646         are disabled by default.
17647         * c-common.c (warn_implicit): Do not define here.
17648         * c-common.h (warn_implicit): Do not declare here.
17649         (c_common_handle_option): Update declaration.
17650         * lto-opts.c (lto_reissue_options): Update call to set_option.
17651
17652 2010-05-06  Richard Guenther  <rguenther@suse.de>
17653
17654         PR tree-optimization/43571
17655         * domwalk.c (walk_dominator_tree): Walk the dominator
17656         sons in more optimal order.
17657
17658 2010-05-06  Richard Guenther  <rguenther@suse.de>
17659
17660         PR tree-optimization/43934
17661         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
17662         (stmt_cost): Likewise.
17663         (extract_true_false_args_from_phi): New helper.
17664         (determine_max_movement): For PHI nodes verify we can hoist them
17665         and compute their cost.
17666         (determine_invariantness_stmt): Handle PHI nodes.
17667         (move_computations_stmt): Likewise.  Hoist PHI nodes in
17668         if-converted form using COND_EXPRs.
17669         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
17670         (tree_ssa_lim): Likewise.
17671         * tree-flow.h (tree_ssa_lim): Adjust prototype.
17672         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
17673
17674 2010-05-06  Richard Guenther  <rguenther@suse.de>
17675
17676         PR tree-optimization/43987
17677         * tree-ssa-structalias.c (could_have_pointers): For possibly
17678         address-taken variables force pointers to be recorded.
17679         (create_variable_info_for_1): Likewise.
17680         (push_fields_onto_fieldstack): Pass in wheter all fields
17681         must have pointers.
17682         (find_func_aliases): Query types instead of vars whether
17683         they contain pointers where appropriate.
17684
17685 2010-05-06  Jan Hubicka  <jh@suse.cz>
17686
17687         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
17688         (record_reference, mark_address, mark_load, mark_store): Record
17689         references.
17690         (record_references_in_initializer): Update call of record_references.
17691         (rebuild_cgraph_edges): Remove all references before rebuiding.
17692         * cgraph.c (cgraph_create_node): Clear ref list.
17693         (cgraph_remove_node): Remove references.
17694         (dump_cgraph_node): Dump references.
17695         (cgraph_clone_node): Clone references.
17696         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
17697         (struct cgraph_node, varpool_node): Add ref_lst.
17698         * ipa-ref.c: New file.
17699         * ipa-ref.h: New file.
17700         * ipa-ref-inline.h: New file.
17701         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
17702         (referenced_from_other_partition_p): New function.
17703         (lto_output_varpool_node): Take set arugment; call
17704         referenced_from_other_partition.
17705         (lto_output_ref): New.
17706         (add_references): New.
17707         (output_refs): New.
17708         (output_cgraph): Compute boundary based on references; output refs.
17709         (output_varpool): Accept cgraph_node_set argument.
17710         (input_ref): New.
17711         (input_refs): New.
17712         (input_cgraph): Call input_refs.
17713         * lto-section-in.c (lto_section_name): Add refs.
17714         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
17715         (ipa-ref.o): New file.
17716         * varpool.c (varpool_node): Clear ipa ref list.
17717         (varpool_remove_node): Remove references.
17718         (dump_varpool_node): Dump references.
17719         (varpool_assemble_decl): Only compile finalized ones.
17720         (varpool_extra_name_alias): Initialize ref list.
17721         * lto-streamer.c (lto-get_section_name): Add .refs section.
17722         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
17723         (referenced_from_other_partition_p): Declared.
17724
17725 2010-05-06  Ira Rosen  <irar@il.ibm.com>
17726
17727         PR tree-optimization/43901
17728         * tree-vect-stmts.c (vectorizable_call): Assert that vector
17729         type is not NULL if it's transformation phase, and return
17730         FALSE if it's analysis.
17731         (vectorizable_conversion, vectorizable_operation,
17732         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
17733
17734 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
17735
17736         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17737         Delete.
17738         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17739         New define.
17740         * config/mips/mips-protos.h
17741         (mips_small_register_classes_for_mode_p): Delete prototype.
17742
17743 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
17744
17745         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
17746         * config/arm/arm.c (multiple_operation_profitable_p,
17747         compute_offset_order): New static functions.
17748         (load_multiple_sequence, store_multiple_sequence): Use them.
17749         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
17750         memory offsets, not register numbers.
17751         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
17752
17753 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
17754
17755         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
17756         (get_pending_sizes, put_pending_size, put_pending_sizes):
17757         Update the uses of pending_sizes.
17758         * c-decl.c (store_parm_decls): Likewise.
17759         * c-tree.h (struct c_arg_info): Likewise.
17760         * tree.h: Update the prototype for get_pending_sizes and
17761         put_pending_sizes.
17762
17763 2010-05-05  Jason Merrill  <jason@redhat.com>
17764
17765         PR debug/43370
17766         * c-common.c (handle_aligned_attribute): Respect
17767         ATTR_FLAG_TYPE_IN_PLACE.
17768
17769         PR testsuite/43758
17770         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
17771         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17772         (TARGET_INITIALIZER): Use it.
17773         * c-common.c (attribute_takes_identifier_p): Call it.
17774         * c-common.h: Update prototype.
17775         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
17776         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17777
17778 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17779
17780         PR debug/43950
17781         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
17782         DW_ID_down_case for Fortran compilation units.
17783
17784 2010-05-05  Jan Hubicka  <jh@suse.cz>
17785
17786         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
17787         handle aliases.
17788
17789 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17790
17791         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
17792         a variable-sized RESULT_DECL.
17793
17794 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
17795
17796         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
17797
17798 2010-05-05  Jason Merrill  <jason@redhat.com>
17799
17800         PR c++/43787
17801         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
17802         returns GS_OK.
17803         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
17804
17805 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
17806             Jakub Jelinek  <jakub@redhat.com>
17807
17808         PR debug/43478
17809         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
17810         (dead_debug_init, dead_debug_finish): New functions.
17811         (dead_debug_add, dead_debug_insert_before): Likewise.
17812         (df_note_bb_compute): Initialize a dead_debug object, add dead
17813         debug uses to it, insert debug bind insns before death insns,
17814         reset debug insns that refer to pending uses at the end.
17815         * rtl.h (make_debug_expr_from_rtl): New prototype.
17816         * varasm.c (make_debug_expr_from_rtl): New function.
17817
17818 2010-05-05  Jan Hubicka  <jh@suse.cz>
17819
17820         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
17821         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
17822         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
17823         lto_varpool_encoder_deref, lto_varpool_encoder_size,
17824         lto_varpool_encoder_encode_initializer_p,
17825         lto_set_varpool_encoder_encode_initializer): New functions.
17826         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
17827         call output_varpool.
17828         (input_varpool_node): Do not always set analyzed.
17829         (input_cgraph_1): Return vector of cgraph nodes.
17830         (input_varpool_1): Return vector of varpools.
17831         (input_cgraph): Free the vectors.
17832         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17833         output only initializers needed.
17834         (lto_output): Only call output_cgraph.
17835         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
17836         * lto-section-out.c (lto_new_out_decl_state): Initialize
17837         state->varpool_node_encoder.
17838         * lto-streamer.h (lto_varpool_encoder_d): New.
17839         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
17840         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
17841         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
17842         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
17843         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
17844         Declare.
17845         (output_varpool, input_varpool): Remove declarations.
17846
17847 2010-05-05  Jan Hubicka  <jh@suse.cz>
17848
17849         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
17850         with body can prevail.
17851
17852 2010-05-05  Jan Hubicka  <jh@suse.cz>
17853
17854         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
17855         size.
17856
17857 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17858
17859         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
17860
17861         * gengtype.h (erro_at_line): Constify pos argument.
17862
17863         * gengtype.c: Include hashtab.h.
17864         (enum gc_used): Document GC_MAYBE_POINTED_TO.
17865         (error_at_line): Constify pos argument.
17866         (do_typedef): Initialize p->opt field.
17867         (get_file_gtfilename): Fix comment typo.
17868         (struct walk_type_data): Constify line field.
17869         (get_output_file_for_structure): New function.
17870         (write_local_func_for_structure): Constify orig_s argument.
17871         Use get_output_file_for_structure.
17872         (write_func_for_structure): Use get_output_file_for_structure.
17873         (INDENT): New define.
17874         (dump_pair, dump_type, dump_type_list, dump_typekind)
17875         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
17876         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
17877         functions.
17878         (seen_types): New variable.
17879         (main): New variable do_dump.  Process "-d" command line option.
17880         Call dump_everything if dump requested.
17881
17882 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17883
17884         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
17885         in a temporary instead of invoking the macro multiple times.
17886         (track_expr_p): Likewise.
17887
17888 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
17889
17890         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
17891         per new semantics.
17892         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
17893         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
17894         conditions for printing notes.
17895         * common.opt (-Wcoverage-mismatch): Allow negative, default to
17896         true, update documentation.
17897         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
17898
17899 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
17900
17901         PR c/43981
17902         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
17903         on dimen.
17904
17905 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17906
17907         PR target/43799
17908         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
17909         (*sse_prologue_save_insn1): Likewise.
17910         (SSE prologue save splitter): Likewise.
17911
17912 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17913
17914         * tree.c (free_lang_data_in_one_sizepos): New inline function.
17915         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
17916         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
17917         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
17918         all decls.  Call it on DECL_FIELD_OFFSET of fields.
17919         (find_decls_types_r): Follow DECL_VALUE_EXPR.
17920         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
17921
17922 2010-05-04  Martin Jambor  <mjambor@suse.cz>
17923
17924         * tree-sra.c (build_access_from_expr_1): The first parameter type
17925         changed to simple tree.
17926         (build_access_from_expr): Likewise, gsi parameter was eliminated.
17927         (scan_assign_result): Renamed to assignment_mod_result, enum elements
17928         renamed as well.
17929         (build_accesses_from_assign): Removed all parameters except for a
17930         simple gimple statement.  Now returns a simple bool.
17931         (scan_function): All non-analysis parts moved to separate functions
17932         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
17933         parameters and updated both callers.
17934         (sra_modify_expr): Removed parameter data.
17935         (sra_modify_function_body): New function.
17936         (perform_intra_sra): Call sra_modify_function_body to modify the
17937         function body.
17938         (replace_removed_params_ssa_names): Parameter data changed into
17939         adjustments vector.
17940         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
17941         changed the parameter dont_convert to convert with the opposite
17942         meaning.
17943         (sra_ipa_modify_assign): Parameter data changed into adjustments
17944         vector, return value changed to bool.
17945         (ipa_sra_modify_function_body): New function.
17946         (sra_ipa_reset_debug_stmts): Updated a comment.
17947         (modify_function): Use ipa_sra_modify_function_body to modify function
17948         body.
17949
17950 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17951
17952         PR middle-end/43671
17953         * alias.c (true_dependence): Handle the same VALUE in x and mem.
17954         (canon_true_dependence): Likewise.
17955         (write_dependence_p): Likewise.
17956
17957 2010-05-04  Jan Hubicka  <jh@suse.cz>
17958
17959         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
17960         * cgraphbuild.c: Include ipa-utils.h
17961         (record_reference_ctx): New struct.
17962         (record_reference): Simplify to work on initializers; not statements.
17963         (mark_address, mark_load, mark_store): New.
17964         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17965         walk PHI nodes too.
17966         (record_references_in_initializer): Update use of record_reference.
17967         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17968         walk PHI nodes too.
17969
17970 2010-05-04  Jan Hubicka  <jh@suse.cz>
17971
17972         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
17973         node will be removed anyway.
17974         (lto_varpool_replace_node): Allow also unanalyzed nodes;
17975         relink aliases of node into prevailing node.
17976         * varpool.c (varpool_remove_node): Remove aliases properly;
17977         when removing node, remove all its aliases too; remove DECL_INITIAL
17978         of removed node; ggc_free the varpool node.
17979
17980 2010-05-04  Richard Guenther  <rguenther@suse.de>
17981
17982         PR tree-optimization/43879
17983         * tree-ssa-structalias.c (alias_get_name): Use
17984         DECL_ASSEMBLER_NAME if available.
17985         (create_function_info_for): Return the varinfo node.
17986         (ipa_pta_execute): Associate same-body aliases and extra names
17987         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
17988
17989 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17990
17991         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
17992
17993 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
17994
17995         PR bootstrap/43964
17996         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
17997         only if HONOR_REG_ALLOC_ORDER is not defined.
17998
17999 2010-05-04  Richard Guenther  <rguenther@suse.de>
18000
18001         PR tree-optimization/43949
18002         * tree-vrp.c (extract_range_from_binary_expr): Only handle
18003         TRUNC_MOD_EXPR.
18004
18005 2010-04-26  Jason Merrill  <jason@redhat.com>
18006
18007         * c.opt (-fstrict-enums): New.
18008         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
18009
18010 2010-05-03  David Ung  <davidu@mips.com>
18011             James E. Wilson  <wilson@codesourcery.com>
18012
18013         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
18014         emit the trap instruction before the divide for TUNE_74K.
18015
18016 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
18017
18018         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
18019         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
18020         based on the above, for new target hook.
18021
18022         * hooks.c (hook_bool_mode_true): New generic hook.
18023         * hooks.h (hook_bool_mode_true): Add prototype.
18024
18025         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
18026         target hook.
18027         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
18028         target hook, set to hook_bool_mode_false.
18029         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
18030         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
18031         with targetm.small_register_classes_for_mode_p.
18032         (find_reusable_reload): Likewise.
18033         (combine_reloads): Likewise.
18034         * reload1.c (reload_as_needed): Likewise.
18035         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
18036         * ifcvt.c (noce_process_if_block, check_cond_move_block,
18037         dead_or_predicable): Likewise.
18038         * regmove.c (optimize_reg_copy_1): Likewise.
18039         * calls.c (prepare_call_address): Likewise.
18040         (precompute_register_parameters): Likewise.
18041
18042         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
18043         hook definition.
18044         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
18045         implementation of the hook that considers all register classes
18046         small except for SH64.
18047         (sh_override_options): Use the new hook.
18048         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
18049         Add prototype.
18050
18051         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
18052         hook definition.
18053         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
18054         implementation of the hook that considers all register classes
18055         small for THUMB1.
18056         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
18057         Add prototype.
18058
18059         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
18060         hook definition.
18061         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
18062         implementation of the hook that considers all register classes
18063         small for MIPS16.
18064         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
18065         Add prototype.
18066
18067         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
18068         hook definition.
18069         * config/m32c/m32c.h: Likewise.
18070         * config/pdp11/pdp11.h: Likewise.
18071         * config/avr/avr.h: Likewise.
18072         * config/xtensa/xtensa.h: Likewise.
18073         * config/m68hc11/m68hc11.h: Likewise.
18074         * config/mn10300/mn10300.h: Likewise.
18075         * config/mcore/mcore.h: Likewise.
18076         * config/h8300/h8300.h: Likewise.
18077         * config/bfin/bfin.h: Likewise.
18078
18079         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
18080         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
18081
18082 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
18083
18084         * double-int.h (tree_to_double_int): Remove macro.
18085         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
18086         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18087         (tree_to_double_int): New function.
18088         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
18089         Move ...
18090         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18091
18092 2010-05-03  Richard Guenther  <rguenther@suse.de>
18093
18094         PR tree-optimization/43971
18095         * tree-ssa-structalias.c (get_constraint_for_1): Fix
18096         constraints in the !flag_delete_null_pointer_checks case.
18097
18098 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
18099
18100         PR debug/43972
18101         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
18102         result mode matches original rtl mode.
18103
18104 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
18105
18106         PR target/43888
18107         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
18108
18109 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18110
18111         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
18112         when processing flag options.
18113
18114 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18115
18116         * gcov-iov.c (main): Change format string placeholder
18117         from %#08x to 0x%08x.
18118         * genchecksum.c (dosum): Change format string placeholder
18119         from %#02x to 0x%02x.
18120
18121 2010-05-02  Richard Guenther  <rguenther@suse.de>
18122
18123         PR tree-optimization/43879
18124         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
18125
18126 2010-05-02  Bruno Haible  <bruno@clisp.org>
18127
18128         * doc/extend.texi (Function Attributes): Fix a typo.
18129
18130 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18131
18132         Revert:
18133         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
18134         placeholder from 0x%x to %#x.
18135         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18136         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18137         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18138         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18139         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18140         * config/i386/i386.c (ix86_target_string): Ditto.
18141         * config/i386/i386.c (output_pic_addr_const): Ditto.
18142         (print_operand): Ditto.
18143
18144 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18145
18146         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
18147         placeholder from 0x%x to %#x.
18148         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
18149         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
18150         (ASM_OUTPUT_DEBUG_DATA): Ditto.
18151         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
18152         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
18153         * optc-gen.awk: Ditto.
18154         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
18155         (HOST_WIDE_INT_PRINT_HEX): Ditto.
18156         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
18157         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18158
18159 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18160
18161         * target.h (struct calls): Add function_value_regno_p field.
18162         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
18163         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
18164         * targhooks.c (default_function_value_regno_p): New function.
18165         * targhooks.h (default_function_value_regno_p): Declare function.
18166         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
18167         * builtins.c. (apply_result_size): (Ditto.).
18168         * combine.c. (likely_spilled_retval_p): (Ditto.).
18169         * mode-switching.c. Include 'target.h'.
18170         (create_pre_exit): Use function_value_regno_p hook.
18171         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
18172         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
18173         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
18174
18175         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
18176         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
18177         (ix86_function_value_regno_p): Declare as static, change argument
18178         type to const unsigned int.
18179         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
18180
18181 2010-05-01  Richard Guenther  <rguenther@suse.de>
18182
18183         PR tree-optimization/43949
18184         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
18185         types.
18186         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
18187
18188 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18189
18190         * rtl.h (CONST_DOUBLE_P): Define.
18191         (rtx_to_double_int): Declare.
18192         * emit-rtl.c (rtx_to_double_int): New function.
18193         * dwarf2out.c (insert_double): New function.
18194         (loc_descriptor, add_const_value_attribute): Clean up, use
18195         rtx_to_double_int and insert_double functions.
18196
18197 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
18198
18199         * doc/extend.texi (Inline): Add missing return keyword to examples.
18200         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
18201         "command-line".
18202
18203 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18204
18205         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
18206         the variable part of the offset as well.  Use highest_pow2_factor for
18207         all alignment checks.
18208
18209 2010-04-30  Richard Guenther  <rguenther@suse.de>
18210
18211         PR tree-optimization/43879
18212         * tree-ssa-structalias.c (type_could_have_pointers): Functions
18213         can have pointers.
18214
18215 2010-04-30  Jan Hubicka  <jh@suse.cz>
18216
18217         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
18218         varpool.
18219         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
18220
18221 2010-04-30  Jan Hubicka  <jh@suse.cz>
18222
18223         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
18224         New.
18225         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
18226         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
18227         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
18228         cgraph_node_set_needs_ltrans_p): Remove.
18229
18230 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18231
18232         * sdbout.c: Include vec.h, do not include varray.h.
18233         (deferred_global_decls, sdbout_global_decl,
18234         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
18235         * toplev.c: Do not include varray.h.
18236         (dump_memory_report): Do not dump VARRAY statistics.
18237         * gengtype.c (open_base_file): Ignore varray.h.
18238         * Makefile.in: Update for abovementioned changes.
18239         Remove all traces of varray.c and varray.h.
18240         * varray.c: Remove file.
18241         * varray.h: Remove file.
18242
18243 2010-04-30  Jan Hubicka  <jh@suse.cz>
18244
18245         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
18246         references.
18247
18248 2010-04-30  Jan Hubicka  <jh@suse.cz>
18249
18250         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
18251         needed.
18252
18253 2010-04-30  Richard Guenther  <rguenther@suse.de>
18254
18255         * tree-ssa-structalias.c (get_constraint_for_1): Generate
18256         constraints for CONSTRUCTOR.
18257
18258 2010-04-30  Richard Guenther  <rguenther@suse.de>
18259
18260         PR lto/43946
18261         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
18262         first after all lowering passes.
18263
18264 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18265
18266         * toplev.c: Include varray.h for statistics dumping.
18267         * tree.h: Do not declare varray_head_tag.
18268         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
18269         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
18270         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
18271         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
18272         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
18273         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
18274         c-common.c, c-common.h, reg-stack.c, basic-block.h,
18275         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
18276         include varray.h.
18277         * Makefile.in: Update for abovementioned changes.
18278
18279 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
18280
18281         PR debug/43942
18282         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
18283
18284 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18285
18286         * config/picochip/picochip.c (picochip_legitimize_address): Define.
18287         Use this function to do machine-specific conversion.
18288         (picochip_legitimize_reload_address): Likewise.
18289         (picochip_legitimate_address_p): Check valid base register only if
18290         strict.
18291         (picochip_check_conditional_copy): Check for modw only if opnd is
18292         register.
18293         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
18294         to call the function in c.
18295         * config/picochip/picochip-protos.h
18296         (picochip_legitimize_reload_address): Define.
18297         * config/picochip/picochip.md (supported_compare1): Define.
18298
18299 2010-04-30  Jan Hubicka  <jh@suse.cz>
18300
18301         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
18302         (cgraph_global_info): Remove inlined.
18303         (LTO_cgraph_tag_names): Remove.
18304         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
18305         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
18306         simplify cgraph tags and document.
18307         (lto_output_node): Use only LTO_cgraph_unavail_node and
18308         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
18309         for_functions_valid, global info, process and output flags.
18310         (input_overwrite_node): Initialize estimated stack size and
18311         estimated growth.  Do not read flags we no longer store.
18312         (input_node): Likewise do not read info no longer stored.
18313         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
18314         flag.
18315
18316 2010-04-30  Richard Guenther  <rguenther@suse.de>
18317
18318         PR tree-optimization/43879
18319         * tree-ssa-structalias.c (get_constraint_for_1): Properly
18320         handle non-zero initializers.
18321
18322 2010-04-30  Richard Guenther  <rguenther@suse.de>
18323
18324         * builtins.c (fold_builtin_1): Delete free (0).
18325
18326 2010-04-29  Jan Hubicka  <jh@suse.cz>
18327
18328         * gengtype.c (open_base_files): Add lto-streamer.h
18329         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
18330         (pass_ipa_cp): GGC collect.
18331         * toplev. (compile_file): Do not output symbols.
18332         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
18333         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
18334         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
18335         * lto-section-in.c: Include ggc.h
18336         (lto_new_in_decl_state): Alloc in GGC.
18337         (lto_delete_in_decl_state): Likewise.
18338         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
18339         Collect.
18340
18341 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18342
18343         PR target/42895
18344         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
18345         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
18346         (HONOR_REG_ALLOC_ORDER): Describe new macro.
18347         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
18348         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
18349         account only if HONOR_REG_ALLOC_ORDER is not defined.
18350         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
18351         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
18352
18353 2010-04-29  Jon Grant  <04@jguk.org>
18354
18355         * collect2.c (vflag): Change type from int to bool.
18356         (debug): Likewise.
18357         (helpflag): New global bool.
18358         (main): Set vflag and debug with boolean, not integer truth values.
18359         Accept new "--help" option and output usage text if found.
18360         * collect2.h (vflag): Update prototype.
18361         (debug): Likewise.
18362
18363 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18364
18365         PR bootstrap/43936
18366         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
18367
18368 2010-04-29  Richard Guenther  <rguenther@suse.de>
18369
18370         PR bootstrap/43935
18371         * plugin.h (invoke_plugin_callbacks): Annotate arguments
18372         with ATTRIBUTE_UNUSED.
18373
18374 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18375
18376         PR target/43921
18377         * config/i386/i386.c (get_some_local_dynamic_name): Replace
18378         INSN_P with NONDEBUG_INSN_P.
18379         (distance_non_agu_define): Likewise.
18380         (distance_agu_use): Likewise.
18381
18382 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18383
18384         From Dominique d'Humieres  <dominiq@lps.ens.fr>
18385         PR bootstrap/43858
18386         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
18387         test_set.
18388
18389 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
18390
18391         * plugin.h (invoke_plugin_callbacks): New inline function.
18392         * plugin.c (flag_plugin_added): New global flag.
18393         (add_new_plugin): Initialize above flag.
18394         (invoke_plugin_callbacks): Rename to ...
18395         (invoke_plugin_callbacks_full): ... this.
18396
18397 2010-04-28  Jan Hubicka  <jh@suse.cz>
18398
18399         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
18400         (lto_varpool_replace_node): New.
18401         (lto_symtab_resolve_symbols): Resolve varpool nodes.
18402         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
18403         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
18404         * cgraph.h (varpool_node_ptr): New type.
18405         (varpool_node_ptr): New vector.
18406         (varpool_node_set_def): New structure.
18407         (varpool_node_set): New type.
18408         (varpool_node_set): New vector.
18409         (varpool_node_set_element_def): New structure.
18410         (varpool_node_set_element, const_varpool_node_set_element): New types.
18411         (varpool_node_set_iterator): New type.
18412         (varpool_node): Add prev pointers, add used_from_other_partition,
18413         in_other_partition.
18414         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
18415         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
18416         varpool_get_node, varpool_remove_node): Declare.
18417         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
18418         varpool_node_set_size): New inlines.
18419         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
18420         * tree-pass.h (varpool_node_set_def): Forward declare.
18421         (ipa_opt_pass_d): Summary writting takes vnode sets too.
18422         (ipa_write_optimization_summaries): Update prototype.
18423         * ipa-cp.c (ipcp_write_summary): Update.
18424         * ipa-reference.c (ipa_reference_write_summary): Update.
18425         * lto-cgraph.c (lto_output_varpool_node): New static function.
18426         (output_varpool): New function.
18427         (input_varpool_node): New static function.
18428         (input_varpool_1): New function.
18429         (input_cgraph): Input varpool.
18430         * ipa-pure-const.c (pure_const_write_summary): Update.
18431         * lto-streamer-out.c (lto_output): Update, output varpool too.
18432         (write_global_stream): Kill WPA hack.
18433         (produce_asm_for_decls): Update.
18434         (output_alias_pair_p): Handle variables.
18435         (output_unreferenced_globals): Output only needed partition of varpool.
18436         * ipa-inline.c (inline_write_summary): Update.
18437         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
18438         cgraph.
18439         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
18440         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
18441         varpool_node_set_new, varpool_node_set_add,
18442         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
18443         debug_varpool_node_set): New functions.
18444         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
18445         (execute_one_pass): Process new decls too.
18446         (ipa_write_summaries_2): Pass around vsets.
18447         (ipa_write_summaries_1): Likewise.
18448         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
18449         to add.
18450         (ipa_write_optimization_summaries_1): Pass around vsets.
18451         (ipa_write_optimization_summaries): Likewise.
18452         * varpool.c (varpool_get_node): New.
18453         (varpool_node): Update doubly linked lists.
18454         (varpool_remove_node): New.
18455         (dump_varpool_node): More dumping.
18456         (varpool_enqueue_needed_node): Update doubly linked lists.
18457         (decide_is_variable_needed): Kill ltrans hack.
18458         (varpool_finalize_decl): Kill lto hack.
18459         (varpool_assemble_decl): Skip decls in other partitions.
18460         (varpool_assemble_pending_decls): Update doubly linkes lists.
18461         (varpool_empty_needed_queue): Likewise.
18462         (varpool_extra_name_alias): Likewise.
18463         * lto-streamer.c (lto_get_section_name): Add vars section.
18464         * lto-streamer.h (lto_section_type): Update.
18465         (output_varpool, input_varpool): Declare.
18466
18467 2010-04-28  Mike Stump  <mikestump@comcast.net>
18468
18469         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
18470
18471 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18472
18473         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
18474         record or union type with RECORD_OR_UNION_TYPE_P predicate.
18475         (lto_input_ts_type_tree_pointers): Likewise.
18476         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
18477         (lto_output_ts_type_tree_pointers): Likewise.
18478
18479 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18480
18481         Uniquization of constants at the Tree level
18482         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
18483         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
18484         bit to the end.
18485         (tree_output_constant_def): Declare.
18486         * gimplify.c (gimplify_init_constructor): When using block copy, first
18487         uniquize the constant constructor on the RHS.
18488         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
18489         DECL_IN_CONSTANT_POOL flag.
18490         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
18491         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
18492         constant pool.
18493         (assemble_variable): Deal with symbols belonging to the tree constant
18494         pool.
18495         (get_constant_section): Add ALIGN parameter and simplify.
18496         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
18497         (assemble_constant_contents): Use the expression of the VAR_DECL.
18498         (output_constant_def_contents): Use the alignment of the VAR_DECL.
18499         (tree_output_constant_def): New global function.
18500         (mark_constant): Use the expression of the VAR_DECL.
18501         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
18502         its expression.
18503         (output_object_block): Likewise and assemble the expression.
18504
18505 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18506
18507         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
18508         hash_tree, eq_tree): New tree hash table.
18509         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
18510         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
18511         lto_orig_address_remove): Reimplement.
18512
18513 2010-04-28  Xinliang David Li  <davidxl@google.com>
18514
18515         PR c/42643
18516         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
18517         (compute_uninit_opnds_pos): New function.
18518         (is_non_loop_exit_postdominating): New function.
18519         (compute_control_dep_chain): New function.
18520         (find_pdom): New function.
18521         (convert_control_dep_chain_into_preds): New function.
18522         (find_predicates): New function.
18523         (find_control_equiv_block): New function.
18524         (collect_phi_def_edges): New function.
18525         (find_def_preds): New function.
18526         (find_dom): New function.
18527         (dump_predicates): New function.
18528         (get_cmp_code): New function.
18529         (is_value_included_in): New function.
18530         (find_matching_predicate_in_rest_chains): New function.
18531         (use_pred_not_overlap_with_undef_path_pred): New function.
18532         (is_use_properly_guarded): New function.
18533         (normalize_cond_1): New function.
18534         (is_and_or_or): New function.
18535         (normalize_cond): New function.
18536         (is_gcond_subset_of): New function.
18537         (is_subset_of_any): New function.
18538         (is_or_set_subset_of): New function.
18539         (is_and_set_subset_of): New function.
18540         (is_norm_cond_subset_of): New function.
18541         (is_pred_expr_subset_of): New function.
18542         (is_pred_chain_subset_of): New function.
18543         (is_included_in): New function.
18544         (is_superset_of): New function.
18545         (find_uninit_use): New function.
18546         (warn_uninitialized_phi): New function.
18547         (compute_possibly_undefined_names): New function.
18548         (ssa_undefined_value_p): New function.
18549         (execute_late_warn_uninitialized): New function.
18550         * tree-ssa.c (ssa_undefined_value_p): Removed.
18551         (warn_uninit): Changed to extern.
18552         (warn_uninitialized_phi): Removed.
18553         (warn_uninitialized_vars): Changed to extern.
18554         (execute_late_warn_uninitialized): Removed
18555         * tree-flow.h: Add new prototypes.
18556         * timevar.def: Add new time variable.
18557         * Makefile.in: Add new build file.
18558
18559 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
18560
18561         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
18562         type if available.
18563
18564 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18565
18566         PR target/22224
18567         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
18568
18569 2010-04-28  Martin Jambor  <mjambor@suse.cz>
18570
18571         * cgraph.h (struct cgraph_node): New field indirect_calls.
18572         (struct cgraph_indirect_call_info): New type.
18573         (struct cgraph_edge): Removed field indirect_call. New fields
18574         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
18575         (cgraph_create_indirect_edge): Declare.
18576         (cgraph_make_edge_direct): Likewise.
18577         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
18578         * ipa-prop.h (struct ipa_param_call_note): Removed.
18579         (struct ipa_node_params): Removed field param_calls.
18580         (ipa_create_all_structures_for_iinln): Declare.
18581         * cgraph.c: Described indirect edges and uids in initial comment.
18582         (cgraph_add_edge_to_call_site_hash): New function.
18583         (cgraph_edge): Search also among the indirect edges, use
18584         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
18585         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
18586         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
18587         site hash.
18588         (initialize_inline_failed): Assign a reason to indirect edges.
18589         (cgraph_create_edge_1): New function.
18590         (cgraph_create_edge): Moved some functionality to
18591         cgraph_create_edge_1.
18592         (cgraph_create_indirect_edge): New function.
18593         (cgraph_edge_remove_callee): Add an assert checking for
18594         non-indirectness.
18595         (cgraph_edge_remove_caller): Special-case indirect edges.
18596         (cgraph_remove_edge): Likewise.
18597         (cgraph_set_edge_callee): New function.
18598         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
18599         (cgraph_make_edge_direct): New function.
18600         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
18601         the declaration of the call statement matches.
18602         (cgraph_node_remove_callees): Special-case indirect edges.
18603         (cgraph_clone_edge): Likewise.
18604         (cgraph_clone_node): Clone also the indirect edges.
18605         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
18606         indirect_call, dump count of indirect_calls edges.
18607         * ipa-prop.c (iinlining_processed_edges): New variable.
18608         (ipa_note_param_call): Create indirect edges instead of
18609         creating notes.  New parameter node.
18610         (ipa_analyze_call_uses): New parameter node, pass it on to
18611         ipa_note_param_call.
18612         (ipa_analyze_stmt_uses): Likewise.
18613         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
18614         (print_edge_addition_message): Work on edges rather than on notes.
18615         (update_call_notes_after_inlining): Likewise, renamed to
18616         update_indirect_edges_after_inlining.
18617         (ipa_create_all_structures_for_iinln): New function.
18618         (ipa_free_node_params_substructures): Do not free notes.
18619         (ipa_edge_duplication_hook): Propagate bits within
18620         iinlining_processed_edges bitmap.
18621         (ipa_node_duplication_hook): Do not duplicate notes.
18622         (free_all_ipa_structures_after_ipa_cp): Renamed to
18623         ipa_free_all_structures_after_ipa_cp.
18624         (free_all_ipa_structures_after_iinln): Renamed to
18625         ipa_free_all_structures_after_iinln.
18626         (ipa_write_param_call_note): Removed.
18627         (ipa_read_param_call_note): Removed.
18628         (ipa_write_indirect_edge_info): New function.
18629         (ipa_read_indirect_edge_info): Likewise.
18630         (ipa_write_node_info): Do not stream notes, do stream information
18631         in indirect edges.
18632         (ipa_read_node_info): Likewise.
18633         (lto_ipa_fixup_call_notes): Removed.
18634         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
18635         * ipa-inline.c (pass_ipa_inline): Likewise.
18636         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
18637         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
18638         * tree-inline.c (copy_bb): Removed an unnecessary double check for
18639         is_gimple_call.
18640         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
18641         edges.
18642         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
18643         (output_cgraph): Stream also indirect edges.
18644         (lto_output_edge): Added capability to stream indirect edges.
18645         (input_edge): Likewise.
18646         (input_cgraph_1): Likewise.
18647         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
18648         of indirect edges.
18649
18650 2010-04-28  Richard Guenther  <rguenther@suse.de>
18651
18652         PR tree-optimization/43879
18653         PR tree-optimization/43909
18654         * tree-ssa-structalias.c (struct variable_info): Add
18655         only_restrict_pointers flag.
18656         (new_var_info): Initialize it.  Increment stats.total_vars here.
18657         (create_function_info_for): Do not increment stats.total_vars here.
18658         (get_function_part_constraint): Fix build with C++.
18659         (insert_into_field_list): Remove.
18660         (push_fields_onto_fieldstack): Properly merge fields.
18661         (create_variable_info_for): Split and simplify.
18662         (create_variable_info_for_1): New piece.
18663         (intra_create_variable_infos): Properly make restrict constraints
18664         from parameters.
18665
18666 2010-04-28  Richard Guenther  <rguenther@suse.de>
18667
18668         PR c++/43880
18669         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
18670
18671 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18672             Jan Hubicka  <hubicka@ucw.cz>
18673
18674         * doc/invoke.texi (-Wsuggest-attribute=const,
18675         -Wsuggest-attribute=pure): Document.
18676         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
18677         (function_always_visible_to_compiler_p,
18678         suggest_attribute, warn_function_pure, warn_function_const):
18679         New functions.
18680         (check_call): Improve debug info.
18681         (analyze_function): Do not check availability.
18682         (add_new_function): Check availability.
18683         (propagate): Output warnings.
18684         (skip_function_for_local_pure_const): New function.
18685         (local_pure_const): Use it; output warnings.
18686         * common.opt (Wsuggest-attribute=const,
18687         Wsuggest-attribute=pure): New.
18688
18689 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18690
18691         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
18692         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
18693         or DW_CFA_def_cfa_offset{,_sf}.
18694
18695 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18696
18697         * tree.h: Fix truncated long macros.
18698
18699 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
18700
18701         * collect2.c (TARGET_64BIT): Redefine to target's default.
18702         * tlink.c: Likewise.
18703         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
18704         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
18705         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
18706         for underscoring __USER_LABEL_PREFIX__.
18707         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
18708         (SUB_LINK_ENTRY32): New.
18709         (SUB_LINK_ENTRY64): New.
18710         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
18711         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
18712         (SUB_LINK_ENTRY64): New.
18713         (SUB_LINK_ENTRY): New.
18714         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
18715         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
18716         x64 target is choosen.
18717         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
18718         * configure: Regenerated.
18719         * configure.ac (leading-mingw64-underscores): Option added.
18720
18721 2010-04-27  Jan Hubicka  <jh@suse.cz>
18722
18723         * doc/invoke.texi (-fipa-profile): Document.
18724         * opts.c (decode_options): Enable ipa-profile at -O1.
18725         * timevar.def (TV_IPA_PROFILE): Define.
18726         * common.opt (fipa-profile): Add.
18727         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
18728         flag for clones.
18729         (cgraph_propagate_frequency): Handle only local ones.
18730         * tree-pass.h (pass_ipa_profile): Declare.
18731         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
18732         (pass_ipa_profile): Use TV_IPA_PROFILE.
18733         * ipa.c (ipa_profile): New function.
18734         (gate_ipa_profile): Likewise.
18735         (pass_ipa_profile): New global variable.
18736         * passes.c (pass_ipa_profile): New.
18737
18738 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
18739
18740         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
18741
18742 2010-04-27  Martin Jambor  <mjambor@suse.cz>
18743
18744         PR middle-end/43812
18745         * ipa.c (dissolve_same_comdat_group_list): New function.
18746         (function_and_variable_visibility): Call
18747         dissolve_same_comdat_group_list when comdat group contains external or
18748         newly local nodes.
18749         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
18750         lists are circular and that they contain only DECL_ONE_ONLY nodes.
18751
18752 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18753
18754         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
18755         (const_hash_1) <VECTOR_CST>: New case.
18756         (compare_constant) <VECTOR_CST>: Likewise.
18757         <ADDR_EXPR>: Deal with LABEL_REFs.
18758         (copy_constant) <VECTOR_CST>: New case.
18759
18760 2010-04-27  Jan Hubicka  <jh@suse.cz>
18761
18762         * cgraph.c (cgraph_propagate_frequency): New function.
18763         * cgraph.h (cgraph_propagate_frequency): Declare.
18764         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
18765         cgraph_propagate_frequency.
18766
18767 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18768
18769         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
18770
18771 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
18772
18773         PR target/40657
18774         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
18775         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
18776         here to determine which regs to push and how much stack to reserve.
18777
18778 2010-04-27  Jie Zhang  <jie@codesourcery.com>
18779
18780         * doc/gimple.texi (gimple_statement_with_ops): Remove
18781         addresses_taken field.
18782         (gimple_statement_with_memory_ops): Likewise.
18783
18784 2010-04-27  Jan Hubicka  <jh@suse.cz>
18785
18786         * tree-inline.c (eni_inlining_weights): Remove.
18787         (estimate_num_insns): Special case more builtins.
18788
18789 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
18790
18791         PR c/32207
18792         * c-typeck.c (build_binary_op): Move forward check for comparison
18793         pointer with null pointer constant and adjust the diagnostic message.
18794
18795 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
18796
18797         PR lto/42776
18798         * configure.ac (gcc_cv_as_section_has_align): Set if installed
18799         binutils supports extended .section directive needed by LTO, or
18800         warn if older binutils found.
18801         (LTO_BINARY_READER): New AC_SUBST'd variable.
18802         (LTO_USE_LIBELF): Likewise.
18803         * config.gcc (lto_binary_reader): New target-specific configure
18804         variable.
18805         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
18806         (LTO_USE_LIBELF): Likewise.
18807         * configure: Regenerate.
18808
18809         * collect2.c (is_elf): Rename from this ...
18810         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
18811          object files in addition to ELF-formatted ones.
18812         (scan_prog_file): Caller updated.  Also allow for LTO info marker
18813         symbol to be prefixed or not by an extra underscore.
18814
18815         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
18816         * config/i386/winnt.c: Also #include lto-streamer.h
18817         (i386_pe_asm_named_section): Specify 1-byte section alignment for
18818         LTO named sections.
18819         (i386_pe_asm_output_aligned_decl_common): Add comment.
18820         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
18821
18822 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
18823
18824         PR target/43889
18825         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
18826         Add missing earlyclobber for second alternative.
18827
18828 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
18829
18830         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
18831         bits for artificial defs at the top of the block.
18832         * fwprop.c (single_def_use_enter_block): Don't call it.
18833
18834 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
18835
18836         PR 43715
18837         * configure.ac: Use "$gcc_cv_nm -g" on darwin
18838         instead of "$gcc_cv_objdump -T".
18839         Use "-undefined dynamic_lookup" on darwin.
18840         * configure: Regenerate.
18841
18842 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18843
18844         PR c/43893
18845         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
18846
18847 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18848
18849         * c-parser.c (struct c_token): Move location field up.
18850         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
18851         (struct c_declspecs): Convert typespec_word, storage_class, and
18852         default_int_p into bitfields.
18853         (struct c_declarator): Move loc field up.
18854
18855 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18856
18857         * cfgloop.h (struct loop): Move can_be_parallel field up.
18858         * ipa-prop.h (struct ip_node_params): Move bitfields up.
18859         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
18860         down.
18861         (struct iv_cand): Convert pos field into a bitfield.
18862         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
18863         field up.
18864         (struct _stmt_vec_info): Shuffle fields for better packing.
18865
18866 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18867
18868         * varasm.c (IN_NAMED_SECTION): Remove guard.
18869         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
18870         (IN_NAMED_SECTION_P): ...this.
18871         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
18872         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
18873
18874 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18875
18876         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
18877         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
18878         of shadowing it.  Fix comments.
18879
18880 2010-04-26  Jan Hubicka  <jh@suse.cz>
18881
18882         * cgraph.c (cgraph_create_node): Set node frequency to normal.
18883         (cgraph_clone_node): Copy function frequency.
18884         * cgraph.h (node_frequency): New enum
18885         (struct cgraph_node): Add.
18886         * final.c (rest_of_clean_state): Update.
18887         * lto-cgraph.c (lto_output_node): Output node frequency.
18888         (input_overwrite_node): Input node frequency.
18889         * tre-ssa-loop-ivopts (computation_cost): Update.
18890         * lto-streamer-out.c (output_function): Do not output function
18891         frequency.
18892         * predict.c (maybe_hot_frequency_p): Update and handle functions
18893         executed once.
18894         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
18895         attribute lookup.
18896         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
18897         (compute_function_frequency): Set noreturn functions to be executed
18898         once.
18899         (choose_function_section): Update.
18900         * lto-streamer-in.c (input_function): Do not input function frequency.
18901         * function.c (allocate_struct_function): Do not initialize function
18902         frequency.
18903         * function.h (function_frequency): Remove.
18904         (struct function): Remove function frequency.
18905         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
18906         (try_update): Update.
18907         * tree-inline.c (initialize_cfun): Do not update function frequency.
18908         * passes.c (pass_init_dump_file): Update.
18909         * i386.c (ix86_compute_frame_layout): Update.
18910         (ix86_pad_returns): Update.
18911
18912 2010-04-26  Jie Zhang  <jie@codesourcery.com>
18913
18914         PR tree-optimization/43833
18915         * tree-vrp.c (range_int_cst_p): New.
18916         (range_int_cst_singleton_p): New.
18917         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
18918         when both operands are constants.  Use range_int_cst_p in
18919         BIT_IOR_EXPR case.
18920
18921 2010-04-26  Jan Hubicka  <jh@suse.cz>
18922
18923         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
18924
18925 2010-04-26  Richard Guenther  <rguenther@suse.de>
18926
18927         PR lto/43080
18928         * gimple.c (gimple_decl_printable_name): Deal gracefully
18929         with a NULL DECL_NAME.
18930
18931 2010-04-26  Richard Guenther  <rguenther@suse.de>
18932
18933         PR lto/42425
18934         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
18935         if emitting debug information and it is either a function
18936         or a namespace decl.
18937
18938 2010-04-26  Ira Rosen  <irar@il.ibm.com>
18939
18940         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
18941         determine if the statement is vectorizable, and a macro to access it.
18942         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18943         Skip statements that can't be vectorized. If the analysis fails,
18944         mark the statement as unvectorizable if vectorizing basic block.
18945         (vect_compute_data_refs_alignment): Likewise.
18946         (vect_verify_datarefs_alignment): Skip statements marked as
18947         unvectorizable. Add print.
18948         (vect_analyze_group_access): Skip statements that can't be
18949         vectorized. If the analysis fails, mark the statement as
18950         unvectorizable if vectorizing basic block.
18951         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
18952         * tree-vect-stmts.c (vectorizable_store): Fix the number of
18953         generated stmts for SLP.
18954         (new_stmt_vec_info): Initialize the new field.
18955         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
18956         statements marked as unvectorizable.
18957
18958 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
18959
18960         * c-common.c (flag_isoc1x): New.
18961         (flag_isoc99): Update comment.
18962         * c-common.h (flag_isoc1x): New.
18963         (flag_isoc99): Update comment.
18964         * c-cppbuiltin.c (builtin_define_float_constants): Also define
18965         __<type>_DECIMAL_DIG__.
18966         * c-opts.c (set_std_c1x): New.
18967         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
18968         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
18969         * c.opt (-std=c1x, -std=gnu1x): New options.
18970         * doc/cpp.texi: Mention -std=c1x.
18971         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
18972         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
18973         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
18974         * doc/standards.texi: Mention C1X.
18975         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
18976         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
18977         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18978         Define for C1X.
18979
18980 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
18981
18982         * config/i386/gmon-sol2.c (_mcleanup): Change format string
18983         placeholder from 0x%x to %#x.
18984         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18985         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18986         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18987         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18988         * config/i386/i386.c (ix86_target_string): Ditto.
18989         (output_pic_addr_const): Ditto.
18990         (print_operand): Ditto.
18991
18992 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
18993
18994         * combine.c (find_split_point): Add third argument.  Use it
18995         to find nested multiply-accumulate instructions.  Adjust calls.
18996         (try_combine): Adjust call to find_split_point.
18997
18998 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18999
19000         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
19001
19002 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
19003
19004         PR tree-optimization/41442
19005         * fold-const.c (merge_truthop_with_opposite_arm): New function.
19006         (fold_binary_loc): Call it.
19007
19008 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19009
19010         * toplev.c (general_init): Set default for fdiagnostics-show-option.
19011         * opts.c (common_handle_option): Allow disabling it.
19012         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
19013
19014 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19015
19016         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
19017         between modes if both types are integral.
19018
19019 2010-04-23  Richard Guenther  <rguenther@suse.de>
19020
19021         PR tree-optimization/43572
19022         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
19023
19024 2010-04-23  Richard Guenther  <rguenther@suse.de>
19025
19026         PR lto/43455
19027         * tree-inline.c (tree_can_inline_p): Also check compatibility
19028         of return types.
19029
19030 2010-04-23  Martin Jambor  <mjambor@suse.cz>
19031
19032         PR tree-optimization/43846
19033         * tree-sra.c (struct access): New flag grp_assignment_read.
19034         (build_accesses_from_assign): Set grp_assignment_read.
19035         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
19036         (enum mark_read_status): New type.
19037         (analyze_access_subtree): Propagate grp_assignment_read, create
19038         accesses also if both direct_read and root->grp_assignment_read.
19039
19040 2010-04-23  Martin Jambor  <mjambor@suse.cz>
19041
19042         PR middle-end/43835
19043         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
19044         function does not have type attributes.
19045
19046 2010-04-23  Richard Guenther  <rguenther@suse.de>
19047
19048         PR lto/42653
19049         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
19050         of FUNCTION_DECLs.
19051
19052 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19053
19054         * sese.h (create_if_region_on_edge): Remove.
19055
19056         * sese.c (create_if_region_on_edge): Make static.
19057
19058         * tree-inline.c: Do not include ggc.h.
19059
19060         * expr.c: Do not include ggc.h.
19061
19062         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
19063         dependencies.
19064
19065 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
19066
19067         PR target/43744
19068         * config/sh/sh.c (find_barrier): Don't emit a constant pool
19069         in the middle of insns for casesi_worker_2.
19070
19071 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
19072
19073         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
19074
19075 2010-04-22  Ira Rosen  <irar@il.ibm.com>
19076
19077         PR tree-optimization/43842
19078         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
19079         loop unrolling in update of exit phis. Fix comment.
19080         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
19081         least two reduction statements in the loop before starting SLP
19082         analysis.
19083
19084 2010-04-22  Nick Clifton  <nickc@redhat.com>
19085
19086         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
19087
19088 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
19089
19090         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
19091         to simplify a + ~a.
19092
19093 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19094
19095         * tree-parloops.c (loop_parallel_p): New argument
19096         parloop_obstack.  Pass it down.
19097         (parallelize_loops): New variable parloop_obstack.  Initialize it,
19098         pass it down, free it.
19099
19100         * tree-loop-linear.c (linear_transform_loops): Pass down
19101         lambda_obstack.
19102
19103         * tree-data-ref.h (lambda_compute_access_matrices): New argument
19104         of type struct obstack *.
19105
19106         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
19107         scratch_obstack.  Initialize it, pass down, free it.
19108
19109         * lambda.h (lambda_loop_new): Remove.
19110         (lambda_matrix_new, lambda_matrix_inverse)
19111         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
19112         argument of type struct obstack *.
19113
19114         * lambda-trans.c (lambda_trans_matrix_new): New argument
19115         lambda_obstack.  Pass it down, use obstack allocation for ret.
19116         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
19117         it down.
19118
19119         * lambda-mat.c (lambda_matrix_get_column)
19120         (lambda_matrix_project_to_null): Remove.
19121         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
19122         allocation for mat.
19123         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
19124         lambda_obstack.
19125
19126         * lambda-code.c (lambda_loop_new): New function.
19127         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
19128         (lambda_compute_auxillary_space, lambda_compute_target_space)
19129         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
19130         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
19131         (build_access_matrix): New argument lambda_obstack.  Use obstack
19132         allocation for am.
19133         (lambda_compute_step_signs, lambda_compute_access_matrices): New
19134         argument lambda_obstack.  Pass it down.
19135
19136 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19137
19138         * optabs.h (expand_widening_mult): Declare.
19139
19140 2010-04-22  Richard Guenther  <rguenther@suse.de>
19141
19142         PR tree-optimization/43845
19143         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
19144         lookup the CALL_EXPR function and arguments.
19145
19146 2010-04-22  Nick Clifton  <nickc@redhat.com>
19147
19148         * config/stormy16/stormy16.c
19149         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
19150         * config/stormy16/stormy16.h: Tidy up formatting.
19151         (DONT_USE_BUILTIN_SETJMP): Remove definition.
19152         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
19153         (ineqbranchsi): Delete pattern.
19154         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
19155         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
19156         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
19157         stormy16-lib2-ucmpsi2.c.
19158
19159 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19160
19161         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
19162         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
19163         extra set merge_set_noclobber, and use it to relax the final test
19164         slightly.
19165         * df.h (df_simulate_find_noclobber_defs): Declare.
19166         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
19167         conditional defs.
19168         (df_simulate_find_noclobber_defs): New function.
19169
19170 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
19171
19172         * config/i386/i386.md: Use {} around multi-line preparation statements.
19173
19174 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19175
19176         * c-tree.h (push_init_level, pop_init_level, set_init_index)
19177         (process_init_element): New argument of type struct obstack *.
19178
19179         * c-typeck.c (push_init_level, pop_init_level, set_designator)
19180         (set_init_index, set_init_label, set_nonincremental_init)
19181         (set_nonincremental_init_from_string, find_init_member)
19182         (output_init_element, output_pending_init_elements)
19183         (process_init_element): New argument braced_init_obstack.  Pass it
19184         down.
19185         (push_range_stack, add_pending_init): New argument
19186         braced_init_obstack.  Use obstack allocation.
19187
19188         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
19189         braced_init_obstack.  Pass it down.
19190         (c_parser_braced_init): New variables ret, braced_init_obstack.
19191         Initialize obstack, pass it down and finally free it.
19192
19193 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19194
19195         PR middle-end/29274
19196         * tree-pass.h (pass_optimize_widening_mul): Declare.
19197         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
19198         gate_optimize_widening_mul): New static functions.
19199         (pass_optimize_widening_mul): New.
19200         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
19201         <case MULT_EXPR>: Remove support for widening multiplies.
19202         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
19203         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
19204         simplify_gen_unary rather than directly building extensions.
19205         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
19206         WIDEN_MULT_EXPR.
19207         * expmed.c (expand_widening_mult): New function.
19208         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
19209
19210 2010-04-21  Jan Hubicka  <jh@suse.cz>
19211
19212         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
19213         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
19214         * lto-wpa-fixup.c: Remove.
19215         * Makefile.in (lto-wpa-fixup.o): Remove.
19216         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
19217         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
19218         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
19219
19220 2010-04-21  Jan Hubicka  <jh@suse.cz>
19221
19222         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
19223         add write_optimization_summary, read_optimization_summary.
19224         (ipa_write_summaries_of_cgraph_node_set): Remove.
19225         (ipa_write_optimization_summaries): Declare.
19226         (ipa_read_optimization_summaries): Declare.
19227         * ipa-cp.c (pass_ipa_cp): Update.
19228         * ipa-reference.c (pass_ipa_reference): Update.
19229         * ipa-pure-const.c (pass_ipa_pure_const): Update.
19230         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
19231         Update.
19232         * ipa-inline.c (pass_ipa_inline): Update.
19233         * ipa.c (pass_ipa_whole_program): Update.
19234         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
19235         * passes.c (ipa_write_summaries_1): Do not test wpa.
19236         (ipa_write_optimization_summaries_1): New.
19237         (ipa_write_optimization_summaries): New.
19238         (ipa_read_summaries): Do not test ltrans.
19239         (ipa_read_optimization_summaries_1): New.
19240         (ipa_read_optimization_summaries): New.
19241
19242 2010-04-21  Jan Hubicka  <jh@suse.cz>
19243
19244         * lto-cgraph.c (lto_output_node): Do not output comdat groups
19245         for boundary nodes.
19246         (output_cgraph): Do not arrange comdat groups for boundary nodes.
19247
19248 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19249
19250         PR debug/40040
19251         * dwarf2out.c (add_name_and_src_coords_attributes): Add
19252         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
19253
19254 2010-04-21  Jan Hubicka  <jh@suse.cz>
19255
19256         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
19257
19258 2010-04-21  Jan Hubicka  <jh@suse.cz>
19259
19260         * varpool.c (decide_is_variable_needed): Variable is always needed
19261         during ltrans.
19262
19263 2010-04-21  Jan Hubicka  <jh@suse.cz>
19264
19265         * opts.c (decode_options): Enable pure-const pass for whopr.
19266
19267 2010-04-21  Jan Hubicka  <jh@suse.cz>
19268
19269         * cgraph.c (dump_cgraph_node): Dump also assembler name.
19270         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
19271         at WPA dumping.
19272         (cgraph_decide_inlining): Do not expect callee to be removed in all
19273         cases.
19274
19275 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
19276
19277         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
19278
19279 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19280
19281         * config/i386/i386.md (x86_shrd): Add athlon_decode and
19282         amdfam10_decode attributes.
19283
19284 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19285
19286         PR middle-end/43570
19287         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
19288         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
19289         (lower_copyprivate_clauses): Use private var in outer
19290         context instead of original var.  Make sure the types
19291         are correct for VLAs.
19292
19293 2010-04-21  Richard Guenther  <rguenther@suse.de>
19294
19295         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
19296         to non-pointer objects.
19297
19298 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19299
19300         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
19301         last chain entry if it starts with the still current label.
19302         (add_location_or_const_value_attribute): Check that
19303         loc_list->first->next is NULL instead of comparing ->first with ->last.
19304         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
19305         to add_var_loc_to_decl.
19306
19307         * dwarf2out.c (output_call_frame_info): For dw_cie_version
19308         >= 4 add also address size and segment size fields into CIE header.
19309
19310         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
19311         long as address size is the same as sizeof (void *) and
19312         segment size is 0.
19313         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
19314         address size or segment size is unexpected, return DW_EH_PE_omit.
19315         (classify_object_over_fdes): If get_cie_encoding returned
19316         DW_EH_PE_omit, return -1.
19317         (init_object): If classify_object_over_fdes returned -1,
19318         pretend there were no FDEs at all.
19319
19320 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19321
19322         * config/i386/i386.md (bswap<mode>2): Macroize expander from
19323         bswap{si,di}2 using SWI48 mode iterator.
19324         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
19325         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
19326         set modrm attribute of bswap insn to 0 and remove length attribute.
19327         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
19328         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
19329         set mode attribute to <MODE> and remove length attribute.
19330
19331 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
19332
19333         PR rtl-optimization/43520
19334         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
19335         zero available registers.
19336
19337 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19338
19339         * builtins.c (fold_builtin_cproj): Fold more cases.
19340
19341 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19342
19343         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
19344         (fold_builtin_1): Fold builtin cproj.
19345         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
19346         Use ATTR_CONST_NOTHROW_LIST.
19347
19348 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
19349
19350         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
19351         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
19352         ffsi2_no_cmove for !TARGET_CMOVE.
19353         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
19354         (ffssi2): Remove expander.
19355         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
19356         mode iterator.
19357         (ctz<mode>2): Ditto from ctz{si,di}2.
19358         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
19359         mode iterator.
19360         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
19361         mode iterator.
19362
19363 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19364
19365         * dwarf2out.c (AT_linkage_name): Define.
19366         (clone_as_declaration): Handle DW_AT_linkage_name.
19367         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
19368         of DW_AT_MIPS_linkage_name.
19369         (move_linkage_attr): Likewise.
19370         (dwarf2out_finish): Likewise.
19371
19372 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
19373
19374         PR middle-end/41952
19375         * fold-const.c (fold_comparison): New folding rule.
19376
19377 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
19378
19379         * double-int.h (double_int_setbit): Declare.
19380         * double-int.c (double_int_setbit): New function.
19381         * rtl.h (immed_double_int_const): Declare.
19382         * emit-rtl.c (immed_double_int_const): New function.
19383         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
19384         and immed_double_int_const functions.
19385         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
19386         expand_copysign_bit): (Ditto.).
19387         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
19388         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
19389         * dojump.c (prefer_and_bit_test): (Ditto.).
19390         * expr.c (convert_modes, reduce_to_bit_field_precision,
19391         const_vector_from_tree): (Ditto.).
19392         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19393
19394 2010-04-20  Jan Hubicka  <jh@suse.cz>
19395
19396         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
19397         (dump_cgraph_node): Dump new flags.
19398         * cgraph.h (struct cgraph_node): Add flags
19399         reachable_from_other_partition and in_other_partition.
19400         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
19401         other partition can not be removed.
19402         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
19403         the other partition must be output; silence sanity checking on
19404         leaking functions bodies from other paritition.
19405         * lto-cgraph.c (reachable_from_other_partition_p): New function.
19406         (lto_output_node): Output new flags; do not sanity check that inline
19407         clones are output; drop lto_forced_extern_inline_p code; do not mock
19408         visibility flags at partition boundaries.
19409         (add_node_to): New function.
19410         (output_cgraph): Use it to sort functions so masters appear before
19411         clones.
19412         (input_overwrite_node): Input new flags.
19413         * passes.c (ipa_write_summaries): Do not call
19414         lto_new_extern_inline_states.
19415         * lto-section-out.c (forced_extern_inline,
19416         lto_new_extern_inline_states lto_delete_extern_inline_states,
19417         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
19418         * lto-streamer.h (lto_new_extern_inline_states,
19419         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
19420         lto_forced_extern_inline_p): Kill.
19421
19422 2010-04-20  Richard Guenther  <rguenther@suse.de>
19423
19424         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
19425         from vars that can have pointers.
19426         (process_constraint): Dump useless constraints.
19427
19428 2010-04-20  Richard Guenther  <rguenther@suse.de>
19429
19430         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
19431         (dump_sa_points_to_info): Remove asserts.
19432         (init_base_vars): nothing_id isn't an escape point nor does it
19433         have pointers.
19434
19435 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19436
19437         * tree.h (TYPE_REF_IS_RVALUE): Define.
19438         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
19439         should_move_die_to_comdat, prune_unused_types_walk): Handle
19440         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
19441         (modified_type_die, gen_reference_type_die): Emit
19442         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
19443         if TYPE_REF_IS_RVALUE and -gdwarf-4.
19444
19445 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19446
19447         PR target/43635
19448         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
19449         calls for -fpic -m31 if they have been sibcall optimized.
19450
19451 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
19452
19453         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
19454         ar.lc fixed and call-used.
19455
19456         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
19457
19458 2010-04-19  Jan Hubicka  <jh@suse.cz>
19459
19460         * opts.c (decode_options): Disable whpr incompatible passes.
19461         * lto/lto.c (lto_1_to_1_map): Skip clones.
19462         (read_cgraph_and_symbols): Do not mark everything as needed.
19463         (do_whole_program_analysis): Do map only after optimizing;
19464         set proper cgraph_state; use passmanager.
19465
19466 2010-04-19  DJ Delorie  <dj@redhat.com>
19467
19468         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
19469         POINTER_PLUS_EXPR and fix them.
19470
19471 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
19472
19473         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
19474         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
19475         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
19476         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
19477         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
19478         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
19479         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
19480         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
19481         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
19482         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
19483         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
19484
19485 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19486
19487         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
19488         (check_cond_move_block): Likewise.
19489         (cond_move_process_if_block): Likewise.
19490         (noce_find_if_block): Improve formatting.
19491         (find_if_header): Pass 0 to memset and tweak conditions.
19492         (cond_exec_find_if_block): Fix long lines and tweak conditions.
19493
19494 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19495
19496         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
19497         for -gdwarf-4.
19498
19499         PR middle-end/43337
19500         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
19501         with non-local decl doesn't need chain.
19502
19503 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
19504
19505         * ira-color.c (allocno_reload_assign): Avoid accumulating
19506         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
19507
19508 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19509
19510         * gimple.h (create_tmp_reg): Declare.
19511         * gimplify.c (create_tmp_reg): New function.
19512         (gimplify_return_expr): Use create_tmp_reg.
19513         (gimplify_omp_atomic): Likewise.
19514         (gimple_regimplify_operands): Likewise.
19515         * tree-dfa.c (make_rename_temp): Likewise.
19516         * tree-predcom.c (predcom_tmp_var): Likewise.
19517         (reassociate_to_the_same_stmt): Likewise.
19518         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
19519         (get_replaced_param_substitute): Likewise.
19520         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
19521         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
19522         * tree-ssa-pre.c (get_representative_for): Likewise.
19523         (create_expression_by_pieces): Likewise.
19524         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
19525         (create_tailcall_accumulator): Likewise.
19526
19527 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19528
19529         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
19530         new_stmt.
19531         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
19532
19533 2010-04-19  Richard Guenther  <rguenther@suse.de>
19534
19535         PR tree-optimization/43796
19536         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
19537         from SCEV in the lattice.
19538         (vrp_visit_phi_node): Dump change.
19539
19540 2010-04-19  Richard Guenther  <rguenther@suse.de>
19541
19542         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
19543         * configure: Re-generated.
19544
19545 2010-04-19  Richard Guenther  <rguenther@suse.de>
19546
19547         PR tree-optimization/43783
19548         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
19549         constant ARRAY_REF operands two and three if possible.
19550
19551 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
19552
19553         PR target/43766
19554         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
19555
19556 2010-04-19  Jie Zhang  <jie@codesourcery.com>
19557
19558         PR target/43662
19559         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
19560
19561 2010-04-19  Ira Rosen  <irar@il.ibm.com>
19562
19563         PR tree-optimization/37027
19564         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
19565         and macro to access it.
19566         (vectorizable_reduction): Add argument.
19567         (vect_get_slp_defs): Likewise.
19568         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
19569         statements for possible use in SLP.
19570         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
19571         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
19572         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
19573         add new argument.
19574         (vectorizable_reduction): Likewise.
19575         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
19576         vect_get_slp_defs.
19577         (vectorizable_type_demotion, vectorizable_type_promotion,
19578         vectorizable_store): Likewise.
19579         (vect_analyze_stmt): Update call to vectorizable_reduction.
19580         (vect_transform_stmt): Likewise.
19581         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
19582         (vect_build_slp_tree): Fix indentation. Check that there are no loads
19583         from different interleaving chains in same node.
19584         (vect_slp_rearrange_stmts): New function.
19585         (vect_supported_load_permutation_p): Allow load permutations for
19586         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
19587         inside SLP nodes if necessary.
19588         (vect_analyze_slp_instance): Handle reductions.
19589         (vect_analyze_slp): Try to build SLP instances originating from groups
19590         of reductions.
19591         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
19592         (vect_get_constant_vectors): Create initial vectors for reductions
19593         according to reduction code. Add new argument.
19594         (vect_get_slp_defs): Add new argument, pass it to
19595         vect_get_constant_vectors.
19596         (vect_schedule_slp_instance): Remove SLP tree root statements.
19597
19598 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19599
19600         * tree.h (ENUM_IS_SCOPED): Define.
19601         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
19602         for ENUM_IS_SCOPED enums.
19603
19604 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19605
19606         * fold-const.c (fold_comparison): Use ssizetype.
19607         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19608         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
19609         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
19610         * tree-object-size.c (compute_object_sizes): Use size_type_node.
19611
19612         * tree.h (initialize_sizetypes): Remove parameter.
19613         (build_common_tree_nodes): Remove second parameter.
19614         * stor-layout.c (initialize_sizetypes): Remove parameter.
19615         Always create an unsigned type.
19616         (set_sizetype): Assert that the passed type is unsigned and simplify.
19617         * tree.c (build_common_tree_nodes): Remove second parameter.
19618         Adjust call to initialize_sizetypes.
19619         * c-decl.c (c_init_decl_processing): Remove second argument in call to
19620         build_common_tree_nodes.
19621
19622 2010-04-18  Matthias Klose  <doko@ubuntu.com>
19623
19624         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
19625
19626 2010-04-18  Ira Rosen  <irar@il.ibm.com>
19627
19628         PR tree-optimization/43771
19629         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
19630         load permutation doesn't have gaps.
19631
19632 2010-04-18  Jan Hubicka  <jh@suse.cz>
19633
19634         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
19635         (sse_prologue_save_insn expander): Use new pattern.
19636         (sse_prologue_save_insn1): New pattern and splitter.
19637         (sse_prologue_save_insn): Update to deal also with 64bit aligned
19638         blocks.
19639         * i386.c (setup_incoming_varargs_64): Do not compute jump
19640         destination here.
19641         (ix86_gimplify_va_arg): Update alignment needed.
19642         (ix86_local_alignment): Do not align all local arrays to 128bit.
19643
19644 2010-04-17  Jan Hubicka  <jh@suse.cz>
19645
19646         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
19647
19648 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19649
19650         * arm.md (negdi2): Remove redundant code to force values into a
19651         register.
19652
19653 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19654
19655         * arm/bpabi.S: Add EABI alignment attributes to objects.
19656         * arm/bpabi-v6m.S: Likewise.
19657         * arm/crti.asm: Likewise.
19658         * arm/crtn.asm: Likewise.
19659         * arm/lib1funcs.asm: Likewise.
19660         * arm/libunwind.S: Likewise.
19661
19662 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19663
19664         * arm-protos.h (tune_params): New structure.
19665         * arm.c (current_tune): New variable.
19666         (arm_constant_limit): Delete.
19667         (struct processors): Add pointer to the tune parameters.
19668         (arm_slowmul_tune): New tuning option.
19669         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
19670         (all_cores): Adjust to pick up the tuning model.
19671         (arm_constant_limit): New function.
19672         (arm_override_options): Select the appropriate tuning model.  Delete
19673         initialization of arm_const_limit.
19674         (arm_split_constant): Use the new constant-limit model.
19675         (arm_rtx_costs): Pick up the current tuning model.
19676         * arm.md (is_strongarm, is_xscale): Delete.
19677         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
19678         for Xscale variant architectures.
19679         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
19680
19681 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19682
19683         * config/arm/arm.c (arm_gen_constant): Remove unused variable
19684         can_shift.
19685         (arm_rtx_costs_1): Remove unused variable extra_cost.
19686         (arm_unwind_emit_set): Use variable offset.
19687         (thumb1_output_casesi): Remove unused variable flags.
19688
19689 2010-04-16  Jeff Law  <law@redhat.com>
19690
19691         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
19692         needing assignment rather than doing a two-phase assignment.  Remove
19693         unused variable 'm'.
19694
19695 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19696
19697         PR bootstrap/43767
19698         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
19699
19700 2010-04-16  Doug Kwan  <dougkwan@google.com>
19701
19702         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
19703         (next_operand_entry_id): New static variable.
19704         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
19705         (add_to_ops_vec): Assigned unique ID to operand entry.
19706         (struct oecount_s): New field ID.
19707         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
19708         (undistribute_ops_list): Assign unique IDs to oecounts.
19709         (init_reassoc): reset next_operand_entry_id.
19710
19711 2010-04-16  Doug Kwan  <dougkwan@google.com>
19712
19713         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
19714         missing left parenthesis.
19715
19716 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
19717
19718         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
19719         *btdi_rex64 using SWI48 mode iterator.
19720         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
19721         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
19722         *jcc_btdi_mask_rex64.
19723
19724 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
19725
19726         * double-int.h (tree_to_double_int): Convert to macro.
19727         * double-int.c (tree_to_double_int): Remove.
19728
19729 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19730
19731         PR debug/43762
19732         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
19733         with want_address 2 and in case a single element list might be
19734         possible, call it again with want_address 0.
19735
19736 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19737
19738         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
19739         case 'W' print operands for HI mode.
19740         * config/h8300/h8300.h (Y0, Y2) : New constraints.
19741         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
19742         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
19743         * config/h8300/predicate.md (bit_register_indirect_operand): New.
19744
19745         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
19746
19747         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
19748         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
19749         #xx:3 and #xx:4 mode.
19750
19751         * config/h8300/h8300.md (inverted load with HImode dest): Add
19752         support for H8300SX.
19753
19754         * config/h8300/predicate.md (bit_operand): Allow immediate values that
19755         satisfy 'U' constraint.
19756
19757 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19758
19759         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
19760         * configure: Regenerate.
19761         * config.in: Regenerate.
19762         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
19763         works.
19764
19765 2010-04-16  Richard Guenther  <rguenther@suse.de>
19766
19767         * tree.h (struct tree_decl_minimal): Move pt_uid ...
19768         (struct tree_decl_common): ... here.
19769         (DECL_PT_UID): Adjust.
19770         (SET_DECL_PT_UID): Likewise.
19771         (DECL_PT_UID_SET_P): Likewise.
19772
19773 2010-04-16  Richard Guenther  <rguenther@suse.de>
19774
19775         PR tree-optimization/43572
19776         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
19777         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
19778         * tree-flow.h (is_call_clobbered): Remove.
19779         * tree-flow-inline.h (is_call_clobbered): Likewise.
19780         * tree-dfa.c (dump_variable): Do not dump call clobber state.
19781         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
19782         (execute_return_slot_opt): Adjust.
19783         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
19784         check for call clobbered vars here.
19785         (find_tail_calls): Move tailcall verification to the
19786         proper place.
19787
19788 2010-04-16  Diego Novillo  <dnovillo@google.com>
19789
19790         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
19791
19792 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19793
19794         PR target/40603
19795         * config/arm/arm.md (cbranchqi4): New pattern.
19796         * config/arm/predicates.md (const0_operand,
19797         cbranchqi4_comparison_operator): New predicates.
19798
19799 2010-04-16  Richard Guenther  <rguenther@suse.de>
19800
19801         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
19802         (dump_gimple_stmt): Likewise.
19803
19804 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19805
19806         * recog.h (struct recog_data): New field is_operator.
19807         (struct insn_operand_data): New field is_operator.
19808         * recog.c (extract_insn): Set recog_data.is_operator.
19809         * genoutput.c (output_operand_data): Emit code to set the
19810         is_operator field.
19811         * reload.c (find_reloads): Use it rather than testing for an
19812         empty constraint string.
19813
19814         PR target/41514
19815         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
19816         If the previous insn is a cbranchsi4_insn with the same arguments,
19817         omit the compare instruction.
19818
19819         * config/arm/arm.md (addsi3_cbranch): If destination is a high
19820         register, inputs must be low registers and we need a low register
19821         scratch.  Handle alternative 2 like alternative 3.
19822
19823 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19824
19825         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
19826         don't call get_addr on both.  If one expression is a VALUE and
19827         the other a REG, check VALUE's locs if the REG isn't among them.
19828
19829 2010-04-16  Christian Bruel  <christian.bruel@st.com>
19830
19831         * config/sh/sh.h (sh_frame_pointer_required): New function.
19832         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
19833         (flag_omit_frame_pointer) Set.
19834         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
19835         (rounded_frame_size): Adjust size with outgoing_args_size.
19836         (sh_set_return_address): Must return from stack pointer.
19837         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
19838         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19839         (ACCUMULATE_OUTGOING_ARGS): Define.
19840         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
19841         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
19842
19843 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19844
19845         PR target/43471
19846         * config/sh/sh.c (sh_legitimize_reload_address): Use
19847         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
19848         Remove a unneeded check for offset_base.
19849
19850 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19851
19852         * configure: Regenerated.
19853
19854 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19855
19856         * config/s390/s390.c (s390_call_save_register_used): Switch back
19857         to HARD_REGNO_NREGS.
19858
19859 2010-04-15  Richard Guenther  <rguenther@suse.de>
19860
19861         * alias.c (alias_set_subset_of): Handle alias-set zero
19862         child properly.
19863
19864 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
19865             Julian Brown  <julian@codesourcery.com>
19866
19867         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
19868         alternatives according to use of high and low regs.
19869         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19870         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
19871         optimizing for size on Thumb-2.
19872
19873 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
19874
19875         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
19876
19877 2010-04-15  Richard Guenther  <rguenther@suse.de>
19878
19879         * tree-ssa-structalias.c (struct variable_info): Add
19880         is_fn_info flag.
19881         (new_var_info): Initialize it.
19882         (dump_constraints): Support printing last added constraints.
19883         (debug_constraints): Adjust.
19884         (dump_constraint_graph): Likewise.
19885         (make_heapvar_for): Check for NULL cfun.
19886         (get_function_part_constraint): New function.
19887         (get_fi_for_callee): Likewise.
19888         (find_func_aliases): Properly implement IPA PTA constraints.
19889         (process_ipa_clobber): New function.
19890         (find_func_clobbers): Likewise.
19891         (insert_into_field_list_sorted): Remove.
19892         (create_function_info_for): Properly allocate vars for IPA mode.
19893         Do not use insert_into_field_list_sorted.
19894         (create_variable_info_for): Properly generate constraints for
19895         global vars in IPA mode.
19896         (dump_solution_for_var): Always dump the solution.
19897         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
19898         (find_what_var_points_to): Adjust.
19899         (pt_solution_set): Change.
19900         (pt_solution_ior_into): New function.
19901         (pt_solution_empty_p): Export.
19902         (pt_solution_includes_global): Adjust.
19903         (pt_solution_includes_1): Likewise.
19904         (pt_solutions_intersect_1): Likewise.
19905         (dump_sa_points_to_info): Check some invariants.
19906         (solve_constraints): Move constraint dumping ...
19907         (compute_points_to_sets): ... here.
19908         (ipa_pta_execute): ... and here.
19909         (compute_may_aliases): Do not re-compute points-to info
19910         locally if IPA info is available.
19911         (ipa_escaped_pt): New global var.
19912         (ipa_pta_execute): Properly implement IPA PTA.
19913         * tree-into-ssa.c (dump_decl_set): Support dumping
19914         decls not in referenced-vars.
19915         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
19916         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
19917         (dump_points_to_solution): Likewise.
19918         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
19919         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
19920         (remap_gimple_stmt): Reset call clobber/use information if necessary.
19921         (copy_decl_to_var): Copy DECL_PT_UID.
19922         (copy_result_decl_to_var): Likewise.
19923         * tree.c (make_node_stat): Initialize DECL_PT_UID.
19924         (copy_node_stat): Copy it.
19925         * tree.h (DECL_PT_UID): New macro.
19926         (SET_DECL_PT_UID): Likewise.
19927         (DECL_PT_UID_SET_P): Likewise.
19928         (struct tree_decl_minimal): Add pt_uid member.
19929         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
19930         (pt_solution_empty_p): Declare.
19931         (pt_solution_set): Adjust.
19932         (ipa_escaped_pt): Declare.
19933         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
19934         * gimple-pretty-print.c (pp_points_to_solution): New function.
19935         (dump_gimple_call): Dump call clobber/use information.
19936         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
19937         * tree-pass.h (TDF_ALIAS): New dump option.
19938         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
19939         * doc/invoke.texi (-fipa-pta): Update documentation.
19940
19941 2010-04-15  Richard Guenther  <rguenther@suse.de>
19942
19943         * Makefile.in (OBJS-common): Add gimple-fold.o.
19944         (gimple-fold.o): New rule.
19945         * tree.h (maybe_fold_offset_to_reference,
19946         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
19947         prototypes ...
19948         * gimple.h: ... here.
19949         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
19950         may_propagate_address_into_dereference): Move prototypes ...
19951         * gimple.h: ... here.
19952         * tree-ssa-ccp.c (get_symbol_constant_value,
19953         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
19954         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
19955         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
19956         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
19957         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
19958         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
19959         gimplify_and_update_call_from_tree): Move ...
19960         * gimple-fold.c: ... here.  New file.
19961         (ccp_fold_builtin): Rename to ...
19962         (gimple_fold_builtin): ... this.
19963         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
19964
19965 2010-04-15  Richard Guenther  <rguenther@suse.de>
19966
19967         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
19968         fit_double_type, force_fit_type_double, add_double_with_sign,
19969         neg_double, mul_double_with_sign, lshift_double, rshift_double,
19970         lrotate_double, rrotate_double, div_and_round_double): Move ...
19971         * double-int.c: ... here.
19972         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
19973         add_double, neg_double, mul_double_with_sign, mul_double,
19974         lshift_double, rshift_double, lrotate_double, rrotate_double,
19975         div_and_round_double): Move prototypes ...
19976         * double-int.h: ... here.
19977
19978 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
19979
19980         PR target/43742
19981         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
19982         matching constraints to ensure inputs match the output.
19983
19984 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19985
19986         PR target/43742
19987         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
19988         in an input-only operand.
19989
19990 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
19991
19992         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
19993         (double_int_not, double_int_lshift, double_int_rshift): Declare.
19994         (double_int_negative_p): Convert to static inline function.
19995         * double-int.c (double_int_lshift, double_int_lshift): New functions.
19996         (double_int_negative_p): Remove.
19997         * tree.h (lshift_double, rshift_double):
19998         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
19999         * fold-const.c (fold_convert_const_int_from_real,
20000         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
20001         (lshift_double): Change type of arith argument to bool.
20002         (rshift_double): Change type of arith argument to bool. Correct
20003         comment.
20004         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20005
20006 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
20007
20008         PR target/21803
20009         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
20010         at the start and end of the then/else blocks, and omit them from the
20011         conversion.
20012         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
20013         argument; all callers changed.  Pass zero to old_insns_match_p instead.
20014         (flow_find_head_matching_sequence): New function.
20015         (old_insns_match_p): Check REG_EH_REGION notes for calls.
20016         * basic-block.h (flow_find_cross_jump,
20017         flow_find_head_matching_sequence): Declare functions.
20018
20019 2010-04-14  Jason Merrill  <jason@redhat.com>
20020
20021         PR c++/36625
20022         * c-common.c (attribute_takes_identifier_p): New fn.
20023         * c-common.h: Declare it.
20024
20025 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20026
20027         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
20028         splitter condition.
20029         (*udivmod<mode>4): Ditto.
20030
20031 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20032
20033         * config/i386/i386.md (maxmin_int): Rename code attribute from
20034         maxminiprefix and update all users.
20035         (maxmin_float): Ditto from maxminfprefix.
20036         (logic): Ditto from logicprefix.
20037         (absneg_mnemonic): Ditto from absnegprefix.
20038         * config/i386/mmx.md: Update all users of maxminiprefix,
20039         maxminfprefix and logicprefix for rename.
20040         * config/i386/sse.md: Ditto.
20041         * config/i386/sync.md (sync_<code><mode>): Update for
20042         logicprefix rename.
20043
20044 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20045
20046         PR 42966
20047         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
20048         warnings converted to errors.
20049
20050 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20051
20052         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
20053         used insn_type variable.
20054         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
20055         to avoid set-but-not-used warning.
20056
20057 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20058
20059         * df-core.c (df_ref_debug): Change format string placeholder
20060         from 0x%x to %#x.
20061         * dwarf2asm.c (dw2_asm_output_data_raw,
20062         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
20063         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
20064         * dwarf2out.c (output_cfi, output_cfi_directive,
20065         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
20066         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
20067         Ditto.
20068         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
20069         * print-rtl.c (print_rtx): Ditto.
20070
20071 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20072
20073         PR middle-end/42694
20074         * builtins.c (expand_builtin_pow_root): New function to expand pow
20075         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
20076         series of sqrt and cbrt calls under -ffast-math.
20077         (expand_builtin_pow): Call it.
20078
20079 2010-04-14  Michael Matz  <matz@suse.de>
20080
20081         PR tree-optimization/42963
20082         * tree-cfg.c (touched_switch_bbs): New static variable.
20083         (group_case_labels_stmt): New function broken out from ...
20084         (group_case_labels): ... here, use the above.
20085         (start_recording_case_labels): Allocate touched_switch_bbs.
20086         (end_recording_case_labels): Deallocate it, call
20087         group_case_labels_stmt.
20088         (gimple_redirect_edge_and_branch): Remember index of affected BB.
20089
20090 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20091
20092         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
20093         from insn template.
20094
20095 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20096
20097         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
20098
20099 2010-04-13  Jan Hubicka  <jh@suse.cz>
20100
20101         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
20102         of optimized out static functions.
20103         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
20104         cost computation.  Also sanity check for overflows.
20105         (update_caller_keys): Update cgraph_edge_badness call; properly
20106         update fibheap and sanity check that it is up to date.
20107         (add_new_edges_to_heap): Update cgraph_edge_badness.
20108         (cgraph_decide_inlining_of_small_function): Likewise;
20109         add sanity checking that badness in heap is up to date;
20110         improve dumping of reason; Update badness of calls to the
20111         offline copy of function currently inlined; dump badness
20112         of functions not inlined because of unit growth limits.
20113
20114 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20115
20116         PR middle-end/32628
20117         * c-common.c (pointer_int_sum): Disregard overflow that occured only
20118         because of sign-extension change when converting to sizetype here...
20119         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
20120
20121         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
20122         the folding to constants.  Remove redundant final conversion.
20123         (fold_binary) <associate>: Do not associate if the re-association of
20124         constants alone overflows.
20125         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
20126         to the end of the list.
20127         (multiple_of_p) <COND_EXPR>: New case.
20128
20129 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20130
20131         * opt-functions.awk (opt_sanitized_name): New.
20132         (opt_enum): New.
20133         * optc-gen.awk: Use it
20134         * opth-gen.awk: Use it.
20135
20136 2010-04-13  Martin Jambor  <mjambor@suse.cz>
20137
20138         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
20139         (sra_modify_assign): Delete stmts loading dead data even if racc has no
20140         children.  Call replace_uses_with_default_def_ssa_name to handle
20141         SSA_NAES on lhs.
20142
20143 2010-04-13  Michael Matz  <matz@suse.de>
20144
20145         PR middle-end/43730
20146         * builtins.c (expand_builtin_interclass_mathfn): Also create
20147         a register if the predicate doesn't match.
20148
20149 2010-04-13  Diego Novillo  <dnovillo@google.com>
20150
20151         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
20152         * c-pch.c: Include timevar.h.
20153         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
20154         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
20155         * ggc-common.c: Include timevar.h.
20156         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
20157         * timevar.def (TV_PCH_SAVE): Define.
20158         (TV_PCH_CPP_SAVE): Define.
20159         (TV_PCH_PTR_REALLOC): Define.
20160         (TV_PCH_PTR_SORT): Define.
20161         (TV_PCH_RESTORE): Define.
20162         (TV_PCH_CPP_RESTORE): Define.
20163
20164 2010-04-13  Michael Matz  <matz@suse.de>
20165
20166         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
20167         into MINUS_EXPRs.
20168         (can_reassociate_p): New function.
20169         (break_up_subtract_bb, reassociate_bb): Use it.
20170
20171 2010-04-13  Richard Guenther  <rguenther@suse.de>
20172
20173         PR bootstrap/43737
20174         * builtins.c (c_readstr): Fix assert.
20175
20176 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
20177
20178         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
20179         when generating cltd insn.
20180
20181         (*ashl<mode>3_1): Remove special handling for register operand 2.
20182         (*ashlsi3_1_zext): Ditto.
20183         (*ashlhi3_1): Ditto.
20184         (*ashlhi3_1_lea): Ditto.
20185         (*ashlqi3_1): Ditto.
20186         (*ashlqi3_1_lea): Ditto.
20187         (*<shiftrt_insn><mode>3_1): Ditto.
20188         (*<shiftrt_insn>si3_1_zext): Ditto.
20189         (*<shiftrt_insn>qi3_1_slp): Ditto.
20190         (*<rotate_insn><mode>3_1): Ditto.
20191         (*<rotate_insn>si3_1_zext): Ditto.
20192         (*<rotate_insn>qi3_1_slp): Ditto.
20193
20194 2010-04-13  Richard Guenther  <rguenther@suse.de>
20195
20196         * tree-ssa-structalias.c (callused_id): Remove.
20197         (call_stmt_vars): New.
20198         (get_call_vi): Likewise.
20199         (lookup_call_use_vi): Likewise.
20200         (lookup_call_clobber_vi): Likewise.
20201         (get_call_use_vi): Likewise.
20202         (get_call_clobber_vi): Likewise.
20203         (make_transitive_closure_constraints): Likewise.
20204         (handle_const_call): Adjust to do per-call call-used handling.
20205         (handle_pure_call): Likewise.
20206         (find_what_var_points_to): Remove general callused handling.
20207         (init_base_vars): Likewise.
20208         (init_alias_vars): Initialize call_stmt_vars.
20209         (compute_points_to_sets): Process call-used and call-clobbered
20210         vars for call statements.
20211         (delete_points_to_sets): Free call_stmt_vars.
20212
20213 2010-04-13  Richard Guenther  <rguenther@suse.de>
20214
20215         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20216         Only add RW dependence for dependence distance zero.
20217         Adjust maximal vectorization factor according to dependences.
20218         Move alignment handling ...
20219         (vect_find_same_alignment_drs): ... here.  New function.
20220         (vect_analyze_data_ref_dependences): Adjust.
20221         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
20222         (vect_analyze_data_refs): Adjust minimal vectorization factor
20223         according to data references.
20224         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
20225         dependences before determining the vectorization factor.
20226         Analyze alignment after determining the vectorization factor.
20227         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
20228         dependences before alignment.
20229         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
20230         Adjust prototype.
20231         (vect_analyze_data_refs): Likewise.
20232         (MAX_VECTORIZATION_FACTOR): New define.
20233
20234 2010-04-13  Duncan Sands  <baldrick@free.fr>
20235
20236         * except.h (lang_eh_type_covers): Remove.
20237         * except.c (lang_eh_type_covers): Likewise.
20238
20239 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20240             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20241
20242         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
20243         * config/s390/s390.c: Replace UNTIS_PER_WORD with
20244         UNITS_PER_LONG where it is ABI relevant.
20245         (s390_return_addr_rtx): Likewise.
20246         (s390_back_chain_rtx): Likewise.
20247         (s390_frame_area): Likewise.
20248         (s390_frame_info): Likewise.
20249         (s390_initial_elimination_offset): Likewise.
20250         (save_gprs): Likewise.
20251         (s390_emit_prologue): Likewise.
20252         (s390_emit_epilogue): Likewise.
20253         (s390_function_arg_advance): Likewise.
20254         (s390_function_arg): Likewise.
20255         (s390_va_start): Likewise.
20256         (s390_gimplify_va_arg): Likewise.
20257         (s390_function_profiler): Likewise.
20258         (s390_optimize_prologue): Likewise.
20259         (s390_rtx_costs): Likewise.
20260         (s390_secondary_reload): Likewise.
20261         (s390_promote_function_mode): Likewise.
20262         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
20263         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
20264         registers available.
20265         (s390_unwind_word_mode): New function.
20266         (s390_function_value): Split 64 bit values into register pair if
20267         used as return value.
20268         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
20269         function call parameters.  Handle parallels.
20270         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
20271         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
20272         (DWARF_CIE_DATA_ALIGNMENT): New macro.
20273         (s390_expand_setmem): Remove unused variable src_addr.
20274         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
20275         deal with 64 bit registers.
20276         * config/s390/s390.h: Define __zarch__ predefined macro.
20277         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
20278         (UNITS_PER_LONG): New macro.
20279         * libjava/include/s390-signal.h: Define extended ucontext
20280         structure containing the upper halfs of the 64 bit registers.
20281
20282 2010-04-13  Simon Baldwin  <simonb@google.com>
20283
20284         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
20285
20286 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20287
20288         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
20289         rvalue on the RHS if the LHS is of a non-renamable type.
20290         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
20291
20292 2010-04-13  Matthias Klose  <doko@ubuntu.com>
20293
20294         * gcc.c (cc1_options): Handle -iplugindir before processing
20295         the cc1 spec. Only add -iplugindir once.
20296         (cpp_unique_options): Add -iplugindir option if -fplugin* options
20297         found.
20298         * common.opt (iplugindir): Remove `Separate' property, initialize.
20299         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
20300         option.
20301         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
20302         (distclean): Remove plugin dir.
20303         * doc/invoke.texi: Document -iplugindir.
20304
20305 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
20306
20307         * doc/plugins.texi (Loading Plugins): Document short
20308         -fplugin=foo option.
20309         (Plugin API): Mention default_plugin_dir_name function.
20310
20311         * gcc.c (find_file_spec_function): Add new declaration.
20312         (static_spec_func): Use it for "find-file".
20313         (find_file_spec_function): Add new function.
20314         (cc1_options): Add -iplugindir option if -fplugin* options found.
20315
20316         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
20317
20318         * plugin.c (add_new_plugin): Updated comment, and handle short
20319         plugin name.
20320         (default_plugin_dir_name): Added new function.
20321
20322         * common.opt (iplugindir): New option to set the plugin directory.
20323
20324 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
20325
20326         * config/i386/i386.md (any_rotate): New code iterator.
20327         (rotate_insn): New code attribute.
20328         (rotate): Ditto.
20329         (SWIM124): New mode iterator.
20330         (<rotate_insn>ti3): New expander.
20331         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
20332         any_rotate code iterator.
20333         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
20334         using any_rotate code iterator and SWIM124 mode iterator.
20335         (ix86_rotlti3): New insn_and_split pattern.
20336         (ix86_rotrti3): Ditto.
20337         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
20338         ix86_rotl{di,ti}3 patterns.
20339         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
20340         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
20341         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
20342         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
20343         code iterator and SWI mode iterator.
20344         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
20345         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
20346         code iterator.
20347         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
20348         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
20349         (bswap rotatert splitter): Add splitter.
20350         (bswap splitter): Macroize splitter using any_rotate code iterator.
20351         Add insn predicate to split only for TARGET_USE_XCHGB or when
20352         optimizing function for size.
20353
20354 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20355
20356         * config/pa/pa.c (emit_move_sequence): Remove use of
20357         deleted variable flag_argument_noalias.
20358
20359 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20360
20361         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
20362         configurations.
20363         Add to unsupported targets list.
20364         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
20365         sparc*-sun-solaris2.[567]* from target lists.
20366         * configure: Regenerate.
20367         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
20368         removal.
20369         Remove Solaris 7 patch references.
20370         (Specific, sparc-sun-solaris2.7): Removed.
20371         (sparc-sun-solaris2*): Update Solaris 7 example.
20372         (sparc64-*-solaris2*): Likewise.
20373
20374 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20375
20376         * config.build (alpha*-dec-osf4*): Remove.
20377         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
20378         of obsolete configurations.
20379         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
20380         support.
20381         * config/alpha/t-osf4: Renamed to ...
20382         * config/alpha/t-osf5: ... this.
20383         * config/alpha/osf.h: Renamed to ...
20384         * config/alpha/osf5.h: ... this.
20385         Merged old osf5.h contents.
20386         Update comments.
20387         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
20388         (EXTRA_SPECS): Removed.
20389         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
20390         reflect removal of Tru64 UNIX V4.0/V5.0 support.
20391         Document that.
20392
20393 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20394
20395         * doc/contrib.texi (Contributors, Rainer Orth): Update.
20396
20397 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
20398
20399         PR/43702
20400         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
20401         __thiscall convention.
20402
20403 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20404
20405         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
20406         orig_base.
20407         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
20408
20409 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20410
20411         * function.c (assign_parms_initialize_all): Add unused attribute
20412         to fntype.
20413
20414 2010-04-12  Richard Guenther  <rguenther@suse.de>
20415
20416         * gsstruct.def (GSS_CALL): New.
20417         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
20418         * gimple.h: Include tree-ssa-alias.h.
20419         (struct gimple_statement_call): New.
20420         (union gimple_statement_struct_d): Add gimple_call member.
20421         (gimple_call_reset_alias_info): Declare.
20422         (gimple_call_use_set): New function.
20423         (gimple_call_clobber_set): Likewise.
20424         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
20425         * gimple.c (gimple_call_reset_alias_info): New function.
20426         (gimple_build_call_1): Call it.
20427         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20428         * tree-inline.c (remap_gimple_stmt): Likewise.
20429         (expand_call_inline): Remove callused handling.
20430         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
20431         * tree-dfa.c (dump_variable): Likewise.
20432         * tree-parloops.c (parallelize_loops): Likewise.
20433         * tree-ssa.c (init_tree_ssa): Likewise.
20434         (delete_tree_ssa): Likewise.
20435         * tree-flow-inline.h (is_call_used): Remove.
20436         * tree-flow.h (struct gimple_df): Remove callused member.
20437         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
20438         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
20439         (ref_maybe_used_by_call_p_1): Simplify.
20440         (call_may_clobber_ref_p_1): Likewise.
20441         * tree-ssa-structalias.c (compute_points_to_sets): Set
20442         the call stmt used and clobbered sets.
20443         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
20444         (find_tail_calls): Verify the tail call.
20445
20446 2010-04-12  Richard Guenther  <rguenther@suse.de>
20447
20448         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
20449         single-iteration always-inline inlining.
20450         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
20451         (cgraph_decide_inlining): Do not handle always-inline specially.
20452         (try_inline): Remove always-inline cycle detection special case.
20453         Do not recurse on always-inlines.
20454         (cgraph_early_inlining): Do not iterate if not optimizing.
20455         (cgraph_gate_early_inlining): remove.
20456         (pass_early_inline): Run unconditionally.
20457         (gate_cgraph_decide_inlining): New function.
20458         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
20459         not inlining or optimizing.
20460         (cgraph_decide_inlining_of_small_functions): Also consider
20461         always-inline functions.
20462         (cgraph_default_inline_p): Return true for nodes which should
20463         disregard inline limits.
20464         (estimate_function_body_sizes): Assume zero size and time for
20465         nodes which are marked as disregarding inline limits.
20466         (cgraph_decide_recursive_inlining): Do not perform recursive
20467         inlining on always-inline nodes.
20468
20469 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
20470
20471         PR bootstrap/43699
20472         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
20473         for exprs satisfying handled_component_p.
20474
20475 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
20476
20477         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
20478         non-constant aggregate elements.
20479
20480         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
20481         is a real initialization.
20482
20483 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
20484
20485         PR c/36774
20486         * c-decl.c (start_function): Move forward check for nested function.
20487
20488 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
20489
20490         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
20491         * config/sh/sh.c: Include reload.h.
20492         (sh_legitimize_reload_address): New.
20493         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
20494         sh_legitimize_reload_address.
20495
20496 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20497
20498         * config/sh/sh.md (*movqi_pop): New insn pattern.
20499         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
20500
20501 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20502
20503         * config/i386/i386.md (any_shiftrt): New code iterator.
20504         (shiftrt_insn): New code attribute.
20505         (shiftrt): Ditto.
20506         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
20507         using any_shiftrt code iterator.
20508         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
20509         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
20510         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
20511         pattern from corresponding peephole2 patterns.
20512         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
20513         using any_shiftrt code iterator.
20514         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
20515         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
20516         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
20517         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
20518         *{ashr,lshr}<mode>3_cmp_zext.
20519         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
20520
20521 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20522
20523         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
20524         scratch register.
20525         (*lshr<mode>3_cconly): Ditto.
20526
20527 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20528
20529         * config/i386/i386.md (lshr<mode>3): Macroize expander from
20530         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20531         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20532         pattern from *lshr{di,ti}3_1 and corresponding splitters using
20533         DWI mode iterator.
20534         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20535         from corresponding peephole2 patterns.
20536         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
20537         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
20538         and *lshrdi3_1_rex64 using SWI mode iterator.
20539         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
20540         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
20541         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
20542         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
20543         and *lshrdi3_cmp_rex64 using SWI mode iterator.
20544         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
20545         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
20546         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
20547         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
20548         SWI mode iterator.
20549
20550 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
20551
20552         * config/i386/i386.md (ashr<mode>3): Macroize expander from
20553         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20554         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20555         pattern from *ashr{di,ti}3_1 and corresponding splitters using
20556         DWI mode iterator.
20557         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20558         from corresponding peephole2 patterns.
20559         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
20560         (ashrsi3_cvt): Rename from ashrsi3_31.
20561         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
20562         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
20563         and x86_64_shift_adj_3 using SWI48 mode iterator.
20564         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
20565         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
20566         and *ashrdi3_1_rex64 using SWI mode iterator.
20567         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
20568         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
20569         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
20570         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
20571         and *ashrdi3_cmp_rex64 using SWI mode iterator.
20572         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
20573         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
20574         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
20575         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
20576         SWI mode iterator.
20577         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
20578         * config/i386/i386.c (ix86_split_ashr): Update for renamed
20579         x86_shift<mode>_adj_3 expanders.
20580
20581 2010-04-10  Wei Guozhi  <carrot@google.com>
20582
20583         PR target/42601
20584         * config/arm/arm.c (arm_pic_static_addr): New function.
20585         (legitimize_pic_address): Call arm_pic_static_addr when it detects
20586         a static symbol.
20587         (arm_output_addr_const_extra): Output expression for new pattern.
20588         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
20589
20590 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
20591
20592         * ira-costs.c (record_reg_classes): Ignore alternatives that are
20593         not enabled.
20594
20595         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
20596         * web.c: Include "insn-config.h" and "recog.h".
20597         (union_match_dups): New function.
20598         (web_main): Call it.
20599         (union_defs): Don't try to recognize match_dups.
20600
20601         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
20602         if doing so would replace the entire pattern.
20603
20604 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20605
20606         PR target/43707
20607         PR target/43709
20608         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
20609         and splitter pattern.  Change splitter operand 1 predicate to
20610         nonmemory_operand.
20611
20612 2010-04-09  Martin Jambor  <mjambor@suse.cz>
20613
20614         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
20615         lattices are addresses of CONST_DECLs with the same initial value.
20616         (ipcp_print_all_lattices): Print values of CONST_DECLs.
20617         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
20618
20619 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
20620             Bernd Schmidt  <bernds@codesourcery.com>
20621
20622         * loop-invariant.c (replace_uses): New static function.
20623         (move_invariant_reg): Use it to ensure we can replace the uses.
20624
20625 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
20626
20627         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
20628         function template.
20629         (picochip_override_options): Enable section anchors only above -O1.
20630         (picochip_reorg): Fixed a couple of build warnings.
20631
20632 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20633
20634         * configure.ac (plugin -rdynamic test): Log result.
20635         * configure: Regenerate.
20636         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
20637         (RDYNAMIC_SPEC): Define.
20638         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
20639
20640 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20641
20642         * configure.ac: Determine Sun ld version numbers.
20643         (comdat_group): Restrict GNU ld version checks to gld.
20644         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
20645         (enable_comdat): Support --enable-comdat.
20646         * configure: Regenerate.
20647         * doc/install.texi (Configuration): Document --enable-comdat.
20648
20649 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20650
20651         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
20652         * config/sol2-gld.h: ... here.
20653         * config.gcc (sparc*-*-solaris2*): Reflect this.
20654         (i[34567]86-*-solaris2*): Use it.
20655
20656 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
20657
20658         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
20659         setup_clocks_p.
20660         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
20661
20662 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20663
20664         PR 42965
20665         * diagnostic.c (diagnostic_initialize): Initialize
20666         some_warnings_are_errors.
20667         (diagnostic_finish): New.
20668         (diagnostic_action_after_output): Call it before exiting.
20669         (diagnostic_report_diagnostic): Do not print message here. Set
20670         some_warnings_are_errors.
20671         * diagnostic.h (diagnostic_context): Delete
20672         issue_warnings_are_errors_message. Add some_warnings_are_errors.
20673         (diagnostic_finish): Declare.
20674         * toplev.c (toplev_main): Call it before exit.
20675
20676 2010-04-09  Jason Merrill  <jason@redhat.com>
20677
20678         PR c++/42623
20679         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
20680         for incomplete type.
20681
20682         PR c++/41788
20683         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
20684         based on a warning flag.
20685
20686 2010-04-09  Richard Guenther  <rguenther@suse.de>
20687
20688         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
20689
20690 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
20691
20692         PR bootstrap/43684
20693         * varasm.c (default_assemble_visibility): Wrap vars that are
20694         set, but unused, by targets without GAS.
20695         * config/rs6000/rs6000.c (paired_emit_vector_compare):
20696         Remove set, but unused, vars.
20697         (rs6000_legitimize_tls_address): Likewise.
20698         (altivec_expand_dst_builtin): Likewise.
20699         * config/darwin.c (machopic_classify_symbol): Likewise.
20700         (machopic_indirection_name): Likewise.
20701
20702 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20703
20704         * config/i386/i386.md (DWI): New mode iterator.
20705         (S): New mode attribute.
20706         (shift_operand): Ditto.
20707         (shift_immediate_operand): Ditto.
20708         (ashl_input_operand): Ditto.
20709         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
20710         using SDWIM mode iterator.
20711         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20712         pattern from *ashl{di,ti}3_1 and corresponding splitters using
20713         DWI mode iterator.
20714         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
20715         from corresponding peephole2 patterns.
20716         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
20717         and x86_64_shift_adj_1 using SWI48 mode iterator.
20718         (x86_shift<mode>_adj_2): Ditto.
20719         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
20720         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
20721         using SWI48 mode iterator.
20722         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
20723         *ashldi3_cmp_rex64 using SWI mode iterator.
20724         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
20725         *ashldi3_cconly_rex64 using SWI mode iterator.
20726         * config/i386/i386.c (ix86_split_ashl): Update for renamed
20727         x86_shift<mode>_adj_{1,2}.
20728         (ix86_split_ashr): Ditto.
20729         (ix86_split_lshr): Ditto.
20730
20731 2010-04-09  Richard Guenther  <rguenther@suse.de>
20732
20733         * target.h (builtin_conversion): Pass in input and output types.
20734         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
20735         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
20736         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
20737         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
20738
20739         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
20740         Handle AVX modes.
20741         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
20742
20743 2010-04-09  Richard Guenther  <rguenther@suse.de>
20744
20745         PR target/43152
20746         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
20747
20748 2010-04-09  Richard Guenther  <rguenther@suse.de>
20749
20750         * tree-vectorizer.h (struct _stmt_vec_info): Document
20751         that vectype is the type of the LHS.
20752         (supportable_widening_operation, supportable_narrowing_operation):
20753         Get both input and output vector types as arguments.
20754         (vect_is_simple_use_1): Declare.
20755         (get_same_sized_vectype): Likewise.
20756         * tree-vect-loop.c (vect_determine_vectorization_factor):
20757         Set STMT_VINFO_VECTYPE to the vector type of the def.
20758         (vectorizable_reduction): Adjust.
20759         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
20760         Adjust.  Specify the output vector type.
20761         (vect_pattern_recog_1): Adjust.
20762         * tree-vect-stmts.c (get_same_sized_vectype): New function.
20763         (vectorizable_call): Adjust.
20764         (vectorizable_conversion): Likewise.
20765         (vectorizable_operation): Likewise.
20766         (vectorizable_type_demotion): Likewise.
20767         (vectorizable_type_promotion): Likewise.
20768         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
20769         the def.
20770         (vect_is_simple_use_1): New function.
20771         (supportable_widening_operation): Get both input and output
20772         vector types.
20773         (supportable_narrowing_operation): Likewise.
20774         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
20775
20776 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
20777
20778         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
20779         __thiscall and _thiscall as predefined macros.
20780         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
20781         thiscall attribute handling.
20782         (ix86_comp_type_attributes): Likewise.
20783         (ix86_function_regparm): Likewise.
20784         (ix86_return_pops_args): Likewise.
20785         (init_cumulative_args): Likewise.
20786         (find_drap_reg): Likewise.
20787         (ix86_static_chain): Likewise.
20788         (x86_this_parameter): Likewise.
20789         (x86_output_mi_thunk): Likewise.
20790         (ix86_attribute_table): Add description for thiscall attribute.
20791         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
20792         * doc/extend.texi: Add documentation for thiscall.
20793
20794 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20795
20796         PR c++/28584
20797         * c.opt (Wint-to-pointer-cast): Available in C++.
20798         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
20799
20800 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20801
20802         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
20803         * calls.c (expand_call): Pass the function type to aggregate_value_p.
20804         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
20805         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
20806         function type instead.  Reorder and simplify checks.
20807
20808         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
20809
20810 2010-04-08  Jing Yu  <jingyu@google.com>
20811             Zdenek Dvorak  <ook@ucw.cz>
20812
20813         PR tree-optimization/42720
20814         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
20815         loop unswitch conditions here from ...
20816         (tree_unswitch_single_loop): ... here.
20817
20818 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20819
20820         * tree-if-conv.c: Fix comments and simplify logic.
20821
20822 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20823
20824         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
20825         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
20826         (main_tree_if_conversion): Update call to tree_if_conversion.
20827
20828 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20829
20830         PR 42485
20831         * doc/invoke.texi (-b,-V): Delete.
20832         * doc/tm.texi: Do not mention -b.
20833         * gcc.c (display_help): Delete -b and -V.
20834         (process_command): Delete -b and -V.
20835         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
20836
20837 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
20838             Wolfgang Gellerich  <gellerich@de.ibm.com>
20839
20840         Implement target hook for loop unrolling
20841         * target.h (loop_unroll_adjust): Add a new target hook function.
20842         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
20843         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
20844         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
20845         (s390_loop_unroll_adjust): Implement the new target hook for s390.
20846         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
20847         target hook.
20848         (decide_unroll_stupid): Likewise.
20849
20850 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20851
20852         PR target/43643
20853         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
20854
20855 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20856
20857         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
20858         (Specific, *-*-solaris2*): Likewise.
20859         Don't prefer Sun as over GNU as.
20860
20861 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
20862
20863         * config/s390/s390.c (override_options): Adjust the z10 defaults
20864         for max-unroll-times, max-completely-peeled-insns
20865         and max-completely-peel-times.
20866
20867 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20868
20869         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
20870         instructions for z10.
20871         (s390_expand_setmem): Likewise.
20872         (s390_expand_cmpmem): Likewise.
20873
20874 2010-04-08  Richard Guenther  <rguenther@suse.de>
20875
20876         PR tree-optimization/43679
20877         * tree-ssa-pre.c (eliminate): Only propagate copies.
20878
20879 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20880
20881         PR bootstrap/43681
20882         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
20883         set but not used variable warning.
20884
20885 2010-04-08  Wei Guozhi  <carrot@google.com>
20886
20887         PR target/41653
20888         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
20889         (arm_size_rtx_costs): Call the new function when optimized for size.
20890
20891 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20892
20893         PR debug/43670
20894         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
20895         op0 is not a MEM, just return NULL instead of assertion
20896         failure.
20897         (discover_nonconstant_array_refs): Don't walk debug stmts.
20898
20899 2010-04-08  Doug Kwan  <dougkwan@google.com>
20900
20901         * configure.ac: Recognize gold and do not use its version number
20902         to test ld features.
20903         * configure: Regenerate.
20904
20905 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
20906
20907         PR middle-end/40815
20908         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
20909         (negate_value): Move code to push elements to broken_up_substracts ...
20910         (eliminate_plus_minus_pair): ... here.  Push operands that have no
20911         negative pair to plus_negates.
20912         (repropagate_negates, init_reassoc, fini_reassoc): Update.
20913
20914 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20915
20916         * doc/install.texi (Configuration): Move description of
20917         --enable-lto, --with-libelf*, --enable-gold from Java section to
20918         general section.
20919
20920         * doc/generic.texi (Working with declarations)
20921         (Function Properties, C and C++ Trees): Fix typos.
20922         * doc/sourcebuild.texi (Top Level): Likewise.
20923
20924 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20925
20926         PR c/18624
20927         * tree.h (DECL_READ_P): Define.
20928         (struct tree_decl_common): Add decl_read_flag.
20929         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
20930         a set but not used warning.
20931         (merge_decls): Merge DECL_READ_P flag.
20932         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
20933         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
20934         * c-common.c (handle_used_attribute, handle_unused_attribute):
20935         Likewise.
20936         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
20937         New prototypes.
20938         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
20939         New functions.
20940         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
20941         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
20942         c_parser_binary_expression, c_parser_cast_expression,
20943         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
20944         Call default_function_array_read_conversion instead of
20945         default_function_array_conversion where needed.
20946         (c_parser_unary_expression, c_parser_conditional_expression,
20947         c_parser_postfix_expression_after_primary, c_parser_initelt):
20948         Likewise.  Call mark_exp_read where needed.
20949         (c_parser_statement_after_labels, c_parser_asm_operands,
20950         c_parser_typeof_specifier, c_parser_sizeof_expression,
20951         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
20952         where needed.
20953         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
20954         New.
20955         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
20956         (warn_unused_but_set_parameter): Default to warn_unused
20957         && extra_warnings.
20958         * doc/invoke.texi: Document -Wunused-but-set-variable and
20959         -Wunused-but-set-parameter.
20960
20961         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
20962         used count variable.
20963         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
20964         when operandN variables aren't used in the body of the expander
20965         or splitter.
20966         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
20967         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
20968         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
20969         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
20970         FOR_EACH_IMM_USE_ON_STMT): Likewise.
20971         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
20972         * tree.c (PROCESS_ARG): Likewise.
20973
20974 2010-04-07  Simon Baldwin  <simonb@google.com>
20975
20976         * diagnostic.h (diagnostic_override_option_index): New macro to
20977         set a diagnostic's option_index.
20978         * c-tree.h (c_cpp_error): Add warning reason argument.
20979         * opts.c (_warning_as_error_callback): New.
20980         (register_warning_as_error_callback): Store callback for
20981         warnings enabled via enable_warning_as_error.
20982         (enable_warning_as_error): Call callback, minor code tidy.
20983         * opts.h (register_warning_as_error_callback): Declare.
20984         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
20985         response to -Werror=.
20986         (c_common_init_options): Register warning_as_error_callback in opts.c.
20987         * common.opt: Add -Wno-cpp option.
20988         * c-common.c (struct reason_option_codes_t): Map cpp warning
20989         reason codes to gcc option indexes.
20990         * (c_option_controlling_cpp_error): New function, lookup the gcc
20991         option index for a cpp warning reason code.
20992         * (c_cpp_error): Add warning reason argument, call
20993         c_option_controlling_cpp_error for diagnostic_override_option_index.
20994         * doc/invoke.texi: Document -Wno-cpp.
20995
20996 2010-04-07  Richard Guenther  <rguenther@suse.de>
20997
20998         * ipa-reference.c (mark_load): Use get_base_address.
20999         (mark_store): Likewise.
21000
21001         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
21002         inserting GIMPLE_NOPs into the IL.
21003         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21004         Explicitly strip handled components and indirect references.
21005
21006         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
21007         folding address expressions.
21008         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
21009         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
21010         operand_equal_p to compare decls.
21011         (ptr_deref_may_alias_decl_p): Likewise.
21012         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
21013         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
21014         Handle reversed comparison ops.
21015         * tree-sra.c (asm_visit_addr): Use get_base_address.
21016         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
21017         * ipa-reference.c (mark_address): Use get_base_address.
21018
21019 2010-04-07  Richard Guenther  <rguenther@suse.de>
21020
21021         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
21022         Propagate constants everywhere.
21023
21024 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21025
21026         PR debug/43516
21027         * tree.c (MAX_INT_CACHED_PREC): Define.
21028         (nonstandard_integer_type_cache): New array.
21029         (build_nonstandard_integer_type): Cache results for precision
21030         <= MAX_INT_CACHED_PREC.
21031
21032 2010-04-07  Richard Guenther  <rguenther@suse.de>
21033
21034         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
21035         -fargument-noalias-global, -fargument-noalias-anything): Remove.
21036         * common.opt: Likewise.
21037         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
21038         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
21039         (nonoverlapping_memrefs_p): Likewise.
21040         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21041         * opts.c (common_handle_option): Handle OPT_fargument_alias,
21042         OPT_fargument_noalias, OPT_fargument_noalias_anything and
21043         OPT_fargument_noalias_global for backward compatibility.
21044
21045 2010-04-07  Richard Guenther  <rguenther@suse.de>
21046
21047         PR tree-optimization/43270
21048         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
21049         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
21050         * tree-ssa-pre.c (phi_translate_1): Adjust.
21051         (fully_constant_expression): Split out vn_reference handling to ...
21052         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
21053         Fold reads from constant strings.
21054         (vn_reference_lookup): Handle fully constant references.
21055         (vn_reference_lookup_pieces): Likewise.
21056         * Makefile.in (expmed.o-warn): Add -Wno-error.
21057
21058 2010-04-07  Martin Jambor  <mjambor@suse.cz>
21059
21060         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
21061
21062 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
21063
21064         PR driver/41594
21065         * gcc.c: Add -static-libstdc++ to list of recognized options.
21066
21067 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21068
21069         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
21070
21071 2010-04-07  Richard Guenther  <rguenther@suse.de>
21072
21073         PR middle-end/42617
21074         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
21075         bases build simple mem attributes to retain points-to information.
21076
21077 2010-04-07  Richard Guenther  <rguenther@suse.de>
21078
21079         PR middle-end/42617
21080         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
21081         preserve points-to related information.
21082
21083 2010-04-07  Richard Guenther  <rguenther@suse.de>
21084
21085         PR middle-end/42617
21086         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
21087         discard plain indirect references.
21088         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
21089         * tree.c (tree_nop_conversion): Likewise.
21090
21091 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
21092
21093         PR debug/43628
21094         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
21095
21096 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
21097
21098         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
21099         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
21100
21101 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21102
21103         * tree-if-conv.c: Fix indentation and comments.
21104
21105 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21106
21107         * tree-if-conv.c: Sort static functions in topological order.
21108
21109 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21110
21111         * tree-if-conv.c: Fix indentation and comments.
21112
21113 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21114
21115         PR middle-end/43519
21116         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
21117         lang_hooks.types.type_for_size instead of
21118         build_nonstandard_integer_type.
21119         When converting an unsigned type to signed, double its precision.
21120         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
21121         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
21122         (graphite_create_new_loop_guard): When ub + 1 wraps around,
21123         use lb <= ub.
21124
21125 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21126
21127         PR middle-end/43519
21128         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21129         POINTER_PLUS_EXPR for pointer types.
21130
21131 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21132
21133         PR middle-end/43519
21134         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
21135         * graphite-clast-to-gimple.c: Include langhooks.h.
21136         (max_signed_precision_type): New.
21137         (max_precision_type): Takes two types as arguments.
21138         (precision_for_value): New.
21139         (precision_for_interval): New.
21140         (gcc_type_for_interval): New.
21141         (gcc_type_for_value): New.
21142         (gcc_type_for_clast_term): New.
21143         (gcc_type_for_clast_red): New.
21144         (gcc_type_for_clast_bin): New.
21145         (gcc_type_for_clast_expr): Split up into several functions.
21146         (gcc_type_for_clast_eq): Rewritten.
21147         (compute_bounds_for_level): New.
21148         (compute_type_for_level_1): New.
21149         (compute_type_for_level): New.
21150         (gcc_type_for_cloog_iv): Removed.
21151         (gcc_type_for_iv_of_clast_loop): Rewritten.
21152         (graphite_create_new_loop): Compute the lower and upper bound types
21153         with gcc_type_for_clast_expr.
21154         (graphite_create_new_loop_guard): Same.
21155         (find_cloog_iv_in_expr): Removed.
21156         (compute_cloog_iv_types_1): Removed.
21157         (compute_cloog_iv_types): Removed.
21158         (gloog): Do not call compute_cloog_iv_types.
21159         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
21160         GBB_CLOOG_IV_TYPES.
21161         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
21162         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
21163         (GBB_CLOOG_IV_TYPES): Removed.
21164
21165 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21166
21167         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
21168         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
21169         (detect_commutative_reduction): Same.
21170
21171 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21172
21173         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
21174         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
21175         argument.
21176         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
21177         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
21178         (rewrite_commutative_reductions_out_of_ssa): Same.
21179         * passes.c (execute_function_todo): Call verify_ssa for every pass
21180         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
21181         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
21182         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
21183         with an extra argument.
21184         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
21185         verify_ssa only when the extra argument is true.
21186         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
21187         with an extra argument.
21188         (tree_transform_and_unroll_loop): Same.
21189
21190 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21191
21192         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
21193         for all the passes of the LNO having LOOP_CLOSED_SSA.
21194         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
21195         * tree-loop-distribution.c (pass_loop_distribution): Same.
21196         * tree-pass.h (TODO_verify_loops): Removed.
21197         * tree-ssa-loop.c (pass_tree_loop_init): Same.
21198         (pass_lim): Same.
21199         (pass_tree_unswitch): Same.
21200         (pass_predcom): Same.
21201         (pass_vectorize): Same.
21202         (pass_linear_transform): Same.
21203         (pass_graphite_transforms): Same.
21204         (pass_iv_canon): Same.
21205         (pass_complete_unroll): Same.
21206         (pass_complete_unrolli): Same.
21207         (pass_parallelize_loops): Same.
21208         (pass_loop_prefetch): Same.
21209         (pass_iv_optimize): Same.
21210
21211 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
21212
21213         PR middle-end/32824
21214         * passes.c (init_optimization_passes): Move pass_lim before
21215         pass_copy_prop and pass_dce_loop.
21216
21217 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21218
21219         PR target/43667
21220         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
21221         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
21222         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
21223         MULTI_* defines for 4 argument vpermil2p* builtins.
21224
21225 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21226
21227         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
21228         * config/i386/i386.c (x86_maybe_negate_const_int): New.
21229         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
21230         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
21231         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
21232         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
21233         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
21234         Use x86_maybe_negate_const_int to output insn mnemonic.
21235         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
21236         check from instruction predicate.  Update comments.
21237         * config/i386/sync.md (sync_add<mode>): Use
21238         x86_maybe_negate_const_int to output insn mnemonic.
21239
21240 2010-04-06  Jan Hubicka  <jh@suse.cz>
21241
21242         PR tree-optimization/42906
21243         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
21244         IGNORE_SELF argument.  Set visited_control_parents for fully
21245         processed BBs.
21246         (find_obviously_necessary_stmts): Update call of
21247         mark_control_dependent_edges_necessary.
21248         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
21249
21250 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21251
21252         * config/i386/i386.md: Remove comment about 'e' and 'E'
21253         operand modifier.
21254
21255 2010-04-06  Richard Guenther  <rguenther@suse.de>
21256
21257         PR tree-optimization/43627
21258         * tree-vrp.c (extract_range_from_unary_expr): Widenings
21259         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
21260         not varying.
21261
21262 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21263
21264         * BASE-VER: Change to 4.6.0.
21265
21266         PR target/43638
21267         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
21268         handling.
21269
21270 2010-04-06  Richard Guenther  <rguenther@suse.de>
21271
21272         PR middle-end/43661
21273         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
21274
21275 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21276
21277         * doc/invoke.texi (Optimize Options): Document that LTO
21278         won't remove object access purely due to incompatible
21279         declarations.
21280
21281 2010-04-04  Matthias Klose  <doko@ubuntu.com>
21282
21283         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
21284         Initialize variable.
21285
21286 2010-04-03  Richard Guenther  <rguenther@suse.de>
21287
21288         PR middle-end/42509
21289         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
21290         require a non-NULL MEM_OFFSET.
21291
21292 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
21293
21294         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
21295         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
21296         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
21297         config/alpha/predicates.md, config/arm/arm.md,
21298         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
21299         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
21300         config/darwin9.h, config/darwin.c, config/darwin.h,
21301         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
21302         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
21303         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
21304         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
21305         config/mips/mips.md, config/mn10300/mn10300.c,
21306         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
21307         config/rs6000/aix.h, config/rs6000/dfp.md,
21308         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
21309         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
21310         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
21311         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
21312         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
21313         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
21314         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
21315         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
21316         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
21317         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
21318         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
21319         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
21320         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
21321         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
21322         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
21323         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
21324         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
21325         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
21326         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
21327         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
21328         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
21329         opt-functions.awk, opth-gen.awk, params.def, passes.c,
21330         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
21331         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
21332         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
21333         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
21334         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
21335         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
21336         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
21337         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
21338         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
21339         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
21340         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
21341         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
21342         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
21343         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
21344
21345 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21346
21347         PR other/43620
21348         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
21349         * aclocal.m4: Regenerate.
21350
21351 2010-04-02  Richard Guenther  <rguenther@suse.de>
21352
21353         PR tree-optimization/43629
21354         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
21355         if we have seen a constant value.
21356
21357 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
21358
21359         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
21360
21361 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
21362
21363         PR target/43469
21364         * arm.c (legitimize_tls_address): Adjust call to
21365         gen_tls_load_dot_plus_four.
21366         (arm_note_pic_base): New function.
21367         (arm_cannot_copy_insn_p): Use it.
21368         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
21369         constraint.
21370
21371 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21372
21373         PR bootstrap/43531
21374
21375         Revert:
21376         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21377
21378         * Makefile.in ($(out_object_file)): Depend on
21379         gt-$(basename $(notdir $(out_file))).h.
21380
21381 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
21382
21383         * config.gcc (lm32-*-rtems*): Add t-lm32.
21384
21385 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
21386
21387         * config.gcc: Add lm32-*-rtems*.
21388         * config/lm32/rtems.h: New file.
21389
21390 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
21391
21392         PR target/42609
21393         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
21394
21395 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
21396
21397         * dwarf2out.c (output_compilation_unit_header): For
21398         -gdwarf-4 use version 4 instead of version 3.
21399         (output_line_info): For version 4 and above emit additional
21400         maximum ops per insn header field.
21401         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
21402
21403         * dwarf2out.c (is_c_family, is_java): Remove.
21404         (lower_bound_default): New function.
21405         (add_bound_info, gen_descr_array_type_die): Use it.
21406
21407 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
21408
21409         PR debug/43325
21410         * dwarf2out.c (gen_variable_die): Allow debug info for variable
21411         re-declaration when it happens in a function.
21412
21413 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
21414
21415         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
21416         (cgraph_remove_function_insertion_hook): Same.
21417         (cgraph_call_function_insertion_hooks): Same.
21418
21419 2010-04-01  Richard Guenther  <rguenther@suse.de>
21420
21421         PR middle-end/43614
21422         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
21423         and TREE_THIS_VOLATILE.
21424         (copy_ref_info): Likewise.
21425         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
21426         * tree.c (build6_stat): Ignore side-effects of all but arg5
21427         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
21428         TARGET_MEM_REF.
21429
21430 2010-04-01  Richard Guenther  <rguenther@suse.de>
21431
21432         PR tree-optimization/43607
21433         * ipa-type-escape.c (check_call): Do not access non-existing
21434         arguments.
21435
21436 2010-04-01  Richard Guenther  <rguenther@suse.de>
21437
21438         PR middle-end/43602
21439         Revert
21440         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21441                     Jack Howarth  <howarth@bromo.med.uc.edu>
21442
21443         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21444         variables TLS.
21445
21446 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21447
21448         * doc/install.texi (Prerequisites): Document libelf usability on
21449         IRIX 5/6 and Solaris 2.
21450         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
21451         Update GNU as, GNU ld requirements.
21452         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
21453         Document Sun Studio compiler download.
21454         Update and simplify as, ld recommendations.
21455         (Specific, *-*-solaris2.7): Note obsoletion, removal.
21456
21457 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21458
21459         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
21460         with_tune_32 to pentium4.
21461
21462 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
21463
21464         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
21465
21466 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21467
21468         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
21469         obsoletion, removal.
21470         Update IDO URL.
21471         Document GNU as requirement.
21472         Update configure requirements.
21473         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
21474         Recomment IRIX 6.5.18+.
21475         Document IDF/IDL requirement.
21476         Document GNU as requirement.
21477         Document GNU ld bootstrap failure.
21478         Remove freeware.sgi.com reference.
21479
21480 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21481
21482         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
21483         UNIX V4.0, V5.0 obsoletion, removal.
21484         Remove --with-gc=simple reference.
21485         Update VM requirements during bootstrap.
21486         Remove -oldas bootstrap description.
21487         Update binutils reference.
21488         Remove comparison failure note.
21489
21490 2010-03-31  Richard Guenther  <rguenther@suse.de>
21491             Zdenek Dvorak  <ook@ucw.cz>
21492             Sebastian Pop  <sebastian.pop@amd.com>
21493
21494         PR middle-end/43464
21495         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
21496         with multiple arguments.
21497         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
21498
21499 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21500
21501         * graphite-dependences.c (print_pddr): Call print_pdr with an
21502         extra argument.
21503         * graphite-poly.c (debug_pdr): Add an extra argument for the
21504         verbosity level.
21505         (print_pdr): Same.
21506         (print_pbb_domain): Same.
21507         (print_pbb): Same.
21508         (print_scop_context): Same.
21509         (print_scop): Same.
21510         (print_cloog): Same.
21511         (debug_pbb_domain): Same.
21512         (debug_pbb): Same.
21513         (print_pdrs): Same.
21514         (debug_pdrs): Same.
21515         (debug_scop_context): Same.
21516         (debug_scop): Same.
21517         (debug_cloog): Same.
21518         (print_scop_params): Same.
21519         (debug_scop_params): Same.
21520         (print_iteration_domain): Same.
21521         (print_iteration_domains): Same.
21522         (debug_iteration_domain): Same.
21523         (debug_iteration_domains): Same.
21524         (print_scattering_function): Same.
21525         (print_scattering_functions): Same.
21526         (debug_scattering_function): Same.
21527         (debug_scattering_functions): Same.
21528         * graphite-poly.h (debug_pdr): Update declaration.
21529         (print_pdr): Same.
21530         (print_pbb_domain): Same.
21531         (print_pbb): Same.
21532         (print_scop_context): Same.
21533         (print_scop): Same.
21534         (print_cloog): Same.
21535         (debug_pbb_domain): Same.
21536         (debug_pbb): Same.
21537         (print_pdrs): Same.
21538         (debug_pdrs): Same.
21539         (debug_scop_context): Same.
21540         (debug_scop): Same.
21541         (debug_cloog): Same.
21542         (print_scop_params): Same.
21543         (debug_scop_params): Same.
21544         (print_iteration_domain): Same.
21545         (print_iteration_domains): Same.
21546         (debug_iteration_domain): Same.
21547         (debug_iteration_domains): Same.
21548         (print_scattering_function): Same.
21549         (print_scattering_functions): Same.
21550         (debug_scattering_function): Same.
21551         (debug_scattering_functions): Same.
21552
21553 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21554
21555         * graphite-poly.c (print_scattering_function_1): New.
21556         (print_scattering_function): Call it.
21557         (print_scop_params): Remove spaces at the end of lines.
21558         (print_cloog): New.
21559         (debug_cloog): New.
21560         * graphite-poly.h (print_cloog): Declared.
21561         (debug_cloog): Declared.
21562
21563 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21564
21565         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
21566         in loop->header.
21567         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
21568         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
21569         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
21570         to switch between adding the IV bump in loop->latch or in loop->header.
21571
21572 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21573
21574         * graphite-poly.c (print_scattering_function): Pretty print following
21575         the scoplib format.
21576         (print_pdr): Same.
21577         (print_pbb_domain): Same.
21578         (dump_gbb_cases): Same.
21579         (dump_gbb_conditions): Same.
21580         (print_pdrs): Same.
21581         (print_pbb): Same.
21582         (print_scop_params): Same.
21583         (print_scop_context): Same.
21584         (print_scop): Same.
21585         (print_pbb_body): New.
21586         (lst_indent_to): New.
21587         (print_lst): Start new lines with a #.
21588         * graphite-poly.h (pbb_bb): New.
21589         (pbb_index): Use pbb_bb.
21590         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
21591         disjuncts.
21592         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
21593
21594 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21595
21596         * dwarf2out.c (size_of_die): For -gdwarf-4 use
21597         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
21598         and 0 instead of 1 for dw_val_class_flag.
21599         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
21600         dw_val_class_range_list, dw_val_class_loc_list,
21601         dw_val_class_lineptr and dw_val_class_macptr, use
21602         DW_FORM_flag_present for dw_val_class_flag and
21603         DW_FORM_exprloc for dw_val_class_loc.
21604         (output_die): For -gdwarf-4 print dw_val_class_loc
21605         size as uleb128 instead of 1 or 2 bytes and don't print
21606         anything for dw_val_class_flag.
21607
21608         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
21609         instead of cselib_lookup following by tweaking locs->setting_insn.
21610
21611         PR bootstrap/43596
21612         * cselib.c (cselib_process_insn): Clear cselib_current_insn
21613         even before returning from label, setjmp call or volatile asm
21614         handling.
21615
21616 2010-03-31  Richard Guenther  <rguenther@suse.de>
21617
21618         PR middle-end/43600
21619         * cgraphunit.c (cgraph_output_in_order): Do not allocate
21620         temporary data on stack.
21621
21622 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21623
21624         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
21625         (PUSHSECTION_ASM_OP): Remove.
21626         (POPSECTION_ASM_OP): Remove.
21627         (PUSHSECTION_FORMAT): Remove.
21628         * config/sol2.h (PUSHSECTION_FORMAT): Define.
21629         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
21630         * config/sol2.c (solaris_output_init_fini): Use it.
21631
21632 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21633
21634         PR 43574
21635         * opt-functions.awk (var_type_struct): Use signed char type
21636         for simple variables.
21637
21638 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21639
21640         * config/sol2.c: Include output.h.
21641         (solaris_assemble_visibility): New function.
21642         * config/t-sol2 (sol2.o): Add output.h dependency.
21643         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
21644         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
21645         Redefine.
21646
21647 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21648
21649         PR target/43580
21650         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
21651         V2SImode or XFmode on PRE_DEC.
21652
21653         PR debug/43557
21654         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
21655         BLKmode.
21656
21657 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21658
21659         PR 43562
21660         * reload.h (caller_save_initialized_p): Declare.
21661         * toplev.c (backend_init_target): Don't call
21662         init_caller_save but set caller_save_initialized_p to false.
21663         * caller-save.c (caller_save_initialized_p): Define.
21664         (init_caller_save): Check caller_save_initialized_p.
21665         * ira.c (ira): Call init_caller_save if flag_caller_saves.
21666
21667 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21668
21669         PR target/39048
21670         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
21671         and soft-fp/t-softfp to tmake_file.
21672         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
21673         (LIBGCC2_TF_CEXT): Define.
21674         (TF_SIZE): Define.
21675
21676 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
21677
21678         PR debug/42977
21679         * cselib.c (n_useless_values): Document handling of debug locs.
21680         (n_useless_debug_values, n_debug_values): New variables.
21681         (new_elt_loc_list): Don't add to debug values, keep count.
21682         (promote_debug_loc): New.
21683         (cselib_reset_table): Zero new variables.
21684         (entry_and_rtx_equal_p): Promote debug locs.
21685         (discard_useless_locs): Increment n_useless_debug_values for
21686         debug values.
21687         (remove_useless_values): Adjust n_useless_values and n_debug_values
21688         with n_useless_debug_values.
21689         (add_mem_for_addr): Promote debug locs.
21690         (cselib_lookup_mem): Likewise.
21691         (cselib_lookup_addr): Renamed to...
21692         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
21693         (cselib_log_lookup): ... this.  Turn into...
21694         (cselib_lookup_addr): ... new wrapper.
21695         (cselib_lookup_from_insn): New.
21696         (cselib_invalidate_regno): Increment n_useless_debug_values for
21697         debug values.
21698         (cselib_invalidate_mem): Likewise.
21699         (cselib_process_insn): Take n_deleted and n_debug_values into
21700         account to guard remove_useless_value call.
21701         (cselib_finish): Zero n_useless_debug_values.
21702         * cselib.h (cselib_lookup_from_insn): Declare.
21703         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
21704         (sched_analyze_2): Likewise.
21705
21706 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
21707
21708         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
21709         functions.
21710         (adjust_mems): Replace narrowing SUBREG of expression containing
21711         just PLUS, MINUS, MULT and ASHIFT of registers and constants
21712         with operations in the narrower mode.
21713
21714         PR debug/43593
21715         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
21716         regs_invalidated_by_call instead all call_used_reg_set registers.
21717
21718 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
21719
21720         PR middle-end/43430
21721         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
21722         pointer comparisons with types_compatible_p.
21723         * tree-vect-stmts.c (vectorizable_call): Same.
21724         (vectorizable_condition): Same.
21725
21726 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21727
21728         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
21729         stack check if the mask would be zero.
21730
21731 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21732             Jack Howarth  <howarth@bromo.med.uc.edu>
21733
21734         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21735         variables TLS.
21736
21737 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
21738
21739         PR other/25232
21740         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
21741         and __unordtf2.
21742         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
21743         Include ___unordxf2 and ___unordtf2.
21744         * config/i386/libgcc-glibc.ver: Do not define inheritance from
21745         GCC_4.4.0 here.
21746
21747 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
21748
21749         * config/lm32/t-lm32: New file.
21750         * config.gcc: Use the above file when targetting lm32.
21751
21752 2010-03-28  Duncan Sands  <baldrick@free.fr>
21753
21754         * Makefile.in (PLUGIN_HEADERS): Add except.h.
21755
21756 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21757
21758         PR middle-end/43431
21759         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
21760         Improve vectorization cost model diagnostic.
21761
21762 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21763
21764         PR middle-end/43436
21765         * tree-vect-data-refs.c (vect_analyze_data_refs): When
21766         compute_data_dependences_for_loop returns false, early exit
21767         and output an extra diagnostic for the failed data reference
21768         analysis.
21769
21770 2010-03-29  Richard Guenther  <rguenther@suse.de>
21771
21772         PR tree-optimization/43560
21773         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
21774         (can_sm_ref_p): Treat stores to readonly locations as trapping.
21775
21776 2010-03-29  Jie Zhang  <jie@codesourcery.com>
21777
21778         PR 43564
21779         * toplev.c (process_options): Set optimization_default_node
21780         and optimization_current_node.
21781         * opts.c (decode_options): Don't set optimization_default_node
21782         and optimization_current_node.
21783
21784 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
21785
21786         * config/rtems.h: Abandon -qrtems_debug.
21787
21788 2010-03-28  Jan Hubicka  <jh@suse.cz>
21789
21790         PR tree-optimization/43505
21791         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
21792         map should not be copied.
21793
21794 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21795
21796         PR middle-end/41674
21797         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
21798         cdtors, set DECL_PRESERVE_P.
21799         * ipa.c (cgraph_externally_visible_p): Return true if declaration
21800         should be preseved.
21801
21802 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
21803
21804         PR tree-optimization/43528
21805         * stor-layout.c (place_field): Check that constant fits into
21806         unsigned HWI when skipping calculation of MS bitfield layout.
21807
21808 2010-03-27  Jan Hubicka  <jh@suse.cz>
21809
21810         PR middle-end/43391
21811         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
21812         notice_global_symbol work.
21813
21814 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
21815
21816         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
21817         instead of dwarf2out_decl.
21818         (struct var_loc_node): Remove section_label field.
21819         (dwarf2out_function_decl): New function.
21820         (dwarf2out_var_location): Don't set section_label field.
21821         (dwarf2out_begin_function): Don't empty decl_loc_table here.
21822
21823 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21824
21825         PR tree-optimization/43544
21826         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21827         First argument for builtin vectorized function hook is now a
21828         tree to be able to distinguish between machine specific and
21829         standard builtins.
21830         * targhooks.c (default_builtin_vectorized_function): Ditto.
21831         * targhooks.h (default_builtin_vectorized_function): Ditto.
21832         * target.h (struct gcc_target): Ditto.
21833         * tree-vect-stmts.c (vectorizable_function): Ditto.
21834         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
21835         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
21836         Ditto.
21837
21838 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
21839
21840         PR c/43381
21841         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
21842         nested binding iff it is a FUNCTION_DECL.
21843         (store_parm_decls_newstyle): Pass nested=true to bind for
21844         FUNCTION_DECLs amongst parameters.
21845
21846 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21847
21848         * var-tracking.c (vt_expand_loc_callback): Don't run
21849         cselib_expand_value_rtx_cb in dummy mode if
21850         cselib_dummy_expand_value_rtx_cb returned false.
21851
21852         * var-tracking.c (emit_note_insn_var_location): For one part
21853         notes with offset 0, don't add EXPR_LIST around the location.
21854         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
21855         add_location_or_const_value_attribute): Adjust for that change.
21856
21857         PR debug/43540
21858         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
21859         into first operand and location into second.
21860         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
21861         dw_cfi_oprnd_loc for DW_CFA_expression.
21862         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
21863         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
21864         assume first argument is regnum and second argument is location.
21865
21866 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21867
21868         PR target/42113
21869         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
21870         of scratch register to DImode.  Split to DImode comparison operator.
21871         Use SImode subreg of scratch register in the multiplication.
21872         (*cmp_sadd_sidi): Ditto.
21873         (*cmp_ssub_si): Ditto.
21874         (*cmp_ssub_sidi): Ditto.
21875
21876 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21877
21878         PR target/43524
21879         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
21880         Remove invalid assert and wrong comment.
21881
21882 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21883
21884         PR debug/43516
21885         * flags.h (final_insns_dump_p): New extern.
21886         * final.c (final_insns_dump_p): New variable.
21887         (rest_of_clean_state): Set it before -fdump-final-insns=
21888         dumping, clear afterwards.
21889         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
21890         MEM_ALIAS_SET on MEMs.
21891
21892 2010-03-26  David S. Miller  <davem@davemloft.net>
21893
21894         * configure.ac: Fix sparc GOTDATA_OP bug check.
21895         * configure: Rebuild.
21896
21897 2010-03-26  Alan Modra  <amodra@gmail.com>
21898
21899         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
21900
21901 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21902
21903         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
21904         TLS_SECTION_ASM_FLAG.
21905
21906 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
21907
21908         PR bootstrap/43511
21909         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
21910         Clear first_function_block_is_cold.
21911
21912         PR c/43385
21913         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
21914         argument if the argument is truth_value_p.
21915
21916 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21917
21918         * config/rs6000/constraints.md: Update copyright year for my changes.
21919
21920         PR target/43484
21921         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
21922         used in reg+reg addressing, swap registers.
21923
21924 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21925
21926         PR debug/43293
21927         * target.h (struct gcc_target): Add code_end hook.
21928         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
21929         if not yet defined.
21930         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
21931         * toplev.c (compile_file): Call targetm.asm_out.code_end
21932         hook before unwind info/debug info output.
21933         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
21934         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
21935         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21936         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
21937         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21938         * config/i386/i386.c (ix86_file_end): Renamed to...
21939         (ix86_code_end): ... this.  Make static.  Don't call
21940         file_end_indicate_exec_stack.  Emit unwind info using
21941         final_start_function/final_end_function.
21942         (darwin_x86_file_end): Remove.
21943         (TARGET_ASM_CODE_END): Define.
21944         * config/i386/i386.h (TARGET_ASM_FILE_END,
21945         NEED_INDICATE_EXEC_STACK): Don't define.
21946         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
21947         (TARGET_ASM_FILE_END): Define to darwin_file_end.
21948         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
21949         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
21950
21951         PR target/43498
21952         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
21953         at the beginning and final_end_function at the end.
21954         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
21955
21956 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21957
21958         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
21959         and Sun as TLS syntax.
21960         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
21961         * configure: Regenerate.
21962         * config.in: Regenerate.
21963         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
21964         (default_elf_asm_named_section): Use it.
21965         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
21966         (i386_output_dwarf_dtprel): Likewise.
21967         (output_addr_const_extra): Likewise.
21968         (output_pic_addr_const): Lowercase @GOTTPOFF.
21969         (output_addr_const_extra): Likewise.
21970         (output_pic_addr_const): Lowercase @GOTNTPOFF.
21971         (output_addr_const_extra): Likewise.
21972         (output_pic_addr_const): Lowercase @INDNTPOFF.
21973         (output_addr_const_extra): Likewise.
21974         (output_pic_addr_const): Lowercase @NTPOFF.
21975         (output_addr_const_extra): Likewise.
21976         (output_pic_addr_const): Lowercase @TPOFF.
21977         (output_addr_const_extra): Likewise.
21978         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
21979         (*tls_global_dynamic_64): Likewise.
21980         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
21981         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
21982
21983         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
21984         (ASM_OUTPUT_TLS_COMMON): Use it.
21985         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
21986
21987         PR target/38118
21988         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
21989         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21990         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
21991         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
21992         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21993         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
21994
21995 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21996
21997         * config/i386/i386.c (override_options): Don't accept
21998         -mtls-dialect=sun any longer.
21999         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
22000         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
22001         (*tls_local_dynamic_base_32_sun): Likewise.
22002         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22003
22004 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22005
22006         PR debug/43508
22007         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22008         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
22009
22010         PR debug/43479
22011         * ira.c (adjust_cleared_regs): New function.
22012         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
22013
22014         PR debug/19192
22015         PR debug/43479
22016         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
22017         from gimple_block.
22018         * expr.c (expand_expr_real): Restore previous
22019         curr_insn_source_location and curr_insn_block after
22020         expand_expr_real_1 call.
22021         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
22022         instead of expand_expr_real_1.
22023
22024 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
22025
22026         PR rtl-optimization/43413
22027         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
22028         hard regs too.
22029
22030 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
22031
22032         PR target/43348
22033         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
22034         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
22035
22036 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22037
22038         * config/i386/i386.c (ix86_target_string): Add -mfma.
22039         Fix a typo in comment.
22040
22041 2010-03-22  Mike Stump  <mikestump@comcast.net>
22042
22043         PR target/23071
22044         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
22045         Don't overly align based upon packed packed fields.
22046
22047 2010-03-22  Jason Merrill  <jason@redhat.com>
22048
22049         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
22050         Use () rather than [], and move before the element type.
22051
22052 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22053
22054         * doc/configfiles.texi (Configuration Files): Removed
22055         fixinc/Makefile*, intl/Makefile.*.
22056         * doc/makefile.texi: Fixed markup. Abstract from version
22057         control system used.
22058         (Makefile): Removed obsolete java/parse.y example.
22059         * doc/sourcebuild.texi: Likewise.
22060         (Top Level): Added config, gnattools, libdecnumber, libgcc,
22061         libgomp, libssp.  Removed fastjar.
22062         (Miscellaneous Docs): Clarify location.
22063         Added COPYING3, COPYING3.LIB.
22064         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
22065
22066 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22067
22068         PR target/38085
22069         * config/i386/i386.c (x86_function_profiler)
22070         [!NO_PROFILE_COUNTERS]: Fix typo.
22071         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
22072         instead of callq.
22073
22074 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
22075             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22076
22077         * doc/sourcebuild.texi (Test Directives): Split into six
22078         subsections, with most of the current text in new subsections
22079         Directives, Selectors, and Final Actions.
22080         (Directives): Split list of test directives into multiple
22081         subsubsections.
22082         (Selectors): Describe use and syntax of selectors.
22083         (Effective-Target Keywords): Describe all existing keywords.
22084         (Add Options): Describe features for dg-add-options.
22085         (Require Support): Describe variants of dg-require-support.
22086         (Final Actions): Describe commands to use in dg-final.
22087
22088 2010-03-22  Michael Matz  <matz@suse.de>
22089
22090         PR middle-end/43475
22091         * recog.c (validate_replace_rtx_group): Replace also in
22092         REG_EQUAL and REG_EQUIV notes.
22093
22094 2010-03-22  Richard Guenther  <rguenther@suse.de>
22095
22096         PR tree-optimization/43390
22097         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
22098         sure vector extracts are type correct.
22099
22100 2010-03-22  Richard Guenther  <rguenther@suse.de>
22101
22102         PR middle-end/40106
22103         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
22104         x * sqrt (x) even when optimizing for size if the target
22105         has native support for sqrt.
22106
22107 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
22108
22109         * varasm.c (make_decl_rtl_for_debug): Also clear
22110         flag_mudflap for the duration of make_decl_rtl call.
22111
22112         PR debug/43443
22113         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
22114         locs from preserved VALUEs.
22115
22116 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22117
22118         PR middle-end/42718
22119         * pa.md (movmemsi): Set align to one if zero.
22120         (movmemdi): Likewise.
22121
22122 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
22123
22124         PR target/42321
22125         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
22126         with their corresponding prologue pushes.
22127
22128 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
22129
22130         PR target/43156
22131         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
22132         at the begining or end.
22133         (spu_expand_epilogue): Likewise.
22134
22135 2010-03-20  Richard Guenther  <rguenther@suse.de>
22136
22137         PR rtl-optimization/43438
22138         * combine.c (make_extraction): Properly zero-/sign-extend an
22139         extraction of the low part of a CONST_INT.  Also handle
22140         CONST_DOUBLE.
22141
22142 2010-03-19  Mike Stump  <mikestump@comcast.net>
22143
22144         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
22145         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
22146         (override_options): Use SUBTARGET32_DEFAULT_CPU.
22147
22148 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22149
22150         PR c/43211
22151         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
22152         an error.
22153
22154 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
22155
22156         PR rtl-optimization/42258
22157         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
22158         use that may match DEF.
22159
22160         PR target/40697
22161         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
22162         the cost of loading the constant rather than assuming
22163         COSTS_N_INSNS (1).
22164         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
22165         outer code is AND, do the same tests as the andsi3 expander and
22166         return COSTS_N_INSNS (1) if and is cheap.
22167
22168         * optabs.c (avoid_expensive_constant): Fix formatting.
22169
22170 2010-03-19  Michael Matz  <matz@suse.de>
22171
22172         PR c++/43116
22173         * attribs.c (decl_attributes): When rebuilding a function pointer
22174         type use the same qualifiers as the original pointer type.
22175
22176 2010-03-19  Martin Jambor  <mjambor@suse.cz>
22177
22178         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
22179         and is_gimple_ip_invariant_address.
22180
22181 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22182
22183         Revert
22184         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22185
22186         * config/arm/arm.c (arm_override_options): Turn off
22187         flag_dwarf2_cfi_asm for AAPCS variants.
22188
22189 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22190
22191         PR target/43399
22192         * config/arm/arm.c (emit_multi_reg_push): Update comments.
22193         Use PRE_MODIFY instead of PRE_DEC.
22194         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
22195         (vfp_emit_fstmd): Likewise.
22196
22197 2010-03-19  Michael Matz  <matz@suse.de>
22198
22199         PR target/43305
22200         * builtins.c (expand_builtin_interclass_mathfn,
22201         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
22202         if that fails.
22203
22204 2010-03-19  Richard Guenther  <rguenther@suse.de>
22205
22206         PR tree-optimization/43415
22207         * tree-ssa-pre.c (phi_translate): Split out worker to ...
22208         (phi_translate_1): ... this.
22209         (phi_translate): Move all caching here.  Cache all NARY
22210         and REFERENCE translations.
22211
22212 2010-03-19  David S. Miller  <davem@davemloft.net>
22213
22214         With help from Eric Botcazou.
22215         * config/sparc/sparc.c: Include dwarf2out.h.
22216         (emit_pic_helper): Delete.
22217         (pic_helper_symbol_name): Delete.
22218         (pic_helper_emitted_p): Delete.
22219         (pic_helper_needed): New.
22220         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
22221         (get_pc_thunk_name): New.
22222         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
22223         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
22224         Set pic_helper_needed to true.  Don't call emit_pic_helper.
22225         (sparc_expand_prologue): Update load_pic_register call.
22226         (sparc_output_mi_thunk): Likewise.
22227         (sparc_file_end): Emit a hidden comdat symbol for the PIC
22228         thunk if possible.  Output CFI information as needed.
22229
22230 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22231             Jack Howarth  <howarth@bromo.med.uc.edu>
22232
22233         PR target/36399
22234         * config/i386/i386.h: Fix ABI on darwin x86-32.
22235
22236 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
22237
22238         * tree.h: Declare make_decl_rtl_for_debug.
22239         * varasm.c (make_decl_rtl_for_debug): New.
22240         * dwarf2out.c (rtl_for_decl_location): Call it.
22241         * cfgexpand.c (expand_debug_expr): Call it.
22242
22243 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22244
22245         PR bootstrap/43399
22246         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
22247         mem_mode.
22248
22249         PR bootstrap/43403
22250         * var-tracking.c (vt_init_cfa_base): Do nothing if
22251         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
22252
22253 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
22254
22255         PR debug/42873
22256         * var-tracking.c (canonicalize_vars_star): New.
22257         (dataflow_post_merge_adjust): Use it.
22258
22259 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22260
22261         PR debug/43058
22262         * var-tracking.c (non_suitable_const): New function.
22263         (add_uses): For DEBUG_INSNs with constants, don't record any
22264         value, instead just the constant value itself.
22265         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
22266         is not VAR_LOC_UNKNOWN_P, set var to the constant.
22267         (emit_notes_in_bb): Likewise.
22268         (emit_note_insn_var_location): For onepart variables if
22269         cur_loc is a VOIDmode constant, use DECL_MODE.
22270
22271 2010-03-18  Martin Jambor  <mjambor@suse.cz>
22272
22273         PR middle-end/42450
22274         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
22275         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
22276         all non-clones.  Moved call redirection...
22277         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
22278         (cgraph_materialize_all_clones): Dispose of all
22279         combined_args_to_skip bitmaps.
22280         (verify_cgraph_node): Do not check for edges pointing to wrong
22281         nodes in inline clones.
22282         * tree-inline.c (copy_bb): Call
22283         cgraph_redirect_edge_call_stmt_to_callee.
22284         * ipa.c (cgraph_remove_unreachable_nodes): Call
22285         cgraph_node_remove_callees even when there are used clones.
22286
22287 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22288
22289         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
22290
22291 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22292
22293         PR target/43383
22294         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
22295         for 32bit.
22296
22297 2010-03-18  Michael Matz  <matz@suse.de>
22298
22299         PR middle-end/43419
22300         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
22301         into sqrt(x) if we need to preserve signed zeros.
22302
22303 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
22304             Eric Botcazou  <ebotcazou@adacore.com>
22305
22306         PR rtl-optimization/43360
22307         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
22308         note if we don't know its invariant status.
22309
22310 2010-03-18  Michael Matz  <matz@suse.de>
22311
22312         PR tree-optimization/43402
22313         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
22314         PHI chains of ssa names registered for update.
22315
22316 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
22317
22318         PR target/42427
22319         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
22320         non-offsettable and pre_modify update addressing.
22321         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
22322         and "2" alternatives "#".
22323         (*movdd_softfloat32): Make all alternatives "#";
22324         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
22325         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
22326         (*movdf_softfloat32): Make all alternatives "#";
22327         (movdi): Use the new DIFD mode iterator to create a common splitter
22328         for movdi, movdf and movdd patterns.
22329
22330 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
22331
22332         * common.opt (dumpdir): Remove redundant tab.
22333
22334 2010-03-17  Martin Jambor  <mjambor@suse.cz>
22335
22336         PR tree-optimization/43347
22337         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
22338         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
22339
22340 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
22341
22342         PR rtl-optimization/42216
22343         * regrename.c (create_new_chain): New function, broken out from...
22344         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
22345         appending a use to an empty chain.
22346         (build_def_use): Remove previous changes that convert OP_INOUT to
22347         OP_OUT operands; instead detect the case where an OP_INOUT operand
22348         uses a previously untracked register and create an empty chain for it.
22349
22350 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22351
22352         * doc/extend.texi (Function Attributes): Rewrite unfinished
22353         sentence in ms_abi documentation.
22354
22355 2010-03-17  Alan Modra  <amodra@gmail.com>
22356
22357         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
22358         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
22359         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
22360         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
22361
22362 2010-03-16  Richard Henderson  <rth@redhat.com>
22363
22364         PR middle-end/43365
22365         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
22366         (lower_try_finally): Save and restore eh_seq around the expansion
22367         of the try-finally.
22368
22369 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22370
22371         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
22372         statements before splitting block.
22373
22374 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22375
22376         * doc/sourcebuild.texi (Testsuites): Fix markup.
22377         Use pathnames relative to gcc/testsuite.
22378         (Test Directives): Move description of how timeout is determined.
22379         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
22380         (C Tests): Correct gcc.misc-tests directory.
22381         Framework tests now live in gcc.test-framework.
22382
22383 2010-03-16  Richard Guenther  <rguenther@suse.de>
22384
22385         PR middle-end/43379
22386         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
22387         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
22388
22389 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22390             Alexandre Oliva  <aoliva@redhat.com>
22391
22392         PR tree-optimization/42917
22393         * lambda-code.c (remove_iv): Skip debug statements.
22394         (lambda_loopnest_to_gcc_loopnest): Likewise.
22395         (not_interesting_stmt): Debug statements are not interesting.
22396
22397 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
22398
22399         PR debug/43051
22400         PR debug/43092
22401         * cselib.c (cselib_preserve_constants,
22402         cfa_base_preserved_val): New static variables.
22403         (preserve_only_constants): New function.
22404         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
22405         clear its REG_VALUES.  If cselib_preserve_constants, don't
22406         empty the whole hash table, but preserve there VALUEs with constants,
22407         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
22408         (cselib_preserve_cfa_base_value): New function.
22409         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
22410         (cselib_init): Change argument to int bitfield.  Set
22411         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
22412         is in it.
22413         (cselib_finish): Clear cselib_preserve_constants and
22414         cfa_base_preserved_val.
22415         * cselib.h (enum cselib_record_what): New enum.
22416         (cselib_init): Change argument to int.
22417         (cselib_preserve_cfa_base_value): New prototype.
22418         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
22419         * dse.c (dse_step1): Likewise.
22420         * cfgcleanup.c (thread_jump): Likewise.
22421         * sched-deps.c (sched_analyze): Likewise.
22422         * gcse.c (local_cprop_pass): Likewise.
22423         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
22424         If FN is non-NULL, call the callback always and whenever it returns
22425         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
22426         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
22427         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
22428         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
22429         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
22430         * var-tracking.c: Include recog.h.
22431         (bb_stack_adjust_offset): Remove.
22432         (vt_stack_adjustments): Don't call it, instead just gather the
22433         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
22434         (adjust_stack_reference): Remove.
22435         (compute_cfa_pointer): New function.
22436         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
22437         (struct adjust_mem_data): New type.
22438         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
22439         functions.
22440         (get_address_mode): New function.
22441         (replace_expr_with_values): Use it.
22442         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
22443         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
22444         (adjust_sets): Remove.
22445         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
22446         Use get_address_mode.
22447         (get_adjusted_src): Remove.
22448         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
22449         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
22450         (add_with_sets): Don't call adjust_sets.
22451         (fp_setter, vt_init_cfa_base): New functions.
22452         (vt_initialize): Change return type to bool.  Move most of pool etc.
22453         initialization to the beginning of the function from end.  Pass
22454         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
22455         If !frame_pointer_needed, call vt_stack_adjustment before mos
22456         vector is filled, call vt_init_cfa_base if argp/framep has been
22457         eliminated to sp.  If frame_pointer_needed and argp/framep has
22458         been eliminated to hard frame pointer, set
22459         hard_frame_pointer_adjustment and call vt_init_cfa_base after
22460         encountering fp setter in the prologue.  For MO_ADJUST, call
22461         log_op_type before pusing the op into mos vector, not afterwards.
22462         Call adjust_insn before cselib_process_insn/add_with_sets,
22463         call cancel_changes (0) afterwards.
22464         (variable_tracking_main_1): Adjust for vt_initialize calling
22465         vt_stack_adjustments and returning whether it succeeded or not.
22466
22467 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
22468
22469         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
22470         debug statements.
22471
22472 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
22473
22474         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
22475         has been set.
22476         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
22477         drap_reg has not been set.
22478
22479 2010-03-15  Michael Matz  <matz@suse.de>
22480
22481         PR middle-end/43300
22482         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
22483         use it to expand block copies.
22484         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
22485         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
22486         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
22487
22488 2010-03-15  Richard Guenther  <rguenther@suse.de>
22489
22490         PR tree-optimization/43367
22491         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
22492         elimination check.
22493
22494 2010-03-15  Richard Guenther  <rguenther@suse.de>
22495
22496         PR tree-optimization/43317
22497         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
22498
22499 2010-03-15  Martin Jambor  <mjambor@suse.cz>
22500
22501         PR tree-optimization/43141
22502         * tree-sra.c (create_abstract_origin): New function.
22503         (modify_function): Call create_abstract_origin.
22504
22505 2010-03-15  Chris Demetriou  <cgd@google.com>
22506
22507         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
22508         wasn't copied.
22509
22510 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22511
22512         PR middle-end/43354
22513         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
22514         call insert_out_of_ssa_copy for default definitions.
22515
22516 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22517
22518         * graphite-clast-to-gimple.c (my_long_long): Defined.
22519         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
22520         * graphite-sese-to-poly.c (my_long_long): Defined.
22521         (scop_ivs_can_be_represented): Use it.
22522
22523 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22524
22525         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
22526         graphite-max-bbs-per-function, and loop-block-tile-size.
22527         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
22528         with "maximum".
22529         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
22530
22531 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22532
22533         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
22534         forward declaration.
22535         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
22536         (add_upper_bounds_from_estimated_nit): New.
22537         (build_loop_iteration_domains): Use it.
22538
22539 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22540
22541         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
22542
22543 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22544
22545         PR middle-end/43306
22546         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
22547         should be an INTEGER_CST.  Also handle CASE_CONVERT.
22548
22549 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22550
22551         * graphite.c (graphite_initialize): To bound the number of bbs per
22552         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
22553         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
22554         * doc/invoke.texi: Document it.
22555
22556 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22557
22558         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
22559         * graphite-sese-to-poly.h (build_poly_scop): Same.
22560
22561 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22562
22563         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
22564         the number of parameters in the scop.  Use as an upper bound
22565         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
22566         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
22567         * doc/invoke.texi: Document it.
22568
22569 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
22570
22571         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
22572         * doc/c-tree.texi: Remove.
22573         * doc/generic.texi: Merge c-tree.texi here.
22574         * doc/gccint.texi (Trees): Remove menu entry.
22575         (c-tree.texi): Remove @include.
22576         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
22577         * doc/languages.texi (Reading RTL): Ditto.
22578
22579 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
22580
22581         PR target/42869
22582         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
22583
22584 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22585
22586         PR middle-end/42431
22587         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
22588         code added to work around reload clobbering CONST insns.
22589
22590 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
22591
22592         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
22593         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
22594         (cselib_preserve_only_values): Remove retain argument, don't
22595         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
22596         * cselib.h (cselib_preserve_only_values): Remove retain argument.
22597         * var-tracking.c (micro_operation): Move insn field before union.
22598         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
22599         (struct variable_tracking_info_def): Remove n_mos field, change
22600         mos into a vector of micro_operations.
22601         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
22602         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
22603         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
22604         changing into a vector.
22605         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
22606         come before all other uops generated by add_stores.
22607         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
22608         argument removal.
22609         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
22610         a vector.  Run just one pass over the bbs instead of separate counting
22611         and computation phase.
22612         (vt_finalize): Free VTI (bb)->mos vector instead of array.
22613
22614         PR debug/43329
22615         * tree-inline.c (remap_decls): Put old_var rather than origin_var
22616         into *nonlocalized_list vector.
22617         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
22618         even if origin is non-NULL.
22619         (gen_variable_die): Likewise.
22620         (process_scope_var): Don't change origin.
22621         (gen_decl_die): Likewise.
22622         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
22623         before adding new edges instead of after it, fix moving over
22624         debug stmts.
22625
22626 2010-03-11  David S. Miller  <davem@davemloft.net>
22627
22628         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
22629         of four.
22630         * configure: Rebuild.
22631
22632 2010-03-11  Martin Jambor  <mjambor@suse.cz>
22633
22634         PR tree-optimization/43257
22635         * tree.c (assign_assembler_name_if_neeeded): New function.
22636         (free_lang_data_in_cgraph): Assembler name assignment moved to the
22637         above new function.
22638         * tree.h (assign_assembler_name_if_neeeded): Declare.
22639         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
22640         the function if needed.
22641
22642 2010-03-11  Chris Demetriou  <cgd@google.com>
22643
22644         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
22645         include/stdint-gcc.h, and include/stdint.h world-readable.
22646
22647 2010-03-11  Richard Guenther  <rguenther@suse.de>
22648
22649         PR tree-optimization/43255
22650         * tree-vrp.c (process_assert_insertions_for): Do not insert
22651         asserts for trivial conditions.
22652
22653 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22654
22655         PR tree-optimization/43280
22656         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
22657         generation.  Move calculation of size out of the if branch.
22658         (find_bswap): Modify compare number generation.
22659
22660 2010-03-11  Richard Guenther  <rguenther@suse.de>
22661
22662         PR lto/43200
22663         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
22664         (input_gimple_stmt): Fixup handled component types during
22665         operand read.  Also fix up decls in ADDR_EXPRs.
22666
22667 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
22668
22669         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
22670         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
22671
22672 2010-03-10  Jan Hubicka  <jh@suse.cz>
22673
22674         PR c/43288
22675         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
22676         * varasm.c (get_variable_section): Don't do that here...
22677         (make_decl_rtl): ... and here.
22678         (do_assemble_alias): Produce decl RTL.
22679         (assemble_alias): Likewise.
22680
22681 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22682
22683         PR debug/43290
22684         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
22685         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
22686         of fde->vdrap_reg.
22687         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
22688         (based_loc_descr): Only express drap or vdrap regno based expressions
22689         using DW_OP_fbreg when not optimizing.
22690         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
22691         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
22692         REG_CFA_SET_VDRAP note.
22693
22694 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
22695
22696         PR tree-optimization/43236
22697         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
22698         error in calculation of base address in reverse iteration case.
22699         (generate_builtin): Take number of latch executions if the statement
22700         is in the latch.
22701
22702 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
22703
22704         PR middle-end/42859
22705         * tree-eh.c: Include pointer-set.h.
22706         (lower_eh_dispatch): Filter out duplicate case labels and
22707         remove the unneeded edge when the label is unused.  Return
22708         true when some edges are removed.
22709         (execute_lower_eh_dispatch): When any lowering resulted in
22710         removing an edge, also delete unreachable blocks.
22711
22712 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22713
22714         PR bootstrap/43287
22715         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22716         UNSPEC_MACHOPIC_OFFSET.
22717
22718 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
22719
22720         PR target/43294
22721         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
22722         (m68k_delegitimize_address): New function.
22723
22724 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
22725
22726         PR debug/43299
22727         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
22728
22729         PR debug/43299
22730         * var-tracking.c (adjust_sets): New function.
22731         (count_with_sets, add_with_sets): Use it.
22732         (get_adjusted_src): New inline function.
22733         (add_stores): Use it.
22734
22735         PR debug/43304
22736         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
22737         call cselib_dummy_expand_value_rtx_cb instead of
22738         cselib_expand_value_rtx_cb.
22739
22740         PR debug/43293
22741         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
22742         * config/i386/i386.c: Include debug.h and dwarf2out.h.
22743         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
22744         and .cfi_endproc around the pic thunks.
22745         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
22746         all queued unwind info register saves are saved before the call.
22747         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
22748         considered as sp-=4 for unwind info and the pop as sp+=4 which
22749         also clobbers dest, but doesn't actually restore it.
22750
22751         PR debug/43290
22752         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
22753         RTX_FRAME_RELATED_P.
22754
22755 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22756
22757         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
22758         whitespaces in output template.
22759
22760 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22761
22762         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
22763         out array boundary.
22764
22765 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22766
22767         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
22768         builtins.exp in a separate job.
22769
22770 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22771
22772         * graphite-sese-to-poly.c (add_param_constraints): Use
22773         lower_bound_in_type and upper_bound_in_type.
22774
22775 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22776
22777         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
22778         instead of unsigned_type_node.
22779
22780 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22781             Reza Yazdani  <reza.yazdani@amd.com>
22782
22783         PR middle-end/43065
22784         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
22785         on pointer type parameters.
22786
22787 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22788
22789         PR middle-end/42644
22790         PR middle-end/42130
22791         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
22792         handle conversions from pointer to integers.
22793         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
22794         induction variable, to be able to work with code generated by CLooG.
22795         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
22796         (build_poly_scop): Bail out if we cannot codegen a loop.
22797
22798 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22799
22800         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
22801         code generation with gloog_error.
22802
22803 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22804
22805         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
22806         Call fold_convert on all the returned values.
22807         (expand_scalar_variables_expr): Pass to
22808         expand_scalar_variables_ssa_name the type of the resulting expression.
22809
22810 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22811
22812         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
22813         ppl_min_for_le_pointset.
22814         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
22815         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
22816
22817 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22818
22819         * graphite-dependences.c (map_into_dep_poly): Removed.
22820         (dependence_polyhedron_1): Use combine_context_id_scat.
22821
22822 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22823
22824         * graphite-poly.h (struct poly_scattering): Add layout documentation.
22825         (struct poly_bb): Same.
22826         (combine_context_id_scat): New.
22827
22828 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22829
22830         PR middle-end/42326
22831         * sese.c (name_defined_in_loop_p): Return false for default
22832         definitions.
22833
22834 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22835
22836         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
22837         and clean up the logic.
22838
22839 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22840
22841         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
22842         early return.
22843
22844 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22845
22846         * var-tracking.c (remove_cselib_value_chains): Define only for
22847         ENABLE_CHECKING.
22848         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
22849         delete_slot_part, emit_notes_for_differences_1): Don't call
22850         remove_cselib_value_chains here.
22851         (set_slot_part, emit_notes_for_differences_2): Don't call
22852         add_cselib_value_chains here.
22853         (preserved_values): New vector.
22854         (preserve_value): New function.
22855         (add_uses, add_stores, vt_add_function_parameters): Use it
22856         instead of cselib_preserve_value.
22857         (changed_values_stack): New vector.
22858         (check_changed_vars_0): New function.
22859         (check_changed_vars_1, check_changed_vars_2): Use it.
22860         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
22861         changed_values_stack VALUEs.
22862         (vt_emit_notes): For all preserved_values call
22863         add_cselib_value_chains.  If ENABLE_CHECKING call
22864         remove_cselib_value_chains before verifying value_chains is empty.
22865         Initialize and free changed_values_stack.
22866         (vt_initialize): Initialize preserved_values.
22867         (vt_finalize): Free preserved_values.
22868
22869 2010-03-08  Richard Guenther  <rguenther@suse.de>
22870
22871         PR tree-optimization/43269
22872         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
22873         region detection.
22874
22875 2010-03-08  Martin Jambor  <mjambor@suse.cz>
22876
22877         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
22878         (ipa_is_param_called): Removed.
22879         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
22880         (ipa_print_node_params): Do not print the called flag.
22881         (ipa_write_node_info): Do not stream the called flag.
22882         (ipa_read_node_info): Likewise.
22883
22884 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
22885
22886         PR debug/43176
22887         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
22888         * cselib.c (struct expand_value_data): Add dummy field.
22889         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
22890         dummy to false.
22891         (cselib_dummy_expand_value_rtx_cb): New function.
22892         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
22893         any rtl.
22894         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
22895         * var-tracking.c: Include pointer-set.h.
22896         (variable): Change n_var_parts to char from int.  Add
22897         cur_loc_changed and in_changed_variables fields.
22898         (variable_canonicalize): Remove.
22899         (shared_var_p): New inline function.
22900         (unshare_variable): Maintain cur_loc_changed and
22901         in_changed_variables fields.  If var was in changed_variables,
22902         replace it there with new_var.  Just copy cur_loc instead of
22903         resetting it to something else.
22904         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
22905         (dataflow_set_union): Don't call variable_canonicalize.
22906         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
22907         of their DEBUG_EXPR_TREE_DECLs.
22908         (canonicalize_loc_order_check): Verify that cur_loc is NULL
22909         and in_changed_variables and cur_loc_changed is false.
22910         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
22911         and cur_loc_changed.  Don't update cur_loc here.
22912         (variable_merge_over_src): Don't call variable_canonicalize.
22913         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
22914         removing loc that is equal to cur_loc, clear cur_loc,
22915         set cur_loc_changed and ensure variable_was_changed is called.
22916         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
22917         compare pointers in cur_loc check, if it is equal to loc,
22918         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
22919         (variable_different_p): Remove compare_current_location argument,
22920         don't compare cur_loc.
22921         (dataflow_set_different_1): Adjust variable_different_p caller.
22922         (variable_was_changed): If dv had some var in changed_variables
22923         already, reset in_changed_variables flag for it and propagate
22924         cur_loc_changed over to the new variable.  On empty var
22925         always set cur_loc_changed.  Set in_changed_variables on whatever
22926         var is added to changed_variables.
22927         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
22928         Use shared_var_p.  When removing loc that is equal to cur_loc,
22929         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
22930         end, don't set it to something else, just call variable_was_changed.
22931         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
22932         loc being removed, clear cur_loc and set cur_loc_changed.
22933         Set cur_loc_changed if all locations have been removed.
22934         (struct expand_loc_callback_data): New type.
22935         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
22936         allocated.  Always create SUBREGs if simplify_subreg failed.
22937         Prefer to use cur_loc, when that fails and still in
22938         changed_variables (and seen first time) recompute it.  Set
22939         cur_loc_changed of variables which had to change cur_loc and
22940         compute elcd->cur_loc_changed if any of the subexpressions used
22941         had to change cur_loc.
22942         (vt_expand_loc): Adjust to pass arguments in
22943         expand_loc_callback_data structure.
22944         (vt_expand_loc_dummy): New function.
22945         (emitted_notes): New variable.
22946         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
22947         that weren't used for any other decl in current
22948         emit_notes_for_changes call call vt_expand_loc_dummy to update
22949         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
22950         first loc_chain location if NULL before.  Always use just
22951         cur_loc instead of first loc_chain location.  When cur_loc_changed
22952         is false, when not --enable-checking=rtl just don't emit any note.
22953         When rtl checking, compute the note and assert it is the same
22954         as previous note.  Clear cur_loc_changed and in_changed_variables
22955         at the end before removing from changed_variables.
22956         (check_changed_vars_3): New function.
22957         (emit_notes_for_changes): Traverse changed_vars to call
22958         check_changed_vars_3 on each changed var.
22959         (emit_notes_for_differences_1): Clear cur_loc_changed and
22960         in_changed_variables.  Recompute cur_loc of new_var.
22961         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
22962         (vt_emit_notes): Initialize and destroy emitted_notes.
22963
22964 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
22965
22966         PR rtl-optimization/42220
22967         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
22968         Use verify_reg_tracked to determine if we should use OP_OUT rather
22969         than OP_INOUT.
22970         (build_def_use): If we see an in-out operand for a register that we
22971         know nothing about, treat is an output if possible, fail the block if
22972         not.
22973
22974 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22975
22976         PR debug/42897
22977         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
22978         permanently.
22979
22980 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22981
22982         PR debug/42897
22983         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
22984         uses of relevant DEFs that are dead outside the loop too.
22985
22986 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22987
22988         * var-tracking.c (dataflow_set_merge): Swap src and src2.
22989         Reverted:
22990         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
22991         PR debug/41371
22992         * var-tracking.c (values_to_unmark): New variable.
22993         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22994         values_to_unmark vector.  Moved body to...
22995         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
22996         instead queue it into values_to_unmark vector.
22997         (vt_find_locations): Free values_to_unmark vector.
22998
22999 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
23000
23001         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
23002         (site.exp): Export them when plugins are enabled.
23003
23004 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
23005
23006         PR middle-end/42326
23007         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
23008         that contain scevs.
23009         (chrec_fold_multiply): Same.
23010
23011 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23012
23013         PR c/43248
23014         * c-decl.c (build_compound_literal): Return early if init is
23015         an error_mark_node.
23016
23017 2010-03-04  Martin Jambor  <mjambor@suse.cz>
23018
23019         PR tree-optimization/43164
23020         PR tree-optimization/43191
23021         * tree-sra.c (type_consists_of_records_p): Reject records with
23022         zero-size bit-fields at the end.
23023
23024 2010-03-04  Mike Stump  <mikestump@comcast.net>
23025
23026         * Makefile.in (TAGS): Remove *.y.
23027
23028 2010-03-04  Richard Guenther  <rguenther@suse.de>
23029
23030         PR tree-optimization/40761
23031         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
23032         in reverse order.
23033         (my_rev_post_order_compute): New function.
23034         (init_pre): Call it.
23035
23036 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23037
23038         PR middle-end/43209
23039         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
23040         decrease the cost of an IV candidate when the cost is infinite.
23041
23042 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23043
23044         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
23045         Use '3DNow!' for the extension of that name, ensure normal space
23046         after the string.
23047         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
23048
23049 2010-03-03  Jeff Law  <law@redhat.com>
23050
23051         * PR middle-end/32693
23052         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
23053         than gen_rtx_SUBREG.
23054         (extract_bit_field_1): Likewise.
23055
23056 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
23057
23058         * doc/sourcebuild.texi (Test directives): Document that arguments
23059         include-opts and exclude-opts are now optional for dg-skip-if,
23060         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
23061
23062 2010-03-03  Jason Merrill  <jason@redhat.com>
23063
23064         PR c++/12909
23065         * cgraph.h (varpool_node): Add extra_name field.
23066         * varpool.c (varpool_extra_name_alias): New.
23067         (varpool_assemble_decl): Emit extra name aliases.
23068         (varpool_mark_needed_node): Look past an extra name alias.
23069         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
23070         * lto-streamer-in.c (lto_input_tree): Read it.
23071         * lto-streamer-out.c (output_unreferenced_globals): Write it.
23072
23073 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23074
23075         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
23076         (sparc*-*-solaris2*): ...this.
23077
23078 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
23079
23080         PR debug/43229
23081         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
23082         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
23083         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
23084         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
23085
23086         PR debug/43237
23087         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
23088         fallthrough to default handling, just with want_address 0 instead of 2.
23089         For single element lists, add_AT_loc directly, otherwise create an
23090         artificial variable DIE and stick location list to it.
23091
23092         PR debug/43177
23093         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
23094         (VAL_EXPR_HAS_REVERSE): Define.
23095         (reverse_op): New function.
23096         (add_stores): For reversible operations add an extra MO_VAL_USE.
23097
23098 2010-03-02  Jason Merrill  <jason@redhat.com>
23099
23100         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
23101
23102 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
23103
23104         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
23105         (sparc64-*-linux*): Likewise.
23106         (sparc64-*-solaris2*): Include assembler files before linker ones.
23107         (sparc-*-solaris2*): Simplify and reorder to match previous case.
23108         * config/sparc/gas.h: Delete.
23109         * config/sparc/sol2-64.h: Add copyright notice.
23110         * config/sparc/sol2-gas-bi.h: Likewise.
23111         * config/sparc/sol2-gld.h: Likewise.
23112         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
23113         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
23114         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
23115         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
23116         (sparc_elf_asm_named_section): Rename into...
23117         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
23118
23119 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
23120
23121         * config/alpha/alpha.c (override_options): Fix -mtune error message.
23122
23123 2010-03-02  Jeff Law  <law@redhat.com>
23124
23125         PR middle-end/42431
23126         * reload1.c (rtx_p, substitute_stack): Declare.
23127         (substitute): Record addresses of changed rtxs.
23128         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
23129         Restore the original rtx when complete.
23130         (reload): Free subsitute_stack when complete.
23131
23132 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
23133
23134         * doc/gccint.texi (menu): Add Testsuites as a chapter.
23135         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
23136         new chapter.
23137         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
23138         LTO Testing, gcov Testing, profopt Testing, compat Testing,
23139         Torture Tests): Change from subsection to section.
23140
23141 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
23142             Steven Bosscher  <steven@gcc.gnu.org>
23143
23144         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
23145         instead of bb.
23146
23147 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
23148
23149         PR middle-end/42640
23150         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
23151         the assignment from the new induction variable to the assignment
23152         of the value from the original loop PHI function.
23153
23154 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
23155             Daniel Jacobowitz  <dan@codesourcery.com>
23156
23157         * doc/sourcebuild.texi (Test directives): Clarify options to
23158         dg-skip-if.
23159
23160 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23161
23162         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
23163         Disable cfi directives unless GCC and gas agree on using read-only
23164         .eh_frame sections for 64-bit.
23165         * configure: Regenerate.
23166
23167 2010-03-01  Richard Guenther  <rguenther@suse.de>
23168
23169         PR tree-optimization/43220
23170         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
23171         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
23172
23173 2010-03-01  Richard Guenther  <rguenther@suse.de>
23174             Martin Jambor  <mjambor@suse.cz>
23175
23176         PR middle-end/41250
23177         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
23178         gimplified parameters.
23179
23180 2010-03-01  Christian Bruel  <christian.bruel@st.com>
23181
23182         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
23183
23184 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
23185
23186         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
23187
23188 2010-03-01  Richard Guenther  <rguenther@suse.de>
23189
23190         PR middle-end/43213
23191         * expr.c (expand_assignment): Use the alias-oracle to tell
23192         if the rhs aliases the result decl.
23193
23194 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23195
23196         PR pch/14940
23197         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
23198         to sol_gt_pch_get_address.
23199         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
23200         64-bit, SPARC and x86.
23201         (sol_gt_pch_get_address): New function.
23202
23203 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
23204
23205         * toplev.h (inform_n, error_n): Declare.
23206         * diagnostic.c (inform_n, error_n): New function.
23207
23208 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
23209
23210         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
23211         has no rtl yet when processing local_decls, queue it and recheck
23212         if deferred stack allocation hasn't assigned it rtl.
23213
23214 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
23215
23216         * config/sh/sh.c (unspec_bbr_uid): New.
23217         (gen_block_redirect): Use it instead of INSN_UID.
23218         (gen_far_branch): Likewise.
23219
23220 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
23221
23222         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
23223         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
23224
23225 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23226
23227         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
23228         (Warning Options): -Wno-conversion-null is valid for
23229         Objective-C++ as well.
23230         * doc/tm.texi (Named Address Spaces): Likewise.
23231         * doc/plugins.texi (Plugins): Replace TABs with spaces.
23232         * doc/tree-ssa.texi (Tree SSA): Likewise.
23233
23234 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23235
23236         PR bootstrap/43202
23237         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
23238         by default.  Don't set the default arch for
23239         i[34567]86-*-darwin*|x86_64-*-darwin*.
23240
23241 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23242
23243         PR bootstrap/43202
23244         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
23245         default.  Set the default 32bit/64bit archs with $with_arch
23246         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
23247
23248 2010-02-27  Richard Guenther  <rguenther@suse.de>
23249
23250         PR tree-optimization/43186
23251         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
23252         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
23253         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
23254         unroller iterations.
23255
23256 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23257
23258         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
23259         required and i[34567]86-*-* targets don't support 64bit ISA.
23260
23261 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
23262
23263         PR ada/43096
23264         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
23265         the same alias set.
23266
23267 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23268
23269         * config.gcc: Set the default arch at least to Prescott for
23270         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
23271         if SSE math is enabled.
23272
23273 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23274
23275         * diagnostic.c (diagnostic_initialize): Update.
23276         (diagnostic_report_diagnostic): Test inhibit_notes_p for
23277         informative notes.
23278         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
23279         (diagnostic_inhibit_notes): New.
23280         * toplev.c (process_options): inhibit notes with -fcompare-debug.
23281
23282 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23283
23284         PR c/20631
23285         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
23286         * doc/standards.texi: Likewise.
23287         * doc/extend.texi: Likewise.
23288         * doc/trouble.texi: Likewise.
23289         * doc/cppopts.texi: Likewise.
23290         * doc/install.texi: Likewise.
23291         * c.opt (std=c90,std=gnu90): New options.
23292         * c-opts.c (c_common_handle_option): Handle them.
23293
23294 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23295
23296         PR c/24577
23297         * c-decl.c (undeclared_variable): Use an informative note.
23298
23299 2010-02-26  Richard Guenther  <rguenther@suse.de>
23300
23301         PR tree-optimization/43186
23302         * gimple.h (gimple_fold): Remove.
23303         * gimple.c (gimple_fold): Remove.  Inline into single user ...
23304         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
23305         Try harder for conditions.
23306
23307 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23308
23309         PR debug/43190
23310         * function.c (used_types_insert): Don't skip through named pointer
23311         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
23312         and it is different from the main variant's type.
23313
23314 2010-02-26  Nick Clifton  <nickc@redhat.com>
23315
23316         * config/rx/rx.md (sminsi3): Remove bogus alternative.
23317
23318 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23319
23320         * config.gcc: Support --with-fpmath=sse for x86.
23321
23322         * config/i386/ssemath.h: New.
23323
23324         * doc/install.texi (--with-fpmath=sse): Documented.
23325
23326 2010-02-26  Richard Guenther  <rguenther@suse.de>
23327
23328         PR tree-optimization/43188
23329         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
23330         vector types of over-aligned element type.
23331
23332 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
23333
23334         PR target/43175
23335         * config/i386/i386.c (expand_vec_perm_blend): Use correct
23336         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
23337
23338 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
23339
23340         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
23341
23342 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23343
23344         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
23345         * var-tracking.c: Include diagnostic.h.
23346         (debug_dv): New function.
23347         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
23348
23349         PR debug/43160
23350         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
23351         (add_value_chain, add_value_chains, remove_value_chain,
23352         remove_value_chains): Handle DEBUG_EXPRs.
23353         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
23354
23355         PR debug/43161
23356         * regcprop.c (struct queued_debug_insn_change): New type.
23357         (struct value_data_entry): Add debug_insn_changes field.
23358         (struct value_data): Add n_debug_insn_changes field.
23359         (debug_insn_changes_pool): New variable.
23360         (free_debug_insn_changes, apply_debug_insn_changes,
23361         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
23362         (kill_value_one_regno): Call free_debug_insn_changes if needed.
23363         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
23364         fields.
23365         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
23366         changes for them.
23367         (copyprop_hardreg_forward_1): Don't call apply_change_group for
23368         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
23369         changes, call cprop_find_used_regs via note_stores.
23370         (copyprop_hardreg_forward): When copying vd from predecessor
23371         which has any queued DEBUG_INSN changes, make sure the pointers are
23372         cleared.  At the end call df_analyze and then if there are any
23373         DEBUG_INSN changes queued at the end of some basic block for still
23374         live registers, apply them.
23375         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
23376
23377 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
23378
23379         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
23380         (arm*-*-*): Ditto.
23381
23382 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
23383
23384         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
23385         targets.  Set the default with_cpu/with_arch from arch/cpu.
23386         Allow x86-64 and native for with_cpu/with_arch.
23387
23388 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
23389
23390         * ebitmap.c: Change calls to verify_popcount with calls to
23391         sbitmap_verify_popcount.
23392         (ebitmap_clear_bit): Fixed map->cacheindex test and
23393         map>cache update when bit clearing results in an empty
23394         element.
23395
23396 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
23397
23398         PR target/43154
23399         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
23400         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
23401         and support both V2DF and V2DI modes.
23402         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
23403         support both V2DF and V2DI modes.
23404         (general): Delete trailing whitespace from a few patterns.
23405
23406         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23407         V2DF/V2DI interleave high/low builtins.
23408
23409         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
23410         new VSX builtins.
23411
23412         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
23413         interleave high/low functions.
23414
23415 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23416
23417         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
23418         #pragma extern_prefix.
23419
23420 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
23421
23422         PR debug/43166
23423         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
23424         BLKmode, assert op0 is a MEM and just adjust its mode.
23425
23426         PR debug/43165
23427         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
23428         if bitpos isn't multiple of mode's bitsize.
23429
23430 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23431
23432         * c.opt (-ftemplate-depth=): New.
23433         (-ftemplate-depth-): Deprecate.
23434         * optc-gen.awk: Handle -ftemplate-depth=.
23435         * opth-gen.awk: Likewise.
23436         * c-opts.c (c_common_handle_option): Likewise.
23437         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
23438
23439 2010-02-24  Jason Merrill  <jason@redhat.com>
23440
23441         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
23442
23443 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23444
23445         * cfg.c (alloc_aux_for_block): Remove inline.
23446         (alloc_aux_for_edge): Likewise.
23447
23448 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23449
23450         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
23451
23452 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23453
23454         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
23455         * config/i386/sol2-gas.h: New file.
23456         * config.gcc (i[34567]86-*-solaris2*): Use it.
23457
23458 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23459
23460         PR c/43128
23461         * c-typeck.c (ep_convert_and_check): New.
23462         (build_conditional_expr): Use it.
23463         (build_binary_op): Likewise.
23464
23465 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
23466
23467         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
23468
23469         PR debug/43150
23470         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
23471         bounds even for -O+.
23472         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
23473         expr needs to have DECL_NAME set.
23474
23475 2010-02-24  Nick Clifton  <nickc@redhat.com>
23476
23477         * config/mep/mep.c: Include gimple.h.
23478         (mep_function_uses_sp): Delete unused function.
23479         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
23480         parameters.  Use unsigned integers to count args.  Return a
23481         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
23482
23483 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23484
23485         PR target/43107
23486         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
23487         greater or equal to nelt instead of 2 * nelt.
23488         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
23489         with nelt - 1.
23490
23491 2010-02-23  Jason Merrill  <jason@redhat.com>
23492
23493         PR debug/42800
23494         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
23495         in cfun->local_decls even if they have register types.
23496
23497         PR c++/42837
23498         * stor-layout.c (place_field): Don't warn about unnecessary
23499         DECL_PACKED if the type is packed.
23500
23501 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23502
23503         PR target/43139
23504         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
23505         GOTOFF relocs, even when the base reg isn't pic pointer.
23506
23507 2010-02-23  Michael Matz  <matz@suse.de>
23508
23509         PR debug/43077
23510         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
23511         (expand_gimple_basic_block): Generate and use debug temps if there
23512         are debug uses left after the last real use of TERed ssa names.
23513         Unlink debug immediate uses when they are expanded.
23514
23515 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23516
23517         PR 43123
23518         * config/i386/i386.c (override_options): Reorganise to provide
23519         better error messages.
23520
23521 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23522
23523         PR middle-end/43083
23524         * graphite-scop-detection.c (create_single_exit_edge): Move
23525         the call to find_single_exit_edge to....
23526         (create_sese_edges): ...here.  Don't handle multiple edges
23527         exiting the function.
23528         (build_graphite_scops): Don't handle multiple edges
23529         exiting the function.
23530
23531 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23532
23533         PR middle-end/43097
23534         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
23535         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
23536
23537 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23538
23539         PR middle-end/43026
23540         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
23541
23542 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23543
23544         PR c++/43126
23545         * c-typeck.c (convert_arguments): Print declaration location.
23546         * c-common.c (validate_nargs): Rename as
23547         builtin_function_validate_nargs.
23548         (check_builtin_function_arguments): Update.
23549
23550 2010-02-22  Richard Guenther  <rguenther@suse.de>
23551
23552         PR lto/43045
23553         * tree-inline.c (declare_return_variable): Use the type of
23554         the call stmt lhs if available.
23555
23556 2010-02-22  Duncan Sands  <baldrick@free.fr>
23557
23558         * passes.c (register_pass): Always consider all pass lists when
23559         ref_pass_instance_number is zero.
23560
23561 2010-02-22  Richard Guenther  <rguenther@suse.de>
23562
23563         PR tree-optimization/42749
23564         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
23565         parameter.  Do arithmetic in the original type.
23566         (update_accumulator_with_ops): Likewise.
23567         (adjust_accumulator_values): Adjust.
23568
23569 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23570
23571         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
23572         (QI to BLKmode splitter): New splitter.
23573
23574 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
23575
23576         * config/i386/i386.c (initial_ix86_tune_features): Turn on
23577         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
23578
23579 2010-02-22  Richard Guenther  <rguenther@suse.de>
23580
23581         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
23582
23583 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
23584
23585         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
23586         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
23587         ($(T)crti.o, $(T)crtn.o): Remove rules.
23588
23589 2010-02-21  Tobias Burnus  <burnus@net-b.de>
23590
23591         PR fortran/35259
23592         * doc/invoke.texi (-fassociative-math): Document that this
23593         option is automatically enabled for Fortran.
23594
23595 2010-02-20  David S. Miller  <davem@davemloft.net>
23596
23597         * configure.ac: Test if linker and assembler properly support
23598         GOTDATA_OP relocations.
23599         * configure: Rebuild.
23600         * config.in: Likewise.
23601         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
23602         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
23603         (movsi_high_pic): Likewise.
23604         (movdi_lo_sum_pic): Likewise.
23605         (movdi_high_pic): Likewise.
23606         (movsi_pic_gotdata_op): New pattern.
23607         (movdi_pic_gotdata_op): Likewise.
23608         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
23609         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
23610
23611 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
23612
23613         PR target/43067
23614         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
23615         attribute to ssemul.
23616         (xop_mulv2div2di3_high): Ditto.
23617
23618 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23619
23620         PR c++/35669
23621         * c.opt (Wconversion-null): New option.
23622         * doc/invoke.texi (Wconversion-null): Document.
23623
23624 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23625
23626         * common.opt (Wlarger-than-): Add Undocumented.
23627
23628 2010-02-19  Mike Stump  <mikestump@comcast.net>
23629
23630         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
23631
23632 2010-02-19  Jason Merrill  <jason@redhat.com>
23633
23634         PR target/40332
23635         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
23636         * configure: Likewise.
23637
23638 2010-02-20  Alan Modra  <amodra@gmail.com>
23639
23640         PR middle-end/42344
23641         * cgraph.h (cgraph_make_decl_local): Declare.
23642         * cgraph.c (cgraph_make_decl_local): New function.
23643         (cgraph_make_node_local): Use it.
23644         * cgraphunit.c (cgraph_function_versioning): Likewise.
23645         * ipa.c (function_and_variable_visibility): Likewise.
23646
23647 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23648
23649         PR bootstrap/43121
23650         * except.c (sjlj_emit_function_enter): Don't call
23651         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
23652         directly.
23653         * rtl.h (add_reg_br_prob_note): Remove prototype.
23654
23655 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23656
23657         PR 41779
23658         * c-common.c (conversion_warning): Remove widening conversions
23659         before checking the conversion of integers to reals.
23660
23661 2010-02-19  Mike Stump  <mikestump@comcast.net>
23662
23663         PR middle-end/43125
23664         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
23665
23666         PR objc/43061
23667         * cgraphunit.c (process_function_and_variable_attributes): Check
23668         DECL_PRESERVE_P instead of looking up attribute "used".
23669         * ipa-pure-const.c (check_decl): Likewise.
23670         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
23671         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
23672         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
23673         instead of attribute "used".
23674         * config/sol2-c.c (solaris_pragma_init): Likewise.
23675         (solaris_pragma_fini): Likewise.
23676
23677 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23678
23679         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
23680         Use XCNEW instead of xcalloc.
23681         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
23682         XNEW instead of xmalloc.
23683         (get_fields): Use XNEWVEC instead of xmalloc.
23684
23685         PR debug/43084
23686         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
23687         populate vars array.
23688         (create_new_general_access): For debug stmts just reset value.
23689         (get_stmt_accesses): For accesses within debug stmts just record them
23690         using add_access_to_acc_sites instead of preventing the peeling or
23691         counting them as accesses.
23692
23693         PR middle-end/42233
23694         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
23695
23696 2010-02-19  Richard Guenther  <rguenther@suse.de>
23697
23698         PR tree-optimization/42916
23699         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
23700         instructions.
23701
23702 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
23703
23704         * configure.ac: Replace all uses of changequote in macro arguments
23705         with proper quoting.
23706
23707 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23708
23709         PR middle-end/42233
23710         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
23711
23712 2010-02-19  Richard Guenther  <rguenther@suse.de>
23713
23714         PR tree-optimization/42944
23715         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
23716         test for aliasing with errno.
23717
23718 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23719
23720         PR middle-end/42233
23721         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
23722         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
23723         * dojump.c: Include output.h.
23724         (inv): New inline function.
23725         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
23726         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
23727         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
23728         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
23729         argument, pass it down to other calls.
23730         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
23731         add REG_BR_PROB note to the conditional jump.
23732         * cfgexpand.c (add_reg_br_prob_note): Removed.
23733         (expand_gimple_cond): Don't call it, add the probability
23734         as last argument to jumpif_1/jumpifnot_1.
23735         * Makefile.in (dojump.o): Depend on output.h.
23736         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
23737         callers.
23738         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
23739         * stmt.c (do_jump_if_equal): Likewise.
23740         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
23741         * loop-unswitch.c (compare_and_jump_seq): Likewise.
23742         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
23743         Likewise.
23744         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
23745         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
23746         jumpifnot_1 callers.
23747         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
23748         callers.
23749         (store_expr): Adjust jumpifnot caller.
23750         (store_constructor): Adjust jumpif caller.
23751
23752         PR middle-end/42233
23753         * gimplify.c (gimple_boolify): For __builtin_expect call
23754         gimple_boolify also on its first argument.
23755
23756 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
23757
23758         * configure.ac (gnu-unique-object): Wrap regexps using [] in
23759         changequote block.
23760         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
23761         * configure: Regenerated.
23762
23763 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23764
23765         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
23766         lang_hooks.types_compatible_p instead of comptypes.
23767
23768 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23769
23770         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
23771         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
23772         if __prefer_thumb__ is defined.
23773
23774 2010-02-18  Martin Jambor  <mjambor@suse.cz>
23775
23776         PR tree-optimization/43066
23777         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
23778         array with zero-sized element type.
23779
23780 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
23781
23782         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
23783         rtx, allocate struct var_loc_node here and return it to the
23784         caller, and only if it is actually needed.
23785         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
23786         move it earlier and return immediately if it returns NULL.
23787
23788 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
23789
23790         * config/sparc/gas.h: New file.  Restore
23791         TARGET_ASM_NAMED_SECTION to its ELF default.
23792         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
23793         check !HAVE_GNU_AS.
23794         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23795         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
23796         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
23797         after sparc/sysv4.h.
23798
23799 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
23800
23801         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
23802
23803 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
23804
23805         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
23806         patterns from predicated pattern.
23807
23808 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
23809
23810         PR target/43103
23811         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
23812         for insn mnemonic suffix.
23813
23814 2010-02-17  Richard Guenther  <rguenther@suse.de>
23815
23816         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
23817         to loop PHI nodes.
23818
23819 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
23820
23821         PR debug/42918
23822         * caller-save.c (save_call_clobbered_regs): If BB ends with
23823         a DEBUG_INSN, move any notes in between last real insn and the last
23824         DEBUG_INSN after the last DEBUG_INSN.
23825
23826 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23827
23828         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
23829         Fix return type.  Fix argument type.  Explain meaning of return value.
23830
23831 2010-02-16  Richard Guenther  <rguenther@suse.de>
23832
23833         PR tree-optimization/41043
23834         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
23835         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
23836         statements ...
23837         (vrp_visit_phi_node): ... but only for loop PHI nodes.
23838
23839 2010-02-16  Ira Rosen  <irar@il.ibm.com>
23840
23841         PR tree-optimization/43074
23842         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
23843         * tree-vect-loop.c (vect_analyze_loop_operations): Add
23844         vectorizable cycles in hybrid SLP check.
23845         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
23846
23847 2010-02-16  Richard Guenther  <rguenther@suse.de>
23848
23849         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
23850         (true_dependence): If memrefs_conflict_p computes must-alias
23851         trust it.  Move TBAA check after offset-based disambiguation.
23852         (canon_true_dependence): Likewise.
23853
23854 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
23855
23856         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
23857         * doc/invoke.texi: Document it.
23858         * var-tracking.c: Include toplev.h and params.h.
23859         (vt_find_locations): Return bool indicating success.  Compute
23860         hash sizes unconditionally.  Check new parameter, report.
23861         (variable_tracking_main_1): Check vt_find_locations results and
23862         retry.  Renamed from...
23863         (variable_tracking_main): ... this.  New wrapper to preserve
23864         flag_var_tracking_assignments.
23865         * Makefile.in (var-tracking.o): Adjust dependencies.
23866
23867 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
23868             Jakub Jelinek  <jakub@redhat.com>
23869
23870         PR target/42854
23871         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
23872         if weak_import attribute is present.
23873         * config/darwin.c (machopic_select_section): Likewise.
23874
23875 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
23876
23877         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
23878         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
23879         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
23880         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
23881
23882         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
23883         types.
23884
23885         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
23886         Fix argument types.
23887
23888         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
23889         Rewrite text to refer to the names.
23890
23891 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
23892
23893         * config/i386/i386-builtin-types.def
23894         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
23895         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
23896         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
23897         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
23898         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
23899         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
23900         IX86_BUILTIN_VPERMIL2PS256.
23901         (MULTI_ARG_4_DF2_DI_I): Defined.
23902         (MULTI_ARG_4_DF2_DI_I1): Defined.
23903         (MULTI_ARG_4_SF2_SI_I): Defined.
23904         (MULTI_ARG_4_SF2_SI_I1): Defined.
23905         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
23906         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
23907         __builtin_ia32_vpermil2ps256.
23908         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23909         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23910         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
23911         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23912         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23913         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
23914         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
23915         CODE_FOR_xop_vpermil2v8sf3.
23916         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
23917         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
23918         * config/i386/xopintrin.h (_mm_permute2_pd): New.
23919         (_mm256_permute2_pd): New.
23920         (_mm_permute2_ps): New.
23921         (_mm256_permute2_ps): New.
23922
23923 2010-02-15  Nick Clifton  <nickc@redhat.com>
23924
23925         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
23926         boolean parameters.  Use emit_jump_insn when emitting a pop
23927         instruction containing a return insn.
23928         (push): Use 'true' rather than '1' as second parameter to F.
23929         (h8300_expand_prologue): Likewise.
23930         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
23931         (h8300_expand_epilogue): Likewise.
23932
23933 2010-02-15  Richard Guenther  <rguenther@suse.de>
23934
23935         PR middle-end/43068
23936         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
23937         if that is zero.
23938
23939 2010-02-15  Nick Clifton  <nickc@redhat.com>
23940
23941         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
23942         delta.
23943
23944 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
23945
23946         * intl.c (fake_ngettext): New function.
23947         * intl.h (fake_ngettext): Declare.
23948         (ngettext): Define macro.
23949         * collect2.c (notice_translated): New function.
23950         (main): Use notice_translated and ngettext.
23951         * collect2.h (notice_translated): Declare.
23952
23953 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
23954
23955         * reorg.c (delete_computation): Comment fixes.
23956         * caller-save.c (setup_save_areas): Idem.
23957         * sel-sched-dump.c (dump_lv_set): Idem.
23958         * rtl.def: Idem.
23959
23960 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23961
23962         * config/s390/s390.c (s390_sched_init): New function.
23963         (TARGET_SCHED_INIT): Target hook defined.
23964
23965 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
23966             Jack Howarth  <howarth@bromo.med.uc.edu>
23967             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
23968
23969         PR target/42982
23970         Partial revert of unintended change in fix for PR41605.
23971         * config/darwin.h: Fix typo.
23972         * config/darwin9.h: Same.
23973
23974 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23975
23976         * c-pch.c (pch_init): Clear v.
23977
23978 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23979
23980         PR middle-end/42930
23981         * graphite-scop-detection.c (graphite_can_represent_scev): Call
23982         graphite_can_represent_init for MULT_EXPR.
23983
23984 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23985
23986         PR middle-end/42914
23987         PR middle-end/42530
23988         * graphite-sese-to-poly.c (remove_phi): New.
23989         (translate_scalar_reduction_to_array): Call remove_phi.
23990
23991 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23992
23993         PR middle-end/42771
23994         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
23995         * graphite-clast-to-gimple.h (gloog): Update declaration.
23996         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
23997         * graphite-poly.h (struct poly_bb): Add missing comments.
23998         (struct scop): Add poly_scop_p field.
23999         (POLY_SCOP_P): New.
24000         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
24001         * graphite.c (graphite_transform_loops): Build the polyhedral
24002         representation for each scop before code generation.
24003         * sese.c (rename_variables_in_operand): Removed.
24004         (rename_variables_in_expr): Return the renamed expression.
24005         (rename_sese_parameters): New.
24006         * sese.h (rename_sese_parameters): Declared.
24007
24008 2010-02-11  Richard Guenther  <rguenther@suse.de>
24009
24010         PR tree-optimization/42998
24011         * tree-ssa-pre.c (create_expression_by_pieces): Treat
24012         POINTER_PLUS_EXPR properly.
24013
24014 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24015             Changpeng Fang  <changpeng.fang@amd.com>
24016
24017         PR middle-end/40886
24018         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
24019         the cost of an IV candidate when the IV is used in a test against zero.
24020
24021         * gcc.dg/tree-ssa/ivopts-3.c: New.
24022
24023 2010-02-11  Richard Guenther  <rguenther@suse.de>
24024
24025         PR lto/41664
24026         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
24027         pointer-vs-decl case by swapping refs.  Handle some cases
24028         of pointer-vs-decl disambiguations more conservatively.
24029         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
24030         to false after expanding.
24031
24032 2010-02-11  Richard Guenther  <rguenther@suse.de>
24033
24034         PR driver/43021
24035         * gcc.c (process_command): Handle LTO file@offset case more
24036         appropriately.
24037
24038 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24039
24040         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
24041         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
24042         of DEBUG_INSNs.
24043         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
24044
24045         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
24046         if MEM's mode size isn't DWARF2_ADDR_SIZE.
24047         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
24048         Optimize eq/ne comparisons when both arguments are known to be
24049         zero-extended.
24050         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
24051         Don't mask operands unnecessarily if they are known to be already
24052         zero-extended.
24053
24054 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
24055
24056         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
24057         instead of loop.
24058
24059 2010-02-10  Richard Guenther  <rguenther@suse.de>
24060
24061         PR tree-optimization/43017
24062         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
24063         for wrapping signed arithmetic.
24064
24065 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24066
24067         PR debug/43010
24068         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
24069         if no debug info should be emitted for it.
24070
24071 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24072
24073         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
24074         note when flag_exceptions is set.
24075
24076 2010-02-10  Duncan Sands  <baldrick@free.fr>
24077
24078         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
24079
24080 2010-02-10  Richard Guenther  <rguenther@suse.de>
24081
24082         PR c/43007
24083         * tree.c (get_unwidened): Handle constants.
24084         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
24085
24086 2010-02-10  Martin Jambor  <mjambor@suse.cz>
24087
24088         PR lto/42985
24089         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
24090         check for variable argument counts independently.
24091
24092 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24093
24094         PR target/42841
24095         * config/sh/sh.c (find_barrier): Increase length for non delayed
24096         conditional branches.
24097
24098 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24099
24100         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
24101
24102 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24103
24104         * builtins.c (set_builtin_user_assembler_name): Also handle
24105         ffs if int is smaller than word.
24106
24107 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
24108
24109         PR middle-end/42973
24110         * ira-conflicts.c (get_dup): Remove.
24111         (process_reg_shuffles): Add new parameter.  Use it as an
24112         additional guard for copy generation.
24113         (add_insn_allocno_copies): Rewrite.
24114
24115 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
24116
24117         * common.opt (fsched2-use-traces): Preserved for backward
24118         compatibility.
24119         * doc/invoke.texi: Remove the documentation about option
24120         -fsched2-use-traces.
24121         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
24122         flag_sched2_use_traces.
24123         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
24124         the backward compatibility flag section.
24125
24126 2010-02-09  Richard Guenther  <rguenther@suse.de>
24127
24128         PR tree-optimization/43008
24129         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
24130         make HEAP variables initialized from global memory if they
24131         are not known builtin functions.
24132         (find_func_aliases): Adjust.
24133
24134 2010-02-09  Richard Guenther  <rguenther@suse.de>
24135
24136         PR tree-optimization/43000
24137         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
24138         arithmetic manually.
24139
24140 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
24141
24142         PR tree-optimization/42931
24143         * tree-loop-linear.c (try_interchange_loops): Don't call
24144         double_int_mul if estimated_loop_iterations failed.
24145
24146 2010-02-08  Martin Jambor  <mjambor@suse.cz>
24147
24148         PR middle-end/42898
24149         * tree-sra.c (build_accesses_from_assign): Do not mark in
24150         should_scalarize_away_bitmap if stmt has volatile ops.
24151         (sra_modify_assign): Do not process assigns piecemeal if if stmt
24152         has volatile ops.
24153
24154 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
24155
24156         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
24157
24158 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
24159
24160         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
24161         before the pattern.
24162
24163 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
24164
24165         PR middle-end/42946
24166         * df-core.c (df_finish_pass): Change type of saved_flags to int.
24167
24168 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24169
24170         PR middle-end/42988
24171         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
24172         to unknown_dependence.
24173         (graphite_legal_transform_dr): Handle the unknown_dependence.
24174         (graphite_carried_dependence_level_k): Same.
24175
24176 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24177
24178         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
24179
24180 2010-02-07  Richard Guenther  <rguenther@suse.de>
24181
24182         PR middle-end/42991
24183         * expr.c (get_inner_reference): Always initialize *pbitsize.
24184
24185 2010-02-07  Richard Guenther  <rguenther@suse.de>
24186
24187         PR middle-end/42956
24188         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
24189         new ARRAY_REFs on variable size element or minimal index arrays.
24190         Complete.
24191         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
24192         gimple_fold_indirect_ref.
24193
24194 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
24195
24196         PR target/42957
24197         * arm.c (arm_override_options): Just return if the user has specified
24198         an invalid fpu name.
24199
24200 2010-02-03  Jason Merrill  <jason@redhat.com>
24201
24202         PR c++/42870
24203         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
24204         i386_pe_maybe_record_exported_symbol.
24205
24206 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
24207
24208         PR target/42924
24209         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24210         (pa_delegitimize_address): New function.
24211
24212 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
24213
24214         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
24215         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
24216
24217 2010-02-05  Richard Guenther  <rguenther@suse.de>
24218
24219         PR lto/42762
24220         * lto-streamer-in.c (get_resolution): Deal with references
24221         to undefined functions.
24222
24223 2010-02-05  Richard Guenther  <rguenther@suse.de>
24224
24225         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
24226         (fold_const_aggregate_ref): Likewise.
24227         (ccp_fold_stmt): Substitute loads.
24228         (maybe_fold_reference): Verify types before substituting.
24229         Unshare properly.
24230         (fold_gimple_assign): Unshare properly.
24231         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
24232
24233 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
24234
24235         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
24236         for rs6000_gen_cell_microcode.
24237
24238 2010-02-04  Richard Guenther  <rguenther@suse.de>
24239
24240         PR rtl-optimization/42952
24241         * dse.c (const_or_frame_p): Remove MEM handling.
24242
24243 2010-02-04  Nick Clifton  <nickc@redhat.com>
24244
24245         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
24246         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24247         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
24248         (mn10300_asm_output_mi_thunk): New function.
24249         (mn10300_can_output_mu_thunk): New function.
24250         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
24251         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
24252         (FUNCTION_ARG): Delete incorrect comment.
24253
24254 2010-02-03  Jason Merrill  <jason@redhat.com>
24255
24256         PR c++/40138
24257         * fold-const.c (operand_equal_p): Handle erroneous types.
24258
24259 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24260
24261         * config/h8300/h8300.md (can_delay): Fix attibute condition.
24262
24263 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
24264
24265         PR rtl-optimization/42941
24266         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
24267         of xmalloc.
24268
24269 2010-02-03  Jason Merrill  <jason@redhat.com>
24270
24271         PR c++/35652
24272         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
24273
24274 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
24275
24276         PR debug/42896
24277         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
24278         (cselib_reset_table): Renamed from...
24279         (cselib_reset_table_with_next_value): ... this.
24280         (cselib_get_next_uid): Renamed from...
24281         (cselib_get_next_unknown_value): ... this.
24282         * cselib.c (next_uid): Renamed from...
24283         (next_unknown_value): ... this.
24284         (cselib_clear_table): Adjust.
24285         (cselib_reset_table): Adjust.  Renamed from...
24286         (cselib_reset_table_with_next_value): ... this.
24287         (cselib_get_next_uid): Adjust.  Renamed from...
24288         (cselib_get_next_unknown_value): ... this.
24289         (get_value_hash): Use hash.
24290         (cselib_hash_rtx): Likewise.
24291         (new_cselib_val): Adjust.  Set and dump uid.
24292         (cselib_lookup_mem): Pass next_uid as hash.
24293         (cselib_subst_to_values): Likewise.
24294         (cselib_log_lookup): Dump uid.
24295         (cselib_lookup): Pass next_uid as hash.  Adjust.
24296         (cselib_process_insn): Adjust.
24297         (cselib_init): Initialize next_uid.
24298         (cselib_finish): Adjust.
24299         (dump_cselib_table): Likewise.
24300         * dse.c (canon_address): Dump value uid.
24301         * print-rtl.c (print_rtx): Print value uid.
24302         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
24303         (dvuid): New type.
24304         (dv_uid): New function, sort of renamed from...
24305         (dv_htab_hash): ... this, reimplemented in terms of it and...
24306         (dv_uid2hash): ... this.  New.
24307         (variable_htab_eq): Drop excess assertions.
24308         (tie_break_pointers): Removed.
24309         (canon_value_cmp): Compare uids.
24310         (variable_post_merge_New_vals): Print uids.
24311         (vt_add_function_parameters): Adjust.
24312         (vt_initialize): Reset table.  Adjust.
24313
24314 2010-02-03  Richard Guenther  <rguenther@suse.de>
24315
24316         PR tree-optimization/42944
24317         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
24318         (call_may_clobber_ref_p_1): Likewise.  Properly handle
24319         malloc and calloc clobbering errno.
24320
24321 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
24322
24323         * doc/invoke.texi: Fix name of sched1 dump.
24324
24325         * opts.c (decode_options): Set flag_tree_switch_conversion
24326         only conditionally on optimize >= 2.
24327
24328         * gcse.c: Assorted comment fixes in pass description.
24329
24330 2010-02-03  Anthony Green  <green@moxielogic.com>
24331
24332         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
24333         nop padding in order to maintain alignment of storage location of
24334         target function address.
24335         (moxie_trampoline_init): Store target function address at newly
24336         aligned location.
24337         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
24338         to 32.
24339         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
24340
24341 2010-02-03  Richard Guenther  <rguenther@suse.de>
24342
24343         PR middle-end/42927
24344         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
24345
24346 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24347
24348         * config.gcc: Reenable check for obsolete targets.
24349         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
24350         mips-sgi-irix6.[0-4]*.
24351
24352 2010-02-02  Nick Clifton  <nickc@redhat.com>
24353
24354         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
24355         constant size of 4 as being the same as 0.
24356         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
24357         can take values in the range 0..4.
24358
24359 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
24360
24361         PR java/41991
24362         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
24363         as _darwin10_Unwind_FindEnclosingFunction().
24364         * libgcc-libsystem.ver: New.
24365
24366 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
24367
24368         PR target/41399
24369         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
24370         implicitly set registers.
24371
24372 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
24373
24374         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
24375         (arm_override_options): Allow automatic selection of the thread
24376         pointer register if thumb2.
24377         (legitimize_pic_address): Improve code sequences for Thumb2.
24378         (arm_call_tls_get_addr): Likewise.
24379         (legitimize_tls_address): Likewise.
24380         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
24381         (pic_load_addr_32bit): ... this.  New named pattern.
24382         * thumb2.md (pic_load_addr_thumb2): Delete.
24383         (pic_load_dot_plus_four): Delete.
24384         (tls_load_dot_plus_four): New named pattern.
24385
24386 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24387
24388         PR libgomp/29986
24389         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
24390         Document fix for TLS bug.
24391
24392 2010-01-31  Richard Guenther  <rguenther@suse.de>
24393
24394         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
24395         conservatively correct.
24396
24397 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24398
24399         PR target/42850
24400         Revert:
24401         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24402
24403         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24404
24405 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24406
24407         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
24408
24409 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
24410
24411         * config.gcc: Adjust order of makefile fragments for mingw targets.
24412
24413 2010-01-31  Richard Guenther  <rguenther@suse.de>
24414
24415         PR middle-end/42898
24416         * gimplify.c (gimplify_init_constructor): For volatile LHS
24417         initialize a temporary.
24418
24419 2010-01-31  Matthias Klose  <doko@ubuntu.com>
24420
24421         * configure.ac: Fix __stack_chk_fail check for cross builds configured
24422         --with-headers
24423         * configure: Regenerate.
24424
24425 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
24426
24427         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24428         the same alias set and their sizes different constantness.
24429         (aliasing_component_refs_p): Revert 2009-10-24 change.
24430
24431 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24432
24433         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
24434         unused.
24435
24436 2010-01-29  Richard Guenther  <rguenther@suse.de>
24437
24438         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
24439         Assert we successfully updated the call.
24440
24441 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
24442
24443         PR rtl-optimization/42889
24444         * df.h (df_set_bb_dirty_nonlr): New prototype.
24445         * df-core.c (df_set_bb_dirty_nonlr): New function.
24446         * df-scan.c (df_insn_rescan): Call it instead of
24447         df_set_bb_dirty for DEBUG_INSNs.
24448
24449 2010-01-29  Richard Guenther  <rguenther@suse.de>
24450
24451         PR middle-end/37448
24452         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
24453         quadratic behavior in most cases.
24454
24455 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
24456
24457         PR target/42891
24458         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
24459         in the call to gen_x86_movsicc_0_m1.
24460
24461 2010-01-28  Richard Guenther  <rguenther@suse.de>
24462
24463         PR tree-optimization/42871
24464         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
24465
24466 2010-01-28  Richard Guenther  <rguenther@suse.de>
24467
24468         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
24469         into call arguments.
24470
24471 2010-01-28  Richard Guenther  <rguenther@suse.de>
24472
24473         PR middle-end/42883
24474         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
24475         the forwarder if the destination is an EH landing pad.
24476
24477 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
24478
24479         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
24480         block list passed to gimple_duplicate_sese_tail.
24481         (parallelize_loops): Avoid parallelization when the function
24482         has_nonlocal_label.
24483         Avoid parallelization when the preheader is IRREDUCIBLE.
24484         Try to optimize when estimated_loop_iterations_int is unresolved.
24485         Add the loop's location to the dump file.
24486         * tree-cfg.c (add_phi_args_after_redirect): Remove.
24487         (gimple_duplicate_sese_tail): Remove the check for the latch.
24488         Redirect nexits to the exit block.
24489         Remove handling of the incoming edges to the latch.
24490         Redirect the backedge from the copied latch to the exit bb.
24491
24492 2010-01-28  Michael Matz  <matz@suse.de>
24493
24494         PR target/42881
24495         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
24496         Wrap force_reg into a sequence, emit it before user.
24497
24498 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
24499
24500         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
24501         (arm_rev): New.
24502         (arm_legacy_rev): Likewise.
24503         (thumb_legacy_rev): Likewise.
24504
24505 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24506
24507         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
24508         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
24509         on MEM's address failed, try avoid_constant_pool_reference and
24510         recurse if it returned something different.
24511         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
24512         address, try avoid_constant_pool_reference and recurse if it
24513         returned something different.
24514         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
24515         address and avoid_constant_pool_reference returned something
24516         different, don't set have_address.
24517
24518 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
24519
24520         PR debug/42861
24521         * var-tracking.c (val_store): Add modified argument, obey it.
24522         Adjust callers.
24523         (count_uses): Move down logging of main.
24524         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
24525         don't need resolution.
24526         (emit_notes_in_bb): Likewise.
24527
24528 2010-01-27  Richard Guenther  <rguenther@suse.de>
24529
24530         PR middle-end/42878
24531         * tree-inline.c (remap_decl): Delay remapping of SSA name
24532         default definitions until we need them.
24533
24534 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24535
24536         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24537         (rs6000_delegitimize_address): New function.
24538
24539         * config/s390/s390.c (s390_delegitimize_address): Call
24540         delegitimize_mem_from_attrs.
24541
24542         PR middle-end/42874
24543         * tree-inline.c (cannot_copy_type_1): Removed.
24544         (copy_forbidden): Don't forbid copying of functions containing
24545         records/unions with variable length fields.
24546
24547 2010-01-27  Christian Bruel  <christian.bruel@st.com>
24548
24549         Revert:
24550         PR target/42841
24551         * config/sh/sh.c (find_barrier): Increase length for non delayed
24552         conditional branches.
24553
24554 2010-01-27  Matthias Klose  <doko@ubuntu.com>
24555
24556         * configure.ac (gnu-unique-object): Fix ldd version check.
24557         * configure: Regenerate.
24558
24559 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24560
24561         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
24562         HAVE_GNU_AS value.
24563         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
24564         Test for HAVE_GNU_AS value.
24565
24566 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24567
24568         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
24569         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
24570         INT64_TYPE): Define.
24571         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
24572         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24573         INT_LEAST64_TYPE): Define.
24574         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
24575         UINT_LEAST64_TYPE): Define.
24576         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
24577         INT_FAST64_TYPE): Define.
24578         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24579         UINT_FAST64_TYPE): Define.
24580         (INTMAX_TYPE, UINTMAX_TYPE): Define.
24581         (INTPTR_TYPE, UINTPTR_TYPE): Define.
24582         (SIG_ATOMIC_TYPE): Define.
24583
24584 2010-01-26  Richard Guenther  <rguenther@suse.de>
24585
24586         * df-scan.c (df_scan_set_bb_info): Remove assert.
24587         (df_insn_rescan_debug_internal): Merge asserts.
24588         (df_install_ref): Likewise.
24589         (df_mark_reg): Use bitmap_set_range.
24590         (df_hard_reg_used_p): Remove assert.
24591         (df_hard_reg_used_count): Likewise.
24592
24593 2010-01-26  Richard Guenther  <rguenther@suse.de>
24594
24595         PR rtl-optimization/42685
24596         * web.c (web_main): Ignore DEBUG_INSNs.
24597
24598 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
24599
24600         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
24601
24602         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
24603         Fix types of fndecl and arglist parameters.
24604
24605 2010-01-26  Richard Guenther  <rguenther@suse.de>
24606
24607         PR middle-end/42806
24608         * tree-eh.c (unsplit_eh): Skip debug insns.
24609
24610 2010-01-26  Richard Guenther  <rguenther@suse.de>
24611
24612         PR tree-optimization/42250
24613         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
24614
24615 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
24616
24617         PR fortran/42866
24618         * omp-low.c (expand_omp_sections): Only use single_pred if
24619         l2_bb is single_pred_p.
24620
24621 2010-01-25  Christian Bruel  <christian.bruel@st.com>
24622
24623         PR target/42841
24624         * config/sh/sh.c (find_barrier): Increase length for non delayed
24625         conditional branches.
24626         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
24627
24628 2010-01-24  David S. Miller  <davem@davemloft.net>
24629
24630         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
24631         define if not using GAS.
24632         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24633         Likewise.  Delete SECTION_MERGE code, which is only applicable
24634         when using GAS.
24635
24636 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
24637
24638         PR c++/42748
24639         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
24640         mangling of va_list in system headers.
24641
24642 2010-01-23  Toon Moene  <toon@moene.org>
24643
24644         * tree-predcom.c (combine_chains): Return NULL, not false.
24645
24646 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
24647
24648         * tree-loop-distribution.c (distribute_loop): Fix declaration and
24649         initialization of variable res to agree with return type.
24650
24651 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
24652
24653         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
24654         * tree-sra.c: Add include of expr.h.
24655
24656 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
24657
24658         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
24659         insert the debug stmt on the single non-EH edge from the stmt.
24660
24661 2010-01-22  Richard Henderson  <rth@redhat.com>
24662
24663         PR tree-opt/42833
24664         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
24665         the RHS until after generate_subtree_copies has insertted its
24666         code before the current statement.
24667
24668 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
24669
24670         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
24671
24672         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
24673
24674 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24675
24676         PR tree-optimization/42585
24677         * tree-sra.c (struct access): New field grp_total_scalarization.
24678         (dump_access): Dump the new field.
24679         (should_scalarize_away_bitmap): New variable.
24680         (cannot_scalarize_away_bitmap): Likewise.
24681         (sra_initialize): Allocate new bitmaps.
24682         (sra_deinitialize): Free new bitmaps.
24683         (create_access_1): New function.
24684         (create_access): Parts moved to create_access_1.
24685         (type_consists_of_records_p): New function.
24686         (completely_scalarize_record): Likewise.
24687         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
24688         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
24689         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
24690         access.
24691         (analyze_all_variable_accesses): Completely scalarize small eligible
24692         records.
24693
24694 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24695
24696         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
24697
24698 2010-01-21  Andrew Haley  <aph@redhat.com>
24699
24700         * gcc.c (process_command): Move lang_specific_driver before
24701         setting cc_libexec_prefix.
24702
24703 2010-01-21  Richard Guenther  <rguenther@suse.de>
24704
24705         PR middle-end/19988
24706         * fold-const.c (negate_expr_p): Pretend only negative
24707         real constants are easily negatable.
24708
24709 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
24710             Jason Merrill  <jason@redhat.com>
24711
24712         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
24713         (TYPE_TRANSPARENT_AGGR): this, for union and record.
24714         * calls.c (initialize argument_information): Handle it.
24715         * c-common.c (handle_transparent_union_attribute): Use new name.
24716         * c-decl.c (finish_struct): Ditto.
24717         * c-typeck.c (type_lists_compatible_p): Ditto.
24718         (convert_for_assignment): Use new name and also handle record.
24719         * function.c (aggregate_value_p): Handle it.
24720         (pass_by_reference): Ditto.
24721         (assign_parm_data_types): Ditto.
24722         * print-tree.c (print_node): Ditto.
24723         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
24724         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
24725         * tree.c (first_field): New fn.
24726
24727 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
24728
24729         PR target/42818
24730         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
24731         even when linking statically, for now.
24732
24733 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24734
24735         PR debug/42715
24736         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
24737         without a cselib val.
24738         (count_uses): Accept MO_VAL_SET with no val on stores.
24739         (add_stores): Likewise.
24740
24741 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24742
24743         * var-tracking.c (check_value_val): Add a compile time assertion.
24744         (dv_is_decl_p): Simplify.
24745         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
24746         gcc_assert if ENABLE_CHECKING.
24747
24748 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24749
24750         PR debug/42782
24751         * var-tracking.c: Include tree-flow.h.
24752         (mem_dies_at_call): New.
24753         (dataflow_set_preserve_mem_locs): Use it.
24754         (dataflow_set_remove_mem_locs): Likewise.
24755         (dump_var): Renamed from dump_variable.  Adjust all callers.
24756         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
24757         * Makefile.in (var-tracking.o): Adjust deps.
24758
24759 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
24760
24761         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
24762
24763 2010-01-20  Richard Guenther  <rguenther@suse.de>
24764
24765         PR tree-optimization/42717
24766         * tree-ssa-dce.c (get_live_post_dom): Remove.
24767         (forward_edge_to_pdom): Take an arbitrary edge to copy
24768         degenerate PHI args from.
24769         (remove_dead_stmt): Use the first post-dominator even if it
24770         does not contain live statements as redirection destination.
24771
24772 2010-01-20  Richard Guenther  <rguenther@suse.de>
24773
24774         * tree-inline.c (estimate_num_insns): Handle EH builtins.
24775
24776 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24777
24778         * sel-sched.c (create_speculation_check): Remove set but not used
24779         variable twin.
24780         (try_transformation_cache): Remove set but not used variable ds.
24781         (calculate_privileged_insns): Remove set but not used variables
24782         cur_insn and min_spec_insn.
24783         (find_best_expr): Remove set but not used variable avail_n.
24784         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
24785         variable e.
24786         * cgraphunit.c (assemble_thunk): Remove set but not used variable
24787         false_label.
24788         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
24789         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
24790         new_scop_exit_edge.
24791
24792 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
24793
24794         PR bootstrap/42786
24795         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
24796         cpu types.  Add support for *-sse3 cpu types.
24797         (x86_64-*-*): Ditto.
24798
24799 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24800
24801         PR middle-end/42803
24802         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
24803         argument, call initializer_constant_valid_p_1 instead of
24804         initializer_constant_valid_p, pass CACHE to it, return NULL
24805         immediately if first call returns NULL.
24806         (initializer_constant_valid_p_1): New function.
24807         (initializer_constant_valid_p): Use it.
24808
24809 2010-01-20  Thomas Quinot  <quinot@adacore.com>
24810
24811         * tree.def (PLACEHOLDER_EXPR): Fix comment.
24812
24813 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24814
24815         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
24816         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
24817         (loc_list_from_tree): Don't handle unsigned division.  Handle
24818         signed modulo using DW_OP_{over,over,div,mul,minus}.
24819         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
24820         modulo instead of signed.
24821
24822 2010-01-20  DJ Delorie  <dj@redhat.com>
24823
24824         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
24825         (Fpa): Pass it
24826         (h8300_emit_stack_adjustment): Propogate it.
24827         (push): Pass it.
24828         (h8300_expand_prologue): Likewise.
24829         (h8300_expand_epilogue): Likewise.
24830
24831 2010-01-19  Michael Matz  <matz@suse.de>
24832
24833         PR tree-optimization/41783
24834         * tree-data-ref.c (toplevel): Include flags.h.
24835         (dump_data_dependence_relation):  Also dump the inputs if the
24836         result will be unknown.
24837         (split_constant_offset_1): Look through some conversions.
24838         * tree-predcom.c (determine_roots_comp): Restart a new chain if
24839         the offset from last element is too large.
24840         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
24841         (reassociate_to_the_same_stmt): Handle vector registers.
24842         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
24843         (e.g. conversions).
24844         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
24845         wide_prolog_niters argument, emit widening instructions.
24846         (vect_do_peeling_for_alignment): Adjust caller, use widened
24847         variant of the iteration cound.
24848         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
24849
24850 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24851
24852         PR target/38697
24853         * config/arm/neon-testgen.m (emit_automatics): New parameter
24854         features. Adjust for Fixed_return_reg feature.
24855         (test_intrinsic): Call emit_automatics with new feature.
24856         * config/arm/neon.ml: Update copyright years.
24857         (features): New Fixed_return_reg feature.
24858         (ops): Update feature for Vget_low.
24859
24860 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
24861
24862         PR tree-optimization/42719
24863         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
24864         stmt uses.
24865
24866         PR debug/42728
24867         * fwprop.c (all_uses_available_at): Return false if def_set dest
24868         is a REG that is used in def_insn.
24869
24870 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
24871
24872         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
24873
24874         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
24875         Add argument names.
24876
24877         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
24878
24879         * target.h (struct gcc_target) <secondary_reload>: Change type
24880         of last argument to secondary_reload_info *.
24881
24882 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
24883
24884         PR target/42774
24885         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
24886         memory references with unaligned offsets.  Remove CQImode handling.
24887         (unaligned_memory_operand): Return 1 for memory references with
24888         unaligned offsets.  Remove CQImode handling.
24889
24890 2010-01-18  Richard Guenther  <rguenther@suse.de>
24891
24892         PR middle-end/39954
24893         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
24894         builtin calls.
24895
24896 2010-01-18  Richard Guenther  <rguenther@suse.de>
24897
24898         PR tree-optimization/42781
24899         * tree-ssa-structalias.c (find_what_var_points_to): Skip
24900         restrict processing only if the original variable was artificial.
24901
24902 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
24903
24904         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
24905         find number of popped argument bytes.
24906
24907         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
24908         Fix the text that describes the return value for invalid insns.
24909
24910         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
24911
24912         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
24913         Clarify what 'cost of the -dependence' is.  Fix quoting.
24914
24915         * toplev.c (default_get_pch_validity): Rename argument to "sz".
24916         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
24917
24918 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
24919
24920         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24921         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
24922
24923 2010-01-17  Richard Guenther  <rguenther@suse.de>
24924
24925         PR middle-end/42248
24926         * function.c (split_complex_args): Take a VEC to modify.
24927         (assign_parms_augmented_arg_list): Build a VEC instead of
24928         a chain of PARM_DECLs.
24929         (assign_parms_unsplit_complex): Take a VEC of arguments.
24930         Do not fixup unmodified parms.
24931         (assign_parms): Deal with the VEC.
24932         (gimplify_parameters): Likewise.
24933
24934 2010-01-17  Richard Guenther  <rguenther@suse.de>
24935
24936         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
24937         node existence check.
24938         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
24939         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
24940         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
24941         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
24942         (gimple_execute_on_growing_pred): Likewise.
24943
24944 2010-01-17  Richard Guenther  <rguenther@suse.de>
24945
24946         PR tree-optimization/42773
24947         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
24948         (compute_antic_aux): Likewise.
24949         (compute_partial_antic_aux): Likewise.
24950
24951 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
24952
24953         PR debug/42767
24954         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
24955         and US_TRUNCATE.
24956
24957 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
24958
24959         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
24960         appearance.
24961
24962         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
24963         Fix markup for strict argument.
24964
24965         (TARGET_SCHED_REORDER2): Fix argument types.
24966
24967         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
24968         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
24969
24970         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
24971         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
24972
24973         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
24974         Add argument name.
24975
24976         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
24977         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
24978         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
24979         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
24980         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
24981
24982         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
24983
24984         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
24985
24986         (TARGET_ASM_RELOC_RW_MASK): Add return type.
24987         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
24988
24989         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
24990
24991         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
24992         Use prototype.
24993
24994         (TARGET_ASM_NAMED_SECTION): Fix argument list.
24995
24996         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
24997         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
24998
24999         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
25000
25001         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
25002
25003         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
25004         referring to it.  Fix language.
25005
25006         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
25007
25008         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
25009
25010         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
25011
25012         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
25013
25014         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
25015         '@var{stream}.  Remove stray 'and'.
25016
25017         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
25018
25019         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
25020
25021         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
25022
25023         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
25024         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
25025
25026         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
25027         Fix description of return value.
25028         Rename argument "sz" to "len."
25029
25030         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
25031         Clarify meaning of 'true' return value.
25032
25033         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
25034
25035         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
25036         rep_mode versus mode_rep.
25037
25038         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
25039
25040         (TARGET_BUILTIN_DECL): Fix name.
25041
25042         (TARGET_COMMUTATIVE_P): Fix type of first argument.
25043
25044         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
25045
25046         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
25047
25048         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
25049
25050         (TARGET_RELAXED_ORDERING): Use @deftypevr.
25051
25052         (TARGET_GET_DRAP_RTX): Note that this is a hook.
25053         Clarify language.
25054
25055         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
25056         Rename argument tm_fn to md_fn.
25057
25058         (TARGET_OPTION_PRINT): Fix argument list.
25059
25060 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
25061
25062         PR target/42664
25063         * config/i386/i386.c (ix86_fixup_binary_operands):
25064         Revert FMA4 fixup of operands.
25065
25066 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25067
25068         PR gcc/42525
25069         * Makefile.in (write_entries_to_file, install-plugin):
25070         Use \012 instead of \n with tr.
25071
25072 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
25073
25074         * configure.ac (HAVE_AS_REF): New C macro.
25075         * configure: Regenerate.
25076         * config.in: Likewise.
25077         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
25078         if HAVE_AS_REF.
25079         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
25080         if HAVE_AS_REF.
25081
25082 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
25083
25084         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
25085
25086         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
25087
25088         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
25089
25090         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
25091
25092         (TARGET_IN_SMALL_DATA_P): Fix argument type.
25093
25094         (TARGET_BINDS_LOCAL_P): Fix argument type.
25095
25096         (TARGET_ASM_FILE_END): Use prototype.
25097
25098         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
25099
25100         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
25101
25102         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
25103
25104         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
25105
25106         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
25107         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
25108
25109         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
25110         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
25111
25112         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
25113         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
25114         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
25115         (TARGET_ADDR_SPACE_CONVERT): Likewise.
25116
25117         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
25118
25119         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
25120
25121         (TARGET_INIT_BUILTINS): Use prototype.
25122
25123         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
25124         Put 'const char *' in braces.  Fix parameter types.
25125         (TARGET_INVALID_CONVERSION): Fix parameter types.
25126         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
25127         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
25128
25129         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
25130         Fix argument type.
25131
25132         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
25133
25134         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
25135
25136 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
25137
25138         * doc/tm.texi (TARGET_HELP): Fix return type.
25139
25140         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
25141         in braces.  Fix argument types.
25142
25143         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
25144
25145         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
25146
25147         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
25148
25149         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
25150         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
25151
25152         (TARGET_MANGLE_TYPE): Fix argument types.
25153
25154         (TARGET_IRA_COVER_CLASSES): Use prototype.
25155
25156         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
25157
25158         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
25159
25160         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
25161
25162         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
25163
25164         (TARGET_CALLEE_COPIES): Fix argument types.
25165
25166         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
25167
25168         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
25169
25170         (TARGET_FUNCTION_VALUE): Fix argument types.
25171
25172         (TARGET_RETURN_IN_MSB): Fix argument type.
25173
25174         (TARGET_RETURN_IN_MEMORY): Fix argument types.
25175
25176         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
25177
25178         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
25179
25180         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
25181         agree with return type.
25182
25183         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
25184
25185 2010-01-15  Jing Yu  <jingyu@google.com>
25186
25187         PR rtl-optimization/42691
25188         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
25189         a pseudo to a constant and are merged, and adjust comments.
25190
25191 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25192
25193         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
25194
25195 2010-01-15  Richard Guenther  <rguenther@suse.de>
25196
25197         PR middle-end/42739
25198         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
25199         labels of computed or non-local gotos to the destination.
25200         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
25201         landing pad label is the first label.
25202
25203 2010-01-15  Richard Guenther  <rguenther@suse.de>
25204
25205         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
25206
25207 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25208
25209         PR target/42747
25210         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
25211         to allow generation of the xssqrtdp instruction on power7.
25212         (sqrtdf2_fpr): Ditto.
25213
25214 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25215
25216         PR middle-end/42674
25217         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
25218         functions with noreturn attribute.
25219
25220         PR c++/42608
25221         * varasm.c (declare_weak): Add weak attribute to decl if it
25222         doesn't have one already.
25223         (assemble_external): Only add decls to weak_decls if they also
25224         have weak attribute.
25225
25226 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
25227
25228         * var-tracking.c (var_reg_delete): Don't delete the association
25229         between REGs and values or one-part variables if the register
25230         isn't clobbered.
25231
25232 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25233
25234         PR debug/42657
25235         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
25236         because its first operand is a non-localized variable.
25237
25238 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25239
25240         PR tree-optimization/42706
25241         * tree-sra.c (encountered_recursive_call): New variable.
25242         (encountered_unchangable_recursive_call): Likewise.
25243         (sra_initialize): Initialize both new variables.
25244         (callsite_has_enough_arguments_p): New function.
25245         (scan_function): Call decl and flags check only for IPA-SRA, check
25246         whether there is a recursive call and whether it has enough arguments.
25247         (all_callers_have_enough_arguments_p): New function.
25248         (convert_callers): Look for recursive calls only when
25249         encountered_recursive_call is set.
25250         (ipa_early_sra): Bail out either if
25251         !all_callers_have_enough_arguments_p or
25252         encountered_unchangable_recursive_call.
25253
25254 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25255
25256         * sel-sched.c: Add 2010 to copyright years.
25257         * sel-sched-ir.c: Likewise.
25258         * sel-sched-ir.h: Likewise.
25259
25260 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25261
25262         PR tree-optimization/42714
25263         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
25264         constructors specially.
25265
25266 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25267
25268         * config/i386/drivers-i386.c (detect_caches_intel):
25269         Add l2sizekb parameter and fill in.
25270         (host_detect_local_cpu): Add l2sizekb, fill in.
25271         Add Atom small cache heuristic.
25272
25273 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25274
25275         * config/i386/drivers-i386.c (detect_caches_cpuid4):
25276         Add level3 parameter and fill in.
25277         (detect_caches_intel): Handle level3 cache.
25278
25279 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25280
25281         * config/i386/drivers-i386.c (host_detect_local_cpu):
25282         Fix core duo detection.
25283
25284 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25285
25286         * config/i386/drivers-i386.c (host_detect_local_cpu):
25287         Fix Atom detection.
25288
25289 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25290
25291         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
25292         (rs6000_variable_issue_1): this.  Use...
25293         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
25294
25295 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25296
25297         * sel-sched-ir.c (sel_restore_other_notes): Rename to
25298         sel_restore_notes.  Update all callers.  Call reemit_notes
25299         for all insns.
25300
25301 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25302
25303         PR rtl-optimization/42246
25304         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
25305         loops.
25306
25307 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25308
25309         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
25310         all successors is the same as number of successors in current region.
25311
25312 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25313
25314         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
25315         to rename is not separable.  Otherwise check that its LHS is not NULL.
25316
25317 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25318
25319         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
25320
25321 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25322
25323         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
25324         available registers when failed to discover LHS register class.
25325         Fix indentation.  Update comment.
25326
25327 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25328             Alexander Monakov  <amonakov@ispras.ru>
25329
25330         PR rtl-optimization/42389
25331         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
25332         to can_issue_more.
25333         (advance_state_on_fence): Likewise.
25334         (sel_target_adjust_priority): Print debug output only when
25335         sched_verbose >= 4, not 2.
25336         (get_expr_cost): Do not issue all unique insns on the next cycle.
25337         (fill_insns): Initialize can_issue_more from the value saved
25338         with the fence.
25339         * sel-sched-ir.c (flist_add): New parameter issue_more.
25340         Init FENCE_ISSUE_MORE with it.
25341         (merge_fences): Likewise.
25342         (init_fences): Update call to flist_add.
25343         (add_to_fences, add_clean_fence_to_fences)
25344         (add_dirty_fence_to_fences): Likewise.
25345         (move_fence_to_fences): Update call to merge_fences.
25346         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
25347         sched groups.
25348         * sel-sched-ir.h (struct _fence): New field issue_more.
25349         (FENCE_ISSUE_MORE): New accessor macro.
25350
25351 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25352
25353         PR rtl-optimization/42388
25354         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
25355         that have no predecessors nor successors.  Do not call move_bb_info
25356         for empty blocks outside of current region.
25357
25358 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25359
25360         PR rtl-optimization/42294
25361         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
25362         * sel-sched.c (move_exprs_to_boundary): Transitively add all
25363         originators' originators.
25364
25365 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25366
25367         PR rtl-optimization/39453
25368         PR rtl-optimization/42246
25369         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
25370         for pipelining_p.
25371         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
25372
25373 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25374             Alexander Monakov  <amonakov@ispras.ru>
25375
25376         PR middle-end/42245
25377         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
25378         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
25379         argument.  Update all callers.
25380         (tidy_control_flow): ... and here.  Recompute topological order
25381         of basic blocks in region if necessary.
25382         (sel_redirect_edge_and_branch): Change return type.  Return true
25383         if topological order might have been invalidated.
25384         (purge_empty_blocks): Export and move from...
25385         * sel-sched.c (purge_empty_blocks): ... here.
25386         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
25387         (maybe_tidy_empty_bb): Delete prototype.
25388         (purge_empty_blocks): Declare.
25389
25390 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25391
25392         PR rtl-optimization/42249
25393         * sel-sched.c (try_replace_dest_reg): When chosen register
25394         and original register is the same, do not bail out early, but
25395         still check all original insns for validity of replacing destination
25396         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
25397         in this case.
25398
25399 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25400
25401         PR c/42721
25402         Port from no-undefined-overflow branch:
25403         2009-03-09  Richard Guenther  <rguenther@suse.de>
25404
25405         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
25406
25407 2010-01-14  Richard Guenther  <rguenther@suse.de>
25408
25409         PR lto/42665
25410         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
25411
25412 2010-01-14  Ira Rosen  <irar@il.ibm.com>
25413
25414         PR tree-optimization/42709
25415         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
25416         as scalar type in creation of constant vector operand.
25417
25418 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25419
25420         PR testsuite/42414
25421         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
25422         (check-parallel-%): Match `testsuite' directory component only
25423         at the end.
25424
25425 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
25426
25427         PR translation/39521
25428         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
25429         strings with _().
25430
25431 2010-01-13  Richard Guenther  <rguenther@suse.de>
25432
25433         PR tree-optimization/42730
25434         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
25435         offset zero.
25436
25437 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
25438
25439         PR target/pr42542
25440         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
25441         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
25442         them signed.
25443
25444 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
25445
25446         * config/bfin/libgcc-bfin.ver: Regenerate based on current
25447         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
25448         ___umulsi3_highpart.
25449
25450         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
25451         rather than schedule_insns if the pass is enabled.
25452
25453 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25454
25455         PR tree-optimization/42704
25456         * tree-sra.c (sra_modify_assign): Do not delete assignments to
25457         SSA_NAMEs.
25458
25459 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25460
25461         PR tree-optimization/42703
25462         * tree-sra.c (analyze_access_subtree): Check that we can build a
25463         reference to the original data within the aggregate.
25464
25465 2010-01-13  Richard Guenther  <rguenther@suse.de>
25466
25467         PR tree-optimization/42705
25468         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
25469
25470 2010-01-13  Richard Guenther  <rguenther@suse.de>
25471
25472         PR middle-end/42716
25473         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
25474
25475 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
25476
25477         PR debug/41371
25478         * var-tracking.c (values_to_unmark): New variable.
25479         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25480         values_to_unmark vector.  Moved body to...
25481         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
25482         instead queue it into values_to_unmark vector.
25483         (vt_find_locations): Free values_to_unmark vector.
25484
25485 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
25486
25487         * config/s390/s390.c (override_options): Set
25488         default of max-pending-list-length to 256
25489
25490 2010-01-13  Richard Guenther  <rguenther@suse.de>
25491
25492         PR lto/42678
25493         * tree-pass.h (PROP_gimple_lcx): New.
25494         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
25495         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
25496         before the final cleanup_eh.
25497         (dump_properties): Dump PROP_gimple_lcx.
25498         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
25499         (tree_lower_complex_O0): Remove.
25500         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
25501         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
25502         tree_lower_complex, schedule TODO_update_ssa.
25503         * lto-streamer-out.c (output_function): Stream the functions
25504         properties.
25505         * lto-streamer-in.c (input_function): Likewise.
25506         (lto_read_body): Do not override them here.
25507
25508 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
25509
25510         PR c/42708
25511         * c-typeck.c (build_c_cast): Fold value cast to union type before
25512         wrapping it in a CONSTRUCTOR.
25513
25514 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25515
25516         PR rtl-optimization/42699
25517         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
25518         involved.
25519
25520 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25521
25522         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25523         SUBTARGET_WARN_UNUSED_SPEC): Move ...
25524         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25525         SUBTARGET_WARN_UNUSED_SPEC): ... here
25526         * config/mips/iris5.h (LIBGCC_SPEC): Define.
25527
25528 2010-01-12  Julian Brown  <julian@codesourcery.com>
25529
25530         * config/arm/neon-schedgen.ml (Utils): Don't try to
25531         open missing module.
25532         (find_with_result): New.
25533
25534 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25535
25536         PR debug/42662
25537         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
25538         sharing when canonicalizing ({lt,ge}u (plus a b) b).
25539
25540         PR tree-optimization/42645
25541         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
25542         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
25543         decl_map, set processing_debug_stmt to -1 and return name without
25544         any remapping.
25545
25546 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
25547
25548         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
25549         binutils version, and reword target configuration description.
25550
25551 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25552
25553         * config/avr/avr.h (LINKER_NAME): Remove.
25554
25555 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
25556
25557         PR target/42416
25558         * config/rs6000/rs6000.c (rs6000_override_options): On targets
25559         that support VSX, warn for -mno-altivec if vsx is not disabled,
25560         and disable vsx.
25561
25562 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
25563             Shujing Zhao  <pearly.zhao@oracle.com>
25564
25565         PR translation/42469
25566         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
25567         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
25568         character between option name and help text.
25569         * c.opt (imultilib): Likewise.
25570
25571 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
25572
25573         * lto-streamer-out.c (output_unreferenced_globals): Output static
25574         variables.
25575
25576 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
25577
25578         PR rtl-optimization/42621
25579         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
25580         optimizing for size.
25581         (duplicate_computed_gotos): Remove now-redundant check.
25582
25583 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
25584
25585         PR target/37454
25586         * configure.ac: Save and restore LDFLAGS and LIBS
25587         * configure: Regenerate.
25588
25589 2010-01-10  Richard Guenther  <rguenther@suse.de>
25590
25591         PR middle-end/42667
25592         * builtins.c (fold_builtin_strlen): Add type argument and
25593         convert the resulting length to it.
25594         (fold_builtin_1): Adjust.
25595
25596 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25597
25598         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
25599         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
25600         1 insn.
25601         (num_insns_constant_wide): Adjust for that change.
25602
25603 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25604
25605         PR debug/42631
25606         * web.c (union_defs): Add used argument, to combine uses of
25607         uninitialized regs.
25608         (entry_register): Adjust type and tests of used argument.
25609         (web_main): Widen used for new use.  Pass it to union_defs.
25610         * df.h (union_defs): Adjust prototype.
25611
25612 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25613
25614         PR debug/42630
25615         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
25616         uses in new incoming argument.  Free body.
25617         (reset_debug_uses_in_loop): New.
25618         (analyze_insn_to_expand_var): Call the latter if the former found
25619         anything.  Fix whitespace.  Reject invalid dest overlaps before
25620         going through all insns in the loop.
25621
25622 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25623
25624         PR debug/42629
25625         * haifa-sched.c (dying_use_p): Debug insns don't count.
25626
25627 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25628
25629         PR middle-end/42363
25630         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
25631         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
25632         (verify_gimple_call): Reject LHS in noreturn calls.
25633
25634 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25635
25636         PR debug/42604
25637         PR debug/42395
25638         * tree-vect-loop-manip.c (adjust_info): New type.
25639         (adjust_vec): New pointer to vector.
25640         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
25641         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
25642         (slpeel_update_phis_for_duplicate_loop): Use them.
25643         (slpeel_update_phi_nodes_for_guard1): Likewise.
25644         (slpeel_update_phi_nodes_for_guard2): Likewise.
25645         (slpeel_tree_peel_loop_to_edge): Likewise.
25646         (vect_update_ivs_after_vectorizer): Likewise.
25647
25648 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25649
25650         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
25651         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
25652
25653 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25654
25655         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
25656         bogus uninitialized warning.
25657
25658 2010-01-09  Richard Guenther  <rguenther@suse.de>
25659
25660         PR middle-end/42512
25661         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
25662         the evolution is compatible with the initial condition.
25663
25664 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25665
25666         * gcc.c (process_command): Update copyright notice dates.
25667         * gcov.c (print_version): Likewise.
25668         * gcov-dump.c (print_version): Likewise.
25669         * mips-tfile.c (main): Likewise.
25670         * mips-tdump.c (main): Likewise.
25671
25672 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25673
25674         PR target/41885
25675         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
25676         (rotlhi3): Delete.
25677         (rotlhi3_8): Delete.
25678         (rotlsi3): Delete.
25679         (rotlsi3_8): Delete.
25680         (rotlsi3_16): Delete.
25681         (rotlsi3_24): Delete.
25682         (rotl<mode>3): New.
25683         (*rotw<mode>3): New.
25684         (*rotb<mode>3): New.
25685         * config/avr/avr.c (avr_rotate_bytes): New function.
25686         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
25687
25688 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
25689
25690         PR target/37454
25691         * configure.ac: Modify -rdynamic check.
25692         * configure: Regenerate.
25693
25694 2010-01-08  DJ Delorie  <dj@redhat.com>
25695
25696         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
25697         register popping order.
25698
25699 2010-01-08  Richard Guenther  <rguenther@suse.de>
25700
25701         PR lto/42528
25702         * c.opt (fsigned-char): Also let LTO handle this option.
25703         (funsigned-char): Likewise.
25704
25705 2010-01-07  Richard Guenther  <rguenther@suse.de>
25706
25707         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
25708         (gimple_op): Likewise.
25709         (gimple_op_ptr): Likewise.
25710         (gimple_assign_set_lhs): Remove gcc_assert.
25711         (gimple_assign_set_rhs1): Likewise.
25712         (gimple_assign_set_rhs2): Likewise.
25713         (gimple_call_set_lhs): Likewise.
25714         (gimple_call_set_fn): Likewise.
25715         (gimple_call_set_fndecl): Likewise.
25716         (gimple_call_fndecl): Likewise.
25717         (gimple_call_return_type): Likewise.
25718         (gimple_call_set_chain): Likewise.
25719         (gimple_call_num_args): Likewise.
25720         (gimple_call_set_arg): Likewise.
25721         (gimple_cond_set_code): Likewise.
25722         (gimple_cond_set_lhs): Likewise.
25723         (gimple_cond_set_rhs): Likewise.
25724         (gimple_cond_set_true_label): Likewise.
25725         (gimple_cond_set_false_label): Likewise.
25726         (gimple_label_set_label): Likewise.
25727         (gimple_goto_set_dest): Likewise.
25728         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
25729         (gimple_debug_bind_get_value): Likewise.
25730         (gimple_debug_bind_get_value_ptr): Likewise.
25731         (gimple_debug_bind_set_var): Likewise.
25732         (gimple_debug_bind_set_value): Likewise.
25733         (gimple_debug_bind_reset_value): Likewise.
25734         (gimple_debug_bind_has_value_p): Likewise.
25735         (gimple_return_retval_ptr): Remove gcc_assert.
25736         (gimple_return_retval): Likewise.
25737         (gimple_return_set_retval): Likewise.
25738         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
25739         (safe_referenced_var_iterator): Remove.
25740         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
25741         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
25742         (fill_referenced_var_vec): Remove.
25743         (first_readonly_imm_use): Remove redundant gcc_assert.
25744         (phi_arg_index_from_use): Combine gcc_asserts.
25745         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
25746         (first_imm_use_stmt): Remove redundant gcc_assert.
25747         * tree-cfg.c (verify_gimple_call): Verify function and chain
25748         operands.  Verify arguments.
25749         (verify_types_in_gimple_stmt): Verify condition code and labels.
25750
25751 2010-01-07  Richard Guenther  <rguenther@suse.de>
25752
25753         PR tree-optimization/42641
25754         * sese.c (rename_map_elt_info): Use the SSA name version, do
25755         not hash pointers.
25756
25757 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
25758
25759         PR tree-optimization/42625
25760         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
25761         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
25762
25763 2010-01-07  Duncan Sands  <baldrick@free.fr>
25764
25765         * Makefile.in (PLUGIN_HEADERS): Add version.h.
25766
25767 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
25768
25769         PR target/42511
25770         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
25771         note itself is not function_invariant_p.
25772
25773 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
25774
25775         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
25776         Do not add the DF_NOTE problem.
25777         * store-motion.c (execute_rtl_store_motion): Likewise.
25778
25779 2010-01-07  Martin Jambor  <mjambor@suse.cz>
25780
25781         PR tree-optimization/42157
25782         * tree-sra.c (compare_access_positions): Stabilize sort if both
25783         accesses have integer types, return zero immediately if they are the
25784         same.
25785
25786 2010-01-06  Richard Henderson  <rth@redhat.com>
25787
25788         PR middle-end/41883
25789         * haifa-sched.c (add_to_note_list): Merge into ...
25790         (concat_note_lists): ... here, and ...
25791         (unlink_other_notes, rm_other_notes): Merge into...
25792         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
25793         NOTE_INSN_EPILOGUE_BEG.
25794
25795 2010-01-06  Richard Guenther  <rguenther@suse.de>
25796
25797         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
25798         not inline regular functions into always-inline functions.
25799
25800 2010-01-06  Nick Clifton  <nickc@redhat.com>
25801
25802         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
25803         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
25804         used together.
25805         (OVERRIDE_OPTIONS): Delete.
25806         (OPTIMIZATION_OPTIONS): Define.
25807         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
25808         * config/rx/rx.c (rx_handle_option): Issue an error message if
25809         -mcpu=rx200 and -fpu are used together.
25810         (rx_set_optimization_options): New function.  Issue an error
25811         message if an optimization attribute attempts to reset the FPU/
25812         math optimization pairing.
25813         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
25814         * config/rx/rx.opt: Set the default to 32-bit doubles.
25815         * config/rx/t-rx: Add multilibs for -nofpu option.
25816         * doc/invoke.texi: Update documentation of RX options.
25817
25818 2010-01-06  Richard Guenther  <rguenther@suse.de>
25819
25820         * tree-ssa-pre.c (name_to_id): New global.
25821         (alloc_expression_id): Simplify SSA name handling.
25822         (lookup_expression_id): Likewise.
25823         (init_pre): Zero name_to_id.
25824         (fini_pre): Free it.
25825
25826 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
25827
25828         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
25829
25830 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25831
25832         PR target/42542
25833         * config/i386/sse.md (smaxv2di3): New.
25834         (umaxv2di3): Likewise.
25835         (sminv2di3): Likewise.
25836         (uminv2di3): Likewise.
25837
25838 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25839
25840         PR target/42564
25841         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
25842         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
25843         (legitimize_tls_address): Likewise.
25844         (sparc_tls_referenced_p): Likewise.
25845         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
25846         and adjust calls to legitimize_pic_address.
25847         (legitimate_constant_p) Use sparc_tls_referenced_p.
25848         (legitimate_pic_operand_p): Likewise.
25849         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
25850         (sparc_tls_symbol_ref_1): Delete.
25851         (sparc_tls_referenced_p): Make static, recognize specific patterns.
25852         (legitimize_tls_address): Make static, handle CONST patterns.
25853         (legitimize_pic_address): Make static, remove unused parameter and
25854         adjust recursive calls.
25855         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
25856         and adjust call to legitimize_pic_address.
25857         (sparc_output_mi_thunk): Likewise.
25858
25859 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
25860             H.J. Lu  <hongjiu.lu@intel.com>
25861
25862         PR target/42542
25863         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
25864         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
25865         operands to make them signed.
25866
25867         Revert:
25868         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25869
25870         PR target/42542
25871         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25872         GTU to GT for V4SI and V2DI.
25873
25874         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25875         (umin<mode>3): Removed.
25876         (uminv8hi3): New.
25877         (uminv4si3): Likewise.
25878
25879 2010-01-05  Martin Jambor  <mjambor@suse.cz>
25880
25881         PR tree-optimization/42462
25882         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
25883         current_function_decl to helper functions and macros.
25884
25885 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25886
25887         PR bootstrap/41771
25888         * flags.h: Don't include real.h.
25889         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
25890         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
25891         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
25892         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
25893         * dominance.c: Update copyright.
25894         * gimple.c (walk_gimple_op): Remove inline.
25895         * tree-ssa-reassoc.c: Include real.h.
25896         * Makefile.in (FLAGS_H): Remove $(REAL_H).
25897         (tree-ssa-reassoc.o): Depend on $(REAL_H).
25898
25899 2010-01-05  Nick Clifton  <nickc@redhat.com>
25900
25901         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
25902         register to push into the stack frame when the accumulator has to
25903         be saved during interrupts.
25904
25905 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
25906
25907         * doc/invoke.texi: Remove the documentation about option
25908         -Wunreachable-code.
25909         * common.opt (Wunreachable-code):  Preserved for backward
25910         compatibility.
25911         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
25912         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
25913         the backward compatibility flag section.
25914
25915 2010-01-05  Richard Guenther  <rguenther@suse.de>
25916
25917         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
25918
25919 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
25920
25921         PR other/42611
25922         * cfgexpand.c (expand_one_var): Diagnose too large variables.
25923
25924         PR tree-optimization/42508
25925         * tree-sra.c (convert_callers): Check for recursive call
25926         by comparing cgraph nodes instead of decls.
25927         (modify_function): Call ipa_modify_formal_parameters also
25928         on all same_body aliases.
25929
25930         * cgraphunit.c (cgraph_materialize_all_clones): Compare
25931         cgraph nodes when checking for same_body aliases.
25932
25933 2010-01-05  Richard Guenther  <rguenther@suse.de>
25934
25935         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
25936         allocation and lookup.
25937         (get_or_alloc_expr_for_constant): Likewise.
25938         (phi_translate): Sink allocation.
25939
25940 2010-01-04  Richard Guenther  <rguenther@suse.de>
25941
25942         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
25943         a new entry only if needed.
25944         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
25945         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
25946         hashtable lookup.
25947         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
25948         the result array.
25949         (phi_translate): Handle CONSTANTs early.
25950
25951 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25952
25953         PR tree-optimization/42398
25954         * tree-sra.c (struct access): Removed flag grp_different_types.
25955         (dump_access): Do not dump the removed flag.
25956         (sort_and_splice_var_accesses): Do not set the removed flag.
25957         (sra_modify_expr): Check for type compatibility directly.
25958
25959 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25960
25961         PR tree-optimization/42366
25962         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
25963         edges with variable number of parameters.
25964         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
25965         flag instead of asserting it.
25966         (ipa_read_node_info): Read uses_analysis_done flag.
25967
25968 2010-01-04  Richard Guenther  <rguenther@suse.de>
25969
25970         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
25971         iterative_hash_* as intended.
25972         (vn_reference_compute_hash): Likewise.  Simplify hashing
25973         SSA names.
25974         (vn_reference_lookup_2): Likewise.
25975         (vn_nary_op_compute_hash): Likewise.
25976         (vn_phi_compute_hash): Likewise.
25977         (expressions_equal_p): Remove strange code.
25978         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
25979         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
25980         (bitmap_insert_into_set_1): Take value-id as parameter.
25981         (add_to_value): Pass it.
25982         (bitmap_insert_into_set): Likewise.
25983         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
25984
25985 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
25986
25987         PR driver/42442
25988         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
25989         (do_self_spec): For switches with SWITCH_IGNORE set set also
25990         SWITCH_IGNORE_PERMANENTLY.
25991         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
25992         of SWITCH_IGNORE.
25993
25994 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
25995
25996         * lto-streamer-out.c (output_unreferenced_globals): Output the full
25997         tree of an unreferenced global var.
25998
25999 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26000
26001         PR target/42542
26002         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26003         GTU to GT for V4SI and V2DI.
26004
26005         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26006         (umin<mode>3): Removed.
26007         (uminv8hi3): New.
26008         (uminv4si3): Likewise.
26009
26010 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26011
26012         PR lto/42581
26013         * collect2.c (main): Turn on trace in collect2 if -v is passed
26014         to gcc with LTO.
26015
26016 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
26017
26018         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
26019         description of expression operand.
26020
26021 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
26022
26023         * configure.ac: Add install-html to target_list for Make-hooks.
26024         * configure: Regenerate.
26025         * fortran/Make-lang.in (F95_HTMLFILES): New.
26026         (fortran.html): Use it.
26027         (fortran.install-html): New.
26028         * Makefile.in (install-html): Add lang.install-html.
26029         * java/Make-lang.in (JAVA_HTMLFILES): New.
26030         (java.html): Use it.
26031         (java.install-html): New.
26032         * objc/Make-lang.in (objc.install-html): New.
26033         * objcp/Make-lang.in (obj-c++.install-html): New.
26034         * cp/Make-lang.in (c++.install-html): New.
26035         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
26036         * lto/Make-lang.in (lto.install-html): New.
26037
26038 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26039
26040         PR lto/42520
26041         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
26042
26043 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26044
26045         PR rtl-optimization/41862
26046         * store-motion.c (store_killed_in_insn, compute_store_table,
26047         remove_reachable_equiv_notes, replace_store_insn,
26048         build_store_vectors): Ignore all DEBUG_INSNs.
26049
26050 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26051
26052         PR lto/41564
26053         * common.opt: Add dumpdir.
26054
26055         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
26056         isn't specified.
26057         (option_map): Add --dumpdir.
26058
26059         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
26060
26061         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
26062
26063         * opts.c (decode_options): Try dump_dir_name first if
26064         dump_base_name isn't an absolute path.
26065         (common_handle_option): Handle OPT_dumpdir.
26066
26067         * toplev.c (dump_dir_name): New.
26068         (print_switch_values): Also ignore -dumpdir.
26069
26070         * toplev.h (dump_dir_name): New.
26071
26072 2010-01-03  Richard Guenther  <rguenther@suse.de>
26073
26074         PR tree-optimization/42589
26075         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
26076         double-word expansion of bswap32.
26077
26078 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26079
26080         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
26081         with BLOCK_FOR_INSN.
26082         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
26083         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
26084         noce_process_if_block): Likewise.
26085         * gcse.c (compute_local_properties, insert_expr_in_table,
26086         insert_set_in_table, canon_list_insert, find_avail_set,
26087         pre_insert_copy_insn): Likewise.
26088
26089         * basic-block.h (BLOCK_NUM): Move from here...
26090         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
26091
26092 2010-01-03  Richard Guenther  <rguenther@suse.de>
26093
26094         PR tree-optimization/42438
26095         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
26096         contains_may_not_return_call flag.
26097         (BB_MAY_NOTRETURN): New.
26098         (valid_in_sets): Trapping nary operations are not valid
26099         in blocks that may not return.
26100         (insert_into_preds_of_block): Remove check for trapping expressions.
26101         (compute_avail): Compute also BB_MAY_NOTRETURN.
26102
26103 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
26104
26105         * doc/invoke.texi: Add 2010 to copyright years.
26106
26107 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
26108
26109         * config/sparc/sparc.c: Fix formatting nits.
26110
26111 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
26112             Alexander Monakov  <amonakov@ispras.ru>
26113
26114         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
26115
26116 2010-01-02  Richard Guenther  <rguenther@suse.de>
26117
26118         PR middle-end/42577
26119         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
26120         (simplify_switch_using_ranges): Mark to be removed edges
26121         as non-executable.
26122
26123 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26124
26125         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
26126
26127         * collect2.c (scan_libraries): Add missing argument in call to
26128         scan_prog_file.
26129
26130 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
26131
26132         PR target/42448
26133         * config/alpha/predicates.md (aligned_memory_operand): Return false
26134         for CQImode.
26135         (unaligned_memory_operand): Return true for CQImode.
26136         * config/alpha/alpha.c (get_aligned_mem): Assert that location
26137         doesn not cross aligned SImode word boundary.
26138
26139 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
26140
26141         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
26142         Remove.
26143         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
26144         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
26145
26146 2010-01-02  Richard Guenther  <rguenther@suse.de>
26147
26148         PR lto/41597
26149         * toplev.c (compile_file): Emit LTO marker properly.  Change
26150         it to __gnu_lto_v1.
26151         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
26152
26153 2010-01-01  Richard Guenther  <rguenther@suse.de>
26154
26155         PR debug/42455
26156         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
26157
26158 2010-01-01  Richard Guenther  <rguenther@suse.de>
26159
26160         PR c/42570
26161         * c-decl.c (grokdeclarator): For zero-size arrays force
26162         structural equality checks as layout_type does.
26163
26164 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26165
26166         * builtins.c: Update copyright to 2010.
26167
26168 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26169
26170         PR lto/42531
26171         * lto-streamer-out.c (produce_asm): Revert the last change.
26172         (copy_function): Likewise.
26173
26174         * lto-streamer.c (lto_get_section_name): Skip any leading
26175         asterisk in name.
26176
26177 2010-01-01  Richard Guenther  <rguenther@suse.de>
26178
26179         PR middle-end/42559
26180         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
26181         for LABEL_DECLs.
26182
26183 \f
26184 Copyright (C) 2010 Free Software Foundation, Inc.
26185
26186 Copying and distribution of this file, with or without modification,
26187 are permitted in any medium without royalty provided the copyright
26188 notice and this notice are preserved.