OSDN Git Service

f5850181f1d11ea33b15c221107766dd00ab466e
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
2
3         PR target/43137
4         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
5         New define_mode_attrs.
6         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
7         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
9         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
10         Remove pool_range attribute.
11         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
12         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
13         pool_range and neg_pool_range attributes.
14         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
15         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
16         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
17
18 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
19
20         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
21         check glibc.
22
23 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
24
25         PR target/22152
26         * config/i386/mmx.md (*mov<mode>_internal_rex64,
27         *mov<mode>_internal_avx, *mov<mode>_internal,
28         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
29         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
30
31 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
32
33         * c-typeck.c (do_warn_double_promotion): Remove.
34         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
35         Objective-C++ too.
36
37 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
38
39         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
40         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
41         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
42         argument type to reg_class_t. Change result type to bool.
43         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
44
45 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
46
47         PR libobjc/19850
48         * gthr-posix.h (__gthread_objc_thread_detach): Use
49         _objc_thread_attribs when detaching a thread.
50         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
51
52 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
53
54         PR target/45524
55         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
56         * configure: Regenerated.
57
58 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
59
60         * combine.c (try_combine): Set subst_low_luid to i0.
61
62 2010-09-06  Richard Guenther  <rguenther@suse.de>
63
64         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
65         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
66         (build_aligned_type): Declare.
67         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
68         (check_aligned_type): New function.
69         (build_aligned_type): Likewise.
70         * expr.c (expand_assignment): Handle misaligned stores via
71         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
72         (expand_expr_real_1): Likewise.
73         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
74         * tree-vect-stmts.c (vectorizable_store): Do not build
75         MISALIGNED_INDIRECT_REF but initialize alignment information.
76         (vectorizable_load): Likewise.
77         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
78         handling.
79         * cfgexpand.c (expand_debug_expr): Likewise.
80         * dwarf2out.c (loc_list_from_tree): Likewise.
81         * fold-const.c (maybe_lvalue_p): Likewise.
82         (operand_equal_p): Likewise.
83         (build_fold_addr_expr_with_type_loc): Likewise.
84         * gimplify.c (gimplify_addr_expr): Likewise.
85         (gimplify_expr): Likewise.
86         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
87         (verify_gimple_assign_single): Likewise.
88         * tree-dump.c (dequeue_and_dump): Likewise.
89         (tree_could_trap_p): Likewise.
90         * tree-predcom.c (ref_at_iteration): Likewise.
91         * tree-pretty-print.c (dump_generic_node): Likewise.
92         (op_code_prio): Likewise.
93         (op_symbol_code): Likewise.
94         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
95         * tree-ssa-loop-im.c (for_each_index): Likewise.
96         (gen_lsm_tmp_name): Likewise.
97         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
98         (find_interesting_uses_address): Likewise.
99         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
100         * tree-ssa-operands.c (get_expr_operands): Likewise.
101         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
102         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
103         (ao_ref_init_from_vn_reference): Likewise.
104         * tree.c (staticp): Likewise.
105         (build1_stat): Likewise.
106         (reference_alias_ptr_type): Likewise.
107         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
108         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
109         MISALIGNED_INDIRECT_REF handling.
110
111 2010-09-06  Richard Guenther  <rguenther@suse.de>
112
113         PR tree-optimization/45534
114         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
115         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
116         on the target.
117         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
118         valid on the target.
119
120 2010-09-06  Andreas Schwab  <schwab@redhat.com>
121
122         * configure.ac: Quote argument of AC_MSG_WARN.
123         * configure: Regenerate.
124
125 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
126
127         * sel-sched.c (move_cond_jump): Correct arguments to
128         maybe_tidy_empty_bb.
129         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
130
131 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
132
133         PR rtl-optimization/44919
134         * sel-sched.c (move_cond_jump): Remove assert, check that
135         the several blocks case can only happen with mutually exclusive
136         insns instead.  Rewrite the movement code to support moving through
137         several basic blocks.
138
139 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
140
141         * config/i386/i386.md (iptrsize): New mode attribute.
142         (tp_seg): Ditto.
143         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
144         mode iterator.
145         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
146         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
147         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
148         (stack_tls_protect_set_<mode>): Ditto from
149         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
150         of thread base pointer load.
151         (stack_tls_protect_test_<mode>): Ditto from
152         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
153         of thread base pointer load.
154         (stack_protect_set): Rewrite using indirect functions.
155         (stack_protect_test): Ditto.
156         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
157         (ix86_print_operand): Handle '@'.
158
159 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
160
161         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
162         MINUS_EXPR.
163
164 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
165
166         * doc/invoke.texi: Document -Wdouble-promotion.
167         * c-typeck.c (convert_arguments): Check for implicit conversions
168         from float to double.
169         (do_warn_double_promotion): New function.
170         (build_conditional_expr): Use it.
171         (build_binary_op): Likewise.
172
173 2010-09-05  Richard Guenther  <rguenther@suse.de>
174
175         PR tree-optimization/45535
176         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
177         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
178         dereferencing it.
179         (indirect_refs_may_alias_p): Likewise.
180
181 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
182
183         * config/sh/sh.c (sh_option_override): Make static.
184         Adjust comments.  Declare.
185         (sh_function_value_regno_p): Likewise.
186         (sh_register_move_cost): Modify the arguments, make static.
187         Adjust comments.  Declare.
188         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
189         TARGET_FUNCTION_VALUE_REGNO_P): Define.
190         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
191         REGISTER_MOVE_COST): Delete.
192         * config/sh/sh-protos.h (sh_override_options): Delete.
193         (sh_register_move_cost): Delete.
194         (sh_function_value_regno_p): Delete.
195
196 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
197
198         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
199         m32r_function_value_regno_p): New functions.
200         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
201         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
202         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
203         FUNCTION_VALUE_REGNO_P): Remove.
204
205 2010-09-04  Jan Hubicka  <jh@suse.cz>
206
207         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
208         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
209         fold_read_from_constant_string.
210
211         * gimple.h (canonicalize_constructor_val): Declare.
212         * gimple-fold.c (canonicalize_constructor_val): New function.
213         (get_symbol_constant_value):Use it.
214         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
215
216 2010-09-04  Jan Hubicka  <jh@suse.cz>
217
218         * tree-switch-conversion.c (build_one_array): Set constructor to be
219         static.
220         * varpool.c (varpool_finalize_decl): Compute const_value_known.
221
222 2010-09-04  Richard Guenther  <rguenther@suse.de>
223
224         PR bootstrap/45519
225         * tree-flow.h (force_gimple_operand_1): Declare.
226         (force_gimple_operand_gsi_1): Likewise.
227         * gimplify.c (force_gimple_operand_1): New worker taking a
228         gimple predicate for ...
229         (force_gimple_operand): ... which now wraps it.
230         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
231         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
232         last change.
233         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
234         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
235         (create_mem_ref): Likewise.
236
237 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
238
239         * config/i386/predicates.md (sse_reg_operand): New predicate.
240         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
241         predicate for operand 1.
242         (XFmode push splitter): Use fp_register_operand predicate
243         for operand 1.
244         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
245         (SF-DF float_extend push splitter): Add reload_completed insn
246         predicate.
247         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
248         MODEF mode macro.  Add reload_completed insn predicate.
249
250 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
251
252         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
253         (struct df_extract_ref): Remove.
254         (union df_ref_d): Remove extract_ref member.
255         (df_ref_create): Remove last three arguments.
256         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
257         * df-scan.c (df_ref_record): Remove last three arguments, do not
258         pass them to df_ref_create_structure.
259         (df_uses_record): Remove first and last three arguments.  Replace
260         first argument with DF_REF_REGULAR, adjust calls to remove the
261         width, offset and mode.  Always call recursively on the second
262         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
263         (df_ref_create_structure): Remove first argument.
264         (struct df_scan_problem_data): Remove ref_extract_pool.
265         (df_scan_free_internal): Do not free it.
266         (df_scan_alloc): Do not allocate it.
267         (df_ref_create): Remove last three arguments, do not pass them to
268         df_ref_create_structure.
269         (df_free_ref): Remove DF_REF_EXTRACT case.
270         (df_notes_rescan): Adjust call to df_uses_record.
271         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
272         Remove DF_REF_EXTRACT case.
273         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
274         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
275         and SUBREG definitions.
276         (df_get_conditional_uses): Remove references to width/offset/mode,
277         adjust call to df_ref_create_structure.
278         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
279         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
280         calls to df_uses_record and df_ref_record.
281         * fwprop.c (update_df): Remove references to width/offset/mode,
282         adjust call to df_ref_create.
283
284 2010-09-03  Jan Hubicka  <jh@suse.cz>
285
286         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
287         (build_cdtor_fns): Update use of build_cdtor.
288
289 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
290
291         * doc/options.texi (SeparateAlias): Document.
292         * opt-functions.awk (switch_flags): Handle SeparateAlias.
293         * opth-gen.awk: Generate enumeration names for options marked
294         SeparateAlias, but not for those marked Ignore.
295         * opts-common.c (generate_canonical_option): Don't output separate
296         argument for options marked CL_SEPARATE_ALIAS.
297         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
298         * opts.h (CL_SEPARATE_ALIAS): New.
299         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
300         CL_COMMON): Adjust definitions.
301         * config/i386/darwin.opt, config/mips/sde.opt: New.
302         * common.opt (fdump-final-insns): New.
303         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
304         i386/darwin.opt.
305         (mips*-sde-elf*): Add mips/sde.opt.
306         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
307         -mno-data-in-code and -mcode-xonly here.
308         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
309         * gcc.c (option_map): Add "j" to --dump entry.
310         (translate_options): Don't translate -d to -foutput-class-dir= here.
311
312 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
313
314         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
315         DR_IS_WRITE.
316         (compute_all_dependences): Same.
317         (create_rdg_edge_for_ddr): Same.
318         * tree-data-ref.h (DR_IS_WRITE): New.
319         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
320         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
321         (write_memrefs_written_at_least_once): Same.
322         * tree-predcom.c (suitable_component_p): Same.
323         (determine_roots_comp): Same.
324         (execute_load_motion): Same.
325         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
326         (vect_enhance_data_refs_alignment): Same.
327         (vect_analyze_group_access): Same.
328
329 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
330
331         PR testsuite/42843
332         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
333         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
334
335 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
336
337         * dwarf2out.c (file scope): Remove #if0'd code.
338         (gen_subprogram_die): Same.
339
340 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
341
342         PR middle-end/45484
343         * dwarf2out.c (flush_queued_reg_saves): Rename to...
344         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
345         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
346         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
347         * config/i386/i386.c (output_set_got): Call it.
348
349 2010-09-03  Michael Matz  <matz@suse.de>
350
351         PR middle-end/45415
352         * tree-sra.c (sra_modify_assign): If we modify the statement,
353         say so.
354
355         * tree-ssa.c (verify_ssa): Check number of operands and links
356         per statement to agree.
357
358 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
359             Iain Sandoe  <iains@gcc.gnu.org>
360
361         PR target/45476
362         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
363         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
364         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
365
366 2010-09-03  Richard Guenther  <rguenther@suse.de>
367
368         * lto-streamer-out.c (output_function): Output function
369         start and end loci.
370         * lto-streamer-in.c (input_function): Input function start
371         and end loci.
372
373 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
374
375         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
376         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
377         * configure: Regenerate.
378         * aclocal.m4: Regenerate.
379
380 2010-09-03  Jan Hubicka  <jh@suse.cz>
381
382         PR lto/44812
383         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
384         on functions/variables in other partition.
385
386 2010-09-03  Jan Hubicka  <jh@suse.cz>
387
388         * cgraph.h (struct varpool_node): Add const_value_known.
389         (varpool_decide_const_value_known): Declare.
390         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
391         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
392         (input_varpool_node): Restore const_value_known.
393         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
394         initializer folding.
395         * ipa.c (ipa_discover_readonly_nonaddressable_var,
396         function_and_variable_visibility): Compute const_value_known.
397         * gimple-fold.c (get_symbol_constant_value): Use varpool for
398         initializer folding.
399         * varpool.c (varpool_decide_const_value_known): New function.
400
401 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
402
403         * config/i386/i386.md: Remove empty preparation statements
404         from splitters.
405
406 2010-09-03  Jan Hubicka  <jh@suse.cz>
407
408         * passes.c (rest_of_decl_compilation): Do not add local vars into
409         varpool.
410         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
411         static or extern vars are in varpool.
412         (varpool_finalize_decl): Sanity check that only static vars are
413         finalized.
414
415 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
416
417         PR debug/45500
418         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
419         not just generic vectors with BLKmode.
420
421 2010-09-03  Richard Guenther  <rguenther@suse.de>
422
423         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
424         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
425         * tree.h (TMR_SYMBOL): Remove.
426         (TMR_BASE, TMR_OFFSET): Adjust.
427         (TMR_INDEX2): New.
428         * alias.c (ao_ref_from_mem): Use TMR_BASE.
429         * builtins.c (get_object_alignment): Merge TMR_BASE and
430         TMR_SYMBOL handling.
431         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
432         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
433         handling.  Also allow TARGET_MEM_REF as base address.
434         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
435         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
436         base.  Gimplify TMR_INDEX2.
437         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
438         * tree-dfa.c (get_ref_base_and_extent): Likewise.
439         (get_addr_base_and_unit_offset): Likewise.
440         * tree-eh.c (tree_could_trap_p): Likewise.
441         * tree-pretty-print.c (dump_generic_node): Likewise.
442         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
443         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
444         base to index2.
445         (get_address_description): Reconstruct addres description
446         from merged TMR_BASE and TMR_INDEX2.
447         (maybe_fold_tmr): Fold propagated addresses.
448         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
449         MEM_REF and TARGET_MEM_REF paths.
450         (indirect_refs_may_alias_p): Likewise.
451         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
452         instead of TMR_SYMBOL.
453         * tree-ssa-operands.c (get_tmr_operands): Simplify.
454         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
455         according to changes ...
456         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
457         Split TARGET_MEM_REF into two fields plus the base.
458         * tree.c (mem_ref_offset): Simplify.
459         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
460         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
461         Strip NOPs when folding MEM_REF addresses.
462         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
463         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
464         (fold_gimple_assign): ... not here.
465
466 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
467
468         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
469         * config/mips/mips.c (mips_shift_truncation_mask): New function.
470         (TARGET_SHIFT_TRUNCATION_MASK): Define.
471
472 2010-09-02  Richard Henderson  <rth@redhat.com>
473
474         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
475         instead of readelf in the test.
476         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
477         in the .debug_frame section for coff targets.
478         * configure: Rebuild.
479
480 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
481
482         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
483         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
484         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
485         (m32c_class_likely_spilled_p): Make static. Change argument type to
486         reg_class_t. Change result type to bool.
487
488 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
489
490         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
491         to convert (double)(long) into a single FRIZ instruction or not
492         when -ffast-math is used.
493
494         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
495         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
496         or FRIZ instruction if -ffast-math.
497         * config/rs6000/rs6000.md (friz): Ditto.
498
499         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
500
501 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
502
503         * opth-gen.awk (quote, comma): Remove unused variables.
504
505 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
506
507         * arm.c (arm_override_options): Correct fall-back code to use
508         SUBTARGET_CPU_DEFAULT.
509
510 2010-09-02  Julian Brown  <julian@codesourcery.com>
511
512         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
513         unspecs.
514         (vcond<mode>, vcondu<mode>): New expanders.
515         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
516         comparisons with zero.
517         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
518         * config/arm/constraints.md (Dz): New constraint.
519
520 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
521
522         * target.def (class_likely_spilled_p): New hook.
523         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
524         * doc/tm.texi: Regenerate.
525         * targhooks.c (default_class_likely_spilled_p): New function.
526         * targhooks.h (default_class_likely_spilled_p): Declare.
527         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
528         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
529         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
530         Use fixed_reg_set instead of fixed_regs.
531         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
532         * calls.c (avoid_likely_spilled_reg): Ditto.
533         * ira-conflicts.c (ira_build_conflicts): Ditto.
534         * ira.c (update_equiv_regs): Ditto.
535         * mode-switching.c (create_pre_exit): Ditto.
536         * regmove.c (find_matches): Ditto.
537         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
538         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
539         (small_register_class_p): New inline function.
540         (push_secondary_reload, find_reusable_reload, find_reloads): Use
541         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
542
543         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
544         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
545         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
546
547 2010-09-02  Richard Guenther  <rguenther@suse.de>
548
549         PR tree-optimization/44937
550         PR tree-optimization/45412
551         * ipa-split.c (split_function): Properly remove PHI nodes.
552
553 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
554
555         * opts.h (struct cl_option): Add warn_message field.
556         (struct cl_decoded_option): Add warn_message field.
557         * doc/options.texi (Ignore, Warn): Document.
558         * opt-functions.awk (needs_state_p): Don't consider aliases or
559         ignored options to need state saved.
560         * optc-gen.awk: Handle Warn and Ignore.
561         * opth-gen.awk: Output OPT_SPECIAL_ignore.
562         * opts-common.c (decode_cmdline_option): Set warn_message field.
563         Handle ignored options.
564         (decode_cmdline_options_to_array, generate_option,
565         generate_option_input_file): Set warn_message field.
566         (read_cmdline_option): Generate warnings from warn_message field.
567         Handle ignored options.
568         * common.opt (Wunreachable-code, fargument-alias,
569         fargument-noalias, fargument-noalias-global,
570         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
571         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
572         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
573         ftree-salias): Mark Ignore.
574         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
575         -mintel-syntax and -mno-intel-syntax here.
576         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
577         using Warn.
578         * opts.c (common_handle_option): Don't handle options marked as
579         ignored.
580         (enable_warning_as_error): Handle ignored options.
581
582 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
583
584         PR driver/44076
585         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
586         alias_target fields.
587         * opt-functions.awk (opt_sanitized_name): Don't handle
588         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
589         * optc-gen.awk: Generate alias fields.
590         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
591         Don't generate such constants for aliases.
592         * opts-common.c (generate_canonical_option): New.
593         (decode_cmdline_option): Handle aliases.  Use
594         generate_canonical_option for known options instead of copying the
595         input option text.
596         * doc/options.texi (Alias): Document.
597         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
598         fstack-check, specs): Mark as aliases.
599         * gcc.c (driver_handle_option): Canonicalize -L options to joined
600         arguments.
601         (driver_handle_option): Don't handle OPT_specs.
602         * opts.c (common_handle_option): Don't handle options marked as
603         aliases.
604         (enable_warning_as_error): Handle aliases.
605         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
606         OPT_Wlarger_than_eq.
607         * tree-optimize.c (tree_rest_of_compilation): Use
608         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
609
610 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
611
612         * config/i386/i386.md (nonmemory_operand): New mode attribute.
613         (push memory peephole2): Macroize peepholes using SWI mode iterator.
614         (move immediate to memory peephole2): Macroize peepholes using
615         SWI124 mode iterator.
616         (non-pairable NOT peephole2): Macroize peepholes using SWI124
617         mode iterator.
618         (simple lea add peephole2): Macroize peepholes using SWI48
619         mode iterator.
620         (simple lea mult peephole2): Ditto.
621         (imul by 3,5,9 to lea peephole2): Ditto.
622         (mov $-1, reg peephole2): Macroize peepholes using SWI248
623         mode iterator.
624         (imul $32bit_imm,mem,reg peephole2): Ditto.
625         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
626
627 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
628
629         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
630
631 2010-09-02  Olivier Hainque  <hainque@adacore.com>
632
633         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
634         (allocno_priority_compare_func): Use it instead of a straight
635         difference computation over priorities.
636
637 2010-09-02  Andi Kleen  <ak@linux.intel.com>
638
639         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
640
641 2010-09-02  Ira Rosen  <irar@il.ibm.com>
642
643         * tree-vectorizer.h (get_later_stmt): New function.
644         (vect_analyze_data_ref_dependences): Add argument.
645         * tree-vect-loop.c (vect_analyze_loop): Update call to
646         vect_analyze_data_ref_dependences.
647         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
648         New function.
649         (vect_analyze_data_ref_dependence): Add argument for basic block
650         dependencies. Check dependencies in basic block vectorization.
651         (vect_analyze_data_ref_dependences): Add argument and update call to
652         vect_analyze_data_ref_dependences.
653         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
654         (vect_bb_vectorizable_with_dependencies): New.
655         (vect_slp_analyze_bb): Check dependencies in basic block.
656         (vect_schedule_slp_instance): Insert stores before the last store in
657         SLP instance.
658
659 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
660
661         PR target/45476
662         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
663         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
664
665 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
666
667         PR middle-end/45458
668         * bb-reorder.c (add_labels_and_missing_jumps): Treat
669         bbs ending with throwing insns like blocks ending with a call.
670         (fix_up_fall_thru_edges): Likewise.
671
672 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
673
674         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
675         (m32c_function_arg_advance): Delete.
676         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
677         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
678         comments.  Take a const_tree and a bool.  Declare.
679         (m32c_function_arg_advance): Likewise.
680         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
681
682 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
683
684         PR target/45476
685         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
686         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
687         * config/i386/mingw32.h: ... here.
688
689 2010-09-01  Andi Kleen  <ak@linux.intel.com>
690
691         PR lto/45475
692         * lto-streamer-in.c (lto_input_ts_target_option): Add.
693         (lto_input_tree_pointers): Call lto_input_ts_target_option.
694         * lto-streamer-out (lto_output_ts_target_option): Add.
695         (lto_output_tree_pointers): Call lto_output_ts_target_option.
696
697 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
698
699         PR/target 45452
700         * config/i386/cygwin.h: Change order of specified import libraries.
701         * config/i386/mingw32.h: Likewise.
702         * config/i386/t-cygwin: Likewise.
703         * config/i386/t-mingw32: Likewise.
704         * config/i386/t-mingw-w32: Likewise.
705         * config/i386/t-mingw-w64: Likewise.
706
707 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
708
709         * config/arm/neon-schedgen.ml (core): New type.
710         (allCores): List of supported cores.
711         (availability_table): Add supported cores.
712         (collate_bypasses): Accept core as a parameter.
713         (worst_case_latencies_and_bypasses): Accept core as a parameter.
714         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
715         and coreStr to get tune attribute and prefix for functional units.
716         (emit_bypasses): Accept core name and use it.
717         (calculate_per_core_availability_table): New.
718         (filter_core): New.
719         (calculate_core_availability_table): New.
720         (main): Use calculate_core_availablity_table.
721         * config/arm/cortex-a8-neon.md: Update copyright year.
722         Regenerated from ml file and merged in.
723         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
724         cortex_a8_neon_mrc.
725
726 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
727
728         * Makefile.in (tree-switch-conversion.o): Update dependencies.
729
730 2010-09-01  Richard Guenther  <rguenther@suse.de>
731
732         * alias.c (ao_ref_from_mem): Adjust.
733         * builtins.c (get_object_alignment): Likewise.
734         * cfgexpand.c (expand_debug_expr): Likewise.
735         * gimple.c (get_base_address): Likewise.
736         * tree-dfa.c (get_ref_base_and_extent): Likewise.
737         (get_addr_base_and_unit_offset): Likewise.  Fix for
738         both TMR_SYMBOL and TMR_BASE being set.
739         * tree-eh.c (tree_could_trap_p): Likewise.
740         * gimplify.c (gimplify_expr): Do not attempt to gimplify
741         TMR_SYMBOL.  Always gimplify TMR_BASE.
742         * tree-cfg.c (verify_types_in_gimple_reference): Verify
743         TMR_BASE if there is a TMR_SYMBOL.
744         * tree-pretty-print.c (dump_generic_node): Adjust.
745         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
746         (tree_mem_ref_addr): Likewise.
747         (create_mem_ref_raw): Likewise.
748         (move_fixed_address_to_symbol): Likewise.
749         (create_mem_ref): Likewise.
750         (dump_mem_address): Likewise.
751         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
752         Fix for both TMR_SYMBOL and TMR_BASE being set.
753         (indirect_refs_may_alias_p): Likewise.
754         * tree-ssa-operands.c (get_tmr_operands): Adjust.
755         * tree.def (TARGET_MEM_REF): Adjust documentation.
756
757 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
758
759         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
760         Rename from X86_TUNE_ADD_ESP_4.
761         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
762         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
763         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
764         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
765         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
766         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
767         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
768         * config/i386/i386.c (initial_ix86_tune_features)
769         <X86_TUNE_SINGLE_POP>: Invert members.
770         <X86_TUNE_DOUBLE_POP>: Ditto.
771         <X86_TUNE_SINGLE_PUSH>: Ditto.
772         <X86_TUNE_DOUBLE_PUSH>: Ditto.
773         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
774         No longer exported.
775         (push peephole2 patterns): Macroize peepholes using P mode iterator.
776         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
777         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
778         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
779
780 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
781
782         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
783         a volatile LHS if the constructor has only one element.
784
785 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
786
787         PR bootstrap/45321
788         * tree.c (stdarg_p): Make fntype parameter const.
789         * tree.h (stdarg_p): Likewise.
790         (function_args_iterator): Remove unused fntype field.
791         (function_args_iter_init): Do not initialize fntype
792         field.  Make fntype parameter const.
793
794 2010-09-01  Richard Guenther  <rguenther@suse.de>
795
796         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
797         estimate.
798         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
799         (execute_vrp): Compute number of iteration estimates.
800         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
801         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
802         * tree-data-ref.c (estimated_loop_iterations): Adjust.
803         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
804         Infer loop bounds from undefined behavior based on a new parameter.
805         (estimate_numbers_of_iterations): Likewise.
806         (scev_probably_wraps_p): Adjust.
807         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
808
809 2010-09-01  Nick Clifton  <nickc@redhat.com>
810
811         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
812         where appropriate.
813         (xstormy16_legitimate_address_p): Use true and false instead of 1
814         and 0.
815         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
816         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
817         magic constant 2.
818         (xstormy16_expand_call): Fix comment at start of function.
819
820 2010-09-01  Nick Clifton  <nickc@redhat.com>
821
822         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
823         when pushing accumulator register.
824         (rx_get_stack_layout): Always save call clobbered registers inside
825         interrupt handlers.
826         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
827
828 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
829
830         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
831         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
832
833         * libgcc-std.ver (GCC_4.6.0): Define version.
834
835 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
836
837         * tree-nested.c (convert_all_function_calls): Iterate until after the
838         sum of static chains in the nest doesn't change.
839
840 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
841
842         * config/m32c/m32c.c (classes_intersect): Remove.
843         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
844         reg_classes_intersect_p instead of classes_intersect.
845         (class_can_hold_mode): Change arguments type from enum reg_class to
846         reg_class_t.  Use reg_class_contents instead of class_contents.
847         (m32c_register_move_cost): Make static. Change arguments type from
848         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
849         classes_intersect. Use reg_class_contents instead of class_contents.
850         (m32c_memory_move_cost): Make static. Change arguments type from
851         enum reg_class to reg_class_t.
852         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
853         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
854         * config/m32c/m32c-protos.h (m32c_register_move_cost,
855         m32c_memory_move_cost): Remove.
856
857 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
858
859         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
860         (arm_function_arg): Delete.
861         (arm_needs_doubleword_align): Take a const_tree.
862         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
863         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
864         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
865         (arm_function_arg): Make static.  Take a const_tree and a bool.
866         (arm_function_arg_advance): Likewise.
867         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
868
869 2010-08-31  Andi Kleen  <ak@linux.intel.com>
870
871         * common.opt (fwhopr=): Update for -fwhopr=jobserver
872         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
873         * lto-wrapper.c (run_gcc): Add jobserver mode.
874         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
875         argument.
876
877 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
878
879         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
880         (popsi1): Ditto.
881         (*popdi1_epilogue): Ditto.
882         (*popsi1_epilogue): Ditto.
883         (popsi, popdi peephole2 patterns): Update peepholes for changed
884         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
885
886         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
887         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
888
889         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
890         (override_options): Do not initialize removed ix86_gen_pop1.
891         (gen_pop): New static function.
892         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
893         (release_scratch_register_on_entry): Ditto.
894         (ix86_restore_reg_using_pop): Ditto.
895         (ix86_expand_epilogue): Ditto.
896
897 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
898
899         PR middle-end/45461
900         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
901
902 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
903
904         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
905         semicolons.
906
907 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
908
909         * doc/extend.texi: Fix documentation of the return value of
910         __builtin_choose_expr.
911
912 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
913
914         * config/v850/v850-protos.h (function_arg): Delete.
915         * config/v850/v850.h (FUNCTION_ARG): Delete.
916         (FUNCTION_ARG_ADVANCE): Move code to...
917         * config/v850/v850.c (v850_function_arg_advance): ...here.
918         (v850_function_arg): Make static.  Take a const_tree and a bool.
919         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
920
921 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
922
923         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
924         these...
925         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
926         ...and these...
927         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
928         ..to here..
929         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
930         ...and here.
931         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
932
933 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
934
935         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
936         Delete.
937         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
938         * config/rx/rx.c (rx_function_arg_size): Make static.
939         (rx_function_arg): Likewise.
940         (rx_function_arg_advance): New function.
941         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
942
943 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
944
945         * config/arm/arm.c (arm_override_options): Remove superfluous test.
946         Fix indentation.
947
948 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
949
950         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
951         (dwarf2out_decl) <CONST_DECL>: Likewise.
952
953 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
954
955         Stack usage support
956         * common.opt (-fstack-usage): New option.
957         * doc/invoke.texi (Debugging options): Document it.
958         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
959         allocate_dynamic_stack_space.
960         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
961         and propagate it to allocate_dynamic_stack_space.
962         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
963         * calls.c (initialize_argument_information): Pass TRUE as 4th
964         argument to allocate_dynamic_stack_space.
965         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
966         to 1 when pushing a variable-sized argument onto the stack.  Pass
967         TRUE as 4th argument to allocate_dynamic_stack_space.
968         Update current_function_pushed_stack_size.
969         (emit_library_call_value_1): Likewise.
970         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
971         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
972         attempt to find an upper bound.  Remove redundant code for the
973         SETJMP_VIA_SAVE_AREA case.
974         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
975         * function.h (struct stack_usage): New structure.
976         (current_function_static_stack_size): New macro.
977         (current_function_dynamic_stack_size): Likewise.
978         (current_function_pushed_stack_size): Likewise.
979         (current_function_dynamic_alloc_count): Likewise.
980         (current_function_has_unbounded_dynamic_stack_size): Likewise.
981         (current_function_allocates_dynamic_stack_space): Likewise.
982         (struct function): Add new field 'su'.
983         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
984         add the value of the dynamic offset to the dynamic stack usage.
985         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
986         for variable-sized objects.
987         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
988         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
989         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
990         BUILT_IN_ALLOCA for variable-sized objects.
991         * output.h (output_stack_usage): Declare.
992         * toplev.c (stack_usage_file): New file pointer.
993         (output_stack_usage): New function.
994         (open_auxiliary_file): Likewise.
995         (lang_dependent_init): Open file if flag_stack_usage is set.
996         (finalize): Close file if stack_usage_file is not null.
997         * tree.h (ALLOCA_FOR_VAR_P): New macro.
998         * config/alpha/alpha.c (compute_frame_size): New function.
999         (alpha_expand_prologue): Use it.
1000         (alpha_start_function): Likewise.
1001         (alpha_expand_epilogue): Likewise.  Set stack usage info.
1002         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1003         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1004         * config/mips/mips.c (mips_expand_prologue): Likewise.
1005         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1006         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1007         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1008
1009 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
1010
1011         PR tree-optimization/45427
1012         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
1013         Handle the case that the exit is never taken correctly.
1014         (number_of_iterations_ne): Pass exit_must_be_taken to
1015         number_of_iterations_ne_max.
1016
1017 2010-08-30  Catherine Moore  <clm@codesourcery.com>
1018
1019         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
1020         Infer -mdspr2 for the the 74K.
1021
1022 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
1023
1024         PR debug/45419
1025         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
1026
1027         PR middle-end/45423
1028         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
1029         and TRUTH_{AND,OR,XOR}_EXPR.
1030         * c-parser.c (c_parser_omp_atomic): Handle boolean
1031         {PRE,POST}_{INC,DEC}REMENT.
1032
1033 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
1034
1035         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
1036         (function_arg): Delete.
1037         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1038         (FUNCTION_INCOMING_ARG): Delete.
1039         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
1040         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
1041         and a bool.
1042         (function_arg): Rename to...
1043         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
1044         a bool.
1045         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
1046         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1047         (TARGET_FUNCTION_INCOMING_ARG): Define.
1048
1049 2010-08-30  Richard Guenther  <rguenther@suse.de>
1050
1051         PR tree-optimization/21602
1052         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
1053         using points-to information.
1054
1055 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1056
1057         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
1058
1059 2010-08-30  Richard Guenther  <rguenther@suse.de>
1060
1061         PR tree-optimization/45449
1062         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
1063         variables.
1064
1065 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
1066
1067         * opts.h (CL_ERR_NEGATIVE): Define.
1068         * opts.c (unknown_option_callback): Don't postpone warnings for
1069         options marked with CL_ERR_NEGATIVE.
1070         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
1071         for negative versions of CL_REJECT_NEGATIVE options.
1072
1073 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
1074
1075         * config/i386/i386.md (zero_extendsidi2_1): Rename from
1076         zero_extendsidi2_32.
1077         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
1078         using SWI12 mode iterator.
1079         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
1080         to define_insn_and_split pattern.
1081         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
1082         using SWI24 mode iterator.
1083         (*zero_extendqi<mode>2_and): Macroize insn from
1084         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
1085         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
1086         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
1087         SWI24 mode iterator.
1088         (*zero_extendqi<mode>2_movzbl): Ditto from
1089         *zero_extendqi{hi,si}2_movzbl.
1090         (extendsidi2_1): Rename from extendsidi2_32.
1091         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
1092         SWI12 mode iterator.
1093
1094 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
1095
1096         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
1097         general purpose registers.
1098         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
1099         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
1100         with general purpose registers and memory operands.  Add associated
1101         CCImode post-reload splitter.
1102         * config/ia64/div.md: Change BImode to CCImode throughout.
1103
1104 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
1105
1106         * config/ia64/ia64.md (cstorebi4): Fix thinko.
1107
1108 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
1109
1110         * config/picochip/picochip.c (reorder_var_tracking_notes): This
1111         function was dropping debug insns which caused PR45299.
1112
1113 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
1114
1115         * config/i386/sse.md (extsuffix): New code attribute.
1116         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
1117         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
1118         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
1119         and sse4_1_zero_extendv4qiv4si2.
1120         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
1121         and sse4_1_zero_extendv2qiv2di2.
1122         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
1123         and sse4_1_zero_extendv4hiv4si2.
1124         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
1125         and sse4_1_zero_extendv2hiv2di2.
1126         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
1127         and sse4_1_zero_extendv2siv2di2
1128
1129         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
1130         using any_extend code iterator.
1131         (*avx_<s>mulv8hi3_highpart): Macroize insn from
1132         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
1133         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
1134
1135         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
1136         gen_sse4_1_sign_extend* functions.
1137         (struct builtin_description bdesc_args): Ditto.
1138
1139 2010-08-27  Xinliang David Li  <davidxl@google.com>
1140
1141         PR/45422
1142         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
1143         (iv_ca_set_no_cp): Update used inv expr count.
1144         (iv_ca_set_cp): Ditto.
1145         (iv_ca_new): Initialize new member.
1146         (iv_ca_free): Free memory.
1147
1148 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1149
1150         * config/sh/sh-protos.h (sh_function_arg): Delete.
1151         (sh_function_arg_advance): Delete.
1152         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1153         (PASS_IN_REG_P): Eliminate cast.
1154         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
1155         const_tree and a bool.
1156         (sh_function_arg): Likewise.
1157         (sh_output_mi_thunk): Call sh_function_arg_advance) and
1158         sh_function_arg.
1159         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1160
1161 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
1162             Kaz Kojima  <kkojima@gcc.gnu.org>
1163
1164         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
1165         when possible.
1166         (sh_expand_epilogue): Likewise.
1167         * config/sh/sh.md (movml_push_banked): New insn.
1168         (movml_pop_banked): Likewise.
1169
1170 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
1171
1172         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
1173         gen_regexp_oneof, gen_regexp_sequence): Use the string found
1174         in vector element 0 rather than the original string when there's
1175         only one element.
1176         (gen_regexp): Remove extra semicolon.
1177
1178         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
1179         thumb2_movsf_vfp): Set attribute "insn".
1180         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
1181         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
1182         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
1183         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
1184         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
1185         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
1186         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
1187         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
1188         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
1189         if_not_arith, if_arith_not, cond_move_not): Likewise.
1190
1191 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1192
1193         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
1194         New declaration.
1195         (rs6000_allocate_stack_temp): Ditto.
1196         (rs6000_expand_convert_si_to_sfdf): Ditto.
1197
1198         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
1199         line.  Update the options set if power6 or power7 server/embedded
1200         type options are used.  If we give a warning for no vsx under
1201         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
1202         (rs6000_allocate_stack_temp): New function to allocate a stack
1203         tempoary and adjust the address so it meets either REG+OFFSET or
1204         REG+REG addressing requirements.
1205         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
1206         that they can be used with the LFIWAX/LFIWZX instrucitons.
1207         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
1208         converting signed/unsigned SImode to either SFmode/DFmode.
1209
1210         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
1211         whether certain instructions can be generated.
1212         (TARGET_FCTIDZ): Ditto.
1213         (TARGET_STFIWX): Ditto.
1214         (TARGET_LFIWAX): Ditto.
1215         (TARGET_LFIWZX): Ditto.
1216         (TARGET_FCFIDS): Ditto.
1217         (TARGET_FCFIDU): Ditto.
1218         (TARGET_FCFIDUS): Ditto.
1219         (TARGET_FCTIDUZ): Ditto.
1220         (TARGET_FCTIWUZ): Ditto.
1221
1222         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
1223         (UNSPEC_FCTID): Ditto.
1224         (UNSPEC_LFIWAX): Ditto.
1225         (UNSPEC_LFIWZX): Ditto.
1226         (UNSPEC_FCTIWUZ): Ditto.
1227         (rreg): Use correct constraints.
1228         (SI_CONVERT_FP): New mode attribute for floating point conversion
1229         tests.
1230         (E500_CONVERT): Ditto.
1231         (lfiwax): New insns for converting from integer to floating point
1232         utilizing newer instructions.  Attempt to optimize conversions
1233         that come from memory so that we don't load the value into a GPR,
1234         spill it to the stack and reload it into a FPR.
1235         (floatsi<mode>2_lfiwax): Ditto.
1236         (floatsi<mode>2_lfiwax_mem): Ditto.
1237         (floatsi<mode>2_lfiwax_mem2): Ditto.
1238         (lfiwzx): Ditto.
1239         (floatunssi<mode>2_lfiwzx): Ditto.
1240         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1241         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1242         (floatdidf2_mem): Ditto.
1243         (floatunsdidf2_fcfidu): Ditto.
1244         (floatunsdidf2_mem): Ditto.
1245         (floatunsdisf2): Ditto.
1246         (floatunsdisf2_fcfidus): Ditto.
1247         (floatunsdisf2_mem): Ditto.
1248         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
1249         Use FCFID on 32-bit hosts that support it.
1250         (floatsidf2_internal): Ditto.
1251         (floatunssisf2): Ditto.
1252         (floatunssidf2): Ditto.
1253         (floatunssidf2_internal): Ditto.
1254         (floatsisf2): Ditto.
1255         (floatdidf2): Ditto.
1256         (floatdidf2_fpr): Ditto.
1257         (floatunsdidf2): Ditto.
1258         (floatdisf2): Ditto.
1259         (floatdisf2_fcfids): Ditto.
1260         (floatdisf2_internal1): Ditto.
1261         (fixuns_truncsfsi2): Delete, merge into common pattern for both
1262         SF/DF.  Add power7 support.
1263         (fix_truncsfsi2): Ditto.
1264         (fixuns_truncdfsi2): Ditto.
1265         (fixuns_truncdfdi2): Ditto.
1266         (fix_truncdfsi2): Ditto.
1267         (fix_truncdfsi2_internal): Ditto.
1268         (fix_truncdfsi2_internal_gfxopt): Ditto.
1269         (fix_truncdfsi2_mfpgpr): Ditto.
1270         (fctiwz): Ditto.
1271         (btruncdf2): Ditto.
1272         (btruncdf2_fpr): Ditto.
1273         (btructsf2): Ditto.
1274         (ceildf2): Ditto.
1275         (ceildf2_fpr): Ditto.
1276         (ceilsf2): Ditto.
1277         (floordf2): Ditto.
1278         (floordf2_fpr): Ditto.
1279         (floorsf2): Ditto.
1280         (rounddf2): Ditto.
1281         (rounddf2_fpr): Ditto.
1282         (roundsf2): Ditto.
1283         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
1284         (fix_trunc<mode>di2): Ditto.
1285         (fixuns_trunc<mode>si2): Ditto.
1286         (fixuns_trunc<mode>di2): Ditto.
1287         (fctiwz_<mode>): Ditto.
1288         (btrunc<mode>2): Ditto.
1289         (btrunc<mode>2_fpr): Ditto.
1290         (ceil<mode>2): Ditto.
1291         (ceil<mode>2_fpr): Ditto.
1292         (floor<mode>2): Ditto.
1293         (float<mode>2_fpr): Ditto.
1294         (round<mode>2): Ditto.
1295         (round<mode>2_fpr): Ditto.
1296         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
1297         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1298         (fix_truncdfsi2_internal): Ditto.
1299         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
1300         converted value on stack, loaded into GPR, and then stored into
1301         the final destination.
1302         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
1303         FCTIDZ.
1304         (lrint<mode>di2): New insn, provide the lrint builtin functions.
1305         (ftruncdf2): Delete, unused.
1306         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
1307
1308         * config/rs6000/vsx.md (toplevel): Update copyright year.
1309         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
1310         (VSr3): Ditto.
1311
1312 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
1313             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1314
1315         * gengtype.c (output_type_enum): Test the right union member.
1316
1317 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
1318
1319         PR target/41484
1320         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
1321         operands for operand 1.
1322         (sse4_1_extendv4qiv4si2): Ditto.
1323         (sse4_1_extendv2qiv2di2): Ditto.
1324         (sse4_1_extendv4hiv4si2): Ditto.
1325         (sse4_1_extendv2hiv2di2): Ditto.
1326         (sse4_1_extendv2siv2di2): Ditto.
1327         (sse4_1_zero_extendv8qiv8hi2): Ditto.
1328         (sse4_1_zero_extendv4qiv4si2): Ditto.
1329         (sse4_1_zero_extendv2qiv2di2): Ditto.
1330         (sse4_1_zero_extendv4hiv4si2): Ditto.
1331         (sse4_1_zero_extendv2hiv2di2): Ditto.
1332         (sse4_1_zero_extendv2siv2di2): Ditto.
1333         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
1334         (*sse4_1_extendv4qiv4si2): Ditto.
1335         (*sse4_1_extendv2qiv2di2): Ditto.
1336         (*sse4_1_extendv4hiv4si2): Ditto.
1337         (*sse4_1_extendv2hiv2di2): Ditto.
1338         (*sse4_1_extendv2siv2di2): Ditto.
1339         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
1340         (*sse4_1_zero_extendv4qiv4si2): Ditto.
1341         (*sse4_1_zero_extendv2qiv2di2): Ditto.
1342         (*sse4_1_zero_extendv4hiv4si2): Ditto.
1343         (*sse4_1_zero_extendv2hiv2di2): Ditto.
1344         (*sse4_1_zero_extendv2siv2di2): Ditto.
1345
1346 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1347
1348         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
1349         (mips_function_arg): Delete.
1350         (mips_function_arg_boundary): Take a const_tree.
1351         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
1352         (mips_arg_info): Likewise.
1353         (mips_setup_incoming_varargs): Call mips_function_arg_advance
1354         instead of FUNCTION_ARG_ADVANCE.
1355         (mips_function_arg_advance): Adjust prototype.  Make static.
1356         (mips_function_arg): Likewise.
1357         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1358         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1359
1360 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1361
1362         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1363         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
1364         (function_arg): Delete.
1365         (function_arg_boundary): Take a const_tree.
1366         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
1367         (rs6000_spe_function_arg): Likewise.
1368         (rs6000_parm_start): Likewise.
1369         (rs6000_arg_size): Likewise.
1370         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
1371         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
1372         (rs6000_mixed_function_arg): Likewise.
1373         (function_arg): Rename to...
1374         (rs6000_function_arg): ...this.
1375         (function_arg_advance): Rename to...
1376         (rs6000_function_arg_advance_1): ...this
1377         (rs6000_function_arg_advance): New function.  Call it.
1378         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
1379         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
1380         (rs6000_function_value): Likewise.
1381         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1382
1383 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1384
1385         * config/arm/arm.md (enabled): Test the value of arch_enabled
1386         rather than just using it.
1387
1388 2010-08-27  Olivier Hainque  <hainque@adacore.com>
1389             Eric Botcazou  <ebotcazou@adacore.com>
1390
1391         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
1392         cover all the possible offsets from this base.
1393         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
1394
1395 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
1396
1397         PR tree-optimization/44485
1398         * calls.c (flags_from_decl_or_type): For const or pure
1399         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
1400         together with ECF_CONST resp. ECF_PURE.
1401         * builtins.c (expand_builtin): Use flags_from_decl_or_type
1402         instead of querying flags directly.
1403         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
1404         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
1405
1406 2010-08-26  Richard Guenther  <rguenther@suse.de>
1407
1408         PR tree-optimization/45255
1409         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
1410         and externals are also invariant.
1411
1412 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1413
1414         PR rtl-optimization/44858
1415         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
1416         newi2pat, make sure they don't affect newpat.
1417
1418         PR rtl-optimization/45400
1419         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
1420         SUBREG_REG if both modes are of MODE_INT class.
1421
1422 2010-08-25  Julian Brown  <julian@codesourcery.com>
1423
1424         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
1425         * config/arm/arm.md (generic_sched): No for Cortex-A5.
1426         (generic_vfp): Likewise.
1427         (cortex-a5.md): Include.
1428         * config/arm/cortex-a5.md: New.
1429
1430 2010-08-25  Richard Guenther  <rguenther@suse.de>
1431
1432         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
1433         * gimple.c (gimple_get_alias_set): Remove special handling
1434         for pointers.
1435
1436 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1437
1438         PR middle-end/45355
1439         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
1440         dead_or_set_p when computing i0_feeds_i2_n.
1441
1442         * combine.c (find_split_point): Undo canonicalization of multiply-add
1443         to (minus x (mult)) when it seems likely that this will increase the
1444         chances of a split.
1445
1446 2010-08-25  Richard Guenther  <rguenther@suse.de>
1447
1448         PR lto/44562
1449         * lto-streamer.c (lto_record_common_node): Do not mess with
1450         TYPE_CANONICAL when not in lto.
1451         * gimple.c (gimple_register_type): Likewise.
1452
1453 2010-08-25  Richard Guenther  <rguenther@suse.de>
1454
1455         PR tree-optimization/45316
1456         * tree-ssa-pre.c (eliminate): Properly clean EH info.
1457
1458 2010-08-25  Richard Guenther  <rguenther@suse.de>
1459
1460         PR tree-optimization/45393
1461         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
1462         and clean EH info.  Avoid SSA update.
1463         (execute_cse_sincos): Cleanup the CFG if it has changed.
1464
1465 2010-08-25  Richard Guenther  <rguenther@suse.de>
1466
1467         PR middle-end/45379
1468         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
1469         TARGET_MEM_REF in alignment computation.
1470
1471 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1472
1473         PR tree-optimization/45059
1474         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
1475         type conversions from newop{1,2}.  Assert t is a comparison and
1476         newop{1,2} after the stripping are gimple vals.
1477
1478 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
1479
1480         * config/arm/iterators.md (VU, SE, V_widen_l): New.
1481         (V_unpack, US): New.
1482         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
1483         (vec_unpack<US>_lo_<mode>): Likewise.
1484         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
1485         (neon_vec_unpack<US>_lo_<mode>): Likewise.
1486         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
1487         (vec_widen_<US>mult_hi_<mode>): Likewise.
1488         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
1489         (neon_vec_<US>mult_hi_<mode>"): Likewise.
1490         (neon_unpack<US>_<mode>): Widening move intermediate step for
1491         vectorizing without -mvectorize-with-neon-quad.
1492         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
1493         for vectorizing without -mvectorize-with-neon-quad.
1494         * config/arm/predicates.md (vect_par_constant_high): Check for
1495         high-half lanes of a vector.
1496         (vect_par_constant_low): Check for low-half lanes of a vector.
1497
1498 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1499
1500         * tree-if-conv.c (struct ifc_dr): New.
1501         (IFC_DR): New.
1502         (DR_WRITTEN_AT_LEAST_ONCE): New.
1503         (DR_RW_UNCONDITIONALLY): New.
1504         (memref_read_or_written_unconditionally): Use the cached values
1505         when possible.
1506         (write_memref_written_at_least_once): Same.
1507         (if_convertible_loop_p): Initialize and free DR->aux fields.
1508
1509 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1510
1511         * gimple.c (gimple_could_trap_p_1): Not static anymore.
1512         Pass an extra bool parameter include_mem.
1513         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
1514         (gimple_assign_rhs_could_trap_p): Same.
1515         * gimple.h (gimple_could_trap_p_1): Declared.
1516         * tree-data-ref.h (same_data_refs_base_objects): New.
1517         (same_data_refs): New.
1518         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
1519         (write_memrefs_written_at_least_once): New.
1520         (ifcvt_memrefs_wont_trap): New.
1521         (operations_could_trap): New.
1522         (ifcvt_could_trap_p): New.
1523         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
1524         Gets a vector of data refs.
1525         (if_convertible_stmt_p): Same.
1526         (if_convertible_loop_p_1): New.
1527         (if_convertible_loop_p): Call if_convertible_loop_p_1.
1528
1529 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1530
1531         * common.opt (ftree-loop-if-convert-stores): New flag.
1532         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
1533         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
1534         the created statement before GSI.
1535         (if_convertible_phi_p): Allow virtual phi nodes when
1536         flag_loop_if_convert_stores is set.
1537         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
1538         Do not handle types that do not match is_gimple_reg_type.
1539         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
1540         when flag_loop_if_convert_stores is set, as LHS can contain
1541         memory refs.
1542         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
1543         to if_convertible_gimple_assign_stmt_p.
1544         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
1545         (replace_phi_with_cond_gimple_assign_stmt): Renamed
1546         predicate_scalar_phi.  Do not handle virtual phi nodes.
1547         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
1548         Call predicate_scalar_phi.
1549         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
1550         just after the labels for flag_loop_if_convert_stores, otherwise
1551         insert the predicate in the end of the BB.
1552         (predicate_mem_writes): New.
1553         (combine_blocks): Call predicate_all_scalar_phis.  When
1554         flag_loop_if_convert_stores is set, call predicate_mem_writes.
1555         (tree_if_conversion): Call mark_sym_for_renaming when
1556         flag_loop_if_convert_stores is set.
1557         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
1558         flag_loop_if_convert_stores is set.
1559
1560 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
1561
1562         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
1563         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
1564         (pa_function_value): Make static.
1565         (override_options): Rename to...
1566         (pa_option_override): ...this. Make static.
1567         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
1568         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
1569         TARGET_OPTION_OVERRIDE): Define.
1570         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
1571         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
1572         Remove.
1573         * config/pa/pa-protos.h (override_options): Remove.
1574
1575 2010-08-24  Richard Guenther  <rguenther@suse.de>
1576
1577         PR middle-end/45379
1578         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
1579         if addr->index is NULL or zero.
1580         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
1581         TARGET_MEM_REF more properly.
1582         (indirect_ref_may_alias_decl_p): Likewise.
1583         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
1584         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
1585
1586 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
1587
1588         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
1589         (m32c_override_options): Rename to...
1590         (m32c_option_override): ...this. Make static.
1591         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
1592         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
1593         Remove.
1594         * config/m32c/m32c-protos.h (m32c_override_options,
1595         m32c_function_value_regno_p): Remove.
1596
1597 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1598
1599         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
1600         Fix a typo in a previous commit.
1601
1602 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
1603
1604         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
1605         Pre-initialize innerloop_iters to one.
1606
1607 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1608
1609         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
1610         existing static function global.
1611
1612         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
1613         is changed to global.
1614
1615         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
1616         may_be_nonaddressable_p on base, and don't collect this reference
1617         if the address of the base could not be taken.
1618
1619 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1620
1621         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
1622         enable the compiler to autovectorize mathmetical functions for
1623         power7 using the Mathematical Acceleration Subsystem library.
1624
1625         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
1626         handle which vector math library we have.
1627         (rs6000_override_options): Add -mveclibabi=mass support.
1628         (rs6000_builtin_vectorized_libmass): New function to handle auto
1629         vectorizing math functions that are in the MASS library.
1630         (rs6000_builtin_vectorized_function): Call it.
1631
1632         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1633         -mveclibabi=mass.
1634
1635 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1636
1637         PR boehm-gc/34544
1638         * gthr-posix.h (__gthread_active_init): Delete.
1639         (__gthread_active_p): Do activity check here.
1640         Don't include errno.h on hppa-hpux.  Update comment.
1641         * gthr-posix95.h (__gthread_active_init): Delete.
1642         (__gthread_active_p): Do activity check here.
1643         Don't include errno.h on hppa-hpux.  Update comment.
1644         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
1645         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
1646         add -lpthread when -mt or -pthread is specified.
1647         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
1648         (LINK_GCC_C_SEQUENCE_SPEC): Define.
1649         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
1650         (stublib.c, pthread_default_stacksize_np-stub.o,
1651         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
1652         $(T)libgcc_stub.a): Add methods.
1653         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
1654         (stublib.c, pthread_default_stacksize_np-stub.o,
1655         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
1656         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1657         pthread_mutex_unlock): New stubs.
1658
1659 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
1660
1661         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
1662         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
1663         options.
1664         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
1665         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
1666         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
1667         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
1668         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
1669         "-l".
1670         * cppspec.c: Include opts.h.
1671         (lang_specific_driver): Use cl_decoded_option structures.
1672         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
1673         * doc/tm.texi: Regenerate.
1674         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
1675         (driver_handle_option): Allow driver options needing no special
1676         processing.
1677         (process_command): Decode options before call to
1678         lang_specific_driver.  Pass decoded options to
1679         lang_specific_driver.
1680         * gcc.h (lang_specific_driver): Update prototype.
1681         * gccspec.c: Include opts.h.
1682         (lang_specific_driver): Use cl_decoded_option structures.
1683         * opts-common.c (option_ok_for_language, generate_option,
1684         generate_option_input_file): New.
1685         (decode_cmdline_option): Use option_ok_for_language.
1686         (decode_cmdline_options_to_array): Use generate_option_input_file.
1687         (handle_generated_option): Use generate_option.
1688         * opts.h (generate_option, generate_option_input_file): Declare.
1689
1690 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
1691
1692         * config/mips/mips.c (mips_override_options): Rename to...
1693         (mips_option_override): ...this. Make static.
1694         (TARGET_OPTION_OVERRIDE): Define.
1695         (mips_in_small_data_p): Update comment.
1696         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
1697         (FIXED_REGISTERS): Update comment.
1698         * config/mips/mips-protos.h (mips_override_options): Remove.
1699
1700 2010-08-21  Olivier Hainque  <hainque@adacore.com>
1701
1702         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
1703
1704 2010-08-21  Olivier Hainque  <hainque@adacore.com>
1705
1706         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
1707         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
1708
1709 2010-08-20  Jan Hubicka  <jh@suse.cz>
1710
1711         * tree-pass.h (pass_ipa_cdtor_merge): New function.
1712         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
1713         heap allocated.
1714         (record_cdtor_fn): Move to ipa.c; do not test for
1715         have_ctors_dtors.
1716         (build_cdtor): Move to ipa.c; add code avoiding construction
1717         when target have ctors/dtors and there is only one ctor/dtor at given
1718         priority.
1719         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
1720         sort; reverse order of constructors.
1721         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
1722         (cgraph_finalize_function): Do not call record_cdtor_fn.
1723         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
1724         (cgraph_build_static_cdtor): Move to ipa.c.
1725         * ipa.c: Include target.h and tree-iterator.h.
1726         (cgraph_build_static_cdtor, static_ctors, static_dtors,
1727         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
1728         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
1729         pass_ipa_cdtor_merge): New.
1730         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
1731         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
1732         bounds access.
1733
1734 2010-08-20  Jan Hubicka  <jh@suse.cz>
1735
1736         PR c++/45307
1737         PR c++/17736
1738         * cgraph.h (cgraph_only_called_directly_p,
1739         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
1740         static cdtors.
1741         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
1742         are not needed.
1743         (cgraph_finalize_function): Static cdtors are reachable.
1744         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
1745
1746 2010-08-20  Jan Hubicka  <jh@suse.cz>
1747
1748         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
1749         flag_wpa.
1750         * lto-streamer-out.c (lto_output): Likewise.
1751         * passes.c (ipa_write_optimization_summaries): Initialize statement
1752         uids.
1753
1754 2010-08-20  Olivier Hainque  <hainque@adacore.com>
1755
1756         * tree.h (alias_diag_flags): New enum.
1757         (alias_pair): Add an 'emitted_diags' field.
1758         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
1759         (assemble_alias): Initialize emitted_diags of new pairs.
1760
1761 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
1762
1763         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1764         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1765         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1766         (STACK_CHECK_PROTECT): Define.
1767         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
1768         (output_probe_stack_range): Likewise.
1769         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
1770         builtin stack checking is enabled.
1771         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
1772         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1773         (probe_stack_range): New insn.
1774
1775 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1776
1777         PR target/45336
1778         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
1779         short first.
1780
1781         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
1782         char first.
1783
1784 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1785
1786         PR target/45336
1787         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
1788         to cover zero extension into 64-bit register.
1789         (*sse2_pextrw): Likewise.
1790         (*sse4_1_pextrd_zext): New insn.
1791
1792 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
1793
1794         revert r163410, partially revert r163267.
1795         * config/rs6000/darwin.h (LIB_SPEC): Remove.
1796         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
1797         Darwin versions.
1798
1799 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1800
1801         PR middle-end/44974
1802         * builtins.c (expand_builtin): Don't optimize away
1803         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
1804
1805 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
1806
1807         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
1808         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
1809         alternative 1 of operand 2.
1810
1811 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1812             Paolo Bonzini  <bonzini@gnu.org>
1813
1814         * simplify-rtx.c (simplify_unary_operation_1): Optimize
1815         (sign_extend (zero_extend (...)) and
1816         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
1817
1818 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1819
1820         PR rtl-optimization/45353
1821         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
1822         after bb_note is a BARRIER.
1823
1824 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
1825
1826         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
1827         linking libgcc.a.
1828
1829 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1830             Michael Matz  <matz@suse.de>
1831
1832         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
1833
1834 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
1835
1836         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
1837         (ggc_mark_roots): ...here.
1838
1839 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
1840
1841         * vec.h (FOR_EACH_VEC_ELT): Define.
1842         * c-decl.c: Use it.
1843         * cfgloop.c: Likewise.
1844         * cfgloopmanip.c: Likewise.
1845         * cgraph.c: Likewise.
1846         * cgraphunit.c: Likewise.
1847         * combine.c: Likewise.
1848         * config/bfin/bfin.c: Likewise.
1849         * config/mips/mips.c: Likewise.
1850         * config/rs6000/rs6000.c: Likewise.
1851         * dbxout.c: Likewise.
1852         * df-scan.c: Likewise.
1853         * dominance.c: Likewise.
1854         * dse.c: Likewise.
1855         * dwarf2out.c: Likewise.
1856         * except.c: Likewise.
1857         * expr.c: Likewise.
1858         * function.c: Likewise.
1859         * gcse.c: Likewise.
1860         * genattr.c: Likewise.
1861         * ggc-common.c: Likewise.
1862         * gimplify.c: Likewise.
1863         * graphite-blocking.c: Likewise.
1864         * graphite-clast-to-gimple.c: Likewise.
1865         * graphite-dependences.c: Likewise.
1866         * graphite-interchange.c: Likewise.
1867         * graphite-poly.c: Likewise.
1868         * graphite-scop-detection.c: Likewise.
1869         * graphite-sese-to-poly.c: Likewise.
1870         * graphite.c: Likewise.
1871         * haifa-sched.c: Likewise.
1872         * ifcvt.c: Likewise.
1873         * implicit-zee.c: Likewise.
1874         * ipa-prop.c: Likewise.
1875         * ipa-struct-reorg.c: Likewise.
1876         * ipa.c: Likewise.
1877         * ira-build.c: Likewise.
1878         * ira-color.c: Likewise.
1879         * ira-emit.c: Likewise.
1880         * lambda-code.c: Likewise.
1881         * loop-invariant.c: Likewise.
1882         * loop-unroll.c: Likewise.
1883         * lower-subreg.c: Likewise.
1884         * lto-cgraph.c: Likewise.
1885         * lto-opts.c: Likewise.
1886         * lto-streamer-in.c: Likewise.
1887         * lto-streamer-out.c: Likewise.
1888         * lto-streamer.c: Likewise.
1889         * lto-symtab.c: Likewise.
1890         * matrix-reorg.c: Likewise.
1891         * opts.c: Likewise.
1892         * predict.c: Likewise.
1893         * print-tree.c: Likewise.
1894         * sdbout.c: Likewise.
1895         * sel-sched-dump.c: Likewise.
1896         * sel-sched-ir.c: Likewise.
1897         * sel-sched.c: Likewise.
1898         * sese.c: Likewise.
1899         * stor-layout.c: Likewise.
1900         * tree-cfg.c: Likewise.
1901         * tree-cfgcleanup.c: Likewise.
1902         * tree-chrec.c: Likewise.
1903         * tree-data-ref.c: Likewise.
1904         * tree-emutls.c: Likewise.
1905         * tree-inline.c: Likewise.
1906         * tree-into-ssa.c: Likewise.
1907         * tree-loop-distribution.c: Likewise.
1908         * tree-loop-linear.c: Likewise.
1909         * tree-mudflap.c: Likewise.
1910         * tree-outof-ssa.c: Likewise.
1911         * tree-parloops.c: Likewise.
1912         * tree-predcom.c: Likewise.
1913         * tree-pretty-print.c: Likewise.
1914         * tree-scalar-evolution.c: Likewise.
1915         * tree-ssa-live.c: Likewise.
1916         * tree-ssa-loop-im.c: Likewise.
1917         * tree-ssa-loop-ivcanon.c: Likewise.
1918         * tree-ssa-loop-ivopts.c: Likewise.
1919         * tree-ssa-loop-manip.c: Likewise.
1920         * tree-ssa-loop-niter.c: Likewise.
1921         * tree-ssa-loop-prefetch.c: Likewise.
1922         * tree-ssa-phiprop.c: Likewise.
1923         * tree-ssa-pre.c: Likewise.
1924         * tree-ssa-reassoc.c: Likewise.
1925         * tree-ssa-sccvn.c: Likewise.
1926         * tree-ssa-structalias.c: Likewise.
1927         * tree-ssa.c: Likewise.
1928         * tree-vect-data-refs.c: Likewise.
1929         * tree-vect-loop-manip.c: Likewise.
1930         * tree-vect-loop.c: Likewise.
1931         * tree-vect-patterns.c: Likewise.
1932         * tree-vect-slp.c: Likewise.
1933         * tree-vect-stmts.c: Likewise.
1934         * tree-vrp.c: Likewise.
1935         * tree.c: Likewise.
1936         * value-prof.c: Likewise.
1937         * var-tracking.c: Likewise.
1938         * varasm.c: Likewise.
1939         * vmsdbgout.c: Likewise.
1940
1941 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
1942             Richard Guenther  <richard.guenther@gmail.com>
1943
1944         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
1945         copy the src value and return a copy.
1946         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
1947         (C++ Volatiles): Adjust to describe C++ semantics only.
1948
1949 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
1950
1951         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
1952         be zero or nonzero.
1953         * doc/tm.texi: Regenerate.
1954         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
1955         * df-scan.c (df_get_exit_block_use_set), reginfo.c
1956         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
1957         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
1958         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
1959         to 1.
1960
1961 2010-08-20  Olivier Hainque  <hainque@adacore.com>
1962
1963         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
1964         an extra nop past a sibling call at the very end.
1965
1966 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
1967
1968         PR bootstrap/45350
1969         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
1970         a comment.
1971
1972 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
1973
1974         * target.def (function_arg, function_incoming_arg): Remove const
1975         qualifier on CUMULATIVE_ARGS parameter.
1976         * targhooks.h (default_function_arg, default_function_incoming_arg):
1977         Likewise.
1978         * targhooks.c (default_function_arg, default_function_incoming_arg):
1979         Likewise.
1980         * config/i386/i386.c (ix86_function_arg): Likewise.
1981
1982 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
1983
1984         PR target/45336
1985         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
1986         SIGN_EXTENDs or ZERO_EXTENDs.
1987
1988 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
1989
1990         PR target/42172
1991         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
1992         Take its cost into account if nonnull.
1993         (insn_a_feeds_b): New static function.
1994         (combine_instructions): Look for four-insn combinations.
1995         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
1996         them into account when computing all_adjacent and looking for other
1997         uses.
1998         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
1999         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
2000         (try_combine): New arg I0.  Handle four-insn combinations.
2001         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
2002         like ELIM_I1.
2003
2004 2010-08-19  Jason Merrill  <jason@redhat.com>
2005
2006         PR c++/45307
2007         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
2008         if ctor is empty.
2009         (gimplify_modify_expr_rhs): Adjust.
2010
2011 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2012
2013         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
2014         bitmap_bit_p.
2015         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
2016         * dominance.c (iterate_fix_dominators): Likewise.
2017         * dse.c (set_usage_bits): Likewise.
2018         (set_position_unneeded, record_store): Likewise.
2019         * gimple-fold.c (get_maxval_strlen): Likewise.
2020         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
2021         * ipa-inline.c (update_caller_keys): Likewise.
2022         * ipa-split.c (verify_non_ssa_vars): Likewise.
2023         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
2024         (close_type_exposed_parameter, close_type_full_escape): Likewise.
2025         (close_addressof_down): Likewise.
2026         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
2027         (setup_allocno_left_conflicts_size): Likewise.
2028         (ira_reassign_conflict_allocnos): Likewise.
2029         (ira_reassign_pseudos): Likewise.
2030         * ira-emit.c (change_loop): Likewise.
2031         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
2032         * lto-streamer-out.c (write_symbol): Likewise.
2033         * predict.c (expr_expected_value_1): Likewise.
2034         * regstat.c (regstat_bb_compute_ri): Likewise.
2035         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2036         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
2037         * stmt.c (expand_case): Likewise.
2038         * tree-eh.c (emit_eh_dispatch): Likewise.
2039         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
2040         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
2041         Likewise.
2042         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
2043         (rdg_build_components): Likewise.
2044         * tree-object-size.c (collect_object_sizes_for): Likewise.
2045         * tree-sra.c (convert_callers): Likewise.
2046         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
2047         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
2048         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
2049
2050 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2051
2052         * config/i386/i386.md (*lea_1): Use P mode iterator.
2053         (lea add splitter): Also handle DImode operands.
2054         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
2055         predicate.  Do not use ix86_lea_for_add_ok.
2056         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
2057         (lea ashift splitter): Also handle DImode operands.
2058         (DImode lea ashift splitter): Remove splitter.
2059
2060 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
2061
2062         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
2063         ix86_binary_operator_ok.
2064
2065 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
2066
2067         PR rtl-optimization/44691
2068         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
2069         is not a register.
2070
2071 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2072
2073         PR target/45070
2074         * config/arm/arm.c (arm_output_epilogue): Ensure that return
2075          value of size 1-3 is handled correctly.
2076
2077 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
2078
2079         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
2080         type for the conditional has wide enough range.
2081
2082 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2083
2084         PR target/45327
2085         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
2086         ix86_binary_operator_ok.
2087
2088 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
2089
2090         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
2091         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
2092         code to output insn mnemonic.  Fix comment.
2093         (*addsi_1_zext): Add r-r-0 alternative 1.
2094         <TYPE_LEA>: Split insn to lea.
2095         <default>: Handle alternative 1.
2096         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
2097         multi-level if_then_else RTX to set "type" attribute.
2098         <default>: Handle alternative 2.
2099         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
2100         Use cond RTX instead of multi-level if_then_else RTX to set
2101         "type" attribute.
2102         <default>: Handle alternatives 2 and 4.
2103         (lea splitters): Update calls to ix86_lea_for_add_ok.
2104
2105         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
2106         argument.
2107         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
2108
2109 2010-08-18  Richard Guenther  <rguenther@suse.de>
2110
2111         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
2112         use operand helpers.
2113
2114 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
2115
2116         PR middle-end/45292
2117         * optabs.c (expand_bool_compare_and_swap): Expand pending
2118         pops before trying the optab.
2119
2120 2010-08-18  Yao Qi  <yao@codesourcery.com>
2121
2122         PR target/45094
2123         * config/arm/arm.c (output_move_double): Fix typo generating
2124         instructions ('ldr'->'str').
2125
2126 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2127
2128         PR rtl-optimization/42575
2129         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
2130         live ranges.
2131
2132 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2133
2134         * config/arm/arm-protos.h (arm_expand_sync): New.
2135         (arm_output_memory_barrier, arm_output_sync_insn): New.
2136         (arm_sync_loop_insns): New.
2137         * config/arm/arm.c (FL_ARCH7): New.
2138         (FL_FOR_ARCH7): Include FL_ARCH7.
2139         (arm_arch7): New.
2140         (arm_print_operand): Support %C markup.
2141         (arm_legitimize_sync_memory): New.
2142         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
2143         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
2144         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
2145         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
2146         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
2147         (arm_process_output_sync_insn, arm_output_sync_insn): New.
2148         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
2149         * config/arm/arm.h (struct arm_sync_generator): New.
2150         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
2151         (TARGET_HAVE_MEMORY_BARRIER): New.
2152         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
2153         * config/arm/arm.md: Include sync.md.
2154         (UNSPEC_MEMORY_BARRIER): New.
2155         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
2156         (VUNSPEC_SYNC_OP):New.
2157         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
2158         (sync_result, sync_memory, sync_required_value): New attributes.
2159         (sync_new_value, sync_t1, sync_t2): Likewise.
2160         (sync_release_barrier, sync_op): Likewise.
2161         (length): Add logic to length attribute defintion to call
2162         arm_sync_loop_insns when appropriate.
2163         * config/arm/sync.md: New file.
2164
2165 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2166
2167         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
2168         ENABLE_TREE_CHECKING.
2169         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
2170         and GCC >= 4.3.
2171
2172 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
2173
2174         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
2175         or optimizing for size, always avoid lea if possible.
2176
2177         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
2178
2179 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
2180
2181         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
2182         Dunmmy function with NULL return unless the target is
2183         OSX >= 10.6 (Darwin10).
2184
2185 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
2186
2187         * gcc.c (spec_function): Add remove-outfile.
2188         (remove_outfile_spec_function): New function.
2189         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
2190         * invoke.texi (replace-outfile): Document.
2191
2192 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
2193
2194         PR target/45296
2195         * reginfo.c (globalize_reg): Reject stack registers.
2196
2197 2010-08-17  Richard Guenther  <rguenther@suse.de>
2198
2199         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
2200         list of conditional equivalences.
2201         (free_all_edge_infos): Adjust.
2202         (record_equivalences_from_incoming_edge): Likewise.
2203         (record_cond): Likewise.
2204         (build_and_record_new_cond): Likewise.
2205         (record_conditions): Likewise.
2206         (dom_opt_leave_block): Likewise.
2207
2208 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
2209
2210         * doc/invoke.texi (ms-extension): Add documentation.
2211
2212 2010-08-17  Richard Guenther  <rguenther@suse.de>
2213
2214         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
2215
2216 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
2217
2218         PR c/40563
2219         * c-decl.c (diagnose_uninitialized_cst_member): New function.
2220         (finish_decl): Use it to issue a -Wc++-compat warning about
2221         uninitialized const field in struct or union.
2222
2223         (finish_struct): Use strip_array_types.
2224
2225 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
2226
2227         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
2228         functions.
2229         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
2230         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
2231         call block_nreverse here.
2232         (blocks_nreverse): Rename decl temporary to block.
2233
2234 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
2235
2236         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
2237         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
2238         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
2239         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
2240         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
2241         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
2242         thumb2_iorsi3): Delete.
2243         (orsi_notsi_si): No longer a named pattern.
2244         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
2245         * config/arm/predicates.md (shift_amount_operand): New.
2246         (mult_operator): New.
2247         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
2248         attr enabled): New.
2249         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
2250         arch matches t2.
2251         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
2252         (not_shiftsi_compare0): Likewise, renamed from
2253         arm_notsi_shiftsi_compare0.
2254         (not_shiftsi_compare0_scratch): Likweise, renamed from
2255         arm_notsi_shiftsi_compare0_scratch.
2256         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
2257         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
2258         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
2259         so that the register alternative is disabled when the shift_operator
2260         is MULT.  Use "M" as the constraint for constants.
2261         (arith_shiftsi splitter): Enable for TARGET_32BIT.
2262         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
2263         constraint for constants.
2264         (arith_shiftsi_compare0_scratch): Likewise.
2265         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
2266         Handle Thumb2 alternative.
2267
2268 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2269
2270         * doc/options.texi (NoDriverArg): Document.
2271         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
2272         -MDX and -MMDX.
2273         * opt-functions.awk (switch_flags): Handle NoDriverArg.
2274         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
2275         marking for CL_NO_DRIVER_ARG options when in the driver.
2276         * opts.h (CL_NO_DRIVER_ARG): Define.
2277         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2278         CL_COMMON): Update values.
2279
2280 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2281
2282         * common.opt: Add driver options.
2283         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
2284         * doc/options.texi (Driver, RejectDriver): Document.
2285         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
2286         print_prog_name, print_multi_directory, print_sysroot,
2287         print_multi_os_directory, print_multi_lib,
2288         print_sysroot_headers_suffix, report_times, combine_flag,
2289         use_pipes, wrapper_string): Remove.
2290         (save_switch, driver_unknown_option_callback,
2291         driver_wrong_lang_callback, driver_post_handling_callback,
2292         driver_handle_option): New.
2293         (spec_lang, last_language_n_infiles): Make file-scope static
2294         instead of local to process_command.
2295         (process_command): Use decode_cmdline_options_to_array and
2296         read_cmdline_option for option processing.  Compute have_c in
2297         prescan of decoded options.
2298         * opt-functions.awk (switch_flags): Handle Driver and
2299         RejectDriver.
2300         (var_type, var_type_struct): Handle Separate options as generating
2301         const char * variables.
2302         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
2303         CL_TARGET to be passed by caller if required.
2304         (decode_cmdline_options_to_array): Update comment.
2305         * opts.c (complain_wrong_lang): Handle options only valid for the
2306         driver.
2307         (decode_options): Update call to decode_cmdline_options_to_array.
2308         (print_filtered_help): Ignore driver-only options.
2309         (print_specific_help): Ignore CL_DRIVER.
2310         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
2311         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
2312         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
2313         Update values.
2314
2315 2010-08-16  Richard Guenther  <rguenther@suse.de>
2316
2317         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2318         TARGET_MEM_REF a bit.
2319         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
2320         (create_mem_ref_raw): Always create TMR_OFFSET, store the
2321         alias pointer type via it.
2322         (copy_mem_ref_info): Adjust.
2323         (maybe_fold_tmr): Likewise.
2324         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
2325         (reference_alias_ptr_type): Likewise.
2326         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
2327         adjust documentation of TMR_OFFSET operand.
2328         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
2329         use the alias pointer type.
2330         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
2331         initialize mem attrs but the TMR itself.
2332         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
2333         similar to MEM_REF.
2334         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
2335         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
2336         (unshare_and_remove_ssa_names): Likewise.
2337         (copy_ref_info): Adjust.
2338         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
2339         TARGET_MEM_REF case.
2340         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
2341         at TMR_ORIGINAL.
2342         * tree.h (TMR_ORIGINAL): Remove.
2343         * gimple.c (get_base_address): For TARGET_MEM_REF with a
2344         symbol return that.
2345         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
2346         with a symbol.
2347         (get_addr_base_and_unit_offset): Likewise.
2348         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
2349         TARGET_MEM_REFs.
2350         (indirect_ref_may_alias_decl_p): Likewise.
2351         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
2352
2353 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
2354
2355         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
2356         with GCC version 4.6, the default setting (when not optimizing
2357         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
2358         been changed to -fomit-frame-pointer.
2359
2360 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
2361
2362         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
2363         Darwin10.  Do not link libgcc.a for Darwin >= 9.
2364
2365 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
2366
2367         * doc/invoke.texi (Warning Options): Fix terminology and markup
2368         in the description of how unknown warning options are handled.
2369
2370 2010-08-15  Ira Rosen  <irar@il.ibm.com>
2371
2372         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
2373         in basic blocks.
2374         (vect_supportable_dr_alignment): Check alignment for basic blocks.
2375         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
2376         data references.
2377         (vect_bb_vectorization_profitable_p): New function.
2378         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
2379         check if it's worthwhile to vectorize the basic block.
2380
2381 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
2382
2383         * reload.h (register_move_cost, memory_move_secondary_cost,
2384         secondary_reload_class): Adjust prototype.
2385         * rtl.h (reg_class_subset_p): Adjust prototype.
2386         * reload.c (secondary_reload_class): Change arguments type from
2387         enum reg_class to reg_class_t. Change result type to reg_class_t.
2388         * reginfo.c (register_move_cost, reg_class_subset_p): Change
2389         arguments type from enum reg_class to reg_class_t.
2390         (memory_move_secondary_cost): Change arguments type from
2391         enum reg_class to reg_class_t. Change type of saved_flags to
2392         reg_class_t.
2393
2394         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2395         Remove macros.
2396         (mips_cost): Remove.
2397         (struct mips_rtx_cost_data): Moved to mips.c.
2398         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
2399         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
2400         (mips_cost): Make static.
2401         (mips_canonicalize_move_class): Change argument type to reg_class_t.
2402         Change result type to reg_class_t.
2403         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
2404         type from enum reg_class to reg_class_t.
2405         (mips_register_move_cost): Make static. Change arguments
2406         type from enum reg_class to reg_class_t.
2407         (mips_memory_move_cost): New function.
2408         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2409
2410 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
2411
2412         PR rtl-optimization/43358
2413         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
2414         of a single hard register, using simplify_subreg_regno to decide
2415         what that register should be.
2416
2417 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
2418
2419         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
2420         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
2421         (loongson_pmull<V_suffix>): Rename to...
2422         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
2423
2424 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
2425
2426         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
2427         which support dwarf2.
2428         * config/i386/i386.c (override_options): Same.
2429
2430 2010-08-13  Jie Zhang  <jie@codesourcery.com>
2431
2432         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
2433
2434 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
2435
2436         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
2437         -MMD.
2438
2439 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
2440
2441         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
2442         up dot_prod pattern searching if a stmt is outside the loop.
2443
2444 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
2445             Uros Bizjak  <ubizjak@gmail.com>
2446
2447         * config.gcc: Handle --enable-frame-pointer.
2448
2449         * configure.ac: Add --enable-frame-pointer.
2450         * configure: Regenerated.
2451
2452         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
2453         (override_options): If not configured with --enable-frame-pointer,
2454         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
2455         optimizing for size), -fasynchronous-unwind-tables and
2456         -maccumulate-outgoing-args by default.
2457
2458 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2459
2460         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
2461
2462         PR middle-end/45262
2463         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
2464         -a overflows.  Normalize the range.
2465
2466 2010-08-12  Richard Guenther  <rguenther@suse.de>
2467
2468         PR tree-optimization/45232
2469         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
2470         for types with undefined overflow.
2471         (reassociate_bb): Allow re-associating of bit and min/max
2472         operations for types with undefined overflow.
2473         * tree-ssa-forwprop.c (associate_plusminus): New function.
2474         (tree_ssa_forward_propagate_single_use_vars): Call it.
2475
2476 2010-08-12  Richard Guenther  <rguenther@suse.de>
2477
2478         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
2479         * tree-ssa-alias.c (get_ptr_info): Move ...
2480         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
2481         align and misalign fields conservatively.
2482         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
2483         derive alignment information.
2484         (evaluate_stmt): Derive alignment information from memory
2485         allocation functions.
2486         * tree.h (get_pointer_alignment): Make unsigned.
2487         * builtins.c (get_object_alignment): Use alignment information we
2488         have computed for pointers.
2489         (get_pointer_alignment): Likewise.  Make conservative, return
2490         and unsigned value.
2491         (expand_builtin_strlen): Adjust.
2492         (expand_builtin_memcmp): Likewise.
2493         (expand_builtin_strcmp): Likewise.
2494         (expand_builtin_strncmp): Likewise.
2495         (get_builtin_sync_mem): Use at least mode alignment.
2496         (fold_builtin_memset): Adjust.
2497         (fold_builtin_memory_op): Likewise.
2498         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
2499         information also dump pointer alignment knowledge.
2500         (dump_gimple_stmt): Likewise.
2501
2502 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
2503
2504         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
2505         (EMPTY_FIELD_BOUNDARY): Remove.
2506         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
2507
2508 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2509
2510         PR debug/45259
2511         * caller-save.c (save_call_clobbered_regs): Only swap notes with
2512         DEBUG_INSNs if n_regs_saved.
2513
2514 2010-08-12  Wei Guozhi  <carrot@google.com>
2515
2516         PR target/44999
2517         * config/arm/arm.md (andsi3): Change to zero extension if possible.
2518         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
2519
2520 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
2521
2522         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
2523
2524         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
2525
2526 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2527
2528         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
2529         the case removed in the previous patch, when the only phi argument
2530         is defined in the same loop as the phi node itself.  Handle it
2531         separately from the invariant case by both propagating it outside
2532         the region and replacing the phi node with an assign.
2533
2534 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2535
2536         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
2537         constant phi nodes with one argument are is_gimple_min_invariant
2538         and SSA_NAME_IS_DEFAULT_DEF.
2539
2540 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2541
2542         * graphite-cloog-util.c (oppose_constraint):
2543         Extend loop counter's value range (CLOOG_ORG).
2544         (cloog_matrix_to_ppl_constraint): Same.
2545         (new_Constraint_System_from_Cloog_matrix): Same.
2546         * graphite-cloog-compat.h (matrix_num_type): New.
2547
2548 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2549
2550         * graphite.c (graphite_initialize): Do not initialize
2551         CLooG and initialize the Parma Polyhedra Library
2552         manually when using CLOOG_ORG.
2553         (graphite_finalize): Do not finalize CLooG and finalize
2554         the Parma Polyhedra Library manually when using CLOOG_ORG.
2555         * graphite-cloog-compat.h (cloog_initialize): Hide function
2556         when using CLOOG_ORG.
2557         (cloog_finalize): Same.
2558
2559 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2560
2561         * graphite-clast-to-gimple.c (free_scattering): Change
2562         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
2563         (CLOOG_ORG).
2564         (build_cloog_prog): Same.
2565         * graphite-cloog-compat.h (cloog_domain): Removed.
2566         (cloog_scattering): New.
2567         (cloog_set_domain): Removed.
2568         (cloog_set_scattering): New.
2569         (cloog_next_domain): Removed.
2570         (cloog_next_scattering): New.
2571         (cloog_set_next_domain): Removed.
2572         (cloog_set_next_scattering): New.
2573         (CloogScatteringList): New.
2574         (CloogScattering): New.
2575         (cloog_scattering_free): New.
2576         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
2577         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
2578         New.
2579
2580 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2581
2582         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
2583         CloogState.
2584         (set_cloog_options): Same.
2585         (print_clast_stmt): Same.
2586         (scop_to_clast): Same.
2587         (print_generated_program): Same.
2588         (gloog): Same.
2589         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
2590         (scop_to_clast): Extend with CloogState.
2591         * graphite-cloog-util.c: Include graphite-cloog-compat.h
2592         (new_Cloog_Domain_from_ppl_Polyhedron):
2593         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
2594         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
2595         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2596         * graphite-cloog-util.h (build_cloog_prog): Same.
2597         * graphite-cloog-copat.h (build_cloog_prog): New.
2598         (CloogState): New.
2599         (cloog_state_malloc): New.
2600         (cloog_state_free): New.
2601         (cloog_loop_malloc): New.
2602         (cloog_options_malloc): New.
2603         (cloog_statement_alloc): New.
2604         (cloog_domain_from_cloog_matrix): New.
2605         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2606         (new_Cloog_Domain_from_ppl_Polyhedron): New.
2607
2608 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2609
2610         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
2611         type of NAME now depends on used CLooG version.
2612         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
2613         (gcc_type_for_clast_expr): Same.
2614         (print_clast_stmt): Replace pprint with clast_pprint.
2615         * graphite-cloog-compat.h: Provide compatibility macros for
2616         CLooG Legacy.
2617         (clast_name_p): New.
2618         (clast_expr_term): New.
2619         (clast_expr_red): New.
2620         (clast_expr_bin): New.
2621         (clast_pprint): New.
2622
2623 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2624
2625         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
2626         compatible to newer CLooG releases (CLOOG_ORG).
2627         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
2628         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
2629         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
2630         (build_cloog_prog) : New.
2631         (cloog_program_extract_scalars): New.
2632         (cloog_program_scatter): New.
2633
2634 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2635
2636         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
2637         conditionally (CLOOG_ORG).
2638         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
2639         (cloog_statement_usr): New.
2640         (cloog_domain): Same.
2641         (cloog_set_domain): Same.
2642         (cloog_next_domain): Same.
2643         (cloog_set_next_domain): Same.
2644         (cloog_program_nb_scattdims): Same.
2645         (cloog_program_set_nb_scattdims): Same.
2646         (cloog_program_names): Same.
2647         (cloog_program_set_names): Same.
2648         (cloog_program_set_context): Same.
2649         (cloog_program_set_loop): Same.
2650         (cloog_program_blocklist): Same.
2651         (cloog_program_set_blocklist): Same.
2652         (cloog_program_scaldims): Same.
2653         (cloog_program_set_scaldims): Same.
2654         (cloog_names_nb_parameters): Same.
2655         (cloog_names_set_nb_parameters): Same.
2656         (cloog_names_parameters): Same.
2657         (cloog_names_set_parameters): Same.
2658         (cloog_names_set_nb_iterators): Same.
2659         (cloog_names_set_iterators): Same.
2660         (cloog_names_set_nb_scattering): Same.
2661         (cloog_names_set_scattering): Same.
2662         (cloog_statement_set_usr): Same.
2663         (cloog_loop_set_next): Same.
2664         (cloog_loop_set_domain): Same.
2665         (cloog_loop_set_block): Same.
2666         (cloog_block_list_next): Same.
2667         (cloog_block_list_set_next):
2668         (cloog_block_list_set_block): Same.
2669
2670 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2671
2672         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
2673         a bool.
2674         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
2675         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
2676         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
2677         when something has been changed.
2678         (rewrite_commutative_reductions_out_of_ssa): Same.
2679
2680 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2681
2682         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
2683         handle the case when def is in the sese region.
2684         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
2685         for invariant expressions.
2686         (rewrite_cross_bb_phi_deps): Removed.
2687         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
2688         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
2689         rewrite_cross_bb_phi_deps.
2690
2691 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2692
2693         * graphite-sese-to-poly.c
2694         (rewrite_commutative_reductions_out_of_ssa_loop): Call
2695         scev_analyzable_p only on is_gimple_reg
2696
2697 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2698
2699         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
2700         (rewrite_close_phi_out_of_ssa): Propagate constant values or
2701         parametric expressions outside the scop region.
2702         (rewrite_cross_bb_scalar_deps): Same.
2703         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
2704
2705 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2706
2707         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
2708         SSA_NAME_DEF_STMT only on SSA_NAMEs.
2709
2710 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2711
2712         * tree-scalar-evolution.c (instantiate_scev_name): Do not
2713         instantiate default definitions.
2714
2715 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
2716             Sebastian Pop  <sebastian.pop@amd.com>
2717
2718         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
2719         (loop_exits_from_bb_p): New.
2720         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
2721         (loop_exits_from_bb_p): Declared.
2722         * graphite-scop-detection.c (scopdet_basic_block_info): Call
2723         loop_exits_to_bb_p.
2724
2725 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2726
2727         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
2728         extra parameter for the region.  Call scev_analyzable_p.
2729         (rewrite_reductions_out_of_ssa): Update call to
2730         rewrite_close_phi_out_of_ssa.
2731         (rewrite_cross_bb_phi_deps): Same.
2732         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
2733         parameter for the region.  Call scev_analyzable_p.
2734         (rewrite_commutative_reductions_out_of_ssa): Update call to
2735         rewrite_commutative_reductions_out_of_ssa_loop.
2736
2737 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2738
2739         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
2740
2741 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2742
2743         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
2744         SSA scalar phi nodes that can be scev_analyzable_p.
2745
2746 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2747
2748         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
2749         handle SSA_NAME_IS_DEFAULT_DEF.
2750
2751 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2752
2753         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
2754
2755 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2756
2757         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
2758         case non close-phi nodes with one argument.
2759
2760 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2761
2762         * sese.h (scev_analyzable_p): Scevs could be expressions without
2763         chrecs and still be scev_analyzable_p.
2764
2765 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2766
2767         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2768
2769 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2770
2771         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
2772         * cfgloop.h (struct loop): Remove single_iv field.
2773         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
2774         (scop_canonicalize_loops): Removed.
2775         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
2776         over all the loop phi nodes in loop->header.
2777         (build_poly_scop): Remove use of scop_canonicalize_loops.
2778
2779 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2780
2781         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
2782         handle GIMPLE_CALL.
2783
2784 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2785
2786         * tree-chrec.c (chrec_apply): Should only apply to the specified
2787         variable.  Also handle multivariate chains of recurrences that
2788         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
2789
2790 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2791
2792         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
2793         (debug_clast_name_indexes_1): Removed.
2794         (debug_clast_name_indexes): Removed.
2795         (pbb_to_depth_to_oldiv): Removed.
2796         (build_iv_mapping): Replace the use of rename_map with iv_map.
2797         (translate_clast_user): Remove uses of rename_map.  Allocate and
2798         free iv_map.
2799         (translate_clast_for_loop): Remove uses of rename_map.
2800         (translate_clast_for): Same.
2801         (translate_clast_guard): Same.
2802         (translate_clast): Same.
2803         (gloog): Same.
2804         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
2805         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
2806         * sese.c (set_rename): Now static.
2807         (rename_variables_in_stmt): Removed.
2808         (rename_uses): New.
2809         (is_parameter): Removed.
2810         (is_iv): Removed.
2811         (expand_scalar_variables_call): Removed.
2812         (expand_scalar_variables_ssa_name): Removed.
2813         (expand_scalar_variables_expr): Removed.
2814         (expand_scalar_variables_stmt): Removed.
2815         (expand_scalar_variables): Removed.
2816         (rename_variables): Removed.
2817         (remove_condition): Removed.
2818         (get_true_edge_from_guard_bb): Removed.
2819         (get_false_edge_from_guard_bb): Removed.
2820         (struct igp): Removed.
2821         (default_before_guard): Removed.
2822         (convert_for_phi_arg): Removed.
2823         (add_guard_exit_phis): Removed.
2824         (insert_guard_phis): Removed.
2825         (graphite_copy_stmts_from_block): Now also uses iv_map and a
2826         region.  Do not copy conditions.  Do not copy induction variables.
2827         Call rename_uses.
2828         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
2829         the translated statement.  Use the iv_map for the induction
2830         variable renaming.
2831         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2832         (set_rename): Removed declaration.
2833         (scev_analyzable_p): ...here.
2834         * tree-chrec.c (chrec_apply_map): New.
2835         * tree-chrec.h (chrec_apply_map): Declared.
2836
2837 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2838
2839         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
2840         insert_loop_close_phis.
2841         * sese.c (name_defined_in_loop_p): Removed.
2842         (expr_defined_in_loop_p): Removed.
2843         (alive_after_loop): Removed.
2844         (close_phi_not_yet_inserted_p): Removed.
2845         (struct alep): Removed.
2846         (add_loop_exit_phis): Removed.
2847         (insert_loop_close_phis): Removed.
2848
2849 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2850
2851         * graphite-cloog-util.c
2852         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
2853         * graphite-poly.c
2854         (psct_scattering_dim_for_loop_depth): Same.
2855
2856 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2857
2858         * graphite-cloog-util.h: Added cloog.h.
2859         * graphite-blocking.c: Removed cloog.h.
2860         * graphite-dependences.c: Same.
2861         * graphite-interchange.c: Same.
2862         * graphite-poly.c: Same.
2863         * graphite-ppl.c: Same.
2864         * graphite-scop-detection.c: Same.
2865         * graphite-sese-to-poly.c:
2866         Removed cloog.h.
2867         Removed graphite-clast-to-gimple.h.
2868         (check_poly_representation): Removed (unused).
2869         * graphite-sese-to-poly.h
2870         (check_poly_representation): Removed (unused).
2871
2872 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2873
2874         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
2875         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
2876         (graphite-cloog-util.o): New.
2877         (graphite-ppl.o): Added graphite-cloog-util.h.
2878         * graphite-clast-to-gimple.c:
2879         Added graphite-cloog-util.h to include statements.
2880         * graphite-cloog-util.c: New.
2881         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
2882         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2883         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2884         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2885         (insert_constraint_into_matrix): Same.
2886         (ppl_Constrain_System_number_of_constraints): Same.
2887         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
2888         (oppose_constraint): Same.
2889         (cloog_matrix_to_ppl_constraint): Same.
2890         (new_Constraint_System_from_Cloog_Matrix): Same.
2891         * graphite-cloog-util.h: New.
2892         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
2893         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2894         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2895         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2896         (insert_constraint_into_matrix): Same.
2897         * graphite-ppl.c:
2898         Added graphite-cloog-util.h to include statements.
2899         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
2900         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2901         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2902         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2903         (insert_constraint_into_matrix): Same.
2904         (ppl_Constrain_System_number_of_constraints): Same.
2905         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
2906         (oppose_constraint): Same.
2907         (cloog_matrix_to_ppl_constraint): Same.
2908         (new_Constraint_System_from_Cloog_Matrix): Same.
2909         * graphite-ppl.h:
2910         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
2911         graphite-cloog-util.h.
2912         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2913         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2914         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2915         (insert_constraint_into_matrix): Same.
2916
2917 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2918
2919         * graphite-clast-to-gimple.c
2920         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
2921         (precision_for_interval): Same.
2922         (gcc_type_for_interval): Same.
2923         (compute_type_for_level): Same.
2924         * graphite-interchange.c
2925         (lst_interchange_profitable_p): Same.
2926         * graphite-poly.c
2927         (psct_scattering_dim_for_loop_depth): Same.
2928         * graphite-ppl.c
2929         (ppl_max_for_le_pointset): Same.
2930         (ppl_min_for_le_pointset): Same.
2931
2932 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2933
2934         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
2935         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
2936
2937 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2938
2939         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
2940         rewrite_close_phi_out_of_ssa.
2941
2942 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2943
2944         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
2945
2946 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2947
2948         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
2949         rename_map.
2950         * sese.c (debug_rename_map): Same.
2951         (get_rename): Same.
2952         (set_rename): Same.
2953         (rename_variables_in_stmt): Same.
2954         (expand_scalar_variables_call): Same.
2955         (expand_scalar_variables_ssa_name): Same.
2956         (expand_scalar_variables_expr): Same.
2957         (expand_scalar_variables_stmt): Same.
2958         (expand_scalar_variables): Same.
2959         (rename_variables): Same.
2960         (graphite_copy_stmts_from_block): Same.
2961         (copy_bb_and_scalar_dependences): Same.
2962
2963 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2964
2965         * graphite-clast-to-gimple.c (copy_renames): Removed.
2966         (translate_clast_for): Do not call copy_renames.
2967         (translate_clast_guard): Same.
2968
2969 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2970
2971         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
2972         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
2973         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
2974         before rewrite_cross_bb_scalar_deps.
2975
2976 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2977
2978         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
2979         Early return in when flag_associative_math is not set.
2980
2981 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2982
2983         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
2984         of SSA copies on edges except for loop->latch.
2985
2986 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2987
2988         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
2989         Split out of rewrite_reductions_out_of_ssa.
2990         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
2991         Declared.
2992         * graphite.c (graphite_transform_loops): Call it.
2993
2994 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2995
2996         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
2997
2998 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
2999
3000         * dbgcnt.def (graphite_scop): New counter.
3001         * graphite.c: Include dbgcnt.h.
3002         (graphite_transform_loops): Use new counter to limit transformations.
3003         * Makefile.in (graphite.o): Depend on DBGCNT_H.
3004
3005 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3006
3007         * passes.c (init_optimization_passes): Add pass_graphite.
3008         Schedule a pass_copy_prop before pass_graphite_transforms.
3009         * timevar.def (TV_GRAPHITE): Declared.
3010         * tree-pass.h (pass_graphite): Declared.
3011         * tree-ssa-loop.c (pass_graphite): New.
3012
3013 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3014
3015         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
3016         Remove calls to rename_nb_iterations and rename_sese_parameters.
3017         * graphite-clast-to-gimple.h (gloog): Update declaration.
3018         * graphite.c (graphite_transform_loops): Update call to gloog.
3019         * sese.c (rename_variables_in_expr): Removed.
3020         (rename_nb_iterations): Removed.
3021         (rename_sese_parameters): Removed.
3022         * sese.h (rename_nb_iterations): Removed.
3023         (rename_sese_parameters): Removed.
3024
3025 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3026
3027         * graphite-clast-to-gimple.c (gloog): Remove call to
3028         sese_adjust_liveout_phis.
3029         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
3030         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
3031         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
3032         rewrite_phi_out_of_ssa.
3033         * sese.c (get_vdef_before_sese): Removed.
3034         (sese_adjust_vphi): Removed.
3035         (sese_adjust_liveout_phis): Removed.
3036         * sese.h (sese_adjust_liveout_phis): Removed.
3037
3038 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3039
3040         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
3041         argument for the place after which to insert the out of SSA copy.
3042         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
3043         (rewrite_phi_out_of_ssa): Same.
3044         (rewrite_cross_bb_scalar_deps): Same.
3045         (insert_copyout): Removed.
3046         (insert_copyin): Removed.
3047         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
3048         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
3049         insert_copyin.
3050
3051 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3052
3053         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
3054         (rewrite_reductions_out_of_ssa): Same.
3055         (rewrite_commutative_reductions_out_of_ssa): Same.
3056         (build_poly_scop): Do not call these functions.
3057         * graphite-sese-to-poly.h (build_poly_scop): Declared.
3058         (rewrite_reductions_out_of_ssa): Declared.
3059         (rewrite_commutative_reductions_out_of_ssa): Declared.
3060         * graphite.c (graphite_transform_loops): Call on every scop
3061         rewrite_commutative_reductions_out_of_ssa before calling
3062         rewrite_reductions_out_of_ssa and build_scop_bbs.
3063
3064 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3065
3066         * graphite-dependences.c (dot_deps): Make system call to dotty run
3067         in background.
3068         (dot_deps_stmt): Same.
3069         * graphite-poly.c (dot_lst): Same.
3070
3071 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3072
3073         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
3074         phi_arg_in_outermost_loop.
3075         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
3076         (remove_invariant_phi): Same.
3077
3078 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
3079
3080         * target.def (output_addr_const_extra): New hook.
3081         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
3082         * doc/tm.texi: Regenerate.
3083         * targhooks.c (default_asm_output_addr_const_extra): New function.
3084         * targhooks.h (default_asm_output_addr_const_extra): Declare.
3085         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
3086         target hook.
3087
3088         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3089         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
3090         * config/i386/i386.h (output_addr_const_extra): Rename to...
3091         (i386_asm_output_addr_const_extra): ...this. Make static.
3092         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3093
3094 2010-08-11  Richard Henderson  <rth@redhat.com>
3095
3096         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
3097
3098 2010-08-11  Nick Clifton  <nickc@redhat.com>
3099
3100         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
3101         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
3102         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3103         stormy16-lib2-cmpsi.c.
3104
3105         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
3106         -O2.
3107
3108 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
3109
3110         * opts.h (struct cl_option_handler_func): Make handler take
3111         cl_decoded_option structure as parameter, not individual elements.
3112         (struct cl_option_handlers): Make callbacks take cl_decoded_option
3113         structure as parameter, not individual elements.
3114         (handle_option): Take cl_decoded_option structure as parameter,
3115         not individual elements.
3116         (handle_generated_option): Declare.
3117         * opts-common.c (handle_option): Take cl_decoded_option structure
3118         as parameter, not individual elements.  Update calls to callback
3119         and handler functions.
3120         (handle_generated_option): New.
3121         (read_cmdline_option): Update calls to callback functions and
3122         handle_option.
3123         * opts.c (common_handle_option, complain_wrong_lang,
3124         unknown_option_callback, post_handling_callback,
3125         lang_handle_option, target_handle_option): Take cl_decoded_option
3126         structure as parameter, not individual elements.
3127         (lang_handle_option, target_handle_option, common_handle_option):
3128         Assert option has at most one argument.
3129         (enable_warning_as_error): Call handle_generated_option instead of
3130         handle_option.  Do not pass -Werror argument as argument of
3131         generated option.
3132
3133 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3134
3135         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3136         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3137         (SUBWORD_BOOL_CAS): Likewise.
3138         (SUBWORD_SYNC_OP): Likewise.
3139         (SUBWORD_TEST_AND_SET): Likewise.
3140         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3141         (SUBWORD_SYNC_OP): Likewise.
3142         (OP_AND_FETCH_WORD): Likewise.
3143
3144 2010-08-10  Xinliang David Li  <davidxl@google.com>
3145
3146         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
3147         compute max/min offset in address.
3148
3149 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
3150
3151         * ira-live.c: Include sbitmap.h.
3152         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
3153         Compress live ranges even more.
3154
3155 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3156
3157         * coverage.c (ctr_labels): Delete.
3158
3159 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3160
3161         PR bootstrap/45177
3162         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
3163         test here from arm_gen_load_multiple_1.
3164         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
3165         multiple_operation_profitable_p.
3166
3167 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3168
3169         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
3170         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
3171
3172 2010-08-10  Richard Henderson  <rth@redhat.com>
3173
3174         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
3175         after saving registers.  Assert that SSE registers are only saved
3176         with a sufficiently aligned frame.
3177         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
3178         remove stack_realign_fp handling.
3179         (ix86_expand_prologue): Save int registers before stack_realign_fp,
3180         and do not mark the stack alignment as frame related.
3181         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
3182
3183         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
3184         saves when re-aligning the stack.
3185
3186 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3187
3188         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
3189         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
3190         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
3191
3192 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
3193
3194         * dwarf2out.c (struct die_struct): Move die_tag to the end.
3195
3196 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
3197
3198         * config/arm/iterators.md: New file.
3199         * config/arm/arm.md: Include iterators.md.
3200         (QHSI): Move to new file.
3201         (LTUGEU, cnb, optab, ior_xor): Likewise.
3202         * config/arm/iwmmxt.md (VMMX): Move to new file.
3203         (VSHFT, MMX_char): Likewise.
3204         * config/arm/neon.md (VD): Move to new file.
3205         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
3206         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
3207         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
3208         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
3209         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
3210         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
3211         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
3212         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
3213         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
3214         (Is_d_reg, V_mode_nunits): Likewise.
3215         * config/arm/vec-common.md (VALL): Move to new file.
3216         (VALLW, VINT, VINTW): Likewise.
3217
3218 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
3219
3220         PR middle-end/45182
3221         * combine.c (make_compound_operation): Don't try to convert
3222         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
3223
3224 2010-08-10  Richard Guenther  <rguenther@suse.de>
3225
3226         * tree.h (get_object_alignment): Adjust prototype.
3227         * builtins.c (get_object_alignment): Return unsigned int,
3228         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
3229         and TARGET_MEM_REF properly.
3230         (get_pointer_alignment): Adjust.
3231         * emit-rtl.c (get_mem_align_offset): Adjust comment.
3232         (set_mem_attributes_minus_bitpos): Adjust.
3233         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
3234
3235 2010-08-10  Richard Guenther  <rguenther@suse.de>
3236
3237         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
3238         (copy_prop_visit_assignment): Simplify.
3239         (copy_prop_visit_stmt): Also visit assignments from
3240         constants.
3241         (copy_prop_visit_phi_node): Use operand_equal_p.
3242
3243 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3244
3245         * ipa-split.c (find_split_points): Free stack.
3246
3247 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3248
3249         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
3250         * tree.c (tree_node_kind): Delete corresponding entries.
3251
3252 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3253
3254         * alias.c (may_alias_p): Remove unused ret.
3255
3256 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
3257
3258         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
3259         alias_sets_conflict_p.
3260         (walk_mems_1): Moved from alias.c.
3261         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
3262         in alias.c.
3263         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
3264         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
3265         * alias.c (walk_mems_2): Moved to ddg.c.
3266         (walk_mems_1): Ditto.
3267         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
3268         to ddg.c.
3269         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
3270         disambiguation.
3271         *(may_alias_p): New function to check whether two memory expression
3272         may alias or not. Currently used in buidling inter-iteration memory
3273         dependence.
3274         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
3275         (insn_alias_sets_conflict_p): Removed
3276         *rtl.h (may_alias_p): New function prototype.
3277
3278 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3279
3280         * tree.c (nreverse): Assert that we don't have a BLOCK.
3281
3282 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3283
3284         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
3285         * config/arm/arm.c (arm_get_pcs_model): Likewise.
3286         * config/avr/avr.c (init_cumulative_args): Likewise.
3287         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3288         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3289         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
3290         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3291         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3292         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3293         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3294         * dwarf2out.c (gen_subprogram_die): Likewise.
3295         * function.c (allocate_struct_function): Likewise.
3296         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
3297         (deserves_ellipsis): Delete.
3298
3299 2010-08-09  Richard Guenther  <rguenther@suse.de>
3300
3301         * tree-ssa-copy.c (cached_last_copy_of): Remove.
3302         (valueize_val): New function.
3303         (get_last_copy_of): Remove.
3304         (set_copy_of_val): Simplify.
3305         (dump_copy_of): Likewise.
3306         (copy_prop_visit_cond_stmt): Use valueize_val.
3307         (copy_prop_visit_phi_node): Properly handle unvisited names.
3308         Drop code managing copy-of chains.
3309         (init_copy_prop): Adjust.
3310         (fini_copy_prop): Likewise.
3311         (execute_copy_prop): Remove obsolete comment.
3312
3313 2010-08-09  Richard Guenther  <rguenther@suse.de>
3314
3315         PR middle-end/44632
3316         * function.c (gimplify_parameters): Do not clear addressable
3317         bit of the original parameter.
3318
3319 2010-08-09  Richard Guenther  <rguenther@suse.de>
3320
3321         PR middle-end/45212
3322         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
3323         alignment from MEM_REF offset only if we took it from the
3324         base object.
3325
3326 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
3327
3328         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
3329
3330 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3331
3332         * c-tree.h (build_arg_info): Declare.
3333         * c-decl.c (build_arg_info): Define.
3334         (get_parm_info): Call it.  Delete initialization code.
3335         * c-parser.c (c_parser_parms_declarator): Likewise.
3336         (c_parser_parms_list_declaractor): Likewise.
3337
3338 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3339
3340         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
3341         (struct c_arg_info): Change type of tags field.
3342         * c-decl.c (grokdeclarator): Update for changed type of tags field.
3343         (get_parm_info): Likewise.
3344         (store_parm_decls_newstyle): Likewise.
3345
3346 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3347
3348         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
3349         (branch_island_list): Delete.
3350         (branch_islands): Declare.
3351         (add_compiler_branch_island): Adjust for branch_islands instead of
3352         branch_island_list.
3353         (macho_branch_islands): Likewise.
3354         (no_previous_def): Likewise.
3355         (get_prev_label): Likewise.
3356
3357 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3358
3359         PR boehm-gc/34544
3360         * gthr-posix.h (__gthread_start): Delete.
3361         (__gthread_active_init): Use pthread_default_stacksize_np instead of
3362         pthread_create to determine if hpux pthreads are active.
3363         * gthr-posix95.h (__gthread_start): Delete.
3364         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
3365
3366 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
3367
3368         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
3369         _WIN64 not expanded.
3370
3371 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
3372             H.J. Lu  <hongjiu.lu@intel.com>
3373
3374         PR target/45213
3375         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
3376         to output 32bit SFmode immediate as 8 byte sign extended value.
3377
3378 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3379
3380         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3381         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3382         (SUBWORD_BOOL_CAS): Likewise.
3383         (SUBWORD_SYNC_OP): Likewise.
3384         (SUBWORD_TEST_AND_SET): Likewise.
3385         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3386         (SUBWORD_SYNC_OP): Likewise.
3387         (OP_AND_FETCH_WORD): Likewise.
3388
3389 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3390
3391         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
3392         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
3393         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
3394         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
3395         generic part.
3396         (cortex_a9_sched_adjust_cost): New function.
3397         (xscale_sched_adjust_cost): New function.
3398         * config/arm/arm-protos.h (struct tune_params): New field
3399         sched_adjust_cost.
3400         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
3401
3402 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
3403
3404         PR target/44942
3405         * config/sparc/sparc.c (function_arg_advance): Always take into account
3406         the padding, if any.
3407
3408 2010-08-06  Richard Guenther  <rguenther@suse.de>
3409
3410         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
3411         (dump_lattice_value): Dump it.
3412         (get_default_value): Adjust.
3413         (get_constant_value): Likewise.
3414         (set_value_varying): Likewise.
3415         (set_lattice_value): Make sure to not go up the lattice
3416         with bitwise constant values.
3417         (get_value_for_expr): Handle ADDR_EXPRs.
3418         (value_to_double_int): New function.
3419         (get_value_from_alignment): Likewise.
3420         (do_dbg_cnt): Adjust.
3421         (ccp_lattice_meet): Handle partially constant values.
3422         (bit_value_unop_1): New function.
3423         (bit_value_binop_1): Likewise.
3424         (bit_value_unop): Likewise.
3425         (bit_value_binop): Likewise.
3426         (evaluate_stmt): Track partially constant values if
3427         flag_tree_bit_ccp is set.
3428         (ccp_fold_stmt): Dump if we folded a predicate.
3429         (ccp_visit_stmt): Adjust.
3430         * common.opt (ftree-bit-ccp): New flag.
3431         * doc/invoke.texi (ftree-bit-ccp): Document.
3432         * opts.c (decode_options): Enable bit-CCP at -O1.
3433
3434 2010-08-06  Alan Modra  <amodra@gmail.com>
3435
3436         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
3437         and -mrelocatable-lib description.
3438
3439 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3440
3441         From Martin Thuresson  <martint@google.com>
3442         * postreload.c (reload_cse_simplify_operands): Use
3443         SET_REGNO_RAW instead of SET_REGNO.
3444         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
3445         SET_REGNO.
3446         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
3447         instead of SET_REGNO.
3448         * rtl.h (SET_REGNO_RAW): New macro.
3449
3450 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
3451
3452         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
3453         computations.  Fix formatting issues.
3454         (num_sign_bit_copies1): Likewise.
3455         (canonicalize_condition): Likewise.
3456
3457 2010-08-05  Richard Henderson  <rth@redhat.com>
3458
3459         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
3460         (floor_log2): Use clz_hwi.
3461         (exact_log2): Use ctz_hwi.
3462         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
3463         * builtins.c (fold_builtin_bitop): Use them.
3464         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3465         * combine.c (get_pos_from_mask): Use ctz_hwi.
3466         * double-int.c (double_int_ctz): Likewise.
3467         * explow.c (force_reg): Likewise.
3468         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
3469
3470 2010-08-05  Richard Henderson  <rth@redhat.com>
3471
3472         PR target/45189
3473         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
3474         the alignment constant is properly sign-extended.
3475
3476 2010-08-05  Richard Guenther  <rguenther@suse.de>
3477
3478         * expr.c (store_expr): Use emit_block_move only if both
3479         source and target are MEMs.  Use store_bit_field if only
3480         the target is a MEM.
3481
3482 2010-08-05  Richard Henderson  <rth@redhat.com>
3483
3484         PR debug/45188
3485         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
3486         (INCOMING_RETURN_ADDR_RTX): Likewise.
3487         (dwarf2out_do_frame): Remove conditional compilation.
3488         (dwarf2out_frame_init): Likewise.
3489
3490 2010-08-05  Nicolas Setton  <setton@adacore.com>
3491
3492         * gcov.c (flag_display_progress): New static variable.
3493         (main): Display progress info on standard output if requested.
3494         (options): Add -d/--display-progress.
3495         (print_usage): Print them.
3496         (process_args): Handle them.
3497         * doc/gcov.texi: Document them.
3498
3499 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3500
3501         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
3502         (ipcp_insert_stage): Redirect only edges not flagged with
3503         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
3504         discovered constants.
3505
3506 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3507
3508         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
3509         (struct ipa_param_descriptor): New fields types and
3510         cannot_devirtualize.
3511         (ipa_param_cannot_devirtualize_p): New function.
3512         (ipa_param_types_vec_empty): Likewise.
3513         (ipa_make_edge_direct_to_target): Declare.
3514         * ipa-cp.c: Fixed first stage driver name in initial comment,
3515         described devirtualization there too.
3516         (ipcp_analyze_node): Call ipa_analyze_params_uses.
3517         (ipcp_print_all_lattices): Print devirtualization info.
3518         (ipa_set_param_cannot_devirtualize): New function.
3519         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
3520         lattice to BOTTOM.
3521         (ipcp_init_stage): Merged into...
3522         (ipcp_generate_summary): ...its caller.
3523         (ipcp_change_tops_to_bottom): Also process type lists.
3524         (ipcp_add_param_type): New function.
3525         (ipcp_copy_types): Likewise.
3526         (ipcp_propagate_types): Likewise.
3527         (ipcp_propagate_stage): Also propagate types.
3528         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
3529         Also return true if propagated types require it.
3530         (ipcp_update_callgraph): Dump redirection info.
3531         (ipcp_process_devirtualization_opportunities): New function.
3532         (ipcp_const_param_count): Include known type information.
3533         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
3534         on new node.  Fixed formatting.
3535         * ipa-prop.c (make_edge_direct_to_target): Renamed to
3536         ipa_make_edge_direct_to_target and changed all callers.  Made
3537         externally visible.
3538         (ipa_node_duplication_hook): Duplicate types vector.
3539         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
3540         redirect outgoing calls for which we can't get a decl from the
3541         statement.  Check that we can get a decl from the call statement.
3542         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3543         ipa_analyze_params_uses only when ipa-cp is disabled.
3544         * tree-inline.c (get_indirect_callee_fndecl): Removed.
3545         (expand_call_inline): Do not call get_indirect_callee_fndecl.
3546         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
3547         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
3548
3549 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3550
3551         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
3552         temporary. Emit move from temporary to accum, so REG_EQUAL note will
3553         be attached to this insn in correct mode.
3554
3555 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3556
3557         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
3558         using REGNO of base_reg directly.
3559
3560 2010-08-05  Jie Zhang  <jie@codesourcery.com>
3561
3562         PR tree-optimization/45144
3563         * tree-sra.c (type_consists_of_records_p): Return false
3564         if the record contains bit-field.
3565
3566 2010-08-04  Richard Henderson  <rth@redhat.com>
3567
3568         * config/i386/i386.c (struct ix86_frame): Remove padding and
3569         to_allocate members.
3570         (ix86_compute_frame_layout): Don't store them.
3571         (ix86_can_use_return_insn_p): Use a more direct and more obviously
3572         correct condition for the position of the stack pointer.
3573         (ix86_expand_prologue): Compute remaining stack allocation based
3574         on the ultimate stack pointer offset.
3575         (ix86_expand_epilogue): Use more obvious expressions testing for
3576         the stack pointer already pointing to the saved registers.
3577
3578         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
3579         duplication deconstructing the frame pointer.  Simplify
3580         deallocation of the local stack frame.
3581
3582         * reg-notes.def (CFA_EXPRESSION): New.
3583         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3584         (dwarf2out_frame_debug_cfa_expression): New.
3585         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
3586
3587         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
3588         * config/i386/i386.c (ix86_expand_prologue): Set it.
3589         (ix86_expand_epilogue): Clear it.
3590         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
3591         context, add REG_CFA_EXPRESSION notes.
3592
3593         * config/i386/i386.h (struct machine_frame_state): Rename from
3594         machine_cfa_state.  Add members tracking SP and FP regardless
3595         of the current CFA register.
3596         (ix86_cfa_state): Remove.
3597         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
3598         and sse_reg_save_offset members.
3599         (ix86_compute_frame_layout): Set them.
3600         (gen_push): Increment sp_offset too.
3601         (choose_baseaddr_len, choose_baseaddr): New.
3602         (ix86_emit_save_reg_using_mov): New.
3603         (ix86_emit_save_regs_using_mov): Use it.
3604         (ix86_emit_save_sse_regs_using_mov): Likewise.
3605         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
3606         compare vs the saved red_zone_offset.
3607         (pro_epilogue_adjust_stack): Adjust sp_offset.
3608         (ix86_adjust_stack_and_probe): Likewise.
3609         (ix86_expand_prologue): Set up, use, and validate the new
3610         frame_state_info members.  Use gen_frame_mem.
3611         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
3612         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
3613         new frame_state_info members.
3614         (ix86_emit_leave): Likewise.
3615         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
3616         out-of-range stack pointer offsets here.
3617         (ix86_emit_restore_sse_regs_using_mov): Likewise.
3618         (ix86_expand_epilogue): Use and validate the new frame_state_info
3619         members.  Break up and simplify the logic selecting the
3620         restore_regs_via_mov code path.  Ensure that there will be no
3621         out-of-range stack pointer offsets.
3622
3623         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
3624
3625         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
3626         argument name to reflect the expected tree; fix indentation.
3627         (ix86_asm_output_function_label): Output the entire 32-bit
3628         ms_hook here as bytes ...
3629         (ix86_expand_prologue): ... not here as insns.  Attach the
3630         unwind info for the ms_hook to a blockage insn.
3631         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
3632         (ix86_ms_bitfield_layout_p): Fix indentation.
3633         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
3634
3635         * config/i386/i386.c (ix86_using_red_zone): New.
3636         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
3637         ix86_expand_prologue, ix86_force_to_memory): Use it.
3638
3639         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
3640         saving the int registers.
3641
3642         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
3643         and DWARF2_UNWIND_INFO conditional compilation.
3644
3645 2010-08-04  Richard Henderson  <rth@redhat.com>
3646
3647         PR debug/45171
3648         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
3649         an is_naming_typedef_decl.
3650
3651 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
3652
3653         PR rtl-optimization/45162
3654         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
3655         * dce.c (word_dce_process_block): Likewise.
3656
3657 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
3658
3659         PR target/44583
3660         * config/ia64/constraints.md (Z): New.
3661         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
3662         (xfreg_or_signed_fp01_operand): New.
3663         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
3664         with fr_reg_or_signed_fp01_operand and constraint G with Z.
3665         (subsf3): Ditto.
3666         (*maddsf4): Ditto.
3667         (*msubsf4): Ditto.
3668         (adddf3): Ditto.
3669         (adddf3_trunc): Ditto.
3670         (subdf3): Ditto.
3671         (*subdf3_trunc): Ditto.
3672         (*madddf4): Ditto.
3673         (*madddf4_trunc): Ditto.
3674         (*msubdf4): Ditto.
3675         (*msubdf4_trunc): Ditto.
3676         (addxf3): Replace xfreg_or_fp01_operand with
3677         xfreg_or_signed_fp01_operand and constraint G with Z.
3678         (*addxf3_truncsf): Ditto.
3679         (*addxf3_truncdf): Ditto.
3680         (subxf3): Ditto.
3681         (*subxf3_truncsf): Ditto.
3682         (*subxf3_truncdf): Ditto.
3683         (*maddxf4): Ditto.
3684         (*maddxf4_truncsf): Ditto.
3685         (*maddxf4_truncdf): Ditto.
3686         (*msubxf4): Ditto.
3687         (*msubxf4_truncsf): Ditto.
3688         (*msubxf4_truncdf): Ditto.
3689
3690 2010-08-04  Richard Guenther  <rguenther@suse.de>
3691
3692         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
3693         if either alias-set is zero.
3694
3695 2010-08-04  Richard Guenther  <rguenther@suse.de>
3696
3697         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
3698         * tree-ssa-ccp.c: ... here.
3699         * tree-ssa-copy.c: ... and here.
3700         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
3701         value_range_t): Move ...
3702         * tree-vrp.c: ... here.
3703         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
3704         (substitute_and_fold): Adjust prototype.
3705         * tree-ssa-propagate.c (replace_uses_in): Adjust.
3706         (replace_phi_args_in): Likewise.
3707         (substitute_and_fold): Take callback to query lattice instead
3708         of pointer to lattice.  Replace SSA name defs with lattice
3709         values first.
3710         * tree-ssa-ccp.c (ccp_finalize): Adjust.
3711         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
3712         (get_value): New function.
3713         (fini_copy_prop): Adjust.
3714         * tree-vrp.c (vrp_finalize): Adjust.
3715
3716 2010-08-04  Richard Guenther  <rguenther@suse.de>
3717
3718         PR middle-end/45176
3719         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
3720         points-to set for original MEM_REF.
3721
3722 2010-08-04  Richard Guenther  <rguenther@suse.de>
3723
3724         * tree-ssa-ccp.c (get_constant_value): New function.
3725         (get_rhs_assign_op_for_ccp): Remove.
3726         (valueize_op): New function.
3727         (ccp_fold): Use get_constant_value and valueize_op.
3728         (fold_const_aggregate_ref): Likewise.
3729         (ccp_fold_stmt): Likewise.
3730         (visit_assignment): Simplify.
3731
3732 2010-08-04  Richard Guenther  <rguenther@suse.de>
3733
3734         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
3735         * double-int.h (double_int_ctz): Declare.
3736         * double-int.c (double_int_ctz): New function.
3737
3738 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
3739
3740         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
3741         Define.
3742         picochip_expand_movmemhi : Expand movmem pattern.
3743         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
3744         Declare.
3745         * config/picochip/picochip.md (movmemhi) : New pattern.
3746
3747 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
3748
3749         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
3750
3751 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
3752
3753         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
3754         NEG as operand of a MULT by merging it with the other operand.
3755         * combine.c (make_compound_operation): Use trunc_int_for_mode when
3756         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
3757         MULT.
3758         * config/arm/constraints.md (M): Examine only 32 bits of a
3759         HOST_WIDE_INT.
3760         * config/arm/predicates.md (power_of_two_operand): Likewise.
3761
3762 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3763
3764         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
3765         non-NOTE insns.
3766
3767 2010-08-03  Jan Hubicka  <jh@suse.cz>
3768
3769         * ipa-split.c (struct split_point): Add split_part_set_retval.
3770         (find_retval): Forward declare.
3771         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
3772         (consider_split): Compute current->split_part_set_retval.
3773         (visit_bb): Do not look into return value.
3774         (split_function): Handle !split_part_set_retval
3775
3776 2010-08-03  Martin Jambor  <mjambor@suse.cz>
3777
3778         * tree-sra.c (completely_scalarize_record): New parameter REF, create
3779         its own access->expr intead of using build_ref_for_offset.
3780
3781 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
3782
3783         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
3784         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
3785         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
3786         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
3787         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
3788         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
3789         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
3790         DEFAULT_SWITCH_TAKES_ARG.
3791         * config/rx/rx.opt (-patch=): Remove option.
3792         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
3793         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
3794         * doc/invoke.texi (RX Options): Remove -patch=.
3795         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
3796         (option_map): Remove --profile-blocks, --quiet and --silent.
3797
3798 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
3799
3800         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
3801         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
3802         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
3803         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
3804         Update calls to ix86_expand_compare and ix86_expand_branch.
3805         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
3806         ix86_expand_compare.
3807         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
3808         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
3809         Make static.
3810         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
3811         and ix86_compare_op1.  Update calls to ix86_expand_compare.
3812         (ix86_expand_int_movcc): Ditto.
3813         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
3814         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
3815         (ix86_expand_setcc): Ditto.
3816         (ix86_expand_compare): Remove prototype.
3817         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
3818         ix86_compare_op0 and ix86_compare_op1.  Update calls
3819         to ix86_expand_branch to directly pass operands[1] and operands[2].
3820         (cbranchxf4): Ditto.
3821         (cbranch<MODEF:mode>4): Ditto.
3822         (cbranchcc4): Ditto.
3823         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
3824         Update calls to ix86_expand_setcc to directly pass operands[2] and
3825         operands[3].
3826         (cstorexf4): Ditto.
3827         (cstore<MODEF:mode>4): Ditto.
3828         (cstorecc4): Ditto.
3829
3830 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
3831
3832         PR target/45063
3833         * caller-save.c (save_call_clobbered_regs): Remove regs from
3834         hard_regs_saved when they are set.
3835
3836 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
3837
3838         PR target/41089
3839         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
3840         as volatile.
3841
3842 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
3843
3844         * common.opt (ftree-loop-distribute-patterns): New.
3845         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
3846         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
3847         at -O3.
3848         * tree-data-ref.c (stores_zero_from_loop): New.
3849         * tree-data-ref.h (stores_zero_from_loop): Declared.
3850         * tree-loop-distribution.c (tree_loop_distribution): Call
3851         stores_zero_from_loop.
3852         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
3853
3854 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
3855
3856         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
3857         into account.
3858
3859         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
3860         * config/arm/arm.c (thumb1_code): New variable.
3861         (arm_override_options): Set it.
3862         (thumb1_final_prescan_insn): Keep track of condition code status.
3863         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
3864         jumps that depend on them.
3865         * config/arm/arm.h (thumb1_code): Declare variable.
3866         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
3867         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
3868         thumb1_cc_mode.
3869         (CC_STATUS_INIT): New macro.
3870         * config/arm/constraints.md (Pd): New constraint.
3871         * config/arm/predicates.md (noov_comparison_operator): New predicate.
3872         * config/arm/arm.md (is_thumb1): New define_attr.
3873         (conds): Set default to "clob" when generating Thumb1 code.
3874         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
3875         code are set.  Use two-operand assembly syntax.
3876         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
3877         pattern.
3878         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
3879         codes are set.  Use two-operand assembly syntax.
3880         (zero_extendhisi splitter): Remove constraints.
3881         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
3882         thumb1_movsf_insn): Set conds attribute as appropriate.
3883         (cbranchsi4_insn): Use condition code status from struct
3884         machine_function to determine whether the comparison can be eliminated.
3885         Discourage the alternative using high registers.
3886         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
3887         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
3888         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
3889         subsi3_cbranch): Delete.
3890         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
3891         one subtract and one cbranch insn.
3892
3893         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
3894         thumb2_movdf_soft_insn): Delete patterns.
3895         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
3896         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
3897         (pool_range, neg_pool_range): Use them to define defaults.
3898         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
3899         and allow for TARGET_32BIT.
3900
3901         PR target/40457
3902         * config/arm/arm.h (arm_regs_in_sequence): Declare.
3903         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
3904         load_multiple_sequence, store_multiple_sequence): Delete
3905         declarations.
3906         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
3907         declarations.
3908         * config/arm/ldmstm.md: New file.
3909         * config/arm/arm.c (arm_regs_in_sequence): New array.
3910         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
3911         CHECK_REGS.  All callers changed.
3912         If SAVED_ORDER is nonnull, copy the computed order into it.
3913         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
3914         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
3915         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
3916         If SAVED_ORDER is nonnull, copy the computed order into it.
3917         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
3918         like REGS.  Handle Thumb mode.
3919         (arm_gen_load_multiple_1): New function, broken out of
3920         arm_gen_load_multiple.
3921         (arm_gen_store_multiple_1): New function, broken out of
3922         arm_gen_store_multiple.
3923         (arm_gen_multiple_op): New function, with code from
3924         arm_gen_load_multiple and arm_gen_store_multiple moved here.
3925         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
3926         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
3927         changed.
3928         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
3929         * config/arm/predicates.md (commutative_binary_operator): New.
3930         (load_multiple_operation, store_multiple_operation): Handle more
3931         variants of these patterns with different starting offsets.  Handle
3932         Thumb-1.
3933         * config/arm/arm.md: Include "ldmstm.md".
3934         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
3935         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
3936         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
3937         peepholes): Delete.
3938         * config/arm/ldmstm.md: New file.
3939         * config/arm/arm-ldmstm.ml: New file.
3940
3941         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
3942         if statement which adds extra costs to frame-related expressions.
3943
3944 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3945
3946         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
3947
3948 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
3949
3950         PR target/45142
3951         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
3952         alternative 2.
3953         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
3954         split V4SI operands.
3955
3956 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
3957
3958         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3959         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
3960         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
3961         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3962
3963 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
3964
3965         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
3966         LOCAL_INCLUDE_DIR.
3967
3968 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
3969
3970         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
3971         used in the call to optab_for_tree_code.  Fix the second
3972         is_widening_mult_p call.  Check that both unwidened operands
3973         have the same sign.
3974
3975 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
3976
3977         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
3978
3979 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
3980
3981         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3982
3983 2010-07-30  DJ Delorie  <dj@redhat.com>
3984
3985         * config/rx/predicates.md (rx_constshift_operand): New.
3986         * config/rx/rx.md (zs_cond): New.
3987         (cbranchsi4): Remove mode.
3988         (*cbranchsi4_<code>): Likewise.
3989         (*tstbranchsi4_<code>): New.
3990         (*tstbranchsi4r_<code>): New.
3991         (*tstbranchsi4m_eq): New.
3992         (*tstbranchsi4m_ne): New.
3993         (cbranchsf4): Remove mode.
3994         (*cbranchsf4_<code>): Likewise.
3995
3996 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
3997
3998         * rtlanal.c (simplify_subreg_regno): Don't treat
3999         HARD_FRAME_POINTER_REGNUM specially.
4000
4001 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
4002
4003         * common.opt (-G): Don't define option here.
4004         * config/g.opt: New.
4005         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
4006         rs6000/powerpc and score targets.
4007         * opts.c (common_handle_option): Don't handle -G here.
4008         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
4009         * config/frv/frv.c (frv_handle_option): Handle -G.
4010         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
4011         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
4012         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
4013         * config/mips/mips.c (mips_handle_option): Handle -G.
4014         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
4015         * config/score/score.c (score_handle_option): Handle -G.
4016
4017 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
4018
4019         * config/mmix/mmix.c: Include basic-block.h.
4020
4021 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
4022
4023         PR debug/45055
4024         PR rtl-optimization/45137
4025         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
4026         prototypes.
4027         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
4028         New functions.
4029         * combine.c (next_nonnote_nondebug_insn): Removed.
4030         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
4031         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
4032         * sched-deps.c (sched_analyze_insn): Likewise.
4033         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
4034         * rtlanal.c (canonicalize_condition): Likewise.
4035         * postreload.c (reload_combine_recognize_pattern): Likewise.
4036         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
4037
4038 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
4039
4040         * config/i386/i386.md (int_cond): Remove code iterator.
4041         (fp_cond): Ditto.
4042         (cbranch<mode>4): Use ordered_comparison_operator predicate
4043         for operator0.
4044         (cstore<mode>4): Ditto for operator1.
4045         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
4046         (add<mode>cc): ditto.
4047
4048 2010-07-30  Richard Guenther  <rguenther@suse.de>
4049
4050         PR middle-end/45141
4051         * expr.c (expand_expr_real_1): Check for not handled base address.
4052
4053 2010-07-30  Richard Guenther  <rguenther@suse.de>
4054
4055         * ipa-prop.c (ipa_modify_formal_parameters): Use
4056         build_distinct_type_copy.
4057
4058 2010-07-30  Anthony Green  <green@moxielogic.com>
4059
4060         * config/moxie/rtems.h: New file.
4061         * config.gcc: Add moxie-rtems support.
4062
4063 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4064
4065         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
4066         df flags as in run_fast_df_dce.
4067
4068 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4069
4070         Revert:
4071         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4072
4073         * rtl.def (NOTE): Swap operands 4 and 5.
4074         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
4075         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
4076         Adjust accordingly.
4077         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
4078
4079 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
4080
4081         PR debug/45110
4082         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
4083         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
4084         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
4085         formal parameters.
4086         (gen_decl_die): Change return type to dw_die_ref, return what
4087         gen_formal_parameter_die returned.
4088
4089 2010-07-29  Martin Jambor  <mjambor@suse.cz>
4090
4091         * dbgcnt.def (eipa_sra): New counter.
4092         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
4093
4094 2010-07-29  Xinliang David Li  <davidxl@google.com>
4095
4096         PR bootstrap/45119
4097         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
4098         in revision 162652.
4099
4100 2010-07-29  Richard Guenther  <rguenther@suse.de>
4101
4102         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
4103         (TV_TREE_STORE_CCP): Likewise.
4104         (TV_TREE_REDPHI): Likewise.
4105
4106 2010-07-29  Richard Guenther  <rguenther@suse.de>
4107
4108         * double-int.h (double_int_and_not): New function.
4109         * combine.c (try_combine): Use it.
4110         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
4111
4112 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
4113
4114         PR rtl-optimization/42575
4115         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
4116         Argument AU removed.  All callers changed.  Ignore artificial refs.
4117         Use return value of df_word_lr_simulate_defs to decide whether an insn
4118         is necessary.
4119         (fast_dce): Rename arg to WORD_LEVEL.
4120         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
4121         static.
4122         (pass_fast_rtl_byte_dce): Delete.
4123         * dce.h (run_word_dce): Declare.
4124         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
4125         All callers changed.  Simplify code to only deal with two-word regs.
4126         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
4127         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
4128         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
4129         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
4130         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
4131         (df_word_lr_mark_ref): Declare.
4132         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
4133         df_word_lr_simulate_uses): Declare or rename from byte variants.
4134         (df_byte_lr_simulate_artificial_refs_at_top,
4135         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4136         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
4137         declarations.
4138         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
4139         (enum df_mm): Delete.
4140         * df-byte-scan.c: Delete file.
4141         * df-problems.c (df_word_lr_problem_data): Renamed from
4142         df_byte_lr_problem_data, all members deleted except for
4143         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
4144         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
4145         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
4146         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
4147         df_byte_lr_confluence_0): Delete functions.
4148         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
4149         callers changed.
4150         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
4151         Don't initialize members that were deleted, don't try to discover data
4152         about registers.  Ignore hard regs.
4153         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
4154         (df_word_lr_mark_ref): New function.
4155         (df_word_lr_bb_local_compute): Renamed from
4156         df_byte_bb_lr_local_compute; all callers changed.  Use
4157         df_word_lr_mark_ref.  Assert that artificial refs don't include
4158         pseudos.  Ignore hard registers.
4159         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
4160         Assert that exit block uses don't contain pseudos.
4161         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
4162         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
4163         callers changed.  Ignore hard regs.
4164         (df_word_lr_transfer_function): Renamed from
4165         df_byte_lr_transfer_function; all callers changed.
4166         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
4167         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
4168         changed.
4169         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
4170         callers changed.
4171         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
4172         confluence operator 0 set to NULL.
4173         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
4174         callers changed.
4175         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
4176         Return bool, true if bitmap changed or insn otherwise necessary.
4177         All callers changed.  Simplify using df_word_lr_mark_ref.
4178         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
4179         all callers changed.  Simplify using df_word_lr_mark_ref.
4180         * lower-subreg.c: Include "dce.h"
4181         (decompose_multiword_subregs): Call run_word_dce if df available.
4182         * Makefile.in (lower-subreg.o): Adjust dependencies.
4183         (df-byte-scan.o): Delete.
4184         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
4185
4186 2010-07-29  Richard Guenther  <rguenther@suse.de>
4187
4188         * tree.c (build_vector): Assert that the vector constant
4189         has enough elements.
4190         (build_vector_from_ctor): Pad with trailing zeros.
4191
4192 2010-07-29  Richard Guenther  <rguenther@suse.de>
4193
4194         PR tree-optimization/45120
4195         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4196         Handle offset in DEREFs properly.
4197         (get_constraint_for_1): Handle MEM_REF offset properly.
4198
4199 2010-07-29  Richard Guenther  <rguenther@suse.de>
4200
4201         PR middle-end/45034
4202         * convert.c (convert_to_integer): Always use an unsigned
4203         type for narrowed negate and bitwise not.
4204
4205 2010-07-29  Ira Rosen  <irar@il.ibm.com>
4206
4207         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
4208         to outer loop when creating reduction epilogue for double reduction,
4209         and switch back to the inner loop when updating the phi nodes.
4210         Update uses of outer loop exit phi nodes in double reduction (instead
4211         of uses of reduction).
4212
4213 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
4214
4215         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
4216         popcount on power7 and parity on power6 systems.
4217         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
4218         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
4219         instructions.
4220
4221         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
4222         (UNSPEC_PARITY): Ditto.
4223         (SFDF): New iterator for SF/DF.
4224         (rreg2): New mode attribute for floating register constraint.
4225         (TARGET_FLOAT): New mode attribute for whether single/double float
4226         is supported.
4227         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
4228         pattern.
4229         (parity<mode>2_cmpb): New insn for parity on power6 and newer
4230         machines.
4231         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
4232         pattern.  Add support for fcpsgn instruction added in power6.
4233         (copysignsf3): Delete.
4234         (copysigndf3): Delete.
4235         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
4236         instead of if_then_else in RTL to avoid problems with -0.
4237
4238         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
4239         of if_then_else to mirror scalar code.
4240         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
4241         rs6000.md.
4242
4243         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
4244         instead of if_then_else.
4245
4246 2010-07-28  Xinliang David Li  <davidxl@google.com>
4247
4248         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
4249         (dump_cand): Dump var_before/after.
4250         (htab_inv_expr_eq): New function.
4251         (htab_inv_expr_hash): New function.
4252         (tree_ssa_iv_optimize_init): Support pseudo invariants.
4253         (add_candidate_1): consider base type precision.
4254         (set_use_iv_cost): New parameter.
4255         (adjust_setup_cost): Use profile information.
4256         (get_address_cost): Do not hard code width in computing address
4257         offset limits.
4258         (compare_aff_trees): New function.
4259         (get_loop_invariant_expr_id): New function.
4260         (get_computation_cost_at): New parameter and use profile information.
4261         (get_computation_cost): New parameter.
4262         (determine_use_iv_cost_generic): Pass new parameter.
4263         (determine_use_iv_cost_address): Ditto.
4264         (determine_use_iv_cost_condition): Ditto.
4265         (autoinc_possible_for_pair): Ditto.
4266         (determine_use_iv_costs): More dumps.
4267         (iv_ca_get_num_inv_exprs): New function.
4268         (iv_ca_recount_cost): Consider loop invariants in register pressure
4269         cost.
4270         (iv_ca_add_use): New parameter.
4271         (iv_ca_dump): Better dumping.
4272         (iv_ca_extend): New parameter.
4273         (try_add_cand_for): Attempt to get better partial solution.
4274         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
4275         (create_new-ivs): More dumps.
4276         (rewrite_use_compare): Ditto.
4277         (free_loop_data): More cleanup.
4278         (treee_ssa_iv_optimize_finalize): Ditto.
4279
4280 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
4281
4282         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
4283         * config/i386/i386.c (ix86_profile_before_prologue): New.
4284         (override_options): Add special handling for -mfentry.
4285         (ix86_function_regparm): Likewise.
4286         (ix86_function_sseregparm): Likewise.
4287         (ix86_frame_pointer_required): Likewise.
4288         (ix86_expand_prologue): Check for ms_hook_prologue.
4289         (x86_function_profiler): Adjust mcount output.
4290         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
4291         * config/i386/i386.opt (mfentry): New.
4292         * doc/invoke.texi (mfentry): Add documentation.
4293         * doc/tm.texi: Regenerated..
4294         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
4295         * final.c (final_start_function): Replace macro
4296         PROFILE_BEFORE_PROLOGUE by target hook.
4297         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4298         * target.def (profile_before_prologue): New hook.
4299         * targhooks.c (default_profile_before_prologue): New.
4300         * targhooks.h (default_profile_before_prologue): New.
4301
4302 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
4303
4304         PR debug/45105
4305         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
4306
4307         PR debug/45103
4308         * dwarf2out.c (dwarf2out_var_location): Always consider
4309         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
4310
4311 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4312
4313         PR rtl-optimization/45107
4314         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
4315
4316 2010-07-28  Richard Guenther  <rguenther@suse.de>
4317
4318         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
4319         (set_lattice_value): Do not query an old default value.
4320         (get_value_for_expr): New function.  Properly canonicalize
4321         float values.
4322         (ccp_visit_phi_node): Use it.
4323
4324 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
4325
4326         * config/arm/arm.c (arm_pcs_default): Remove static.
4327         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
4328         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
4329         (arm_pcs_default): Declare.
4330
4331 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
4332
4333         * config/rs6000/rs6000.c (rs6000_override_options):
4334         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
4335         ... to darwin_rs6000_override_options.
4336         (rs6000_return_in_memory): Update preceding comment for darwin
4337         64 bit ABI.  Use TARGET_MACHO inline.
4338         (rs6000_darwin64_struct_check_p): New.
4339         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
4340         (function_arg): Likewise.
4341         (rs6000_arg_partial_bytes): Likewise.
4342         (rs6000_function_value): Likewise.
4343
4344 2010-07-28  Andi Kleen <ak@linux.intel.com>
4345
4346         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
4347
4348 2010-07-28  Richard Guenther  <rguenther@suse.de>
4349
4350         PR middle-end/44903
4351         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
4352         targets try harder to not generate unaligned accesses.
4353
4354 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4355
4356         PR rtl-optimization/45101
4357         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
4358         for gcse-las.
4359
4360 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4361
4362         PR tree-optimization/44885
4363         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
4364         with non-aliased component.
4365
4366 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
4367
4368         * config/darwin-driver.c (SWITCH_TAKES_ARG,
4369         WORD_SWITCH_TAKES_ARG): Remove.
4370         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4371         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
4372         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
4373         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
4374         definitions from gcc.c.
4375         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
4376         defaults.h.
4377         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
4378         Move to defaults.h.
4379         * opts-common.c: Include tm.h.
4380         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
4381         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
4382         Handle more than one argument.  Set canonical_option_num_elements.
4383         (decode_cmdline_options_to_array): Set
4384         canonical_option_num_elements and trailing elements of
4385         canonical_option.
4386         * opts.h (struct cl_decoded_option): Allow four elements in
4387         canonical_option.  Add field canonical_option_num_elements.
4388         * Makefile.in (opts-common.o): Update dependencies.
4389
4390 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4391
4392         PR middle-end/44790
4393         PR middle-end/44993
4394         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
4395         sure the base has address_mode before adding the offset.
4396
4397 2010-07-27  Xinliang David Li <davidxl@google.com>
4398
4399         * tree-flow.h (create_mem_ref): Add one new parameter.
4400         * tree-ssa-address.c (create_mem_ref): New parameter.
4401         (addr_to_parts): Ditto.
4402         (move_variant_to_index): New function.
4403         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
4404
4405 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4406
4407         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
4408         4 and 5.
4409         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
4410         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
4411         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
4412         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
4413         CODE_LABELs and NOTEs.
4414         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
4415         * combine.c (try_combine): Likewise.
4416         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4417         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
4418
4419 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4420
4421         * coretypes.h (struct cl_option_handlers): Declare.
4422         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
4423         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
4424         * langhooks-def.h (lhd_handle_option): Declare.
4425         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
4426         * langhooks.c (lhd_handle_option): New.
4427         * langhooks.h (struct lang_hooks): Update prototype and return
4428         value type of handle_option hook.
4429         * optc-gen.awk: Generate target_flags_explicit definition for the
4430         driver.
4431         * opts-common.c: Include diagnostic.h.
4432         (handle_option): Move from opts.c.  Update prototype and return
4433         value type.  Use handlers structure.
4434         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
4435         handlers structure.
4436         (set_option): Move from opts.c.
4437         * opts.c (common_handle_option): Update prototype and return value
4438         type.  Update calls to handle_option and enable_warning_as_error.
4439         (unknown_option_callback, post_handling_callback,
4440         lang_handle_option, target_handle_option): New.
4441         (handle_option, read_cmdline_option): Move to opts-common.c.
4442         (read_cmdline_options): Update prototype.  Update call to
4443         read_cmdline_option.
4444         (decode_options): Initialize and use handlers structure.
4445         (set_option): Move to opts-common.c.
4446         (enable_warning_as_error): Update prototype.  Update call to
4447         handle_option.
4448         * opts.h (struct cl_option_handler_func, struct
4449         cl_option_handlers): New.
4450         (handle_option, enable_warning_as_error): Update prototypes.
4451         (read_cmdline_option): Declare.
4452         * Makefile.in (opts-common.o): Update dependencies.
4453
4454 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4455
4456         * config/arm/arm.c (params.h): Include.
4457         (arm_override_options): Tune gcse-unrestricted-cost.
4458         * config/arm/t-arm (arm.o): Define dependencies.
4459
4460 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4461
4462         PR target/42495
4463         PR middle-end/42574
4464         * basic-block.h (get_dominated_to_depth): Declare.
4465         * dominance.c (get_dominated_to_depth): New function, use
4466         get_all_dominated_blocks as a base.
4467         (get_all_dominated_blocks): Use get_dominated_to_depth.
4468
4469         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
4470         (hoist_exprs): Remove.
4471         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
4472         (compute_code_hoist_vbeinout): Add debug print outs.
4473         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
4474
4475         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
4476         quadratic behavior.
4477         * params.h (MAX_HOIST_DEPTH): New macro.
4478         * doc/invoke.texi (max-hoist-depth): Document.
4479
4480 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4481
4482         PR rtl-optimization/40956
4483         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
4484         constants.
4485
4486 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4487
4488         PR target/42495
4489         PR middle-end/42574
4490         * config/arm/arm.c (legitimize_pic_address): Use
4491         gen_calculate_pic_address pattern to emit calculation of PIC address.
4492         (will_be_in_index_register): New function.
4493         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
4494         (thumb1_legitimate_address_p): Use it provided !strict_p.
4495         * config/arm/arm.md (calculate_pic_address): New expand and split.
4496
4497 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4498
4499         PR target/42495
4500         PR middle-end/42574
4501         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
4502         * config/arm/arm.md (define_split "J", define_split "K"): Make
4503         IRA/reload friendly.
4504
4505 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4506
4507         * gcse.c (insert_insn_end_basic_block): Update signature, remove
4508         unused checks.
4509         (pre_edge_insert, hoist_code): Update.
4510
4511 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4512
4513         PR target/42495
4514         PR middle-end/42574
4515         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
4516
4517 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4518
4519         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
4520
4521 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4522
4523         PR rtl-optimization/40956
4524         PR target/42495
4525         PR middle-end/42574
4526         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
4527         for hoisting.
4528         (hoist_code): Count occurences in current block too.
4529
4530 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4531
4532         * gcse.c (struct expr:max_distance): New field.
4533         (doing_code_hoisting_p): New static variable.
4534         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
4535         simple expressions, don't change behavior for PRE.  Set max_distance.
4536         (insert_expr_in_table): Set new max_distance field.
4537         (hash_scan_set): Update.
4538         (hoist_expr_reaches_here_p): Stop search after max_distance
4539         instructions.
4540         (find_occr_in_bb): New static function.  Use it in ...
4541         (hoist_code): Calculate sizes of basic block before any changes are
4542         done.  Pass max_distance to hoist_expr_reaches_here_p.
4543         (one_code_hoisting_pass): Set doing_code_hoisting_p.
4544
4545         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
4546         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
4547         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
4548         macros.
4549         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
4550         Document.
4551
4552 2010-07-27  Jeff Law  <law@redhat.com>
4553             Maxim Kuvyrkov  <maxim@codesourcery.com>
4554
4555         * gcse.c (compute_transpout, transpout): Remove, move logic
4556         to prune_expressions.
4557         (compute_pre_data): Move pruning of trapping expressions ...
4558         (prune_expressions): ... here.  New static function.
4559         (compute_code_hoist_data): Use it.
4560         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
4561
4562 2010-07-27  Xinliang David Li  <davidxl@google.com>
4563
4564         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
4565         (rewrite_use_address): Adjust iv update position when needed.
4566
4567 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4568
4569         * dbgcnt.def (hoist_insn): New debug counter.
4570         * gcse.c (hoist_code): Use it.
4571
4572 2010-07-27  Xinliang David Li  <davidxl@google.com>
4573
4574         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
4575         (niter_for_single_dom_exit): Passes additional parameter.
4576         (iv_period): Fix comments.
4577         (may_eliminate_iv): Handles multiple exit loops properly.
4578         (free_tree_niter_desc): New function.
4579         (free_loop_data): Frees up loop iteration descriptors.
4580
4581 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4582
4583         PR target/44542
4584         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
4585         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
4586         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
4587         (expand_one_var): Don't consider DECL_ALIGN for variables for
4588         which expand_one_stack_var_at has been already called.
4589
4590         PR testsuite/44701
4591         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
4592         constraints on IA-64.
4593
4594 2010-07-27  Jie Zhang  <jie@codesourcery.com>
4595
4596         PR target/44290
4597         Revert:
4598         2010-07-23  Jie Zhang  <jie@codesourcery.com>
4599
4600         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4601         false if ! tree_versionable_function_p.
4602
4603 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4604
4605         * dwarf2out.c (add_data_member_location_attribute): Use
4606         add_AT_unsigned instead of add_AT_int if offset is non-negative.
4607
4608 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4609
4610         * postreload.c (try_replace_in_use): New static function.
4611         (reload_combine_recognize_const_pattern): Use it here.  Allow
4612         substituting into a final add insn, and substituting into a memory
4613         reference in an insn that sets the reg.
4614
4615 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4616
4617         * common.opt (o): Add MissingArgError.
4618         * doc/options.texi (MissingArgError): Document.
4619         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
4620         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
4621         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4622         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
4623         * langhooks.h (struct lang_hooks): Remove missing_argument.
4624         * optc-gen.awk: Handle MissingArgError and output new structure
4625         field initializers.
4626         * opts.c (read_cmdline_option): Use missing_argument_error field
4627         instead of missing_argument langhook.
4628         * opts.h (struct cl_option): Add missing_argument_error field.
4629         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
4630
4631 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
4632
4633         PR target/29090
4634         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
4635         Darwin64 ABI, for zero-sized objects.
4636
4637 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
4638
4639         PR target/35491
4640         PR target/29090
4641
4642         Merge from Apple local 4.2.1.
4643         2005-05-11  Stan Shebs  <shebs@apple.com>
4644         Fix 64-bit varargs for Darwin (Radar 4028089).
4645         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
4646         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4647         Add argument, add case for 8-byte register half-filled with a float.
4648         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
4649         single-precision floats specially.
4650
4651 2010-07-27  Ira Rosen  <irar@il.ibm.com>
4652
4653         PR tree-optimization/44152
4654         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
4655         complex numbers for further check.
4656         (vect_supported_load_permutation_p): Check nodes with
4657         complex numbers.
4658
4659 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4660
4661         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
4662         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
4663         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
4664         (LANG_HOOKS_INITIALIZER): Add new hooks.
4665         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
4666         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
4667         and complain_wrong_lang_p.  Update init_options prototype.
4668         * c-objc-common.c (c_initialize_diagnostics): First call
4669         c_common_initialize_diagnostics.
4670         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
4671         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
4672         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
4673         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
4674         (hook_uint_void_0): New.
4675         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
4676         (hook_uint_void_0): New.
4677         * opts-common.c (decode_cmdline_option,
4678         decode_cmdline_options_to_array): Also fill in canonical_option field.
4679         * opts.c (complain_wrong_lang): Use langhook to determine whether
4680         to complain instead of special-casing LTO.
4681         (decode_options): Separate lang_mask determination with
4682         option_lang_mask hook from call of init_options hook.
4683         * opts.h (struct cl_decoded_option): Add canonical_option.
4684
4685 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4686
4687         PR tree-optimization/45083
4688         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
4689
4690 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4691
4692         * postreload.c (reload_combine_recognize_const_pattern): Move test
4693         for limiting the insn movement to the right scope.
4694
4695         PR rtl-optimization/45051
4696         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
4697         than reg_mentioned_p.
4698
4699 2010-07-26  Richard Henderson  <rth@redhat.com>
4700
4701         PR target/44132
4702         * tree-emutls.c: New file.
4703         * Makefile.in (OBJS-common): Add it.
4704         * tree-pass.h (pass_ipa_lower_emutls): Declare.
4705         * passes.c (init_optimization_passes): Add it.
4706
4707         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
4708         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
4709         * expr.c (emutls_var_address): Delete.
4710         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
4711         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
4712         (emutls_finish): Delete.
4713         * toplev.c (compile_file): Don't call it.
4714         * tree.h (emutls_decl): Delete.
4715         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
4716         (emutls_finish, emutls_finalize_control_var): Delete.
4717         (emutls_object_type): Move to tree-emutls.c.
4718         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
4719         default_emutls_var_fields, get_emutls_object_type,
4720         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
4721         default_emutls_var_init): Likewise.
4722         (get_variable_section): Don't special case emutls.
4723         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
4724         default_elf_select_section, default_unique_section,
4725         default_encode_section_info): Likewise.
4726         * varpool.c (decide_is_variable_needed): Likewise.
4727         * gimple-iterator.c (update_call_edge_frequencies): New
4728         (gsi_insert_on_edge_immediate): Use it.
4729         (gsi_insert_seq_on_edge_immediate): Likewise.
4730         (gsi_commit_one_edge_insert): Likewise.
4731
4732         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
4733         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
4734         (x86_64_elf_unique_section): Likewise.
4735
4736 2010-07-26  Jan Hubicka  <jh@suse.cz>
4737
4738         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
4739         GTY((skip)).
4740
4741 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
4742
4743         * target.def (output_source_filename): New hook.
4744         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
4745         * doc/tm.texi: Regenerate.
4746         * toplev.c (output_file_directive) Remove function.
4747         * toplev.h (output_file_directive) Remove.
4748         * output.h (default_asm_output_source_filename,
4749         output_file_directive): Declare.
4750         * varasm.h (default_asm_output_source_filename,
4751         output_file_directive): New functions.
4752
4753         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4754         * config/mips/mips-protos.h (mips_output_filename): Remove.
4755         * config/mips/mips.c (mips_output_filename): Make Static.
4756         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4757
4758 2010-07-26  Richard Guenther  <rguenther@suse.de>
4759
4760         PR tree-optimization/43784
4761         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
4762         if the destination is used by the call.
4763
4764 2010-07-26  Richard Guenther  <rguenther@suse.de>
4765
4766         PR middle-end/45073
4767         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
4768         SSA updating on being in SSA form.
4769
4770 2010-07-26  Richard Guenther  <rguenther@suse.de>
4771
4772         PR middle-end/45056
4773         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
4774
4775 2010-07-26  Richard Guenther  <rguenther@suse.de>
4776
4777         PR tree-optimization/45071
4778         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
4779         adjust op->opcode.
4780
4781 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
4782
4783         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
4784         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
4785         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
4786         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
4787         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
4788         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
4789         save_r31, return_r31, save_interrupt, return_interrupt,
4790         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
4791         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
4792         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
4793         new ABI requirements.
4794         (save_r6_r9, L_callt_save_r6_r9): Remove.
4795         * config/v850/predicates.md (even_reg_operand, disp23_operand,
4796         const_float_1_operand const_float_0_operand): New Predicates.
4797         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
4798         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
4799         * config/v850/t-v850: Update multilibs for new target variants.
4800         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
4801         * config/v850/t-v850e: Likewise.
4802         * config/v850/v850.c (v850_issue_rate): New.
4803         (v850_strict_argument_naming): New.
4804         (function_arg): Modify to generate a different ABI.
4805         (print_operand): Update case 'z' to support float modes.
4806         (output_move_single): Modify to generate appropriate and better
4807         assembly.
4808         (v850_float_z_comparison_operator, v850_select_cc_mode,
4809         v850_float_nz_comparison_operator,  v850_gen_float_compare,
4810         v850_gen_compare): New functions to support comparison of float values.
4811         (ep_memory_offset): Add support for V850E2 targets.
4812         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
4813         (INTERRUPT_REGPARM_NUM): Remove.
4814         (compute_register_save_size): Add extra case to save/restore long call.
4815         (use_prolog_function): New function to support prologue.
4816         (expand_prologue): Add support for V850E2 targets and modified
4817         as per the current ABI requirements.
4818         (expand_epilogue): Likewise.
4819         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
4820         (construct_save_jarl): Likewise.
4821         (construct_dispose_instruction): Update as per the current ABI
4822         requirements.
4823         (construct_prepare_instruction): Likewise.
4824         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
4825         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
4826         (CPP_SPEC): Updated to support v850e2 targets.
4827         (STRICT_ALIGNMENT): Modified.
4828         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
4829         (FIXED_REGISTERS): Likewise.
4830         (CALL_USED_REGISTERS): Likewise.
4831         (CONDITIONAL_REGISTER_USAGE): Updated.
4832         (HARD_REGNO_MODE_OK): Updated.
4833         (reg_class): Updated to add even registers.
4834         (REG_CLASS_NAMES): Likewise.
4835         (REG_CLASS_CONTENTS): Likewise.
4836         (REGNO_REG_CLASS): Updated for CC registers.
4837         (REG_CLASS_FROM_LETTER): Added support for even registers.
4838         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
4839         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
4840         ARG_POINTER_REGNUM): Updated.
4841         (FUNCTION_ARG_ADVANCE): Define.
4842         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
4843         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
4844         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
4845         (GO_IF_LEGITIMATE_ADDRESS): Updated.
4846         (SELECT_CC_MODE): Define.
4847         (REGISTER_NAMES): Updated to add psw and fcc registers.
4848         (ADDITIONAL_REGISTER_NAMES): Updated.
4849         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
4850         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
4851         * config/v850/v850.md (define_constants): Define new constants.
4852         (type): Update store,bit1,macc,div,fpu and single attributes.
4853         (cpu): New attribute.
4854         (cc): Add set_z attribute.
4855         (unsign23byte_load, sign23byte_load, unsign23hword_load,
4856         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
4857         23word_store): New instructions for 23-bit displacement load and store.
4858         (movqi_internal, movhi_internal): Update the attributes.
4859         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
4860         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
4861         the attributes.
4862         (v850_tst1): Modified using CC_REGNUM.
4863         (tstsi): Remove.
4864         (cmpsi): Modified as define_expand from define_insn.
4865         (cmpsi_insn, cmpsf, cmpdf): New instructions.
4866         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
4867         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
4868         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
4869         one_cmplsi2): Clobber the CC_REGNUM register.
4870         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
4871         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
4872         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
4873         (setf_insn, set_z_insn, set_nz_insn): New instructions for
4874         v850e2v3 target.
4875         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
4876         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
4877         targets.
4878         (sasf_1, sasf_2): Remove.
4879         (sasf): New instruction.
4880         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
4881         targets. CC_REGNUM register is clobbered and attributes are
4882         updated.
4883         (branch_z_normal, branch_z_invert, branch_nz_normal,
4884         branch_nz_invert): New branch related instructions.
4885         (jump): Updated the attributes.
4886         (switch): Update to support new targets. CC_REGNUM register is
4887         clobbered and attributes are updated.
4888         (call_internal_short, call_internal_long, call_value_internal_short,
4889         call_value_internal_long): Updated the attributes.
4890         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
4891         clobbered and attributes are updated.
4892         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
4893         Update to support new targets. CC_REGNUM register is clobbered.
4894         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
4895         instructions.
4896         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
4897         are updated.
4898         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
4899         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
4900         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
4901         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
4902         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
4903         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
4904         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
4905         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
4906         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
4907         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
4908         point instructions defined for V850e2v3 target.
4909         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
4910         Add support for V850E2 targets and CC_REGNUM register is clobbered.
4911         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
4912         support for new targets.
4913         * config/v850/v850-modes.def: New file.
4914         * config/v850/v850.opt(mstrict-align): Remove.
4915         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
4916         mv850e2v3): New command line options for V850.
4917         * config.gcc: Update the newly added files.
4918         * doc/invoke.texi: Update the newly added command line options for
4919         V850 target.
4920
4921 2010-07-26  Richard Guenther  <rguenther@suse.de>
4922
4923         PR tree-optimization/45052
4924         * ipa-pure-const.c (check_stmt): Check volatileness.
4925
4926 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4927
4928         PR target/44707
4929         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
4930         * config/sparc/sparc.c: Include reload.h.
4931         (legitimize_tls_address): Rename into...
4932         (sparc_legitimize_tls_address): ...this.
4933         (legitimize_pic_address): Rename into...
4934         (sparc_legitimize_pic_address): ...this.
4935         (sparc_expand_move): Adjust to above renaming.
4936         (sparc_tls_referenced_p): Likewise.
4937         (sparc_legitimize_tls_address): Likewise.
4938         (sparc_legitimize_pic_address): Likewise.
4939         (sparc_legitimize_address): Likewise.
4940         (sparc_output_mi_thunk): Likewise.
4941         (sparc_legitimize_reload_address): New global function.  Recognize
4942         (lo_sum (high ...) ...) patterns generated by earlier passes.
4943         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
4944
4945 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4946
4947         PR target/44484
4948         * config/sparc/predicates.md (memory_reg_operand): Delete.
4949         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
4950         (*sync_compare_and_swap): Encode the address form in the pattern.
4951         (*sync_compare_and_swapdi_v8plus): Likewise.
4952
4953 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
4954
4955         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
4956         Streamline paragraph on compatibility with the system compiler.
4957
4958 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
4959
4960         PR middle-end/45035
4961         * alias.c (true_dependence_1): Fix thinko in merge of old
4962         true_dependence and canon_true_dependence.
4963
4964 2010-07-23  Jan Hubicka  <jh@suse.cz>
4965
4966         * lto-streamer-out.c (write_symbol): Fix visibilities of external
4967         references.
4968
4969 2010-07-23  Le-Chun Wu  <lcwu@google.com>
4970
4971         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
4972         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
4973         and an unnecessary assignment.
4974         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
4975         self-assign warning.
4976         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
4977         unnecessary self-init.
4978
4979 2010-07-23  Richard Guenther  <rguenther@suse.de>
4980
4981         PR lto/43071
4982         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
4983         for -flto and -fwhopr.
4984
4985 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
4986
4987         PR target/41943
4988         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
4989         (stmp-int-hdrs): Prefix/postfix headers by include_next.
4990         * config.gcc (user_headers_inc_next_pre): New.
4991         (user_headers_inc_next_post): Likewise.
4992         (*-w64-mingw*): Use for float.h post-fixing, and for
4993         stddef.h/stdarg.h pre-fixing by include_next.
4994         * configure.ac (user_headers_inc_next_post): New.
4995         (user_headers_inc_next_pre): New.
4996         * configure: Regenerated.
4997
4998 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4999
5000         * configure.ac: Don't disable TLS on Solaris 8/9 by default
5001         Set tga_func for Solaris 2/x86 resp. SPARC.
5002         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
5003         (LIB_THREAD_LDFLAGS_SPEC): Define.
5004         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
5005         * configure: Regenerate.
5006         * config.in: Regenerate.
5007         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
5008         -pthread, -threads, LIB_TLS_SPEC with -pthread.
5009         * doc/install.texi (Specific, *-*-solaris2*): Document use of
5010         alternate thread libraries on Solaris 8.
5011         Document TLS patch requirements.
5012         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
5013         Document tls.
5014
5015         PR target/18788
5016         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
5017         -shared.
5018
5019 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
5020
5021         * tree.h (struct tree_base): Add nameless_flag bitfield.
5022         (TYPE_NAMELESS, DECL_NAMELESS): Define.
5023         * omp-low.c (create_omp_child_function, scan_omp_parallel,
5024         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
5025         DECL_ARTIFICIAL where needed.
5026         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
5027         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
5028         has DECL_NAMELESS set.
5029
5030 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5031
5032         PR tree-optimization/44915
5033         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
5034         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
5035         (analyze_function): Likewise.
5036
5037 2010-07-23  Martin Jambor  <mjambor@suse.cz>
5038
5039         PR tree-optimization/44914
5040         * tree-sra.c (sra_modify_function_body): Return true if CFG was
5041         changed, add purging dead eh edges.
5042         (ipa_sra_modify_function_body): Return true if CFG was changed,
5043         simplify purging dead eh edges.
5044         (modify_function): Return true if CFG was changed.
5045         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
5046         was changed.
5047         (ipa_early_sra): Likewise.
5048
5049 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5050
5051         PR target/44290
5052         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
5053         if "naked".
5054         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5055         false if ! tree_versionable_function_p.
5056
5057 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
5058
5059         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
5060         * ipa-pure-const.c (special_builtlin_state): Remove
5061         BUILT_IN_ARGS_INFO case.
5062         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
5063         * builtins.c (expand_builtin): Likewise.
5064         (expand_builtin_args_info): Remove.
5065         * doc/tm.texi (__builtin_args_info): Remove.
5066         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
5067         * doc/tm.text.in: Likewise.
5068
5069 2010-07-23  Richard Guenther  <rguenther@suse.de>
5070
5071         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
5072         (lto_symtab_merge_decls_2): Likewise.
5073         * tree-ssa.c (useless_type_conversion_p): Likewise.
5074         * lto-streamer-in.c (input_gimple_stmt): Likewise.
5075         * gimple.c (gtc_visited2, gtc_ob2): Remove.
5076         (struct type_pair_d): Make same_p an array indexed by mode.
5077         Update comment.
5078         (lookup_type_pair): Update initialization.
5079         (struct sccs): Adjust same_p type.
5080         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
5081         Adjust.
5082         (print_gimple_types_stats): Likewise.
5083         * gimple.h (enum gtc_mode): New.
5084         (gimple_types_compatible_p): Adjust prototype.
5085
5086 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
5087
5088         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
5089         again after processing insn.
5090
5091 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5092
5093         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
5094         proper words when !tree_versionable_function_p.
5095
5096 2010-07-23  Richard Guenther  <rguenther@suse.de>
5097
5098         PR tree-optimization/45037
5099         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
5100
5101 2010-07-23  Jie Zhang  <jie@codesourcery.com>
5102
5103         * doc/extend.texi: Remove IP2K from the description of naked attribute.
5104         Add MCORE instead.
5105
5106 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5107
5108         PR lto/44992
5109         * lto-opts.c (lto_write_options): Add NULL file_data argument to
5110         lto_get_section_name.
5111         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
5112         * lto-streamer-out.c (produce_asm): Likewise.
5113         (copy_function): Likewise.
5114         (produce_symtab): Likewise.
5115         (produce_asm_for_decls): Likewise.
5116         * lto-streamer.c (lto_get_section_name): Add file_data argument.
5117         Rewrite to add random postfix to LTO sections.
5118         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
5119         (lto_get_section_name): Add file_data argument to prototype.
5120
5121 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5122
5123         * lto-section-in.c (lto_section_name): Synchronize names
5124         with lto_get_section_name.
5125
5126 2010-07-10  Andi Kleen  <ak@linux.intel.com>
5127
5128         * lto-opts.c (lto_read_file_options): Check for missing section.
5129
5130 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5131
5132         * ira.c (check_allocation): Correctly handle the case where an allocno
5133         with two objects was allocated to a single reg.
5134
5135 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
5136
5137         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
5138         (is_widening_mult_p): Likewise.
5139         (convert_to_widen): Use them.
5140         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
5141         well as integer ones.
5142
5143 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
5144
5145         * alias.c (true_dependence_1): New function, merged version of
5146         true_dependence and canon_true_dependence.
5147         (true_dependence): Simplify.
5148         (canon_true_dependence): Simplify.
5149
5150 2010-07-22  Richard Henderson  <rth@redhat.com>
5151
5152         PR target/45027
5153         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
5154         of V4SFmode for the SSE saves; increase stack alignment if needed.
5155         (ix86_gimplify_va_arg): Don't increase stack alignment here.
5156
5157 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
5158
5159         PR bootstrap/45028
5160         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
5161         call cprop_find_used_regs again via note_uses.
5162
5163 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5164
5165         * alias.c (get_alias_set): Fix formatting issues.
5166
5167 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
5168
5169         PR middle-end/44878
5170         * stmt.c (expand_value_return):  Call promote_function_mode with
5171         a for_return argument of 2 when returning by reference.
5172
5173 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
5174
5175         PR debug/45024
5176         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
5177         unit DIE if we can find the scope DIE.
5178
5179 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5180
5181         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
5182         changed.  Initialize OBJECT_SUBWORD.
5183         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
5184         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
5185         all callers changed.
5186         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
5187         (finish_allocno): Likewise.
5188         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
5189         (remove_low_level_allocnos): Likewise.
5190         (update_bad_spill_attribute): Likewise.
5191         (setup_min_max_allocno_live_range_point): Likewise.
5192         (sort_conflict_id_map): Likewise.
5193         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
5194         (ior_hard_reg_conflicts): New function.
5195         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
5196         (compress_conflict_vecs): Iterate over objects, not allocnos.
5197         (ira_add_live_range_to_object): New function.
5198         (object_range_compare_func): Renamed from allocno_range_compare_func.
5199         All callers changed.
5200         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
5201         subobjects, widen the min/max range of the lowest-order object to
5202         potentially include all other such low-order objects.
5203         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
5204         (check_allocation): Likewise.  Use more fine-grained tests for register
5205         conflicts.
5206         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
5207         allocno subobjects.
5208         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
5209         choices about which bits to set in each set.  Don't use
5210         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
5211         using the multiple sets we computed.
5212         (push_allocno_to_stack): Iterate over allocno subobjects.
5213         (all_conflicting_hard_regs_coalesced): New static function.
5214         (setup_allocno_available_regs_num): Use it.
5215         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
5216         subobjects.
5217         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
5218         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
5219         by ALLOCNO_NUM_OBJECTS.
5220         (calculate_spill_cost): Likewise.
5221         (color_pass): Express if statement in a more normal way.
5222         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
5223         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
5224         (setup_slot_coalesced_allocno_live_ranges): Likewise.
5225         (allocno_reload_assign): Likewise.
5226         (ira_reassign_pseudos): Likewise.
5227         (fast_allocation): Likewise.
5228         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5229         (print_allocno_conflicts): Likewise.
5230         (ira_build_conflicts): Likewise.
5231         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
5232         callers changed.  Test subword 0 of each allocno for conflicts.
5233         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
5234         callers changed.  Iterate over allocno subobjects.
5235         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
5236         * ira-int.h (struct ira_allocno): New member: num_objects.
5237         Rename object to objects and change it into an array.
5238         (ALLOCNO_OBJECT): Add new argument N.
5239         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
5240         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
5241         (ior_hard_reg_conflicts): Declare.
5242         (ira_add_live_range_to_object): Declare.
5243         (ira_allocno_object_iterator): New.
5244         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
5245         (FOR_EACH_ALLOCNO_OBJECT): New macro.
5246         * ira-lives.c (objects_live): Renamed from allocnos_live; all
5247         uses changed.
5248         (allocnos_processed): New sparseset.
5249         (make_object_born): Renamed from make_allocno_born; take an
5250         ira_object_t argument.  All callers changed.
5251         (make_object_dead): Renamed from make_allocno_dead; take an
5252         ira_object_t argument.  All callers changed.
5253         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
5254         All callers changed.
5255         (mark_pseudo_regno_live): Iterate over allocno subobjects.
5256         (mark_pseudo_regno_dead): Likewise.
5257         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
5258         functions.
5259         (mark_ref_live): Detect subword accesses and call
5260         mark_pseudo_regno_subword_live as appropriate.
5261         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
5262         (process_bb_nodes_live): Deal with object-related updates first; set
5263         and test bits in allocnos_processed to avoid computing allocno
5264         statistics more than once.
5265         (create_start_finish_chains): Iterate over objects, not allocnos.
5266         (print_object_live_ranges): New function.
5267         (print_allocno_live_ranges): Use it.
5268         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
5269         and objects_live.
5270
5271 2010-07-22  Richard Guenther  <rguenther@suse.de>
5272
5273         PR lto/42451
5274         * gimple.c (gtc_next_dfs_num): New global.
5275         (struct sccs): Make value a union, add integer same_p member.
5276         (gtc_visit): New function.
5277         (gimple_types_compatible_p_1): New function, split out from ...
5278         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
5279         (iterative_hash_gimple_type): Adjust for sccs change.
5280
5281 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5282
5283         PR tree-optimization/44891
5284         * tree-sra.c: Include gimple-pretty-print.h.
5285         (replace_uses_with_default_def_ssa_name): Renamed to
5286         get_repl_default_def_ssa_name, return the new SSA name instead of
5287         replacing the old one.
5288         (sra_modify_assign): Dump a message when removing a load, if the LHS
5289         is an SSA_NAME, do not do any propagation, just set the RHS to a
5290         default definition SSA NAME, type convert if necessary.
5291         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
5292
5293 2010-07-22  Richard Guenther  <rguenther@suse.de>
5294
5295         PR tree-optimization/45017
5296         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
5297         TYPE_PRECISION of integral types in addition to size.
5298
5299 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5300
5301         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
5302         when no C library is specified.
5303
5304 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5305
5306         * ipa-prop.h (struct ipa_node_params): Updated comment.
5307         (struct ipa_edge_args): Likewise.
5308         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
5309
5310 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5311
5312         * cgraphunit.c (verify_edge_count_and_frequency): New function.
5313         (verify_cgraph_node): Verify frequencies of indirect edges.
5314         * tree-inline.c (tree_function_versioning): Update frequencies of
5315         indirect edges.
5316
5317 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5318
5319         PR target/43698
5320         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
5321         Set *arm_rev to be predicable.
5322
5323 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5324
5325         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
5326         (LINK_COMMAND_SPEC_A): New.
5327         (DSYMUTIL): New.
5328         (DSYMUTIL_SPEC): New.
5329         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
5330         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
5331
5332 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5333
5334         * calls.c (load_register_parameters): Move check for zero
5335         sized items so that only the call to
5336         mem_overlaps_already_clobbered_arg_p () is protected.
5337
5338 2010-07-22  Jan Hubicka  <jh@suse.cz>
5339
5340         * ipa-pure-const.c (varying_state): Break out from ...
5341         (get_function_state): ... here; always return varying_state
5342         when state would be NULL otherwise.
5343         (remove_node_data): Do not free varying state.
5344
5345 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5346
5347         PR bootstrap/44970
5348         PR middle-end/45009
5349         * postreload.c: Include "target.h".
5350         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
5351         into account.
5352         (fixup_debug_insns): Don't copy the rtx.
5353         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
5354         Don't copy when replacing.  Call fixup_debug_insns in the case where
5355         we merged one add with another.
5356         (reload_combine_recognize_pattern): Fail if there aren't any uses.
5357         Try harder to determine whether we're picking a valid index register.
5358         Don't set store_ruid for an insn we're going to scan in the
5359         next iteration.
5360         (reload_combine): Remove unused code.
5361         (reload_combine_note_use): When updating use information for
5362         an old insn, ignore a use that occurs after store_ruid.
5363         * Makefile.in (postreload.o): Update dependencies.
5364
5365         * function.c (record_hard_reg_sets): Restrict the previous change
5366         to cases where the incoming nominal mode is the same as the
5367         incoming promoted mode and everything happens in MODE_INT.
5368
5369 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5370
5371         PR debug/45015
5372         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
5373         ASM_OPERANDS_OUTPUT_IDX.
5374         (adjust_insn): For inline asm with multiple sets ensure first
5375         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
5376         the insn.
5377
5378 2010-07-21  Richard Henderson  <rth@redhat.com>
5379
5380         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
5381         comparison for avoiding xmm register saves.  Emit the xmm register
5382         saves explicitly.
5383         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
5384         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
5385         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
5386         Remove patterns and the associated splitters.
5387
5388 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
5389
5390         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
5391         and imagine parts of a complex, so that they can have the same
5392         base and fall into the same group.
5393
5394 2010-07-21  Richard Guenther  <rguenther@suse.de>
5395
5396         PR lto/45018
5397         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
5398         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
5399         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
5400
5401 2010-07-21  Martin Jambor  <mjambor@suse.cz>
5402
5403         PR tree-optimization/44900
5404         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
5405         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
5406
5407 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
5408
5409         PR middle-end/44738
5410         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
5411
5412 2010-07-21  Richard Guenther  <rguenther@suse.de>
5413
5414         PR middle-end/45013
5415         * tree-ssa.c (useless_type_conversion_p): Dispatch to
5416         gimple_types_compatible_p only when in lto.
5417         * gimple.c (gimple_types_compatible_p): Use canonical types
5418         to speed up comparison.
5419
5420 2010-07-21  Richard Guenther  <rguenther@suse.de>
5421
5422         * tree-flow.h (referenced_var): Move define ...
5423         * tree-flow-inline.h (referenced_var): ... here as an inline
5424         function.  Assert here ...
5425         * tree-dfa.c (referenced_var_lookup): ... instead of here.
5426         * tree-ssa.c (maybe_optimize_var): Check if the variable
5427         is in referenced vars.
5428         (execute_update_addresses_taken): Remove old broken check.
5429         * gimple-pretty-print.c (pp_points_to_solution): Use
5430         referenced_var_lookup.
5431         * tree-into-ssa.c (dump_decl_set): Likewise.
5432
5433 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5434
5435         PR debug/45003
5436         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
5437         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
5438         ZERO_EXTEND here.
5439
5440 2010-07-20  Richard Henderson  <rth@redhat.com>
5441
5442         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
5443
5444 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5445
5446         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
5447         computing the sum of the stack pointer and a large constant.
5448         * config/arm/constraints.md (M): Remove superfluous parentheses.
5449         (Pc): New constraint.
5450
5451 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5452
5453         PR debug/45006
5454         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
5455         operand's type if exp is tcc_unary class tree.
5456
5457 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5458
5459         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
5460         Reverse sense of if_then_else condition.
5461
5462 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5463
5464         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
5465         * config/rs6000/rs6000.c (rs6000_override_options): Set
5466         rs6000_block_move_inline_limit appropriately.
5467         (expand_block_move): Use rs6000_block_move_inline_limit.
5468         * doc/invoke.texi (mblock-move-inline-limit): Document.
5469
5470 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5471
5472         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
5473         FROM and TO.  All callers changed.  Don't look for tracked uses,
5474         just scan the RTL for DEBUG_INSNs and substitute.
5475         (reload_combine_recognize_pattern): Call fixup_debug_insns.
5476         (reload_combine): Ignore DEBUG_INSNs.
5477
5478 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5479
5480         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
5481         depth to 8 from 5.
5482
5483         PR debug/45003
5484         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
5485         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
5486         instead of the result's type.
5487
5488 2010-07-20  Richard Guenther  <rguenther@suse.de>
5489
5490         PR tree-optimization/44977
5491         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
5492         SSA form.
5493
5494 2010-07-20  Richard Guenther  <rguenther@suse.de>
5495
5496         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
5497         (lto_symtab_merge_decls_2): Likewise.
5498         * gimple.h (gimple_types_compatible_p): Declare.
5499         * gimple.c (gimple_queue_type_fixup): Remove.
5500         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
5501         (gimple_compatible_complete_and_incomplete_type_p): New function.
5502         (gimple_types_compatible_p): Adjust.
5503         (gimple_register_type): Remove type fixup code.
5504         (print_gimple_types_stats): Adjust.
5505         (free_gimple_type_tables): Likewise.
5506         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
5507         * tree-ssa.c (useless_type_conversion_p): Likewise.
5508
5509 2010-07-20  Richard Guenther  <rguenther@suse.de>
5510
5511         PR middle-end/44971
5512         PR middle-end/44988
5513         * tree-ssa.c (maybe_optimize_var): New function split out from ...
5514         (execute_update_addresses_taken): ... here.
5515         (non_rewritable_mem_ref_base): Likewise.
5516         (execute_update_addresses_taken): Do not iterate over all referenced
5517         vars but just all local decls and parms.
5518         Properly check call and asm arguments and rewrite call arguments.
5519
5520 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
5521
5522         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
5523         to top level.
5524         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
5525         definitions ...
5526         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
5527         New macro.
5528         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
5529
5530 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5531
5532         * gengtype.c (start_root_entry): New function, split out from
5533         write_root.  Check whether V is null and raise an error if so.
5534         (write_field_root): Check for V being null.  Don't raise an error here;
5535         set V to null instead.
5536         (write_root): Update comment above function.  Use start_root_entry.
5537
5538 2010-07-19  Xinliang David Li  <davidxl@google.com>
5539
5540         PR testsuite/44932
5541         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
5542         def edges.
5543         (find_uninit_use): Add dump.
5544         (is_use_properly_guarded): Ditto.
5545         (warn_uninitialized_phi): Ditto.
5546         (execute_late_warn_uninitialized): Ditto.
5547
5548 2010-07-19  Richard Guenther  <rguenther@suse.de>
5549
5550         PR middle-end/44941
5551         * expr.c (emit_block_move_hints): Move zero size check first.
5552         Move asserts to more useful places.
5553         * calls.c (load_register_parameters): Check for zero size.
5554
5555 2010-07-19  Richard Henderson  <rth@redhat.com>
5556
5557         * tree-optimize.c (execute_all_early_local_passes): New.  Change
5558         cgraph_state here ...
5559         (execute_early_local_optimizations): ... not here.  Remove.
5560         (pass_early_local_passes, pass_all_early_optimizations): Update.
5561
5562 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
5563
5564         * postreload.c (reload_combine_closest_single_use): Ignore the
5565         number of uses for DEBUG_INSNs.
5566         (fixup_debug_insns): New static function.
5567         (reload_combine_recognize_const_pattern): Use it.  Don't let the
5568         main loop be affected by DEBUG_INSNs.
5569         Really disallow moving adds past a jump insn.
5570         (reload_combine_recognize_pattern): Don't update use_ruid here.
5571         (reload_combine_note_use): Do it here.
5572         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
5573
5574 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
5575
5576         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
5577         of a loop.
5578         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
5579
5580 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
5581
5582         * config/i386/darwin.h: Define darwin_emit_branch_islands.
5583         (TARGET_MACHO_BRANCH_ISLANDS): New.
5584         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
5585         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
5586         default value.
5587         * config/i386/i386.c (output_pic_addr_const): Do not emit
5588         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
5589         (x86_output_mi_thunk): Adjust symbol creation.
5590         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
5591         Remove out of date comment.
5592         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
5593         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5594         (DARWIN_GENERATE_ISLANDS): Ditto.
5595         (output_call):  Do not emit branch islands unless
5596         darwin_emit_branch_islands is set.
5597         * config/darwin.c: Declare darwin_emit_branch_islands.
5598         (machopic_indirect_data_reference): Do not emit unless
5599         darwin_emit_branch_islands is set.
5600         (darwin_override_options): Set darwin_emit_branch_islands
5601         where it is needed.
5602         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5603
5604 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5605
5606         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5607         sse_runtime, sse2_runtime.
5608
5609 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
5610
5611         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
5612         low half of a single-register SCmode return value before ORing
5613         it with the high half.
5614         * config/mips/mips16.S (MERGE_GPRf): Likewise.
5615
5616 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5617
5618         PR target/44805
5619         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
5620         on all targets.
5621
5622 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
5623
5624         PR target/42235
5625         * postreload.c (reload_cse_move2add): Return bool, true if anything.
5626         changed.  All callers changed.
5627         (move2add_use_add2_insn): Likewise.
5628         (move2add_use_add3_insn): Likewise.
5629         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
5630         reload_combine.
5631         (RELOAD_COMBINE_MAX_USES): Bump to 16.
5632         (last_jump_ruid): New static variable.
5633         (struct reg_use): New members CONTAINING_MEM and RUID.
5634         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
5635         (reload_combine_split_one_ruid, reload_combine_split_ruids,
5636         reload_combine_purge_insn_uses, reload_combine_closest_single_use
5637         reload_combine_purge_reg_uses_after_ruid,
5638         reload_combine_recognize_const_pattern): New static functions.
5639         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
5640         is true for our reg and that we have available index regs.
5641         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
5642         callers changed.  Use them to initialize fields in struct reg_use.
5643         (reload_combine): Initialize last_jump_ruid.  Be careful when to
5644         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
5645         Call reload_combine_recognize_const_pattern.
5646         (reload_combine_note_store): Update REAL_STORE_RUID field.
5647
5648 2010-07-16  Jason Merrill  <jason@redhat.com>
5649
5650         * Makefile.in (opts-common.o): Depend on options.h.
5651
5652 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
5653
5654         * tree.c (build_common_builtin_nodes): Use build_function_type_list
5655         instead of build_function_type.
5656         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
5657         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5658
5659 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
5660
5661         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
5662         do all the work.
5663         (rs6000_emit_int_cmove): Use function pointers for insn generation.
5664         Don't force values into registers unnecessarily.
5665         (output_isel): Assert that we're not given conditions we can't handle.
5666         Delete corresponding code.
5667         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
5668         scc_comparison_operator constraint.  Permit 0 for the consequent
5669         operand.  Permit any GPR for the alternative operand.
5670         (isel_unsigned_<mode>): Likewise.
5671
5672 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
5673
5674         PR target/44942
5675         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
5676         argument to const_tree.
5677         * config/i386/i386.c (function_arg_advance): If padding needs to be
5678         inserted before argument, increment cum->words by number of padding
5679         words as well.
5680         (contains_aligned_value_p): Change argument to const_tree.
5681         (ix86_function_arg_boundary): Change second argument to const_tree.
5682
5683 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
5684
5685         PR target/42235
5686         * function.c (record_hard_reg_sets): New static function.
5687         (assign_parm_setup_reg): If an optab for extending exists and the
5688         generated code clobbbers no hard regs, emit the insn directly and
5689         create a REG_EQUIV note.
5690
5691 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5692
5693         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
5694         TREE_CHAIN.
5695         * c-typeck.c (push_init_level): Likewise.
5696         (process_init_element): Likewise.
5697
5698 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
5699
5700         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
5701         (integer_three_node): Add.
5702         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
5703         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
5704         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
5705         of call build_int_cst.
5706         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
5707         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
5708         (find_interesting_uses_address): Ditto.
5709         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
5710         * tree-eh.c (lower_eh_constructs_2): Ditto.
5711         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
5712         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
5713         * expmed.c (expand_divmod): Ditto.
5714         * tree-mudflap.c (mx_register_decls): Ditto.
5715         * varasm.c (array_size_for_constructor): Ditto.
5716         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5717         * c-parser.c (c_parser_postfix_expression): Ditto.
5718
5719 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5720
5721         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
5722         New static variables.
5723         (reload_combine_recognize_pattern): New static function, broken out
5724         of reload_combine.
5725         (reload_combine): Use it.  Only initialize first_index_reg and
5726         last_index_reg once.
5727
5728 2010-07-15  Richard Henderson  <rth@redhat.com>
5729
5730         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
5731         when done.
5732
5733 2010-07-15  Jan Hubicka  <jh@suse.cz>
5734
5735         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
5736         comdats for broken gold.
5737         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
5738
5739 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5740
5741         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
5742
5743 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5744
5745         * tree.h (DECL_CHAIN): Define.
5746         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5747         * c-decl.c: Likewise.
5748         * c-parser.c: Likewise.
5749         * c-typeck.c: Likewise.
5750         * cfgexpand.c: Likewise.
5751         * cgraph.c: Likewise.
5752         * cgraphunit.c: Likewise.
5753         * combine.c: Likewise.
5754         * config/alpha/alpha.c: Likewise.
5755         * config/arm/arm.c: Likewise.
5756         * config/frv/frv.c: Likewise.
5757         * config/i386/i386.c: Likewise.
5758         * config/i386/winnt-cxx.c: Likewise.
5759         * config/ia64/ia64.c: Likewise.
5760         * config/iq2000/iq2000.c: Likewise.
5761         * config/mep/mep.c: Likewise.
5762         * config/mips/mips.c: Likewise.
5763         * config/pa/som.h: Likewise.
5764         * config/rs6000/rs6000.c: Likewise.
5765         * config/s390/s390.c: Likewise.
5766         * config/sh/sh.c: Likewise.
5767         * config/sh/symbian-cxx.c: Likewise.
5768         * config/sparc/sparc.c: Likewise.
5769         * config/spu/spu.c: Likewise.
5770         * config/stormy16/stormy16.c: Likewise.
5771         * config/vxworks.c: Likewise.
5772         * config/xtensa/xtensa.c: Likewise.
5773         * coverage.c: Likewise.
5774         * dbxout.c: Likewise.
5775         * dwarf2out.c: Likewise.
5776         * emit-rtl.c: Likewise.
5777         * expr.c: Likewise.
5778         * function.c: Likewise.
5779         * gimple-low.c: Likewise.
5780         * gimple-pretty-print.c: Likewise.
5781         * gimplify.c: Likewise.
5782         * integrate.c: Likewise.
5783         * ipa-inline.c: Likewise.
5784         * ipa-prop.c: Likewise.
5785         * ipa-split.c: Likewise.
5786         * ipa-struct-reorg.c: Likewise.
5787         * ipa-type-escape.c: Likewise.
5788         * langhooks.c: Likewise.
5789         * lto-cgraph.c: Likewise.
5790         * omp-low.c: Likewise.
5791         * stor-layout.c: Likewise.
5792         * tree-cfg.c: Likewise.
5793         * tree-complex.c: Likewise.
5794         * tree-dfa.c: Likewise.
5795         * tree-dump.c: Likewise.
5796         * tree-inline.c: Likewise.
5797         * tree-mudflap.c: Likewise.
5798         * tree-nested.c: Likewise.
5799         * tree-object-size.c: Likewise.
5800         * tree-pretty-print.c: Likewise.
5801         * tree-sra.c: Likewise.
5802         * tree-ssa-live.c: Likewise.
5803         * tree-ssa-loop-niter.c: Likewise.
5804         * tree-ssa-math-opts.c: Likewise.
5805         * tree-ssa-reassoc.c: Likewise.
5806         * tree-ssa-sccvn.c: Likewise.
5807         * tree-ssa-structalias.c: Likewise.
5808         * tree-tailcall.c: Likewise.
5809         * tree-vrp.c: Likewise.
5810         * tree.c: Likewise.
5811         * var-tracking.c: Likewise.
5812         * varasm.c: Likewise.
5813
5814 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5815
5816         PR target/44877
5817         * config/spu/spu.c (spu_expand_builtin_1): Allow references
5818         (as well as pointers) as argument to mask_for_load builtins.
5819
5820 2010-07-15  Richard Guenther  <rguenther@suse.de>
5821
5822         PR tree-optimization/44946
5823         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
5824         with accessing only padding properly.
5825
5826 2010-07-15  Jan Hubicka  <jh@suse.cz>
5827
5828         * ipa.c (function_and_variable_visibility): Variables marked as used
5829         should not be localized.
5830
5831 2010-07-15  Jan Hubicka  <jh@suse.cz>
5832
5833         * cgraph.c: Include lto-streamer.h
5834         (change_decl_assembler_name): Work when assembler name hash is at place.
5835         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
5836         be sure to rename it to avoid name clash.
5837         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
5838         Localize hidden symbols only when locally defined.
5839
5840 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
5841
5842         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
5843
5844 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
5845             Kevin F. Quinn  <kevquinn@gentoo.org>
5846
5847         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
5848         * common.opt: Add -Wtrampolines.
5849         * doc/invoke.texi: Add -Wtrampolines.
5850
5851 2010-07-15  Jie Zhang  <jie@codesourcery.com>
5852
5853         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
5854         cortex_a8_issue_ls.
5855
5856 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
5857
5858         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
5859         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
5860
5861 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5862
5863         * config/spu/spu.c (reg_names): Remove prototype.
5864         (call_used_regs): Likewise.
5865
5866 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
5867
5868         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
5869         "unused" with attribute "used".
5870         (__JCR_END__): Likewise.
5871         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
5872         "used" attribute.
5873         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
5874
5875 2010-07-14  Richard Guenther  <rguenther@suse.de>
5876
5877         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
5878         (maybe_fixup_decls): Likewise.
5879         (input_gimple_stmt): Do not fixup anything.
5880         * lto-streamer-out.c (output_gimple_stmt): Make sure all
5881         non-automatic variable uses are wrapped inside a MEM_REF.
5882
5883 2010-07-14  Richard Henderson  <rth@redhat.com>
5884
5885         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
5886         for functions.
5887         * varasm.c (assemble_variable): Remove early exit for functions;
5888         assert that we're given a variable.
5889
5890 2010-07-14  Jie Zhang  <jie@codesourcery.com>
5891
5892         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
5893         cortex_a8_default when neon_type is not none.
5894
5895 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5896
5897         * lower-subreg.c (subreg_context): New static bitmap.
5898         (decompose_multiword_subregs): Allocate and free it.
5899         (find_decomposable_subregs): Set a bit in it for a register that
5900         occurs in a subreg that changes mode but not size.
5901         (can_decompose_p): Test it instead of non_decomposable_context.
5902
5903 2010-07-14  Richard Guenther  <rguenther@suse.de>
5904
5905         PR tree-optimization/44824
5906         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
5907         is_gimple_mem_ref_addr.
5908         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
5909         non-decl_address_invariant_p addresses.
5910
5911 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5912
5913         * reload.c (find_reloads): Revert code to penalize small register
5914         classes that was brought in with the IRA merge.
5915
5916 2010-07-14  Richard Guenther  <rguenther@suse.de>
5917
5918         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
5919         as base of ARRAY_REFs.
5920
5921 2010-07-14  Richard Guenther  <rguenther@suse.de>
5922
5923         PR middle-end/44930
5924         * tree-pretty-print.c (do_niy): Do not print a newline.
5925
5926 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5927
5928         * ira-int.h (struct ira_object): New.
5929         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
5930         (struct ira_allocno): Remove members min, max,
5931         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
5932         conflict_allocnos_num and conflict_vec_p.  Add new member object.
5933         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
5934         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
5935         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
5936         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
5937         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
5938         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
5939         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
5940         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
5941         an ira_object_t rather than ira_allocno_t.  All uses changed.
5942         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
5943         contains a vector of ira_object_t; all uses changed.
5944         (ira_objects_num): Declare variable.
5945         (ira_create_allocno_object): Declare function.
5946         (ira_conflict_vector_profitable_p): Adjust prototype.
5947         (ira_allocate_conflict_vec): Renamed from
5948         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
5949         (ira_allocate_object_conflicts): Renamed from
5950         ira_allocate_allocno_conflicts; first arg now ira_object_t.
5951         (struct ira_object_iterator): New.
5952         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
5953         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
5954         to conflict_vec_p.  All uses changed.
5955         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
5956         Changed to take into account that conflicts are now tracked for
5957         objects.
5958         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
5959         Args changed to accept ira_object_t.  All uses changed.
5960         (allocnos_conflict_p): New static function.
5961         (collected_conflict_objects): Renamed from collected_allocno_objects;
5962         now a vector of ira_object_t.  All uses changed.
5963         (build_conflict_bit_table): Changed to take into account that
5964         conflicts are now tracked for objects.
5965         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
5966         (print_allocno_conflicts, ira_build_conflicts): Likewise.
5967         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
5968         setup_allocno_left_conflicts_size, allocno_reload_assign,
5969         fast_allocation): Likewise.
5970         * ira-lives.c (make_hard_regno_born, make_allocno_born)
5971         process_single_reg_class_operands, process_bb_node_lives): Likewise.
5972         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
5973         Likewise.
5974         * ira-build.c (ira_objects_num): New variable.
5975         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
5976         contains a vector of ira_object_t; all uses changed.
5977         (ira_object_id_map_vec): Corresponding change.
5978         (object_pool): New static variable.
5979         (initiate_allocnos): Initialize it.
5980         (finish_allocnos): Free it.
5981         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
5982         New functions.
5983         (ira_create_allocno): Don't set members that were removed.
5984         (ira_set_allocno_cover_class): Don't change conflict hard regs.
5985         (merge_hard_reg_conflicts): Changed to take into account that
5986         conflicts are now tracked for objects.
5987         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
5988         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
5989         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
5990         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
5991         setup_min_max_conflict_allocno_ids, ):  Likewise.
5992         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
5993         to ira_object_t; all callers changed.
5994         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
5995         to ira_object_t, all callers changed.
5996         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
5997         to ira_object_t, all callers changed.
5998         (conflict_check, curr_conflict_check_tick): Renamed from
5999         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
6000         changed.
6001         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
6002         arg changed to ira_object_t, all callers changed.
6003         (create_cap_allocno): Call ira_create_allocno_object.
6004         (finish_allocno): Free the corresponding object.
6005         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
6006         callers changed.  Adjusted for dealing with objects.
6007         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
6008         dealing with objects.
6009         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
6010
6011         * ira-int.h (struct live_range): Rename allocno member to object
6012         and change type to ira_object_t.
6013         (struct ira_object): New member live_ranges.
6014         (struct ira_allocno): Remove member live_ranges.
6015         (ALLOCNO_LIVE_RANGES): Remove.
6016         (OBJECT_LIVE_RANGES): New macro.
6017         (ira_create_live_range, ira_copy_live_range_list,
6018         ira_merge_live_range_list, ira_live_ranges_intersect_p,
6019         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
6020         * ira-build.c (ira_create_object): Initialize live ranges here.
6021         (ira_create_allocno): Not here.
6022         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
6023         changed to ira_object_t, all callers changed.
6024         (copy_live_range): Rename from copy_allocno_live_range, all callers
6025         changed.
6026         (ira_copy_live_range_list): Rename from
6027         ira_copy_allocno_live_range_list, all callers changed.
6028         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
6029         all callers changed.
6030         (ira_live_ranges_intersect_p): Rename from
6031         ira_allocno_live_ranges_intersect_p, all callers changed.
6032         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
6033         callers changed.
6034         (ira_finish_live_range_list): Rename from
6035         ira_finish_allocno_live_range_list, all callers changed.
6036         (change_object_in_range_list): Rename from change_allocno_in_range_list,
6037         last arg changed to ira_object_t, all callers changed.
6038         (finish_allocno): Changed to expect live ranges in the allocno's object.
6039         (move_allocno_live_ranges, copy_allocno_live_ranges,
6040         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
6041         ira_flattening, ira_build): Likewise.
6042         * ira-color.c (allocnos_have_intersected_live_ranges_p,
6043         slot_coalesced_allocno_live_ranges_intersect,
6044         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
6045         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6046         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
6047         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
6048         make_allocno_dead, create_start_finish_chains,
6049         remove_some_program_points_and_update_live_ranges,
6050         ira_debug_live_range_list): Likewise.
6051
6052         * ira-int.h (ira_object_conflict_iterator): Rename from
6053         ira_allocno_conflict_iterator.
6054         (ira_object_conflict_iter_init): Rename from
6055         ira_allocno_conflict_iter_init, second arg changed to
6056         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
6057         FOR_EACH_ALLOCNO_CONFLICT.
6058         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
6059         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
6060         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
6061         * ira-conflicts.c (print_allocno_conflicts): Likewise.
6062
6063 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
6064
6065         PR other/44874
6066         * tree-dump.c (dump_options): Add enumerate_locals entry.
6067         Add TDF_NOID exclusion to all entry.
6068         * tree-dump.h (dump_enumerated_decls): Declare.
6069         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
6070         Don't display type uid.
6071         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
6072         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
6073         * tree-ssa-live.c: Include gimple.h.
6074         (numbered_tree_d): New struct.
6075         (numbered_tree): New typedef.
6076         (DEF_VEC_O (numbered_tree): New.
6077         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
6078         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
6079         (dump_enumerated_decls): Likewise.
6080         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
6081         debug info and flag_dump_final_insns, call dump_enumerated_decls.
6082         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
6083         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
6084
6085 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
6086
6087         * expmed.h (MAX_BITS_PER_WORD): Move to...
6088         * defaults.h (MAX_BITS_PER_WORD): ...here.
6089
6090 2010-07-13  DJ Delorie  <dj@redhat.com>
6091
6092         * config/h8300/h8300.c (h8300_init_once): Default to
6093         -fstrict_volatile_bitfields.
6094
6095         * config/sh/sh.c (sh_override_options): Default to
6096         -fstrict_volatile_bitfields.
6097
6098         * config/rx/rx.c (rx_option_override): New.
6099
6100         * config/m32c/m32c.c (m32c_override_options): Default to
6101         -fstrict_volatile_bitfields.
6102
6103 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
6104
6105         * tree.h (build_function_call_expr): Delete.
6106         (build_call_expr_loc_array): New function.
6107         (build_call_expr_loc_vec): New function.
6108         * tree-flow.h (struct omp_region): Change type of ws_args field
6109         to a VEC.
6110         * builtins.c (build_function_call_expr): Delete.
6111         (build_call_expr_loc_array): New function.
6112         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
6113         (build_call_expr): Likewise.
6114         (build_call_expr_loc_vec): New function.
6115         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
6116         build_function_call_expr.
6117         * expr.c (emutls_var_address): Likewise.
6118         * varasm.c (emutls_common_1): Likewise.
6119         * omp-low.c (expand_omp_atomic_mutex): Likewise.
6120         (expand_omp_taskreg): Adjust for new type of region->ws_args.
6121         (get_ws_args_for): Return a VEC instead of a tree.
6122         (expand_parallel_call): Call build_call_expr_loc_vec instead of
6123         build_function_call_expr.
6124         * stor-layout.c (self_referential_size): Likewise.
6125
6126 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6127
6128         PR testsuite/44701
6129         * recog.c (constrain_operands): Allow side-effects in memory
6130         operands if either < or > constraint is used, rather than if
6131         both < and > is used.
6132
6133 2010-07-13  Richard Guenther  <rguenther@suse.de>
6134
6135         PR middle-end/44911
6136         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
6137         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
6138         without name.
6139
6140 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6141
6142         PR target/44761
6143         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
6144         to variable emited.
6145         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
6146         * config/sh/sh.md (symGOT_load): Likewise.
6147         (symDTPOFF2reg): Likewise.
6148         (symTPOFF2reg): Likewise.
6149
6150 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6151
6152         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
6153         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
6154
6155 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6156
6157         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
6158         explanation.
6159         Find ucontext_t * on Solaris 11.
6160         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
6161         Handle new Solaris 11 __sighndlr patterns.
6162
6163 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
6164
6165         PR debug/44901
6166         * vec.h (VEC_block_remove): Fix comment.
6167         * tree-ssa-live.c (remove_unused_locals): Don't use
6168         VEC_unordered_remove on local_decls, instead replace a single
6169         vector element in each iteration if at least one element had
6170         to be removed and VEC_truncate at the end.
6171         * omp-low.c (expand_omp_taskreg): Likewise.
6172
6173 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6174
6175         * c-decl.c (finish_function): Fix typo in comment.
6176
6177 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
6178
6179         PR bootstrap/44921
6180         * postreload.c (move2add_use_add3_insn): Silence gcc warning
6181         on min_regno.
6182
6183 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
6184
6185         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
6186         (simplify_stmt_using_ranges): Use it.
6187
6188 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6189
6190         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
6191         member.  Do not mark as GTY(()).
6192         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
6193         (spu_builtin_decls): New static variable.
6194         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
6195         (spu_init_builtins): Likewise.
6196         (spu_builtin_mul_widen_even): Likewise.
6197         (spu_builtin_mul_widen_odd): Likewise.
6198         (spu_builtin_mask_for_load): Likewise.
6199         (spu_builtin_vec_perm): Likewise.
6200         * config/spu/spu-c.c: Include "target.h".
6201         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
6202         of using spu_builtins[].fndecl.
6203
6204 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6205
6206         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
6207         imply -minterlink-mips16.
6208
6209 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6210
6211         * config/mips/mips.h (mips16_globals): Declare.
6212         (SWITCHABLE_TARGET): Define.
6213         * config/mips/mips.c: Include target-globals.h.
6214         (mips16_globals): New variable.
6215         (mips_set_mips16_mode): Use save_target_globals and
6216         restore_target_globals instead of target_reinit.
6217
6218 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6219
6220         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
6221         to say that the function can be called more than once.
6222         * target-globals.c (save_target_globals): Call init_reg_sets.
6223
6224 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6225
6226         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
6227         * bb-reorder.h: New file.
6228         * bb-reorder.c (default_target_bb_reorder): New variable.
6229         (this_target_bb_reorder): New conditional variable.
6230         (uncond_jump_length): Redefine as a macro.
6231         * target-globals.h (this_target_bb_reorder): Declare.
6232         (target_globals): Add a bb_reorder field.
6233         (restore_target_globals): Copy the bb_reorder field to
6234         this_target_bb-reorder.
6235         * target-globals.c: Include bb-reorder.h.
6236         (default_target_globals): Initialize the bb_reorder field.
6237         (save_target_globals): Likewise.
6238
6239 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6240
6241         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
6242         * gcse.h: New file.
6243         * gcse.c: Include gcse.h.
6244         (default_target_gcse): New variable.
6245         (this_target_gcse): New conditional variable.
6246         (can_copy): Redefine as a macro.
6247         (can_copy_init_p): New macro.
6248         (can_copy_p): Remove can_copy_init_p.
6249         * target-globals.h (this_target_gcse): Declare.
6250         (target_globals): Add a gcse field.
6251         (restore_target_globals): Copy the gcse field to this_target_gcse.
6252         * target-globals.c: Include gcse.h.
6253         (default_target_globals): Initialize the gcse field.
6254         (save_target_globals): Likewise.
6255
6256 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6257
6258         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
6259         and x_ira_prohibited_mode_move_regs_initialized_p.
6260         (ira_prohibited_mode_move_regs): Redefine as a macro.
6261         * ira.c (ira_prohibited_mode_move_regs): Delete.
6262         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
6263
6264 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6265
6266         * reload.h (target_reload): Add x_cached_reg_save_code and
6267         x_cached_reg_restore_code.
6268         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
6269         Redefine as macros.
6270
6271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6272
6273         * Makefile.in (target-globals.o): Depend on builtins.h.
6274         * builtins.h: New file.
6275         * builtins.c: Include builtins.h.
6276         (default_target_builtins): New variable.
6277         (this_target_builtins): New conditional variable.
6278         (apply_args_mode, apply_result_mode): Redefine as macros.
6279         * target-globals.h (this_target_builtins): Declare.
6280         (target_globals): Add a builtins field.
6281         (restore_target_globals): Copy the builtins field to
6282         this_target_builtins.
6283         * target-globals.c: Include builtins.h.
6284         (default_target_globals): Initialize the builtins field.
6285         (save_target_globals): Likewise.
6286
6287 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6288
6289         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
6290         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
6291         from expmed.c.
6292         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
6293         (alg_hash, alg_hash_used_p): New macros.
6294         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
6295         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
6296         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
6297
6298 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6299
6300         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
6301         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
6302         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
6303         (this_op_costs, costs_classes): Redefine as macros.
6304         (record_reg_classes): Don't take op_costs as a parameter.
6305         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
6306         (scan_one_insn): Update call to record_operand_costs.
6307
6308 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6309
6310         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
6311         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
6312         (target_ira_int): New structure.
6313         (default_target_ira_int): Declare.
6314         (this_target_ira_int): Declare as a variable or define as a macro.
6315         (ira_reg_mode_hard_regset, ira_register_move_cost)
6316         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
6317         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
6318         (prohibited_class_mode_regs, ira_important_classes_num)
6319         (ira_important_classes, ira_reg_class_intersect)
6320         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
6321         (ira_reg_class_union): Redefine as macros.
6322         * ira.h (target_ira): New structure.
6323         (default_target_ira): Declare.
6324         (this_target_ira): Declare as a variable or define as a macro.
6325         (ira_available_class_regs, ira_hard_regno_cover_class)
6326         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
6327         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
6328         (ira_class_hard_regs_num): Redefine as macros.
6329         * ira.c (default_target_ira, default_target_ira_int): New variables.
6330         (this_target_ira, this_target_ira_int): New conditional variables.
6331         (ira_reg_mode_hard_regset, ira_memory_move_cost)
6332         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
6333         (ira_class_subset_p): Delete.
6334         (no_unit_alloc_regs): Redefine as a macro.
6335         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
6336         (ira_class_hard_regs_num, ira_class_hard_reg_index)
6337         (ira_available_class_regs): Delete.
6338         (alloc_reg_class_subclasses): Redefine as a macro.
6339         (ira_reg_class_cover_size, ira_reg_class_cover)
6340         (ira_important_classes_num, ira_important_classes)
6341         (ira_important_class_nums, ira_class_translate): Delete.
6342         (cover_class_order): Document the variable's lifetime.
6343         (reorder_important_classes): Don't set ira_important_class_nums.
6344         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
6345         (ira_reg_class_super_classes, ira_reg_class_union)
6346         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
6347         Delete.
6348         (setup_reg_class_nregs): Don't set ira_max_regs.
6349         (prohibited_class_mode_regs): Delete.
6350         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
6351         (target_globals): Add ira and ira_int fields.
6352         (restore_target_globals): Copy the ira field to this_target_ira
6353         and the ira_int field to this_target_ira_int.
6354         * target-globals.c: Include ira-int.h.
6355         (default_target_globals): Initialize the ira and ira_int fields.
6356         (save_target_globals): Likewise.
6357
6358 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6359
6360         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
6361         * cfgloop.h (target_cfgloop): New structure.
6362         (default_target_cfgloop): Declare.
6363         (this_target_cfgloop): Declare as a variable or define as a macro.
6364         (target_avail_regs, target_clobbered_regs, target_res_regs)
6365         (target_reg_cost, target_spill_cost): Redefine as macros.
6366         * cfgloopanal.c (default_target_cfgloop): New variable.
6367         (this_target_cfgloop): New conditional variable.
6368         (target_avail_regs, target_clobbered_regs, target_res_regs)
6369         (target_reg_cost, target_spill_cost): Delete.
6370         * target-globals.h (this_target_cfgloop): Declare.
6371         (target_globals): Add a cfgloop field.
6372         (restore_target_globals): Copy the cfgloop field to
6373         this_target_cfgloop.
6374         * target-globals.c: Include cfgloop.h.
6375         (default_target_globals): Initialize the cfgloop field.
6376         (save_target_globals): Likewise.
6377
6378 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6379
6380         * regs.h (target_regs): Add x_direct_load, x_direct_store and
6381         x_float_extend_from_mem.
6382         (direct_load, direct_store, float_extend_from_mem): New macros.
6383         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
6384
6385 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6386
6387         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
6388         (target-globals.o): Depend on $(LIBFUNCS_H).
6389         * libfuncs.h: Include hashtab.h.
6390         (libfunc_entry): Moved from optabs.c.
6391         (target_libfuncs): New structure.
6392         (default_target_libfuncs): Declare.
6393         (this_target_libfuncs): Declare as a variable or define as a macro.
6394         (libfunc_table): Redefine as a macro.
6395         * optabs.c (default_target_libfuncs): New variable.
6396         (this_target_libfuncs): New conditional variable.
6397         (libfunc_table): Delete.
6398         (libfunc_entry): Moved to optabs.h.
6399         (libfunc_hash): Redefine as a macro.
6400         (hash_libfunc, eq_libfunc): Fix comments.
6401         (init_optabs): Use libfunc_hash to detect cases where the function
6402         has already been called.  Clear the hash table instead of
6403         recreating it.
6404         * target-globals.h (this_target_libfuncs): Declare.
6405         (target_globals): Add a libfuncs field.
6406         (restore_target_globals): Copy the libfuncs field to
6407         this_target_libfuncs.
6408         * target-globals.c: Include libfuncs.h.
6409         (default_target_globals): Initialize the libfuncs field.
6410         (save_target_globals): Likewise.
6411
6412 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6413
6414         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
6415         in all dependency lists.
6416
6417 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6418
6419         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
6420         * optabs.h (target_optabs): New structure.
6421         (default_target_optabs): Declare.
6422         (this_target_optabs): Declare as a variable or define as a macro.
6423         (optab_table, convert_optab_table, direct_optab_table): Redefine
6424         as macros.
6425         * optabs.c (default_target_optabs): New variable.
6426         (this_target_optabs): New conditional variable.
6427         (optab_table, convert_optab_table, direct_optab_table): Delete.
6428         * target-globals.h (this_target_optabs): Declare.
6429         (target_globals): Add a optabs field.
6430         (restore_target_globals): Copy the optabs field to
6431         this_target_optabs.
6432         * target-globals.c: Include expr.h and optabs.h.
6433         (default_target_globals): Initialize the optabs field.
6434         (save_target_globals): Likewise.
6435
6436 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6437
6438         * flags.h (target_flagstate): Add x_flag_excess_precision.
6439         (flag_excess_precision): Redefine as a macro.
6440         * toplev.c (flag_excess_precision): Delete.
6441
6442 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6443
6444         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
6445         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
6446         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
6447         (no_caller_save_reg_set): Redefine as a macro.
6448         * reload.h (target_reload): Add x_caller_save_initialized_p and
6449         x_regno_save_mode.
6450         (caller_save_initialized_p): Redefine as a macro.
6451         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
6452         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
6453         (regno_save_mode): Redefine as a macro.
6454
6455 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6456
6457         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
6458         * expmed.h: New file.
6459         * expmed.c (default_target_costs): New variable.
6460         (this_target_costs): New conditional variable.
6461         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
6462         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
6463         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
6464         * target-globals.h (this_target_expmed): Declare.
6465         (target_globals): Add a expmed field.
6466         (restore_target_globals): Copy the expmed field to
6467         this_target_expmed.
6468         * target-globals.c: Include expmed.h.
6469         (default_target_globals): Initialize the expmed field.
6470         (save_target_globals): Likewise.
6471
6472 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6473
6474         * Makefile.in (target-globals.o): Depend on reload.h.
6475         * reload.h (target_reload): New structure.
6476         (default_target_reload): Declare.
6477         (this_target_reload): Declare as a variable or define as a macro.
6478         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
6479         * reload1.c (default_target_reload): New variable
6480         (this_target_reload): New conditional variable.
6481         (indirect_symref_ok, double_reg_address_ok): Delete.
6482         (spill_indirect_levels): Redefine as a macro.
6483         * target-globals.h (this_target_reload): Declare.
6484         (target_globals): Add a reload field.
6485         (restore_target_globals): Copy the reload field to
6486         this_target_reload.
6487         * target-globals.c: Include hard-reg-set.h.
6488         (default_target_globals): Initialize the reload field.
6489         (save_target_globals): Likewise.
6490
6491 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6492
6493         * rtl.h (target_rtl): Add x_static_reg_base_value.
6494         * alias.c (static_reg_base_value): Redefine as a macro.
6495
6496 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6497
6498         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
6499         (GTFILES): Remove reginfo.c.
6500         * rtl.h (target_rtl): Add x_top_of_stack.
6501         (top_of_stack): New macro.
6502         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
6503         (top_of_stack): Delete.
6504
6505 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6506
6507         * regs.h (target_regs): Add x_hard_regs_of_mode,
6508         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
6509         x_may_move_out_cost and x_last_mode_for_init_move_cost.
6510         (have_regs_of_mode, contains_reg_of_mode, move_cost)
6511         (may_move_in_cost, may_move_out_cost): Redefine as macros.
6512         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
6513         (may_move_in_cost, may_move_out_cost): Delete.
6514         (last_mode_for_init_move_cost): Redefine as a macro.
6515
6516 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6517
6518         * hard-reg-set.h (target_hard_regs): New structure.
6519         (default_target_hard_regs): Declare.
6520         (this_target_hard_regs): Declare as a variable or define as a macro.
6521         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
6522         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
6523         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
6524         (reg_class_size, reg_class_subclasses, reg_class_subunion)
6525         (reg_class_superunion, reg_names): Redefine as macros.
6526         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
6527         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
6528         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
6529         (reg_class_contents, reg_class_size, reg_class_subclasses)
6530         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
6531         (default_target_hard_regs): New variable
6532         (this_target_hard_regs, initial_call_really_used_regs)
6533         (initial_reg_alloc_order): New conditional variables.
6534         (initial_reg_names): New variable.
6535         (init_reg_sets): Assert that initial_call_really_used_regs,
6536         initial_reg_alloc_order and initial_reg_names
6537         are all the same size as their variable counterparts.  Use them to
6538         initialize those counterparts.
6539         * target-globals.h (this_target_hard_regs): Declare.
6540         (target_globals): Add a hard_regs field.
6541         (restore_target_globals): Copy the hard_regs field to
6542         this_target_hard_regs.
6543         * target-globals.c: Include hard-reg-set.h.
6544         (default_target_globals): Initialize the hard_regs field.
6545         (save_target_globals): Likewise.
6546
6547 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6548
6549         * Makefile.in (target-globals.o): Depend on $(RTL_H).
6550         * rtl.h (target_rtl): New structure.
6551         (default_target_rtl): Declare.
6552         (this_target_rtl): Declare as a variable or define as a macro.
6553         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
6554         Redefine as macros.
6555         * emit-rtl.c (default_target_rtl): New variable.
6556         (this_target_rtl): New conditional variable.
6557         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
6558         (return_address_pointer_rtx): Delete.
6559         (initial_regno_reg_rtx): New macro.
6560         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
6561         (init_emit_regs): Likewise.
6562         * target-globals.h (this_target_rtl): Declare.
6563         (target_globals): Add a rtl field.
6564         (restore_target_globals): Copy the rtl field to this_target_rtl.
6565         * target-globals.c: Include rtl.h.
6566         (default_target_globals): Initialize the rtl field.
6567         (save_target_globals): Likewise.
6568
6569 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6570
6571         * Makefile.in (target-globals.o): Depend on $(REGS_H).
6572         * regs.h (target_reg_modes): New structure.
6573         (default_target_reg_modes): Declare.
6574         (this_target_reg_modes): Declare as a variable or define as a macro.
6575         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
6576         * reginfo.c (default_target_reg_modes): New variable.
6577         (this_target_reg_modes): New conditional variable.
6578         (hard_regno_nregs, reg_raw_mode): Delete.
6579         * target-globals.h (this_target_regs): Declare.
6580         (target_globals): Add a regs field.
6581         (restore_target_globals): Copy the regs field to this_target_regs.
6582         * target-globals.c: Include regs.h.
6583         (default_target_globals): Initialize the regs field.
6584         (save_target_globals): Likewise.
6585
6586 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6587
6588         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
6589         * doc/tm.texi: Regenerate.
6590         * Makefile.in (OBJS-common): Add target-globals.o.
6591         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
6592         and target-globals.h.
6593         (target-globals.o): New rule.
6594         (GTFILES): Include $(srcdir)/target-globals.h.
6595         * defaults.h (SWITCHABLE_TARGET): Define.
6596         * gengtype.c (open_base_files): Add target-globals.h to the
6597         list of includes.
6598         * target-globals.h: New file.
6599         * target-globals.c: Likewise.
6600
6601         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
6602         * flags.h (target_flag_state): New structure.
6603         (default_target_flag_state): Declare.
6604         (this_target_flag_state): Declare as a variable or define as a macro.
6605         (align_loops_log): Redefine as a macro.
6606         (align_loops_max_skip, align_jumps_log): Likewise.
6607         (align_jumps_max_skip, align_labels_log): Likewise.
6608         (align_labels_max_skip, align_functions_log): Likewise.
6609         * toplev.c (default_target_flag_state): New variable.
6610         (this_target_flag_state): New conditional variable.
6611         (align_loops_log): Delete.
6612         (align_loops_max_skip, align_jumps_log): Likewise.
6613         (align_jumps_max_skip, align_labels_log): Likewise.
6614         (align_labels_max_skip, align_functions_log): Likewise.
6615         * target-globals.h (this_target_flag_state): Declare.
6616         (target_globals): Add a flag_state field.
6617         (restore_target_globals): Copy the flag_state field to
6618         this_target_flag_state.
6619         * target-globals.c: Include flags.h.
6620         (default_target_globals): Initialize the flag_state field.
6621         (save_target_globals): Likewise.
6622
6623 2010-07-12  Jie Zhang  <jie@codesourcery.com>
6624
6625         * postreload.c (reg_symbol_ref[]): New.
6626         (move2add_use_add2_insn): New.
6627         (move2add_use_add3_insn): New.
6628         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
6629         (move2add_note_store): Likewise.
6630
6631 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
6632
6633         PR rtl-optimization/44752
6634         * genautomata.c (main): Don't emit an empty file even if there
6635         is no automaton.
6636
6637 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6638
6639         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
6640         ix86_solaris_return_in_memory.
6641         * config/i386-protos.h: Reflect this.
6642         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6643         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6644         Move ...
6645         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
6646
6647 2010-07-12  Jie Zhang  <jie@codesourcery.com>
6648
6649         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
6650         align the stack when it's going to be saved.
6651
6652 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6653
6654         PR pch/14940
6655         * config/host-solaris.c (mmap_fixed): New function.
6656         (sol_gt_pch_get_address): Use it.
6657         (sol_gt_pch_use_address): Likewise.
6658
6659 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6660
6661         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6662         pentiumpro on Solaris 8 and 9/x86.
6663         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
6664         Document SSE/SSE2 support.
6665         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
6666
6667 2010-07-12  Andi Kleen  <ak@linux.intel.com>
6668
6669         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
6670         instead of gcc_assert to print better error message for multiple
6671         prevailing defs.
6672
6673 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
6674
6675         * config/i386/i386.c (ix86_asm_output_function_label): Change format
6676         string placeholder from 0x%x to %#x.
6677         (ix86_code_end): Use putc to output '\n'.
6678         (ix86_print_operand) <case ';'>: Use putc to output ';'.
6679
6680 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
6681
6682         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
6683         in directive -export.
6684
6685 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
6686
6687         * reginfo.h (reg_classes_intersect_p): Change arguments type to
6688         reg_class_t.
6689         * rtl.h (reg_classes_intersect_p): Adjust prototype.
6690
6691         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6692         Remove macros.
6693         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
6694         rs6000_memory_move_cost): Remove
6695         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
6696         TARGET_MEMORY_MOVE_COST): Define.
6697         (rs6000_register_move_cost): Make static. Change arguments type from
6698         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
6699         (rs6000_memory_move_cost): Make static. Change arguments type from
6700         'enum reg_class' to reg_class_t.
6701
6702 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
6703
6704         PR middle-end/42505
6705         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
6706         lookup code into....
6707         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
6708         new functions.
6709         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
6710         * cfgloopanal.c (target_clobbered_regs): Define.
6711         (init_set_costs): Initialize target_clobbered_regs.
6712         (estimate_reg_pressure_cost): Add call_p argument.  When true,
6713         adjust the number of available registers to exclude the
6714         call-clobbered registers.
6715         * cfgloop.h (target_clobbered_regs): Declare.
6716         (estimate_reg_pressure_cost): Adjust declaration.
6717         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
6718         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
6719         (determine_set_costs): Dump target_clobbered_regs.
6720         (loop_body_includes_call): New function.
6721         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
6722         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
6723         call_p flag through.
6724         (best_gain_for_invariant): Likewise.
6725         (find_invariants_to_move): Likewise.
6726         (move_single_loop_invariants): Likewise, using already-computed
6727         has_call field.
6728
6729 2010-07-10  Richard Guenther  <rguenther@suse.de>
6730             Joern Rennecke  <joern.rennecke@embecosm.com>
6731
6732         PR debug/44832
6733         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
6734         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
6735         unless they have DECL_IGNORED_P set.
6736
6737 2010-07-10  Richard Guenther  <rguenther@suse.de>
6738
6739         PR lto/44889
6740         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
6741         helper function.
6742         (gimple_types_compatible_p): Similar to pointed-to
6743         types allow and merge a mix of complete and incomplete aggregate.
6744         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
6745         (iterative_hash_gimple_type): Adjust for that.
6746
6747 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
6748
6749         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
6750
6751 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
6752
6753         PR objc/44140
6754         * config/darwin.c (output_objc_section_asm_op): Save and restore
6755         section when outputting ObjC section list.
6756
6757 2010-07-09  Jan Hubicka  <jh@suse.cz>
6758
6759         * lto-streamer-out.c (produce_symtab): Do not write alias
6760         cgraph/varpool nodes.
6761
6762 2010-07-09  Jan Hubicka  <jh@suse.cz>
6763
6764         * tree-inline.c (declare_return_variable): Fix ICE while
6765         inlining DECL_BY_VALUE function not in SSA form
6766
6767 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
6768
6769         PR tree-optimization/44576
6770         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
6771         New.  Pull out from is_loop_prefetching_profitable to implement
6772         the trip count to ahead ratio heuristic.
6773         (mem_ref_count_reasonable_p): New.  Pull out from
6774         is_loop_prefetching_profitable to implement the instruction to
6775         memory reference ratio heuristic.  Also consider not reasonable if
6776         the memory reference count is above a threshold (to avoid
6777         explosive compilation time.
6778         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
6779         is_loop_prefetching_profitable to implement the instruction to
6780         prefetch ratio heuristic.
6781         (is_loop_prefetching_profitable): Removed.
6782         (loop_prefetch_arrays): Distribute the cost analysis across the
6783         function to allow early exit of the prefetch analysis.
6784         is_loop_prefetching_profitable is splitted into three functions,
6785         with each one called as early as possible.
6786         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
6787         number of memory references in a loop is considered too many.
6788
6789 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
6790
6791         * reload.c (find_reloads): Don't clear badop if we have a winreg
6792         alternative, but not win, and the class only has fixed regs.
6793         * hard-reg-set.h (class_only_fixed_regs): Declare.
6794         * reginfo.c (class_only_fixed_regs): New array.
6795         (init_reg_sets_1): Initialize it.
6796         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
6797         discourage alternatives using the stack pointer.
6798
6799         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
6800
6801         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
6802
6803         * config/arm/arm.md (cbranchqi4): Fix array size.
6804         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
6805         calculating length.
6806
6807 2010-07-09  Richard Guenther  <rguenther@suse.de>
6808
6809         * gimple.c (struct type_fixup_s): New struct and VEC type.
6810         (gimple_register_type_fixups): New static global.
6811         (gimple_queue_type_fixup): New function.
6812         (gimple_types_compatible_p): Queue type fixups instead of
6813         applying them here.
6814         (gimple_register_type): Apply queued fixups for the
6815         canonical type.  Empty the type fixup queue.
6816
6817 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
6818
6819         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
6820         * configure: Regenerate.
6821         * config.in: Ditto.
6822
6823 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
6824             Denys Vlasenko  <dvlasenk@redhat.com>
6825             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6826
6827         PR tree-optimization/28632
6828         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
6829         (extract_range_from_binary_expr): Further optimize
6830         BIT_AND_EXPR and BIT_IOR_EXPR.
6831
6832 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
6833
6834         * tree-if-conv.c (fold_or_predicates): New.
6835         (add_to_predicate_list): Call it.
6836
6837 2010-07-09  Richard Guenther  <rguenther@suse.de>
6838
6839         PR middle-end/44890
6840         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
6841         if base is a pointer.
6842         * tree-cfg.c (verify_expr): Update MEM_REF checking.
6843
6844 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6845
6846         PR target/44877
6847         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
6848         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
6849         builtin mask for load/store builtins.
6850
6851 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
6852
6853         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
6854         for "lock addl".
6855         * configure: Regenerate.
6856         * config/i386/i386.c (ix86_print_operand) <case ';'>:
6857         Remove TARGET_MACHO.
6858
6859 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
6860
6861         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
6862         default ISA flags.
6863         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
6864
6865 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
6866
6867         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
6868
6869 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6870
6871         * config/picochip/picochip.md (commsTestPort): Emit more
6872         efficient sequence for tstport instruction.
6873
6874 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
6875
6876         * config/i386/i386.c (ix86_veclib_handler): Make static.
6877
6878 2010-07-09  Richard Guenther  <rguenther@suse.de>
6879
6880         PR tree-optimization/44852
6881         * tree-ssa-alias.c: Include toplev.h for exact_log2.
6882         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
6883         in MEM_REF.
6884         (indirect_refs_may_alias_p): Likewise.
6885         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
6886
6887 2010-07-09  Richard Guenther  <rguenther@suse.de>
6888
6889         PR tree-optimization/44882
6890         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
6891         sets do conflict.
6892         (vectorizable_load): Likewise.
6893
6894 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
6895
6896         PR target/40657
6897         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
6898         All callers changed.
6899         Handle the case when we're called for the epilogue.
6900         (thumb_unexpanded_epilogue): Use it.
6901         (thumb1_expand_epilogue): Likewise.
6902
6903 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
6904
6905         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
6906         both ranges are range_int_cst_p with non-negative minimum,
6907         try harder to derive smaller range.
6908
6909 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6910
6911         * genrecog.c: Include diagnostic-core.h before toplev.h.
6912         * genoutput.c: Likewise.
6913         * genextract.c: Likewise.
6914         * genautomata.c: Likewise.
6915         * genemit.c: Likewise.
6916         * genpeep.c: Likewise.
6917         * genattrtab.c: Likewise.
6918         * genconditions.c: Likewise.
6919         * genpreds.c: Likewise.
6920
6921 2010-07-08  Andi Kleen  <ak@linux.intel.com>
6922
6923         * lto-section-in.c (lto_section_name): Add missing comma.
6924
6925 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
6926
6927         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
6928         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
6929         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
6930         (ia64_override_options): Rename to...
6931         (ia64_option_override): ... this one. Make static.
6932
6933 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
6934
6935         PR middle-end/44843
6936         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
6937         pointed-to type of the offset in a MEM_REF to compute the alignment.
6938
6939 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
6940
6941         * final.c (final_scan_insn): Replace
6942         TARGET_UNWIND_INFO macro check by unwind_emit
6943         hook NULL check.
6944         * targhooks.c (default_unwind_emit): Removed.
6945         * targhooks.h (default_unwind_emit): Likewise.
6946         * target.def (unwind_emit): Set default value to NULL.
6947
6948         * config/i386/i386-protos.h (ix86_asm_output_function_label):
6949         New prototype.
6950         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
6951         for NULL fntype argument and allow 64-bit targets.
6952         (ix86_asm_output_function_label): New function.
6953         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
6954         (ix86_handle_fndecl_attribute): Likewise.
6955         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
6956         * doc/doc/tm.texi: Regenerated.
6957         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
6958         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
6959         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
6960         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
6961         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
6962         * config/elfos.h: Likewise.
6963         * config/i386/cygming.h: Likewise.
6964         * config/netbsd-aout.h: Likewise.
6965         * config/openbsd.h: Likewise.
6966         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
6967         by ix86_asm_output_function_label function call.
6968         * varasm.c (assemble_start_function): Use
6969         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
6970
6971 2010-07-08  Jan Hubicka  <jh@suse.cz>
6972
6973         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
6974         New function.
6975         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
6976         Declare.
6977         * ipa-cp.c (ipcp_estimate_growth): Use it.
6978         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
6979         Likewise.
6980
6981 2010-07-08  Jan Hubicka  <jh@suse.cz>
6982
6983         * tree-inline.c (declare_return_variable): Allocate annotation for new
6984         temporary.
6985
6986 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6987
6988         PR tree-optimization/44710
6989         * tree-if-conv.c (parse_predicate): New.
6990         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
6991         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
6992
6993 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6994
6995         * common.opt (ftree-loop-if-convert): New flag.
6996         * doc/invoke.texi (ftree-loop-if-convert): Documented.
6997         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
6998         when flag_tree_loop_if_convert is set.
6999
7000 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
7001
7002         * config/i386/i386.c: Use short syntax for function calls
7003         through function pointers.
7004         * config/i386/i386.md: Ditto.
7005
7006 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7007
7008         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
7009
7010 2010-07-08  Richard Guenther  <rguenther@suse.de>
7011
7012         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
7013         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
7014
7015 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
7016
7017         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
7018         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
7019         (loc_list_from_tree): Likewise.
7020         (output_loc_operands): Handle outputting DW_OP_const[48]u
7021         with loc->dtprel set.
7022         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
7023
7024 2010-07-08  Jan Hubicka  <jh@suse.cz>
7025
7026         * ipa.c: Include pointer-set.h
7027         (cgraph_externally_visible_p): New attribute ALIASED;
7028         when in LTO, hidden symbols are local unless they are aliased.
7029         (function_and_variable_visibility): Compute aliased nodes;
7030         handle LTO and hidden symbol on functions and vars.
7031         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
7032         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
7033
7034 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7035
7036         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7037         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7038         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7039         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7040         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7041         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
7042         (ix86_gen_probe_stack_range): Likewise.
7043         (override_options): Set them.
7044         (ix86_target_stack_probe): New function.
7045         (ix86_compute_frame_layout): Force use of push instructions to
7046         save registers if stack checking with probes is enabled.
7047         (get_scratch_register_on_entry): New function.
7048         (release_scratch_register_on_entry): Likewise.
7049         (ix86_adjust_stack_and_probe): Likewise.
7050         (output_adjust_stack_and_probe): Likewise.
7051         (ix86_emit_probe_stack_range): Likewise.
7052         (output_probe_stack_range): Likewise.
7053         (ix86_expand_prologue): Emit stack checking code if static built-in
7054         stack checking is enabled.
7055         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
7056         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
7057         (output_adjust_stack_and_probe): Likewise.
7058         (output_probe_stack_range): Likewise.
7059         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7060         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
7061         TARGET_STACK_PROBE.
7062         (allocate_stack_worker_64): Likewise.
7063         (allocate_stack): Likewise.
7064         (adjust_stack_and_probe): New insn.
7065         (probe_stack_range): Likewise.
7066
7067 2010-07-08  Richard Guenther  <rguenther@suse.de>
7068
7069         PR tree-optimization/44831
7070         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
7071         a MEM_REF preserving TBAA info of the original dereference.
7072         Dereference the original pointer if the address is not invariant.
7073         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
7074         at least one invariant address that we are going to dereference.
7075
7076 2010-07-08  Richard Guenther  <rguenther@suse.de>
7077
7078         PR tree-optimization/44861
7079         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
7080         information when building MEM_REFs.
7081         (vectorizable_load): Likewise.
7082         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7083
7084 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7085
7086         * config/sol2-c.c: Do not include diagnostic-core.h.
7087
7088 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7089
7090         PR bootstrap/44768
7091         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
7092         with respect to current_function_decl. Pass decl of the function.
7093         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
7094         * ipa-inline.c (compute_inline_parameters): Pass decl to
7095         estimated_stack_frame_size.
7096
7097 2010-07-08  Richard Guenther  <rguenther@suse.de>
7098
7099         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7100         New function.
7101         (valueize_refs): Call it.
7102
7103 2010-07-08  Richard Guenther  <rguenther@suse.de>
7104
7105         PR rtl-optimization/44838
7106         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
7107         SSA form do not use pointer equivalence.
7108
7109 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7110
7111         * dwarf2out.c (AT_linkage_name): Delete.
7112         (add_linkage_attr): New function.
7113         (add_linkage_name): Call it to emit the linkage attribute.
7114         (dwarf2out_finish): Likewise.
7115         (move_linkage_attr): Explicitly accept both attribute variants.
7116
7117 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7118
7119         * toplev.h: Do not include diagnostic-core.h.
7120         Include diagnostic-core.h in every file that includes toplev.h.
7121         * c-tree.h: Do not include toplev.h.
7122         * pretty-print.h: Update comment.
7123         * Makefile.in: Update dependencies.
7124         * alias.c: Include diagnostic-core.h in every file that includes
7125         toplev.h.
7126         * attribs.c: Likewise.
7127         * auto-inc-dec.c: Likewise.
7128         * bb-reorder.c: Likewise.
7129         * bt-load.c: Likewise.
7130         * caller-save.c: Likewise.
7131         * calls.c: Likewise.
7132         * cfg.c: Likewise.
7133         * cfganal.c: Likewise.
7134         * cfgbuild.c: Likewise.
7135         * cfgcleanup.c: Likewise.
7136         * cfghooks.c: Likewise.
7137         * cfgloop.c: Likewise.
7138         * combine.c: Likewise.
7139         * config/alpha/alpha.c: Likewise.
7140         * config/arc/arc.c: Likewise.
7141         * config/arm/arm.c: Likewise.
7142         * config/arm/pe.c: Likewise.
7143         * config/avr/avr.c: Likewise.
7144         * config/bfin/bfin.c: Likewise.
7145         * config/cris/cris.c: Likewise.
7146         * config/crx/crx.c: Likewise.
7147         * config/darwin-c.c: Likewise.
7148         * config/darwin.c: Likewise.
7149         * config/fr30/fr30.c: Likewise.
7150         * config/frv/frv.c: Likewise.
7151         * config/h8300/h8300.c: Likewise.
7152         * config/host-darwin.c: Likewise.
7153         * config/i386/i386.c: Likewise.
7154         * config/i386/netware.c: Likewise.
7155         * config/i386/nwld.c: Likewise.
7156         * config/i386/winnt-cxx.c: Likewise.
7157         * config/i386/winnt-stubs.c: Likewise.
7158         * config/i386/winnt.c: Likewise.
7159         * config/ia64/ia64-c.c: Likewise.
7160         * config/ia64/ia64.c: Likewise.
7161         * config/iq2000/iq2000.c: Likewise.
7162         * config/lm32/lm32.c: Likewise.
7163         * config/m32c/m32c-pragma.c: Likewise.
7164         * config/m32c/m32c.c: Likewise.
7165         * config/m32r/m32r.c: Likewise.
7166         * config/m68hc11/m68hc11.c: Likewise.
7167         * config/m68k/m68k.c: Likewise.
7168         * config/mcore/mcore.c: Likewise.
7169         * config/mep/mep-pragma.c: Likewise.
7170         * config/mep/mep.c: Likewise.
7171         * config/mmix/mmix.c: Likewise.
7172         * config/mn10300/mn10300.c: Likewise.
7173         * config/moxie/moxie.c: Likewise.
7174         * config/pa/pa.c: Likewise.
7175         * config/pdp11/pdp11.c: Likewise.
7176         * config/picochip/picochip.c: Likewise.
7177         * config/rs6000/rs6000-c.c: Likewise.
7178         * config/rs6000/rs6000.c: Likewise.
7179         * config/rx/rx.c: Likewise.
7180         * config/s390/s390.c: Likewise.
7181         * config/score/score.c: Likewise.
7182         * config/score/score3.c: Likewise.
7183         * config/score/score7.c: Likewise.
7184         * config/sh/sh.c: Likewise.
7185         * config/sh/symbian-base.c: Likewise.
7186         * config/sh/symbian-c.c: Likewise.
7187         * config/sh/symbian-cxx.c: Likewise.
7188         * config/sol2-c.c: Likewise.
7189         * config/sol2.c: Likewise.
7190         * config/sparc/sparc.c: Likewise.
7191         * config/spu/spu.c: Likewise.
7192         * config/stormy16/stormy16.c: Likewise.
7193         * config/v850/v850-c.c: Likewise.
7194         * config/v850/v850.c: Likewise.
7195         * config/vax/vax.c: Likewise.
7196         * config/vxworks.c: Likewise.
7197         * config/xtensa/xtensa.c: Likewise.
7198         * convert.c: Likewise.
7199         * cse.c: Likewise.
7200         * cselib.c: Likewise.
7201         * dbgcnt.c: Likewise.
7202         * dbxout.c: Likewise.
7203         * ddg.c: Likewise.
7204         * dominance.c: Likewise.
7205         * emit-rtl.c: Likewise.
7206         * explow.c: Likewise.
7207         * expmed.c: Likewise.
7208         * fixed-value.c: Likewise.
7209         * fold-const.c: Likewise.
7210         * fwprop.c: Likewise.
7211         * gcse.c: Likewise.
7212         * ggc-common.c: Likewise.
7213         * ggc-page.c: Likewise.
7214         * ggc-zone.c: Likewise.
7215         * gimple-low.c: Likewise.
7216         * gimplify.c: Likewise.
7217         * graph.c: Likewise.
7218         * haifa-sched.c: Likewise.
7219         * ifcvt.c: Likewise.
7220         * implicit-zee.c: Likewise.
7221         * integrate.c: Likewise.
7222         * ira-build.c: Likewise.
7223         * ira-color.c: Likewise.
7224         * ira-conflicts.c: Likewise.
7225         * ira-costs.c: Likewise.
7226         * ira-lives.c: Likewise.
7227         * ira.c: Likewise.
7228         * lists.c: Likewise.
7229         * loop-doloop.c: Likewise.
7230         * loop-iv.c: Likewise.
7231         * lto-opts.c: Likewise.
7232         * lto-symtab.c: Likewise.
7233         * main.c: Likewise.
7234         * modulo-sched.c: Likewise.
7235         * optabs.c: Likewise.
7236         * params.c: Likewise.
7237         * plugin.c: Likewise.
7238         * postreload-gcse.c: Likewise.
7239         * postreload.c: Likewise.
7240         * predict.c: Likewise.
7241         * profile.c: Likewise.
7242         * real.c: Likewise.
7243         * regcprop.c: Likewise.
7244         * reginfo.c: Likewise.
7245         * regmove.c: Likewise.
7246         * reorg.c: Likewise.
7247         * resource.c: Likewise.
7248         * rtl.c: Likewise.
7249         * rtlanal.c: Likewise.
7250         * sched-deps.c: Likewise.
7251         * sched-ebb.c: Likewise.
7252         * sched-rgn.c: Likewise.
7253         * sdbout.c: Likewise.
7254         * sel-sched-dump.c: Likewise.
7255         * sel-sched-ir.c: Likewise.
7256         * simplify-rtx.c: Likewise.
7257         * stmt.c: Likewise.
7258         * stor-layout.c: Likewise.
7259         * store-motion.c: Likewise.
7260         * targhooks.c: Likewise.
7261         * tree-cfg.c: Likewise.
7262         * tree-cfgcleanup.c: Likewise.
7263         * tree-dump.c: Likewise.
7264         * tree-eh.c: Likewise.
7265         * tree-inline.c: Likewise.
7266         * tree-nomudflap.c: Likewise.
7267         * tree-object-size.c: Likewise.
7268         * tree-optimize.c: Likewise.
7269         * tree-outof-ssa.c: Likewise.
7270         * tree-phinodes.c: Likewise.
7271         * tree-profile.c: Likewise.
7272         * tree-ssa-ccp.c: Likewise.
7273         * tree-ssa-coalesce.c: Likewise.
7274         * tree-ssa-live.c: Likewise.
7275         * tree-ssa-loop-niter.c: Likewise.
7276         * tree-ssa-loop-prefetch.c: Likewise.
7277         * tree-ssa-loop.c: Likewise.
7278         * tree-ssa-structalias.c: Likewise.
7279         * tree-ssa-uninit.c: Likewise.
7280         * tree-ssa.c: Likewise.
7281         * tree-vect-data-refs.c: Likewise.
7282         * tree-vect-loop-manip.c: Likewise.
7283         * tree-vect-loop.c: Likewise.
7284         * tree-vect-patterns.c: Likewise.
7285         * tree-vect-stmts.c: Likewise.
7286         * tree-vrp.c: Likewise.
7287         * varasm.c: Likewise.
7288         * vec.c: Likewise.
7289         * web.c: Likewise.
7290         * xcoffout.c: Likewise.
7291
7292 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
7293
7294         * gengtype.c (write_field_root): New function.
7295         (write_root): Use it.
7296
7297 2010-07-07  Wei Guozhi  <carrot@google.com>
7298
7299         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7300         of lowest bits to lshift/compare): Add a missing line.
7301
7302 2010-07-07  Wei Guozhi  <carrot@google.com>
7303
7304         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7305         of lowest bits to lshift/compare): New.
7306
7307 2010-07-07  Tom Tromey  <tromey@redhat.com>
7308
7309         * doc/tm.texi: Update.
7310         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
7311         Add @hook.
7312         * target.def (want_debug_pub_sections): New hook.
7313         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
7314         * dwarf2out.c (add_pubname_string): Check
7315         targetm.want_debug_pub_sections.
7316         (add_pubname): Likewise.
7317         (add_pubtype): Likewise.
7318
7319 2010-07-07  Jie Zhang  <jie@codesourcery.com>
7320
7321         * genautomata.c (output_automata_list_min_issue_delay_code):
7322         Correctly decompress min_issue_delay.
7323
7324 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7325
7326         PR rtl-optimization/44404
7327         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
7328         possible, use reg_overlap_mentioned_p instead.
7329
7330 2010-07-07  Duncan Sands  <baldrick@free.fr>
7331
7332         PR middle-end/41355
7333         * tree.c (build_function_type_skip_args): Copy the original type using
7334         build_distinct_type_copy rather than copy_node.
7335
7336 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7337
7338         PR target/44850
7339         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
7340         revision 161876.
7341         (ix86_expand_prologue): Likewise.
7342         (ix86_handle_fndecl_attribute): Likewise.
7343         (ix86_asm_declare_function_name): Likewise.
7344         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7345         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7346         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
7347         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
7348         * doc/extend.texi: Likewise.
7349
7350 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7351
7352         PR target/44844
7353         * config/i386/i386.md (rdrand<mode>): Changed to expand to
7354         retry if the carry flag isn't valid.
7355         (rdrand<mode>_1): New.
7356
7357 2010-07-07  Richard Guenther  <rguenther@suse.de>
7358
7359         PR middle-end/44790
7360         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
7361         for expanding the constant offset for MEM_REFs.
7362
7363 2010-07-07  Richard Guenther  <rguenther@suse.de>
7364
7365         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
7366         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
7367         * gimple.h (is_gimple_operand): Remove.
7368         * gimple.c (is_gimple_operand): Likewise.
7369         (walk_gimple_op): Fix wi->val_only setting for calls.
7370         * tree-cfg.c (verify_gimple_call): Fix argument validation.
7371         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
7372         invalid gimple calls.
7373
7374 2010-07-06  Jan Hubicka  <jh@suse.cz>
7375
7376         * lto-cgraph.c (output_cgraph): Add missing declaration.
7377
7378 2010-07-06  Jan Hubicka  <jh@suse.cz>
7379
7380         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
7381         partition.
7382
7383 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
7384
7385         * doc/gimple.texi (GIMPLE_DEBUG): Document.
7386         * doc/rtl.texi (Debug Information): New node.
7387         (NOTE_INSN_VAR_LOCATION): Document.
7388         (debug_insn): Likewise.
7389         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
7390
7391 2010-07-07  Jan Hubicka  <jh@suse.cz>
7392
7393         With parts by Richard Guenther.
7394
7395         PR middle-end/44813
7396         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
7397         for functions passed by reference.
7398         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
7399         in memory when passed by reference.
7400         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
7401         beggining.
7402         * ipa-split.c (split_function): Cleanup way return value is passed;
7403         handle SSA DECL_BY_REFERENCE retvals.
7404         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
7405         DECL_BY_REFERENCE is set.
7406         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
7407         find_what_p_points_to): Handle RESULT_DECL.
7408         * tree-inline.c (declare_return_variable): Get new entry_block argument;
7409         when passing by reference ensure that RESULT_DECL is gimple_val.
7410         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
7411         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
7412
7413 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7414
7415         PR rtl-optimization/44787
7416         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
7417         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
7418
7419 2010-07-06  Jan Hubicka  <jh@suse.cz>
7420
7421         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
7422         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
7423         with body can prevail.
7424         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
7425         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
7426         * cgraph.c (cgraph_get_node_or_alias): New function.
7427         * cgraph.h (cgraph_get_node_or_alias): Declare.
7428
7429 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
7430
7431         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
7432         support.
7433         (ix86_expand_prologue): Likewise.
7434         (ix86_handle_fndecl_attribute): Likewise.
7435         (ix86_asm_declare_function_name): New function for
7436         ASM_DECLARE_FUNCTION_NAME.
7437         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
7438         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
7439         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
7440         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
7441         * doc/extend.texi: Adjust documentation about ms_hook_prologue
7442         attribute.
7443
7444 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7445
7446         * config/i386/i386.md (immediate_operand): New mode attribute.
7447
7448         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
7449         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
7450         using P mode iterator.
7451         (pro_epilogue_adjust_stack_di_2): Rename from
7452         pro_epilogue_adjust_stack_rex64_2.
7453
7454         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
7455
7456 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7457
7458         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
7459         through gen_mov_insv_1 function pointer.
7460         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
7461         gen_truncxf<mode>2 through gen_truncxf function pointer.
7462         (remainder<mode>3): Ditto.
7463         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
7464         (allocate_stack): Call gen_allocate_stack_worker_64 or
7465         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
7466         function pointer.
7467         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
7468         function pointer.
7469
7470 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7471
7472         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
7473         operand constraint instead of <r><i>m.
7474
7475 2010-07-06  Richard Guenther  <rguenther@suse.de>
7476
7477         PR middle-end/44828
7478         * convert.c (convert_to_integer): Watch out for overflowing
7479         MULT_EXPR as well.
7480
7481 2010-07-05  Jan Hubicka  <jh@suse.cz>
7482
7483         * lto-streamer.c (write_symbol_vec): Rename to ...
7484         (write_symbol) ... this one; write only symbol given and when
7485         present in cache. Sanity check that what is defined is present
7486         in cgraph/varpool with body/finalized decl.
7487         (write_symbols_of_kind): Remove.
7488         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
7489         pairs to produce symtab.
7490         (produce_asm_for_decls): Update call of produce_symtab; don't do so
7491         when doing WPA streaming.
7492
7493 2010-07-05  Jan Hubicka  <jh@suse.cz>
7494
7495         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
7496         function is still available to fold into.
7497
7498 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7499
7500         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
7501         * function.h (struct_function): Change type of local_decls field
7502         to a VEC.
7503         (add_local_decl): New function.
7504         (FOR_EACH_LOCAL_DECL): New macro.
7505         * cfgexpand.c (init_vars_expansion): Adjust for new type of
7506         cfun->local_decls.
7507         (estimated_stack_frame_size): Likewise.
7508         (expand_used_vars): Likewise.
7509         * cgraphbuild.c (build_cgraph_edges): Likewise.
7510         * function.c (instantiate_decls_1): Likewise.
7511         * ipa-struct-reorg.c (build_data_structure): Likewise.
7512         * ipa-type-escape.c (analyze_function): Likewise.
7513         * lto-streamer-in.c (input_function): Likewise.
7514         * lto-streamer-out.c (output_function): Likewise.
7515         * tree-ssa-live.c (remove_unused_locals): Likewise.
7516         * tree.c (free_lang_data_in_decl): Likewise.
7517         (find_decls_types_in_node): Likewise.
7518         * omp-low.c (remove_exit_barrier): Likewise.
7519         (expand_omp_taskreg): Likewise.
7520         (list2chain): Rename to...
7521         (vec2chain): ...this.  Adjust.
7522         * cgraphunit.c (assemble_thunk): Call add_local_decl.
7523         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
7524         * gimple-low.c (record_vars_into): Likewise.
7525         * tree-inline.c (remap_decls): Likewise.
7526         (declare_return_variable): Likewise.
7527         (declare_inline_vars): Likewise.
7528         (copy_forbidden): Adjust for new type of cfun->local_decls.
7529         (add_local_variables): New function.
7530         (expand_call_inline): Call it.
7531         (tree_function_versioning): Likewise.
7532
7533 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7534
7535         AVX Programming Reference (June, 2010)
7536         * config/i386/cpuid.h (bit_F16C): New.
7537         (bit_RDRND): Likewise.
7538         (bit_FSGSBASE): Likewise.
7539
7540         * config/i386/i386-builtin-types.def: Add
7541         "DEF_FUNCTION_TYPE (UINT16)", function types for
7542         float16 <-> float conversions and
7543         "DEF_FUNCTION_TYPE (VOID, UINT64)".
7544
7545         * config/i386/i386-c.c (ix86_target_macros_internal): Support
7546         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
7547         OPTION_MASK_ISA_F16C.
7548
7549         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
7550         (OPTION_MASK_ISA_RDRND_SET): Likewise.
7551         (OPTION_MASK_ISA_F16C_SET): Likewise.
7552         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
7553         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
7554         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
7555         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
7556         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
7557         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
7558         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
7559         (override_options): Handle them.
7560         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
7561         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
7562         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
7563         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
7564         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
7565         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
7566         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
7567         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
7568         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
7569         (bdesc_args): Likewise.
7570         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
7571         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
7572         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
7573         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
7574         Handle non-memory store.
7575
7576         * config/i386/i386.h (TARGET_FSGSBASE): New.
7577         (TARGET_RDRND): Likewise.
7578         (TARGET_F12C): Likewise.
7579
7580         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
7581         (UNSPEC_VCVTPS2PH): Likewise.
7582         (UNSPECV_RDFSBASE): Likewise.
7583         (UNSPECV_RDGSBASE): Likewise.
7584         (UNSPECV_WRFSBASE): Likewise.
7585         (UNSPECV_WRGSBASE): Likewise.
7586         (UNSPECV_RDRAND): Likewise.
7587         (rdfsbase<mode>): Likewise.
7588         (rdgsbase<mode>): Likewise.
7589         (wrfsbase<mode>): Likewise.
7590         (wrgsbase<mode>): Likewise.
7591         (rdrand<mode>): Likewise.
7592
7593         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
7594
7595         * config/i386/immintrin.h (_rdrand_u16): New.
7596         (_rdrand_u32): Likewise.
7597         (_readfsbase_u32): Likewise.
7598         (_readfsbase_u64): Likewise.
7599         (_readgsbase_u32): Likewise.
7600         (_readgsbase_u64): Likewise.
7601         (_writefsbase_u32): Likewise.
7602         (_writefsbase_u64): Likewise.
7603         (_writegsbase_u32): Likewise.
7604         (_writegsbase_u64): Likewise.
7605         (_rdrand_u64): Likewise.
7606         (_cvtsh_ss): Likewise.
7607         (_mm_cvtph_ps): Likewise.
7608         (_mm256_cvtph_ps): Likewise.
7609         (_cvtss_sh): Likewise.
7610         (_mm_cvtps_ph): Likewise.
7611         (_mm256_cvtps_ph): Likewise.
7612
7613         * config/i386/sse.md (vcvtph2ps): New.
7614         (*vcvtph2ps_load): Likewise.
7615         (vcvtph2ps256): Likewise.
7616         (vcvtps2ph): Likewise.
7617         (*vcvtps2ph): Likewise.
7618         (*vcvtps2ph_store): Likewise.
7619         (vcvtps2ph256): Likewise.
7620
7621         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
7622
7623         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
7624
7625 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
7626
7627         PR bootstrap/44512
7628         * genenums.c (main): Output include of insn-constants.h
7629         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
7630
7631 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
7632
7633         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
7634         (override_options): Initialize it.
7635         (ix86_expand_prologue): Use it.
7636
7637 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
7638
7639         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
7640
7641 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
7642
7643         * double-int.h (fit_double_type): Remove declaration.
7644         * double-int.c (fit_double_type): Remove function.
7645         * tree.h (int_fits_type_p): Adjust prototype.
7646         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
7647         instead of fit_double_type.
7648         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
7649         instead of fit_double_type and build_int_cst_wide.
7650         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
7651         instead of fit_double_type and build_int_cst_wide.
7652         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
7653         of fit_double_type.
7654
7655 2010-07-05  Jan Hubicka  <jh@suse.cz>
7656
7657         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
7658         in_other_partition.
7659         * lto-cgraph.c (referenced_from_other_partition_p,
7660         reachable_from_other_partition_p): Use in_other_partition flags.
7661         (output_node, output_varpool_node): COMDAT nodes always have private
7662         copies and thus are never used from other partition.
7663
7664 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
7665
7666         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7667         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
7668         * config/ia64/ia64.c Include reload.h.
7669         (ia64_memory_move_cost): New function.
7670         (TARGET_MEMORY_MOVE_COST): Define.
7671         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
7672         memory_move_cost.
7673
7674 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
7675
7676         PR middle-end/42505
7677         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
7678         comments about cost model.
7679         (try_add_cand_for):  Add second strategy for choosing initial set
7680         based on original IVs, controlled by ORIGINALP argument.
7681         (get_initial_solution): Add ORIGINALP argument.
7682         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
7683         (find_optimal_iv_set): Try two different strategies for choosing
7684         the IV set, and return the one with lower cost.
7685
7686 2010-07-05  Richard Guenther  <rguenther@suse.de>
7687
7688         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
7689
7690 2010-07-05  Richard Guenther  <rguenther@suse.de>
7691
7692         * tree.c (reference_alias_ptr_type): New function.
7693         * tree.h (reference_alias_ptr_type): Declare.
7694         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
7695         allow non-TARGET_MEM_REF new refs.
7696         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
7697         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
7698         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
7699         (create_mem_ref): Get alias pointer type.  Adjust calls to
7700         create_mem_ref_raw.
7701         (maybe_fold_tmr): Likewise.
7702         * tree-flow.h (create_mem_ref): Adjust prototype.
7703
7704 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
7705
7706         PR c++/44808
7707         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
7708         *from_p is VAR_DECL.
7709
7710 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7711
7712         * tree.h (build_call_list): Remove.
7713         * tree.c (build_call_list): Remove.
7714
7715 2010-07-05  Richard Guenther  <rguenther@suse.de>
7716
7717         * double-int.h (double_int_sub): Declare.
7718         * double-int.c (double_int_sub): New function.
7719         * dwarf2out.c (field_byte_offset): Use it.
7720         * fixed-value.c (do_fixed_add): Likewise.
7721         (do_fixed_multiply): Likewise.
7722         (do_fixed_divide): Likewise.
7723         * tree-predcom.c (add_ref_to_chain): Likewise.
7724         (determine_roots_comp): Likewise.
7725         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7726
7727 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7728
7729         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
7730         implementations.
7731
7732 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
7733
7734         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
7735         * arm-modes.def (CC_NOTB): Don't define.
7736         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
7737         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
7738         (LTUGEU): New code_iterator.
7739         (cnb, optab): New corresponding code_attrs.
7740         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
7741         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
7742         using LTUGEU.
7743         (addsi3_carryin_shift_<optab>): Likewise.
7744         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
7745         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
7746         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
7747         (subsi3_compare): Renamed from subsi3_compare0_c.
7748         Change CC_NOTB to CC.
7749         (arm_subsi3_insn): Allow constants for operand 0.
7750         (compare_scc peephole for eq case): New.
7751         (compare_scc splitters): Change CC_NOTB to CC.
7752
7753 2010-07-05  Richard Guenther  <rguenther@suse.de>
7754
7755         * tree-ssa-loop-im.c (for_each_index): Do not handle
7756         ALIGN_INDIRECT_REF.
7757         (gen_lsm_tmp_name): Likewise.
7758         * tree-dump.c (dequeue_and_dump): Likewise.
7759         * tree-pretty-print.c (dump_generic_node): Likewise.
7760         (op_code_prio): Likewise.
7761         (op_symbol_code): Likewise.
7762         * tree.c (staticp): Likewise.
7763         (build1_stat): Likewise.
7764         * tree.h (INDIRECT_REF_P): Likewise.
7765         * fold-const.c (maybe_lvalue_p): Likewise.
7766         (operand_equal_p): Likewise.
7767         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7768         (ao_ref_init_from_vn_reference): Likewise.
7769         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7770         (find_interesting_uses_address): Likewise.
7771         * dwarf2out.c (loc_list_from_tree): Likewise.
7772         * gimplify.c (gimplify_expr): Likewise.
7773         * tree-eh.c (tree_could_trap_p): Likewise.
7774         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7775         * cfgexpand.c (expand_debug_expr): Likewise.
7776         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7777         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7778         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7779         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
7780         * tree-ssa-operands.c (get_expr_operands): Likewise.
7781         * expr.c (safe_from_p): Likewise.
7782         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
7783         * tree-vect-data-refs.c (vect_setup_realignment): Build
7784         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
7785         * tree-vect-stmts.c (vectorizable_load): Likewise.
7786         * tree.def (ALIGN_INDIRECT_REF): Remove.
7787
7788 2010-07-05  Richard Guenther  <rguenther@suse.de>
7789
7790         PR tree-optimization/44784
7791         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
7792         for inserted stmts.
7793         (find_or_generate_expression): Fix SCCVN insertion check.
7794
7795 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
7796
7797         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
7798         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
7799         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
7800         directives.
7801
7802 2010-07-05  Ira Rosen  <irar@il.ibm.com>
7803
7804         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
7805         statements that are not vectorized.
7806         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
7807         in INSIDE_COST.
7808
7809 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
7810
7811         PR bootstrap/44820
7812         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
7813
7814 2010-07-05  Richard Guenther  <rguenther@suse.de>
7815
7816         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
7817         RESULT_DECLs properly.
7818
7819 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
7820
7821         PR rtl-optimization/44695
7822         * config/i386/i386.md (extract_code): Removed.
7823         (<u>divmodqi4): Likewise.
7824         (divmodqi4): New.
7825         (udivmodqi4): Likewise.
7826         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
7827         (udivmodhiqi3): Likewise.
7828
7829 2010-07-04  Jan Hubicka  <jh@suse.cz>
7830
7831         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
7832
7833 2010-07-04  Jan Hubicka  <jh@suse.cz>
7834
7835         * cgraphunit.c (init_cgraph): Only initialize dump file if it
7836         is not already initialized.
7837
7838 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
7839
7840         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
7841         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
7842         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
7843         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
7844         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
7845         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
7846         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
7847         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
7848         (sync_new_nand_optab): Redefine as macros.
7849         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
7850         Delete.
7851         (direct_optab_index): New enum.
7852         (direct_optab_d): New structure.
7853         (direct_optab): New typedef.
7854         (direct_optab_table): Declare.
7855         (direct_optab_handler, set_direct_optab_handler): New functions.
7856         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
7857         (sync_lock_release_optab): New macros.
7858         * optabs.c (direct_optab_table): New variable.
7859         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
7860         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
7861         cmpstr_optab and cmpstrn_optab.
7862         (emit_conditional_move): Likewise for movcc_optab.
7863         (can_conditionally_move_p): Likewise for movcc_gen_code.
7864         (init_insn_codes): Clear direct_optab_table.
7865         (init_optabs): Don't initialize the new "direct optabs" here.
7866         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
7867         vcond_gen_code.
7868         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
7869         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
7870         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
7871         (expand_sync_operation): Likewise other sync_*_optabs.
7872         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
7873         to sync_compare_and_swap_optab.
7874         (expand_sync_lock_test_and_set): Use direct_optab_handler for
7875         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
7876         to the names of both.
7877         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
7878         cmpstr_optab and cmpstrn_optab.
7879         (expand_builtin_lock_release): Likewise sync_lock_release.
7880         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
7881         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
7882         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
7883         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
7884         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
7885         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
7886         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
7887         (sync_lock_test_and_set, sync_lock_release): Delete.
7888         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
7889         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
7890         * genopinit.c (optabs): Use set_direct_optab_handler for the new
7891         macro optabs.
7892         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
7893         the "optab" local variable.  Use direct_optab_handler for optab and
7894         sync_compare_and_swap_optab.
7895         * reload1.c (reload_in_optab, reload_out_optab): Delete.
7896         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
7897         reload_in_optab and reload_out_optab.
7898         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7899         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
7900         * config/pa/pa.c (pa_secondary_reload): Likewise.
7901         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
7902         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
7903         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
7904         (VMSupportsCS8_builtin): Likewise.
7905
7906 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
7907
7908         * optabs.h (optab_handlers): Change type of insn_code to int.
7909         (optab_handler, set_optab_handler, convert_optab_handler)
7910         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
7911         CODE_FOR_nothing".
7912         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
7913         (init_insn_codes): Zero both the above arrays.
7914         (init_optabs): Never call init_insn_codes first time around.
7915
7916 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
7917
7918         * optabs.h (optab_handler, convert_optab_handler): Turn into
7919         inline functions that return an insn code.
7920         (set_optab_handler, set_convert_optab_handler): New functions.
7921         * builtins.c: Replace optab_handler(X)->insn_code with
7922         optab_handler or set_optab_handler thoughout.  Likewise
7923         convert_optab_handler(X)->insn_code with convert_optab_handler
7924         and set_convert_optab_handler.
7925         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
7926         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
7927         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
7928         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
7929         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
7930         config/spu/spu.c: Likewise.
7931
7932 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7933
7934         PR target/44531
7935         * config.gcc (sh*-*-*): Use regular expressions instead of
7936         the 'i' modifier for sed substitutions.
7937
7938 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7939
7940         * gimple.c (gimple_body): Comments added.
7941
7942 2010-07-04  Richard Guenther  <rguenther@suse.de>
7943
7944         PR middle-end/44809
7945         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
7946         of an INDIRECT_REF.
7947
7948 2010-07-04  Richard Guenther  <rguenther@suse.de>
7949
7950         PR tree-optimization/44479
7951         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
7952         extra SSA name copy statements which preserves points-to
7953         information.
7954         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7955         Copy points-to information for all pointers.  Properly handle
7956         MEM_REFs.
7957         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
7958         copy statements.
7959         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
7960         dependency.
7961
7962 2010-07-04  Richard Guenther  <rguenther@suse.de>
7963
7964         PR middle-end/44785
7965         * tree-inline.c (initialize_inlined_parameters): Do not
7966         re-use pointer-map slot over remap_type call.
7967
7968 2010-07-04  Richard Guenther  <rguenther@suse.de>
7969
7970         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
7971
7972 2010-07-04  Richard Guenther  <rguenther@suse.de>
7973
7974         PR tree-optimization/44656
7975         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
7976         again after value-replacing in the defintions lhs.
7977
7978 2010-07-04  Ira Rosen  <irar@il.ibm.com>
7979             Revital Eres  <eres@il.ibm.com>
7980
7981         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
7982         Document new arguments.
7983         * doc/tm.texi: Regenerate.
7984         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
7985         Handle unaligned store.
7986         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
7987         * target.def (builtin_vectorization_cost): Add new arguments.
7988         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
7989         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
7990         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
7991         (vect_vfa_segment_size): Fix indentation.
7992         * tree-vectorizer.h (struct _vect_peel_info): New.
7993         (struct _vect_peel_extended_info): New.
7994         (struct _loop_vec_info): Add new field for peeling hash table and a
7995         macro for its access.
7996         (VECT_MAX_COST): Define.
7997         (vect_get_load_cost): Declare.
7998         (vect_get_store_cost, vect_get_known_peeling_cost,
7999         vect_get_single_scalar_iteraion_cost): Likewise.
8000         (vect_supportable_dr_alignment): Add new argument.
8001         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
8002         field.
8003         (destroy_loop_vec_info): Free peeling hash table.
8004         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
8005         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
8006         vect_analyze_slp. Fix indentation.
8007         (vect_get_single_scalar_iteraion_cost): New function.
8008         (vect_get_known_peeling_cost): Likewise.
8009         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
8010         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
8011         statement. Move outside cost calculation inside unknown peeling case.
8012         Call vect_get_known_peeling_cost for known amount of peeling.
8013         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
8014         reference to the print message of forced alignment.
8015         (vect_verify_datarefs_alignment): Update call to
8016         vect_supportable_dr_alignment.
8017         (vect_get_data_access_cost): New function.
8018         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
8019         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
8020         vect_peeling_hash_choose_best_peeling): Likewise.
8021         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
8022         to store all the accesses in the loop and find best possible access to
8023         align using peeling for known alignment case. For unknown alignment
8024         check if stores are preferred or if peeling is worthy.
8025         (vect_find_same_alignment_drs): Analyze pairs of loads too.
8026         (vect_supportable_dr_alignment): Add new argument and check aligned
8027         accesses according to it.
8028         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
8029         (cost_for_stmt): Call vect_get_stmt_cost.
8030         (vect_model_simple_cost): Likewise.
8031         (vect_model_store_cost): Call vect_get_stmt_cost. Call
8032         vect_get_store_cost to calculate the cost of the statement.
8033         (vect_get_store_cost): New function.
8034         (vect_model_load_cost): Call vect_get_stmt_cost. Call
8035         vect_get_load_cost to calculate the cost of the statement.
8036         (vect_get_load_cost): New function.
8037         (vectorizable_store): Update call to vect_supportable_dr_alignment.
8038         (vectorizable_load): Likewise.
8039         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
8040         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
8041         arguments. Handle unaligned store.
8042         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
8043         (rs6000_builtin_support_vector_misalignment): Return true for word and
8044         double word alignments for VSX.
8045         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
8046         vect_supportable_dr_alignment and builtin_vectorization_cost.
8047
8048 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8049
8050         PR target/44597
8051         * config/pa/predicates.md (prefetch_cc_operand): Remove.
8052         (prefetch_nocc_operand): Likewise.
8053         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
8054         (prefetch_20): New insn.
8055         (prefetch_cc): Remove.
8056         (prefetch_nocc): Likewise.
8057
8058 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8059
8060         * expr.c (vector_mode_valid_p): Move to c-common.c.
8061         * expr.h (vector_mode_valid_p): Do not declare here.
8062         * system.h: Poison GCC_EXPR_H in front-ends.
8063         * Makefile.in: Update dependencies.
8064
8065 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8066
8067         PR target/44705
8068         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
8069
8070 2010-07-03  Jan Hubicka  <jh@suse.cz>
8071
8072         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
8073         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
8074         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
8075         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
8076         Likewise.
8077
8078         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
8079         Update timevars.V
8080         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
8081         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
8082         TV_IPA_LTO_DECL_OUT): New.
8083         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
8084
8085 2010-07-03  Jan Hubicka  <jh@suse.cz>
8086
8087         * ipa-inline.c (update_edge_key): Break out from ...
8088         update_callers_keys): ... here;
8089         (update_callee_keys): Update only the edges from caller to callee.
8090         (update_all_calle_keys): Do what update_calle_keys did.
8091         (decide_inlining_of_small_functions): Avoid recomputing of all
8092         callees when badness increase.
8093
8094 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8095
8096         * config/arm/arm.c (arm_attr_length_move_neon): New.
8097         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
8098         * config/arm/neon.md (define_mode_attr V_slen): Remove.
8099         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
8100         to compute length attribute.
8101
8102 2010-07-03  Jie Zhang  <jie@codesourcery.com>
8103
8104         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
8105         as predicate for operand 1 and remove its constraint.
8106         * config/arm/predicates.md (vfp_register_operand): New.
8107         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
8108         (*push_fp_multi): Likewise.
8109
8110 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8111
8112         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
8113
8114 2010-07-03  Jan Hubicka  <jh@suse.cz>
8115
8116         * config/i386/i386.c (override_options): Revert accidental commit.
8117
8118 2010-07-02  Le-Chun Wu  <lcwu@google.com>
8119
8120         PR c++/44128
8121         * doc/invoke.texi: Update documentation of -Wshadow.
8122
8123 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
8124             Julian Brown  <julian@codesourcery.com>
8125             Sandra Loosemore <sandra@codesourcery.com>
8126
8127         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
8128         comparisons.  Adjust to take both operands.
8129         (arm_select_cc_mode): Handle DImode comparisons.
8130         (arm_gen_compare_reg): Generate a scratch register for DImode
8131         comparisons which require one.  Use xor for Thumb equality checks.
8132         (arm_const_double_by_immediates): New.
8133         (arm_print_operand): Allow 'Q' and 'R' for constants.
8134         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
8135         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
8136         arm_canonicalize_comparison.
8137         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
8138         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8139         prototype.
8140         (arm_const_double_by_immediates): Declare.
8141         * config/arm/constraints.md (Di): New constraint.
8142         * config/arm/predicates.md (arm_immediate_di_operand)
8143         (arm_di_operand, cmpdi_operand): New.
8144         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
8145         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
8146         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
8147         (cstoredi4): Handle non-Cirrus also.
8148
8149 2010-07-02  Julian Brown  <julian@codesourcery.com>
8150             Sandra Loosemore <sandra@codesourcery.com>
8151
8152         PR target/43703
8153         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
8154         (smax<mode>3): Disable for NEON float modes when
8155         flag_unsafe_math_optimizations is false.
8156         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
8157         (*mul<mode>3_neon)
8158         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
8159         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
8160         for NEON float modes when flag_unsafe_math_optimizations is false.
8161         (quad_halves_<code>v4sf): Only enable if
8162         flag_unsafe_math_optimizations is true.
8163         * doc/invoke.texi (ARM Options): Add note about floating point
8164         vectorization requiring -funsafe-math-optimizations.
8165
8166 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8167             Julian Brown  <julian@codesourcery.com>
8168
8169         * config/arm/neon.md (UNSPEC_VABA): Delete.
8170         (UNSPEC_VABAL): Delete.
8171         (UNSPEC_VABS): Delete.
8172         (UNSPEC_VMUL_N): Delete.
8173         (adddi3_neon): New.
8174         (subdi3_neon): New.
8175         (mul<mode>3add<mode>_neon): Make the pattern named.
8176         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
8177         (neon_vadd<mode>): Replace with define_expand, and move the remaining
8178         unspec parts...
8179         (neon_vadd<mode>_unspec): ...to this.
8180         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
8181         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
8182         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
8183         (neon_vaba<mode>): Rewrite in terms of vabd.
8184         (neon_vabal<mode>): Rewrite in terms of vabdl.
8185         (neon_vabs<mode>): Rewrite without unspec.
8186         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
8187         (*arm_subdi3): Likewise.
8188         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
8189         No_op attribute to disable assembly output checks.
8190         * config/arm/arm_neon.h: Regenerated.
8191         * doc/arm-neon-intrinsics.texi: Regenerated.
8192
8193 2010-07-02  Jan Hubicka  <jh@suse.cz>
8194
8195         * ipa-split.c (split_function): For aggregate values, set the return
8196         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
8197         *<retval> = fncall.part ().
8198         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
8199
8200 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8201
8202         * config/arm/neon.md (UNSPEC_VAND): Delete.
8203         (UNSPEC_VBIC): Delete.
8204         (UNSPEC_VCLZ): Delete.
8205         (UNSPEC_VCNT): Delete.
8206         (UNSPEC_VEOR): Delete.
8207         (UNSPEC_VORN): Delete.
8208         (UNSPEC_VORR): Delete.
8209         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
8210         core registers too.
8211         (anddi3_neon): Likewise.
8212         (orndi3_neon): Likewise.
8213         (bicdi3_neon): Likewise.
8214         (xordi3_neon): Likewise.
8215         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
8216         rid of unspec and handle unused operand.
8217         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
8218         * config/arm/predicates.md (imm_for_neon_logic_operand):
8219         Require TARGET_NEON.
8220         (imm_for_neon_inv_logic_operand): Likewise.
8221         * config/arm/arm.md (define_split for logical_binary_operator):
8222         Disable for NEON registers.
8223         (anddi3): Add new define_expand, and rename the insn.  Disable
8224         this insn for NEON, where anddi3_neon now applies.
8225         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
8226         (iordi3): As for anddi3.
8227         (xordi3): Likewise.
8228         * config/arm/neon.ml (Vand): Split DImode variants and mark them
8229         as No_op to disable testing for exact instruction match.
8230         (Vorr): Likewise.
8231         (Veor): Likewise.
8232         (Vbic): Likewise.
8233         (Vorn): Likewise.
8234         * config/arm/arm_neon.h: Regenerated.
8235         * doc/arm-neon-intrinsics.texi: Regenerated.
8236
8237 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8238
8239         * expr.h (emit_stack_probe): Declare.
8240         * explow.c (emit_stack_probe): Make global.
8241         (anti_adjust_stack_and_probe): Fix comments.
8242         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8243         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8244         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8245         * config/sparc/sparc.c: Include except.h.
8246         (sparc_emit_probe_stack_range): New function.
8247         (output_probe_stack_range): Likewise.
8248         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
8249         built-in stack checking is enabled.
8250         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
8251         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8252         (probe_stack_range): New insn.
8253
8254 2010-07-02  Richard Guenther  <rguenther@suse.de>
8255
8256         PR target/43958
8257         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
8258         for argument alignment.
8259
8260 2010-07-02  Jan Hubicka  <jh@suse.cz>
8261
8262         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
8263         walk backwards from entry_bb to check only those basic block of header
8264         that might lead to execution of split part.
8265         (consider_split) ... here.
8266         (find_return_bb): Allow assignment in return BB.
8267         (find_retval): New.
8268         (split_function): Fix name of cloned function; take care of updating
8269         return value in return_bb containing move.
8270
8271 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
8272
8273         PR target/44771
8274         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
8275         used variable insn.
8276
8277 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8278
8279         * implicit-zee.c (combine_reaching_defs): Fix long lines.
8280         (is_set_with_extension_DI): Delete.
8281         (struct zero_extend_info): New structure.
8282         (add_removable_zero_extend): New function.
8283         (find_removable_zero_extends): Use note_stores to find SETs.
8284         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
8285
8286 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8287
8288         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
8289         is_miss_rate_acceptable. Pull total_positions computation
8290         out of the loops.  Early return if miss_positions exceeds
8291         the acceptable threshold.
8292         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
8293         is_miss_rate_acceptable after renaming of compute_miss_rate.
8294
8295 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8296
8297         PR middle-end/44576
8298         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
8299         of 1000) for miss rate if the address diference is greater than or
8300         equal to the cache line size (the two reference will never hit the
8301         same cache line).
8302
8303 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
8304
8305         PR target/42835
8306         * config/arm/arm-modes.def (CC_NOTB): New mode.
8307         * config/arm/arm.c (get_arm_condition_code): Handle it.
8308         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
8309         * config/arm/arm.md (subsi3_compare0_c): New pattern.
8310         (compare_scc): Now a define_and_split.  Add a number of extra
8311         splitters before it.
8312
8313         PR target/42172
8314         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
8315         and ZERO_EXTEND.
8316         (arm_rtx_costs_1): Likewise.
8317         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
8318         * config/arm/arm.md (is_arch6): New attribute.
8319         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
8320         extendqisi2): Tighten the code somewhat, avoiding invalid
8321         RTL to occur in the expander patterns.
8322         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
8323         (thumb1_zero_extendhisi2_v6): Delete.
8324         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
8325         (thumb1_extendhisi2_v6): Delete.
8326         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
8327         (thumb1_extendqisi2_v6): Delete.
8328         (zero_extendhisi2 for register input splitter): New.
8329         (zero_extendqisi2 for register input splitter): New.
8330         (thumb1_extendhisi2 for register input splitter): New.
8331         (extendhisi2 for register input splitter): New.
8332         (extendqisi2 for register input splitter): New.
8333         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
8334         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
8335         and add support for a register alternative requiring a split.
8336         (thumb1_zero_extendqisi2): Likewise.
8337         (arm_zero_extendqisi2): Likewise.
8338         (arm_extendhisi2): Likewise.
8339         (arm_extendqisi2): Likewise.
8340
8341 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8342
8343         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
8344         instead of an unspec.
8345         (neon_expand_vector_init): Likewise.
8346         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
8347         (UNSPEC_VDUP_LANE): Delete.
8348         (UNSPEC VDUP_N): Delete.
8349         (UNSPEC_VGET_HIGH): Delete.
8350         (UNSPEC_VGET_LANE): Delete.
8351         (UNSPEC_VGET_LOW): Delete.
8352         (UNSPEC_VMVN): Delete.
8353         (UNSPEC_VSET_LANE): Delete.
8354         (V_double_vector_mode): New.
8355         (vec_set<mode>_internal): Make code emitted match that for the
8356         corresponding intrinsics.
8357         (vec_setv2di_internal): Likewise.
8358         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
8359         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
8360         (neon_vset_lane<mode>): Combine double and quad patterns and
8361         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
8362         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
8363         (neon_vdup_n<mode>): Rewrite RTL without unspec.
8364         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
8365         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
8366         with neon_vdup_lanev2di, adjusting the pattern from the latter
8367         to be predicable for consistency.
8368         (neon_vdup_lane<mode>_internal): New.
8369         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
8370         to avoid using an unspec.
8371         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
8372         (neon_vdup_lanev2di): Turn into a define_expand.
8373         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
8374         (neon_vget_high<mode>): Replace with....
8375         (neon_vget_highv16qi): New pattern using canonical RTL.
8376         (neon_vget_highv8hi): Likewise.
8377         (neon_vget_highv4si): Likewise.
8378         (neon_vget_highv4sf): Likewise.
8379         (neon_vget_highv2di): Likewise.
8380         (neon_vget_low<mode>): Replace with....
8381         (neon_vget_lowv16qi): New pattern using canonical RTL.
8382         (neon_vget_lowv8hi): Likewise.
8383         (neon_vget_lowv4si): Likewise.
8384         (neon_vget_lowv4sf): Likewise.
8385         (neon_vget_lowv2di): Likewise.
8386
8387         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
8388         test for this emitting vmov.
8389         (Vset_lane): Likewise.
8390         (Vdup_n): Likewise.
8391         (Vmov_n): Likewise.
8392
8393         * doc/arm-neon-intrinsics.texi: Regenerated.
8394
8395 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8396
8397         * config/arm/neon.md (vec_extractv2di): Correct error in register
8398         numbering to reconcile with neon_vget_lanev2di.
8399
8400 2010-07-02  Richard Guenther  <rguenther@suse.de>
8401
8402         * tree-ssa-structalias.c (pt_solution_set_var): New function.
8403         * tree-ssa-alias.h (pt_solution_set_var): Declare.
8404         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
8405         points-to information.
8406
8407 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
8408
8409         * config/s390/s390.c (override_options): Adopt prefetching
8410         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
8411
8412 2010-07-02  Jan Hubicka  <jh@suse.cz>
8413
8414         * df-problems.c (df_kill_notes): Do not collect dead  notes.
8415         (df_set_note): Just call add_reg_note.
8416         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
8417         df_create_unused_note): Do not deal with lists of old notes.
8418         (df_note_bb_compute): Likewise.
8419
8420 2010-07-02  Richard Guenther  <rguenther@suse.de>
8421
8422         * tree-ssa-structalias.c (find_func_aliases): Handle
8423         pointer alignment via BIT_AND_EXPR.
8424         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
8425
8426 2010-07-02  Richard Guenther  <rguenther@suse.de>
8427
8428         * tree-data-ref.c (initialize_data_dependence_relation): Handle
8429         mismatching number of dimensions properly.
8430
8431 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8432
8433         PR target/44707
8434         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
8435         (lo_sum (high ...) ...) patterns generated by earlier passes.
8436
8437 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8438
8439         * doc/install.texi (Prerequisites): Document Perl requirement on
8440         Solaris 2.
8441         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
8442
8443 2010-07-02  Richard Guenther  <rguenther@suse.de>
8444
8445         PR middle-end/44777
8446         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
8447
8448 2010-07-02  Jan Hubicka  <jh@suse.cz>
8449
8450         PR middle-end/44706
8451         * predict.c (predict_paths_for_bb): Handle case when control dependence
8452         BB has only abnormal edges.
8453
8454 2010-07-02  Richard Guenther  <rguenther@suse.de>
8455
8456         PR tree-optimization/44748
8457         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
8458         the embedded conversion in MEM_REFs.
8459
8460 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
8461
8462         * reload.c: Include toplev.h.
8463         * recog.c:  Likewise.
8464         * Makefile.in: Adjust dependencies.
8465
8466 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
8467
8468         PR debug/44694
8469         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
8470         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
8471
8472 2010-07-01  Richard Guenther  <rguenther@suse.de>
8473
8474         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
8475         types for offsets.
8476
8477 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8478
8479         PR target/44732
8480         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
8481         Fix argument types.
8482
8483 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
8484
8485         PR target/44727
8486         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8487         Make sure operand 0 dies.
8488
8489 2010-07-01  Richard Guenther  <rguenther@suse.de>
8490
8491         PR middle-end/42834
8492         PR middle-end/44468
8493         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
8494         * doc/generic.texi (References to storage): Document MEM_REF.
8495         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
8496         (print_call_name): Likewise.
8497         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
8498         (build_simple_mem_ref_loc): New function.
8499         (mem_ref_offset): Likewise.
8500         * tree.h (build_simple_mem_ref_loc): Declare.
8501         (build_simple_mem_ref): Define.
8502         (mem_ref_offset): Declare.
8503         * fold-const.c: Include tree-flow.h.
8504         (operand_equal_p): Handle MEM_REF.
8505         (build_fold_addr_expr_with_type_loc): Likewise.
8506         (fold_comparison): Likewise.
8507         (fold_unary_loc): Fold
8508         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
8509         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
8510         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
8511         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
8512         (ptr_deref_may_alias_ref_p_1): Likewise.
8513         (ao_ref_base_alias_set): Properly differentiate base object for
8514         offset and TBAA.
8515         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
8516         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
8517         (indirect_refs_may_alias_p): Likewise.
8518         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
8519         chasing code.
8520         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
8521         (call_may_clobber_ref_p_1): Likewise.
8522         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
8523         * expr.c (expand_assignment): Handle MEM_REF.
8524         (store_expr): Handle MEM_REFs from STRING_CSTs.
8525         (store_field): If expanding a MEM_REF of a non-addressable
8526         decl use bitfield operations.
8527         (get_inner_reference): Handle MEM_REF.
8528         (expand_expr_addr_expr_1): Likewise.
8529         (expand_expr_real_1): Likewise.
8530         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
8531         * alias.c (ao_ref_from_mem): Handle MEM_REF.
8532         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
8533         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
8534         (dr_analyze_indices): Likewise.
8535         (dr_analyze_alias): Likewise.
8536         (object_address_invariant_in_loop_p): Likewise.
8537         * gimplify.c (mark_addressable): Handle MEM_REF.
8538         (gimplify_cond_expr): Build MEM_REFs.
8539         (gimplify_modify_expr_to_memcpy): Likewise.
8540         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
8541         (gimple_fold_indirect_ref): Adjust.
8542         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
8543         * tree.def (MEM_REF): New tree code.
8544         * tree-dfa.c: Include toplev.h.
8545         (get_ref_base_and_extent): Handle MEM_REF.
8546         (get_addr_base_and_unit_offset): New function.
8547         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
8548         * gimple-fold.c (may_propagate_address_into_dereference): Handle
8549         MEM_REF.
8550         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
8551         accesses if the array has just one dimension.  Remove always true
8552         parameter.  Do not require type compatibility here.
8553         (maybe_fold_offset_to_component_ref): Remove.
8554         (maybe_fold_stmt_indirect): Remove.
8555         (maybe_fold_reference): Remove INDIRECT_REF handling.
8556         Fold back to non-MEM_REF.
8557         (maybe_fold_offset_to_address): Simplify.  Deal with type
8558         mismatches here.
8559         (maybe_fold_reference): Likewise.
8560         (maybe_fold_stmt_addition): Likewise.  Also handle
8561         &ARRAY + I in addition to &ARRAY[0] + I.
8562         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
8563         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
8564         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
8565         * tree-ssa.c (useless_type_conversion_p): Make most pointer
8566         conversions useless.
8567         (warn_uninitialized_var): Handle MEM_REF.
8568         (maybe_rewrite_mem_ref_base): New function.
8569         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
8570         to SSA form.
8571         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
8572         INDIRECT_REF handling.
8573         (copy_tree_body_r): Handle MEM_REF.
8574         * gimple.c (is_gimple_addressable): Adjust.
8575         (is_gimple_address): Likewise.
8576         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
8577         invariant base are invariant.
8578         (is_gimple_min_lval): Adjust.
8579         (is_gimple_mem_ref_addr): New function.
8580         (get_base_address): Handle MEM_REF.
8581         (count_ptr_derefs): Likewise.
8582         (get_base_loadstore): Likewise.
8583         * gimple.h (is_gimple_mem_ref_addr): Declare.
8584         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
8585         * tree-cfg.c (verify_address): New function, split out from ...
8586         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
8587         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
8588         INDIRECT_REFs.
8589         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
8590         INDIRECT_REF.  Allow conversions.
8591         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
8592         a register does not change its size.
8593         (verify_types_in_gimple_reference): Verify MEM_REF.
8594         (verify_gimple_assign_single): Disallow INDIRECT_REF.
8595         Handle MEM_REF.
8596         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
8597         New.
8598         (mark_address_taken): Handle MEM_REF.
8599         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
8600         (get_asm_expr_operands): Pass opf_not_non_addressable.
8601         (get_expr_operands): Handle opf_[not_]non_addressable.
8602         Handle MEM_REF.  Remove INDIRECT_REF handling.
8603         * tree-vrp.c (check_array_ref): Handle MEM_REF.
8604         (search_for_addr_array): Likewise.
8605         (check_array_bounds): Likewise.
8606         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
8607         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
8608         (ref_always_accessed_p): Likewise.
8609         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
8610         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
8611         Handle MEM_REF.
8612         * cgraphbuild.c (mark_load): Properly check for NULL result
8613         from get_base_address.
8614         (mark_store): Likewise.
8615         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
8616         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
8617         handling for MEM_REF.
8618         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
8619         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
8620         * builtins.c (stabilize_va_list_loc): Use the function ABI
8621         valist type if we couldn't canonicalize the argument type.
8622         Always dereference with the canonical va-list type.
8623         (maybe_emit_free_warning): Handle MEM_REF.
8624         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
8625         memmove to memcpy.
8626         * builtins.c (fold_builtin_memory_op): Use ref-all types
8627         for all memcpy foldings.
8628         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
8629         (build_outer_var_ref): Likewise.
8630         (scan_omp_1_op): Likewise.
8631         (lower_rec_input_clauses): Likewise.
8632         (lower_lastprivate_clauses): Likewise.
8633         (lower_reduction_clauses): Likewise.
8634         (lower_copyprivate_clauses): Likewise.
8635         (expand_omp_atomic_pipeline): Likewise.
8636         (expand_omp_atomic_mutex): Likewise.
8637         (create_task_copyfn): Likewise.
8638         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
8639         Remove old union trick.  Initialize constant offsets.
8640         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
8641         INDIRECT_REF.  Init base_alias_set properly.
8642         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
8643         (vn_reference_fold_indirect): Adjust for MEM_REFs.
8644         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
8645         for ARRAY_REFs.
8646         (may_insert): Remove.
8647         (visit_reference_op_load): Do not test may_insert.
8648         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
8649         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8650         a field to store the constant offset this op applies.
8651         (run_scc_vn): Adjust prototype.
8652         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
8653         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
8654         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
8655         bother about volatile qualifiers on pointers.
8656         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
8657         * tree-ssa-loop-ivopts.c
8658         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
8659         (strip_offset_1): Likewise.
8660         (find_interesting_uses_address): Replace INDIRECT_REF handling with
8661         MEM_REF handling.
8662         (get_computation_cost_at): Likewise.
8663         * ipa-pure-const.c (check_op): Handle MEM_REF.
8664         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
8665         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
8666         and constants.
8667         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
8668         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
8669         (eliminate_local_variables_1): Likewise.
8670         (create_call_for_reduction_1): Likewise.
8671         (create_loads_for_reductions): Likewise.
8672         (create_loads_and_stores_for_name): Likewise.
8673         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
8674         (ssa_accessed_in_tree): Handle MEM_REF.
8675         (ssa_accessed_in_assign_rhs): Likewise.
8676         (update_type_size): Likewise.
8677         (analyze_accesses_for_call_stmt): Likewise.
8678         (analyze_accesses_for_assign_stmt): Likewise.
8679         (transform_access_sites): Likewise.
8680         (transform_allocation_sites): Likewise.
8681         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
8682         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8683         not handle INDIRECT_REF.
8684         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
8685         (cond_store_replacement): Likewise.
8686         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
8687         MEM_REF, no not handle INDIRECT_REFs.
8688         (insert_into_preds_of_block): Properly initialize avail.
8689         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
8690         for ARRAY_REFs.  Properly handle reference lookups that
8691         require a bit re-interpretation.
8692         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
8693         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
8694         (build_ref_for_offset_1): Remove.
8695         (build_ref_for_offset): Build MEM_REFs.
8696         (gate_intra_sra): Disable for now.
8697         (sra_ipa_modify_expr): Handle MEM_REF.
8698         (ipa_early_sra_gate): Disable for now.
8699         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
8700         MEM_REF handling.
8701         (disqualify_base_of_expr): Likewise.
8702         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
8703         MEM_REF handling.
8704         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
8705         Use mem_ref_offset.  Remove bogus folding.
8706         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
8707         (make_fancy_name_1): Add support for MEM_REF.
8708         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
8709         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
8710         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
8711         (compute_complex_ancestor_jump_func): Likewise.
8712         (ipa_analyze_virtual_call_uses): Likewise.
8713         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
8714         INDIRECT_REF folding with more generalized MEM_REF folding.
8715         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
8716         (forward_propagate_addr_into_variable_array_index): Also handle
8717         &ARRAY + I in addition to &ARRAY[0] + I.
8718         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
8719         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
8720         creates assignments with overlap.
8721         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
8722         (get_frame_field): Likewise.
8723         (get_nonlocal_debug_decl): Likewise.
8724         (convert_nonlocal_reference_op): Likewise.
8725         (struct nesting_info): Add mem_refs pointer-set.
8726         (create_nesting_tree): Allocate it.
8727         (convert_local_reference_op): Insert to be folded mem-refs.
8728         (fold_mem_refs): New function.
8729         (finalize_nesting_tree_1): Perform defered folding of mem-refs
8730         (free_nesting_tree): Free the pointer-set.
8731         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
8732         (vectorizable_load): Likewise.
8733         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
8734         (propagate_with_phi): Likewise.
8735         * tree-object-size.c (addr_object_size): Handle MEM_REFs
8736         instead of INDIRECT_REFs.
8737         (compute_object_offset): Handle MEM_REF.
8738         (plus_stmt_object_size): Handle MEM_REF.
8739         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
8740         for &MEM_REF.
8741         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
8742         (symbol_marked_for_renaming): Likewise.
8743         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
8744         (fold-const.o): Add $(TREE_FLOW_H).
8745         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
8746         (find_func_clobbers): Likewise.
8747         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
8748         (decompose_access): Likewise.
8749         (replace_field_acc): Likewise.
8750         (replace_field_access_stmt): Likewise.
8751         (insert_new_var_in_stmt): Likewise.
8752         (get_stmt_accesses): Likewise.
8753         (reorg_structs_drive): Disable.
8754         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
8755         (ix86_canonical_va_list_type): Likewise.
8756
8757 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8758
8759         PR other/44566
8760         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
8761         * target.def (struct gcc_target): Replace enum reg_class with
8762         reg_class_t in hook argument / return types.
8763         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
8764         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
8765         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
8766         * targhooks.h (default_branch_target_register_class): Likewise.
8767         (default_ira_cover_classes, default_secondary_reload): Likewise.
8768         (default_memory_move_cost, default_register_move_cost): Likewise.
8769         * targhooks.c (default_branch_target_register_class): Likewise.
8770         (default_ira_cover_classes, default_secondary_reload): Likewise.
8771         (default_memory_move_cost, default_register_move_cost): Likewise.
8772         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
8773         * bt-load.c (branch_target_load_optimize): Likewise.
8774         * ira.c (setup_cover_and_important_classes): Likewise.
8775         * ira-costs.c (copy_cost): Likewise.
8776         * reload1.c (emit_input_reload_insns): Likewise.
8777         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8778         * config/frv/frv.c (frv_secondary_reload): Likewise.
8779         * config/s390/s390.c (s390_secondary_reload): Likewise.
8780         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
8781         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
8782         (ix86_register_move_cost): Likewise.
8783         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
8784         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
8785         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
8786         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
8787         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
8788         (rs6000_ira_cover_classes): Likewise.
8789         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
8790         * config/picochip/picochip-protos.h (picochip_secondary_reload):
8791         Likewise.
8792         * config/pa/pa.c (pa_secondary_reload): Likewise.
8793         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
8794         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
8795         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
8796         * doc/tm.texi: Regenerate.
8797
8798 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
8799
8800         PR bootstrrap/44726
8801         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
8802         use.
8803         (build_alias_set_optimal_p): Likewise.
8804         (build_base_obj_set_for_drs): Likewise.
8805
8806 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8807
8808         * target.def: Remove comment about licensing problems of function
8809         declarations.
8810
8811         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
8812         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
8813         * doc/tm.texi: Regenerate.
8814
8815         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
8816         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
8817
8818         * target.def (enum_va_list_p): Use DEFHOOK.
8819         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
8820         Rename ptype to ptree.
8821         * doc/tm.texi: Regenerate.
8822
8823         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
8824         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
8825         * doc/tm.texi: Regenerate.
8826
8827         * target.def (memory_move_cost): Use DEFHOOK.
8828         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
8829         Rename regclass AKA class to rclass.
8830         * doc/tm.texi: Regenerate.
8831
8832         * target.def (pragma_parse): Use DEFHOOK.
8833         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
8834         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
8835         * doc/tm.texi: Regenerate.
8836
8837         * target.def (pass_by_reference): Use DEFHOOK.
8838         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
8839         * doc/tm.texi: Regenerate.
8840
8841         * target.def (resolve_overloaded_builtin): Rename params to arglist.
8842         Use DEFHOOK.
8843         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
8844         * doc/tm.texi: Regenerate.
8845
8846         * target.def (return_pops_args): Use DEFHOOK.
8847         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
8848         Rename stack-size to size.
8849         * doc/tm.texi: Regenerate.
8850
8851         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
8852         last-sched_cycle to last_clock, cur_cycle to clock.
8853         * doc/tm.texi.in: Use @hook.
8854         * doc/tm.texi: Regenerate.
8855
8856         * target.def (print_operand, print_operand_address): Update comment.
8857         (print_operand_punct_valid_p): Likewise.
8858
8859 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8860
8861         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
8862         to rtl.h.
8863         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
8864         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
8865         * rtl-error.h: New.
8866         * regrename.c: Do not include toplev.h. Include rtl-error.h.
8867         * rtl-error.c: Likewise.
8868         * reload.c: Likewise.
8869         * recog.c:  Likewise.
8870         * sel-sched.c: Likewise.
8871         * function.c: Likewise.
8872         * reg-stack.c: Likewise.
8873         * cfgrtl.c: Likewise.
8874         * reload1.c: Likewise.
8875         * final.c: Include rtl-error.
8876         * Makefile.in: Adjust dependencies.
8877
8878 2010-06-30  Jan Hubicka  <jh@suse.cz>
8879
8880         PR middle-end/PR44706
8881         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
8882         to return the value.
8883
8884 2010-06-30  Michael Matz  <matz@suse.de>
8885
8886         PR bootstrap/44699
8887         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
8888         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
8889         a gimple reg, attach the original VDEF to the last store in the
8890         sequence.
8891
8892 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
8893
8894         PR other/44034
8895         * config/darwin.c (darwin_override_options): Use renamed
8896         targetm.asm_out.emit_unwind_label.
8897
8898 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
8899
8900         PR tree-optimization/39799
8901         * tree-inline.c (remap_ssa_name): Initialize variable only if
8902         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8903
8904 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
8905
8906         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
8907
8908 2010-06-30  Richard Guenther  <rguenther@suse.de>
8909
8910         PR target/44722
8911         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
8912         against oscillation with reverse peephole2.
8913
8914 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8915
8916         PR target/44721
8917         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8918         Fix last commit.
8919
8920 2010-06-30  Nick Clifton  <nickc@redhat.com>
8921
8922         * config/rx/rx-modes.def: New file.
8923         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
8924         (CC_REGNUM): Define.
8925         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
8926         register.
8927         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
8928         (SELECT_CC_MODE): Define.
8929         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
8930         (reg:CC CC_REG) instead of (cc0).
8931         (attr "cc"): Delete.
8932         (cbranchsi4): Do not split compare and branch here. Instead move
8933         it to...
8934         (cbranchsi4_<code>): ... here.  New patterns.
8935         (cmpsi): Call rx-compare_redundant to find out if it is necessary
8936         to emit the compare instruction.
8937         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
8938         cc_status flags.
8939         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
8940         FIRST_PSEUDO_REGNUM.
8941         (rx_expand_prologue, rx_expand_epilogue): Likewise.
8942         (rx_notice_update_cc): Delete.
8943         (rx_cc_modes_compatible): New function.
8944         (flags_needed_for_conditional): New function.
8945         (flags_from_mode): New function.
8946         (rx_compare_redundant): New function - scans backwards through
8947         insn list to find out if condition flags are already set correctly.
8948         (TARGET_CC_MODES_COMPATIBLE): Define.
8949         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
8950
8951         * config/rx/rx.h (BRANCH_COST): Define.
8952         (REGISTER_MOVE_COST): Define.
8953         * config/rx/predicates (rx_source_operand): Allow all constant types.
8954         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
8955         (tstsi4): New pattern.
8956         * config/rx/rx.c (rx_memory_move_cost): Define.
8957         (TARGET_MEMORY_MOVE_COST): Define.
8958
8959 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8960
8961         * tree.h (block_may_fallthru): Declare here.
8962         * tree-flow.h (block_may_fallthru): Do not declare here.
8963         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
8964         bitmap.h
8965         * Makefile.in (c-typeck.o): Update dependencies.
8966
8967 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
8968
8969         PR debug/44694
8970         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
8971         * cselib.c (cfa_base_preserved_regno): New static variable.
8972         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
8973         of REGNO (cfa_base_preserved_val->locs->loc).
8974         (cselib_preserve_cfa_base_value): Add regno argument, set
8975         cfa_base_preserved_regno to it.
8976         (cselib_invalidate_regno): Allow removal of registers other than
8977         cfa_base_preserved_regno from cfa_base_preserved_val.
8978         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
8979         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
8980         of MEM addresses, if not on LHS.
8981         (reverse_op): Don't add reverse ops for cfa_base_rtx.
8982         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
8983
8984 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
8985
8986         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
8987         static variables.
8988         (peep2_buf_position): New static function.
8989         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
8990         peephole2_optimize): Use it.
8991         (peep2_attempt, peep2_update_life): New static functions, broken out
8992         of peephole2_optimize.
8993         (peep2_fill_buffer): New static function.
8994         (peephole2_optimize): Change the main loop to try to fill the buffer
8995         with the maximum number of insns before matching them against
8996         peepholes.  Use a forward scan.  Remove special case for targets with
8997         conditional execution.
8998         * genrecog.c (change_state): Delete dead code.
8999         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9000         Rewrite so as not to expect the second insn to have had a peephole
9001         applied yet.
9002
9003 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9004
9005         * genhooks.c (emit_findices): Cast field precision to int.
9006         (emit_documentation): Likewise.
9007
9008 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
9009
9010         PR tree-optimization/43801
9011         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
9012         if old_decl was DECL_ONE_ONLY.
9013
9014         PR debug/44668
9015         * dwarf2out.c (add_accessibility_attribute): New function.
9016         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
9017         instead of adding DW_AT_accessibility manually.
9018         (gen_enumeration_type_die, gen_struct_or_union_type_die,
9019         gen_typedef_die): Use it.
9020
9021 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9022
9023         * vmsdbgout.c (full_name): Just output the file name if not native.
9024
9025 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9026
9027         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
9028         (funcnam_table): New static table.
9029         (funcnum_table): New static table.
9030         (write_rtnbeg): Write value saved in funcnum_table.
9031         (write_rtnend): Write value saved in funcnum_table.
9032         (vmsdbgout_begin_function): Save current function info in
9033         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
9034         (vmsdbgout_finish): Iterate over funcnum_table.
9035
9036 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9037
9038         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
9039         (vmsdbgout_type_decl): Declare
9040         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
9041         (FUNC_EPILOGUE_LABEL): New macro
9042         (vmsdbgout_begin_epilogue): New function.
9043         (vmsdbgout_type_decl): New function.
9044
9045 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9046
9047         * vmsdbg.h: Update copyright.
9048
9049 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
9050
9051         * vmsdbg.h (DST_K_TBG): New DST constant.
9052         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
9053         (write_modbeg): Cast module_language to avoid warning.
9054         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
9055
9056 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9057
9058         PR other/44034
9059         * target.def, doc/tm.texi.in, genhooks.c: New files.
9060         * target.h: Instead of defining individual hook members,
9061         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
9062         include target.def.
9063         * target-def.h: Instead of defining individual hook initializers,
9064         include target-hooks-def.h.
9065         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
9066         targetm.live_on_entry -> targetm.extra_live_on_entry
9067         targetm.sched.md_finish ->targetm.sched.finish
9068         targetm.sched.md_init -> targetm.sched.init
9069         targetm.sched.md_init_global -> targetm.sched.init_global
9070         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
9071         targetm.asm_out.except_table_label ->
9072           targetm.asm_out.emit_except_table_label
9073         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
9074         targetm.target_help -> targetm.help
9075         targetm.vectorize.builtin_support_vector_misalignment ->
9076           targetm.vectorize.support_vector_misalignment
9077         targetm.file_start_app_off -> targetm.asm_file_start_app_off
9078         targetm.file_start_file_directive ->
9079          targetm.asm_file_start_file_directive
9080         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
9081         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
9082         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
9083         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
9084           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
9085         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
9086           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
9087         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
9088         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
9089         * Makefile.in (TARGET_H): Depend on target.def.
9090         (TARGET_DEF_H): Depend on target-hooks-def.h.
9091         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
9092         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
9093         * doc/tm.texi: Regenerate.
9094
9095         * Makefile.in (s-tm-texi): Remove stray tab / rule.
9096
9097         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
9098         (targetm.sched.init): Likewise.
9099
9100 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9101
9102         PR bootstrap/44713
9103         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
9104         (function_arg_advance_32): Const-ify TYPE parameter.
9105         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
9106         (ix86_function_arg_advance): Change type of NAMED to bool.
9107         (function_arg_32): Const-ify CUM and TYPE parameters.
9108         (function_arg_64): Likewise.  Change type of NAMED to bool.
9109         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
9110         to bool.
9111         (ix86_function_arg): Change type of NAMED to bool.
9112         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
9113         last argument as a bool.
9114
9115 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
9116
9117         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
9118         (OVERRIDE_OPTIONS): Add note of obsolescence.
9119         Replace references with references to TARGET_OPTION_OVERRIDE.
9120         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
9121          the macro).
9122         * targhooks.c (default_target_option_override): New function.
9123         * targhooks.h (default_target_option_override): Declare.
9124         * target.h (struct gcc_target): Add override member to
9125         target_option member.
9126         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
9127         targetm.target_option.override call.
9128         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
9129         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
9130
9131 2010-06-29  Jan Hubicka  <jh@suse.cz>
9132
9133         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
9134
9135 2010-06-29  Jan Hubicka  <jh@suse.cz>
9136
9137         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
9138         unreachable.
9139         (rebuild_frequencies): New function.
9140         * predict.h (rebuild_frequencies): Declare.
9141         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
9142         entry block and edge reaching new_entry.
9143         (tree_function_versioning): When doing partial cloning, rebuild
9144         frequencies when done.
9145         * passes.c (execute_function_todo): Use rebild_frequencies.
9146
9147 2010-06-29  Richard Guenther  <rguenther@suse.de>
9148
9149         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
9150         * tree-flow.h (enum noalias_state): Remove.
9151         (struct var_ann_d): Remove noalias_state member.
9152
9153 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
9154
9155         PR target/43902
9156         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
9157         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
9158         (maddhidi4): Likewise.
9159
9160         Revert parts of the change for PR25130.
9161         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
9162         MEM_ALIAS_SET.
9163
9164 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9165
9166         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
9167         targetm.calls.function_incoming_arg, and
9168         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
9169         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
9170         * target.h (struct gcc_target): Add function_arg_advance,
9171         function_arg, and function_incoming_arg fields.
9172         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
9173         (TARGET_FUNCTION_INCOMING_ARG): Define.
9174         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
9175         and TARGET_FUNCTION_INCOMING_ARG.
9176         * targhooks.h (default_function_arg_advance): Declare.
9177         (default_function_arg, default_function_incoming_arg): Declare.
9178         * targhooks.c (default_function_arg_advance): New function.
9179         (default_function_arg, default_function_incoming_arg): New function.
9180         * config/i386/i386.c (function_arg_advance): Rename to...
9181         (ix86_function_arg_advance): ...this.  Make static.
9182         (function_arg): Rename to...
9183         (ix86_function_arg): ...this.  Make static.
9184         (TARGET_FUNCTION_ARG_ADVANCE): Define.
9185         (TARGET_FUNCTION_ARG): Define.
9186         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
9187         (FUNCTION_ARG): Delete.
9188         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
9189         (function_arg): Delete prototype.
9190
9191 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9192
9193         * reginfo.c (init_reg_sets_1): Adjust comments.
9194         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
9195         * calls.c (prepare_call_address): Likewise.
9196         (emit_call_1): Use targetm.calls.return_pops_args.
9197         (expand_call): Likewise.
9198         * function.c (assign_parms): Likewise.
9199         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
9200         * target.h (struct gcc_target) [struct calls]: Add
9201         return_pops_args field.
9202         * targhooks.h (default_return_pops_args): Declare.
9203         * targhooks.c (default_return_pops_args): Define.
9204         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
9205         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
9206         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
9207         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
9208         documentation.
9209         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
9210         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
9211         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
9212         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
9213         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
9214         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
9215         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
9216         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
9217         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
9218         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
9219         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
9220         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
9221         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
9222         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
9223         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
9224         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
9225         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
9226         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
9227         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
9228         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
9229         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
9230         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
9231         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
9232         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
9233         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
9234         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
9235         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
9236         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
9237         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
9238         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
9239         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
9240         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
9241         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
9242         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
9243         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
9244         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
9245         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
9246         * config/i386/i386.c (ix86_return_pops_args): Make static.
9247         Constify arguments.
9248         (TARGET_RETURN_POPS_ARGS): Define.
9249         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
9250         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
9251         (TARGET_RETURN_POPS_ARGS): Define.
9252         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
9253         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
9254         (TARGET_RETURN_POPS_ARGS): Define.
9255
9256 2010-06-29  Richard Guenther  <rguenther@suse.de>
9257
9258         PR middle-end/44667
9259         * tree-inline.c (initialize_inlined_parameters): Make sure
9260         to remap the inlined parameter variable substitutions types.
9261
9262 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9263
9264         PR rtl-optimization/44659
9265         * combine.c (make_compound_operation) <SUBREG>: Do not return the
9266         result of force_to_mode if it partially re-expanded the compound.
9267
9268 2010-06-28  Jan Hubicka  <jh@suse.cz>
9269
9270         PR middle-end/44671
9271         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
9272         RESULT_DECL.
9273
9274 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
9275
9276         * double-int.h (force_fit_type_double): Remove declaration.
9277         * double-int.c (force_fit_type_double): Move to tree.c.
9278         * tree.h (force_fit_type_double): Declare.
9279         * tree.h (force_fit_type_double): Moved from double-int.c. Use
9280         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
9281         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
9282         * convert.c (convert_to_pointer): Adjust call to
9283         force_fit_type_double.
9284         * tree-vrp.c (extract_range_from_assert,
9285         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
9286         * fold-const.c: Update comment.
9287         (int_const_binop, fold_convert_const_int_from_int,
9288         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
9289         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
9290         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
9291         round_up_loc): Adjust call to force_fit_type_double.
9292
9293 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9294
9295         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
9296
9297 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9298
9299         * tree-sra.c (convert_callers): New parameter, change fndecls of
9300         recursive calls.
9301         (modify_function): Pass the old decl to convert_callers.
9302
9303 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9304
9305         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
9306         ipa_check_create_node_params and ipa_initialize_node_params with
9307         checking asserts they are not necessary.
9308
9309 2010-06-28  Jan Hubicka  <jh@suse.cz>
9310
9311         PR tree-optimization/44687
9312         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
9313
9314 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9315
9316         PR c++/44535
9317         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
9318         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
9319         instead of BINFO_BASE_BINFO.
9320
9321 2010-06-28  Michael Matz  <matz@suse.de>
9322
9323         PR middle-end/44592
9324         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
9325         proper VDEF chain for intermediate stores in the sequence.
9326
9327 2010-06-28  Jan Hubicka  <jh@suse.cz>
9328
9329         PR tree-optimization/44357
9330         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
9331         uninlinable functions.
9332
9333 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9334
9335         * config.gcc (powerpc*-*-*): Handle titan.
9336         * config/rs6000/rs6000.c (titan_cost): New costs.
9337         (rs6000_override_options): Add "titan" to processor_target_table.
9338         Add Titan to branch alignment logic.
9339         Correctly set rs6000_cost for titan.
9340         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
9341         * config/rs6000/titan.md: New file.
9342         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
9343
9344 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9345
9346         * tree-browser.c (TB_history_stack): Convert to a VEC.
9347         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
9348         (TB_history_prev): Likewise.
9349
9350 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9351
9352         * vec.h (vec_heap_free): Add parentheses around free.
9353
9354 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
9355
9356         * system.h: Poison GCC_EXCEPT_H for front-end files.
9357
9358         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
9359         langhook.
9360         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
9361         Define to NULL by default.
9362         * except.h: Define GCC_EXCEPT_H.
9363         (doing_eh): Remove prototype.
9364         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
9365         (lang_protect_cleanup_actions): Remove.
9366         * except.c (lang_protect_cleanup_actions): Remove.
9367         (doing_eh): Remove.
9368         (gen_eh_region): Don't check doing_eh here.
9369         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
9370         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
9371         instead of lang_protect_cleanup_actions.
9372         * omp-low.c (maybe_catch_exception): Likewise.
9373         * Makefile.in: Update dependencies.
9374
9375 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
9376
9377         * cgraph.h (struct varpool_node): new used_from_object_file flag.
9378         (struct cgraph_local_info): new used_from_object_file flag.
9379         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
9380         (cgraph_clone_node): initialize used_from_object_file.
9381         (cgraph_create_virtual_clone): initialize used_from_object_file.
9382         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
9383         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
9384         when compiling with -fwhole-program.
9385         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
9386         internal resolver.
9387         * ipa.c (function_and_variable_visibility): Set externally_visible
9388         flag of varpool_node if used_from_object_file flag is set.
9389         (cgraph_externally_visible_p): check used_from_object_file flag.
9390         * doc/invoke.texi (-fwhole-program option): Change description of
9391         externally_visible attribute accordingly.
9392         * doc/extend.texi (externally_visible): Ditto.
9393
9394 2010-06-27  Jan Hubicka  <jh@suse.cz>
9395
9396         * params.def (max-inline-insns-auto): Default to 40.
9397         * doc/invoke.texi (max-inline-insns-auto): Document the change.
9398
9399 2010-06-27  Jan Hubicka  <jh@suse.cz>
9400
9401         PR middle-end/44671
9402         PR middle-end/44686
9403         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
9404         signature change.
9405         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
9406         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
9407
9408 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
9409
9410         * target.h (struct gcc_target): Add register_move_cost field.
9411         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
9412         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
9413         * targhooks.c (default_register_move_cost): New function.
9414         * targhooks.h (default_register_move_cost): Declare function.
9415         * defaults.h (REGISTER_MOVE_COST): Delete.
9416         * ira-int.h (ira_register_move_cost): Update comment.
9417         * ira.c (ira_register_move_cost): Update comment.
9418         * reload.h (register_move_cost): Declare.
9419         * reginfo.c (register_move_cost): New function.
9420         (move_cost): Update comment.
9421         (init_move_cost, memory_move_secondary_cost): Replace
9422         REGISTER_MOVE_COST with register_move_cost.
9423         * postreload.c (reload_cse_simplify_set): (Ditto.).
9424         * reload.c (find_valid_class, find_reloads): (Ditto.).
9425         * reload1.c (choose_reload_regs): (Ditto.).
9426         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
9427         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
9428         * doc/md.texi (can_create_pseudo_p): Update documentation.
9429
9430         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9431         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9432         * config/i386/i386.h (ix86_memory_move_cost): Make static.
9433         (TARGET_MEMORY_MOVE_COST): Define.
9434
9435         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9436         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
9437         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
9438         (TARGET_MEMORY_MOVE_COST): Define.
9439
9440 2010-06-27  Richard Guenther  <rguenther@suse.de>
9441
9442         PR tree-optimization/44683
9443         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
9444         false edge from the inverted condition.
9445
9446 2010-06-27  Richard Guenther  <rguenther@suse.de>
9447
9448         PR middle-end/44684
9449         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
9450         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
9451         for register LHS.  Or non-store assignments.
9452
9453 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9454
9455         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
9456         (sparc_emit_set_const64): Likewise.  Remove disabled code.
9457         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
9458         (sparc_emit_set_const64): Likewise.
9459
9460 2010-06-26  Catherine Moore  <clm@codesourcery.com>
9461
9462         * config/mips/mips.md (alu_type): New attribute.
9463         (type): Infer type from alu_type.
9464         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
9465         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
9466         *subsi3_extended, negsi2, negdi2, *low<mode>,
9467         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
9468         xor<mode>3, *nor<mode>3,
9469         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
9470         *zero_extendhi_truncqi):  Set alu_type instead of type.
9471
9472 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
9473
9474         * config/alpha/alpha.c (alpha_need_linkage): Adjust
9475         splay_tree_new_ggc call.
9476         (alpha_use_linkage): Likewise.
9477
9478 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9479
9480         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
9481         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
9482         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
9483         (static_specs): Remove switches_need_spaces.
9484         (process_command, do_self_spec): Hardcode handling "-o" instead of
9485         checking switches_need_spaces.
9486         * system.h (SWITCHES_NEED_SPACES): Poison.
9487
9488 2010-06-26  Richard Guenther  <rguenther@suse.de>
9489
9490         PR tree-optimization/44393
9491         * tree-loop-distribution.c (generate_loops_for_partition): Fix
9492         stmt removal and VOP renaming.
9493         (generate_memset_zero): Remove redundant stmt updating.
9494         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
9495         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
9496
9497 2010-06-26  Jan Hubicka  <jh@suse.cz>
9498
9499         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
9500         edges comming from header are equivalent.
9501         (visit_bb): Handle PHIs correctly.
9502         * tree-inline.c (copy_phis_for_bb): Be able to copy
9503         PHI from entry edge.
9504         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
9505
9506 2010-06-26  Richard Guenther  <rguenther@suse.de>
9507
9508         PR middle-end/44674
9509         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
9510         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
9511
9512 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9513
9514         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
9515         add_infile, alloc_switch): New.
9516         (process_command): Remove variable lang_n_infiles.  Process
9517         options in a single pass.  Use new functions for allocating
9518         infiles and switches arrays.  Properly skip operands of
9519         -Xpreprocessor and -Xassembler.
9520
9521 2010-06-26  Jan Hubicka  <jh@suse.cz>
9522
9523         PR middle-end/44671
9524         * cgraphunit.c (cgraph_function_versioning): Remove wrong
9525         cgraph_make_decl_local call; fix typo copying RTL data.
9526
9527 2010-06-25  DJ Delorie  <dj@redhat.com>
9528
9529         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
9530         (m32c_output_aligned_common): Likewise.
9531         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9532         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9533         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
9534         (m32c_register_pragmas): Register it.
9535         * config/m32c/m32c.c (m32c_get_pragma_address): New.
9536         (m32c_insert_attributes): Set #pragma address decls volatile.
9537         (pragma_entry_eq): New.
9538         (pragma_entry_hash): New.
9539         (m32c_note_pragma_address): New.
9540         (m32c_get_pragma_address): New.
9541         (m32c_output_aligned_common): New.
9542         * doc/extend.texi: Document the new pragma.
9543
9544         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
9545         also.
9546         * config/m32c/predicates.md (m32c_any_operand): Check the code
9547         instead of memory_operand so as to allow matching volatile MEMs.
9548         (m32c_nonimmediate_operand): Likewise.
9549         (mra_operand): Allow volatiles.
9550
9551 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
9552
9553         PR debug/44610
9554         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
9555         address if the offset is unknown.
9556
9557 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
9558
9559         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
9560         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
9561         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
9562         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
9563         to ia64_start_function. Invoke it.
9564         * config/ia64/ia64.c (ia64_start_function): Call new function
9565         dwarf2out_vms_debug_main_pointer.
9566
9567 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9568
9569         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
9570         statements computing the true predicate.
9571
9572 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9573
9574         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
9575         to boolean_true_node.
9576         (reset_bb_predicate): New.
9577         (predicate_bbs): Call reset_bb_predicate.
9578
9579 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9580
9581         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
9582         (tree_if_conversion): Returns true when something has been changed.
9583         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
9584         changed something.
9585
9586 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9587
9588         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
9589         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
9590         * tree-if-conv.c: Include dbgcnt.h.
9591         (tree_if_conversion): Use if_conversion_tree to count the number of
9592         if-convertible loops.
9593
9594 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
9595
9596         * common.opt (fprefetch-loop-arrays): Re-define
9597         -fprefetch-loop-arrays as a tri-state option with the initial
9598         value of -1.
9599         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
9600         pass only when flag_prefetch_loop_arrays > 0.
9601         * toplev.c (process_options): Note that, with tri-states,
9602         flag_prefetch_loop_arrays>0 means prefetching is enabled.
9603         * config/i386/i386.c (override_options): Enable prefetching at -O3
9604         for a set of CPUs that sw prefetching is helpful.
9605         (software_prefetching_beneficial_p): New.  Return TRUE if software
9606         prefetching is beneficial for the given CPU.
9607
9608 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
9609
9610         PR rtl-optimization/44326
9611         * implicit-zee.c (find_removable_zero_extends): Replace
9612         INSN_P with NONDEBUG_INSN_P.
9613
9614 2010-06-25  Martin Jambor  <mjambor@suse.cz>
9615
9616         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
9617         (struct ipa_node_params): Removed the modification_analysis_done flag.
9618         (ipa_is_param_modified): Removed.
9619         (ipa_analyze_node): Declare.
9620         (ipa_compute_jump_functions): Remove declaration.
9621         (ipa_count_arguments): Likewise.
9622         (ipa_detect_param_modifications): Likewise.
9623         (ipa_analyze_params_uses): Likewise.
9624         * ipa-prop.c (struct param_analysis_info): New type.
9625         (visit_store_addr_for_mod_analysis): Removed.
9626         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
9627         moved down in the file.
9628         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
9629         (ipa_count_arguments): Made static.
9630         (mark_modified): New function.
9631         (is_parm_modified_before_call): New function.
9632         (compute_pass_through_member_ptrs): New parameter parms_info, call
9633         is_parm_modified_before_call instead of ipa_is_param_modified.
9634         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
9635         it to compute_pass_through_member_ptrs.
9636         (ipa_compute_jump_functions): New parameter parms_info, pass it to
9637         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
9638         on the callee if it is analyzed.  Made static.
9639         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
9640         is_parm_modified_before_call instead of ipa_is_param_modified.
9641         (ipa_analyze_call_uses): New parameter parms_info, pass it to
9642         ipa_analyze_indirect_call_uses.
9643         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
9644         ipa_analyze_call_uses.
9645         (ipa_analyze_params_uses): New parameter parms_info, pass it to
9646         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
9647         (ipa_analyze_node): New function.
9648         (ipa_print_node_params): Do not dump the modified flag.
9649         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
9650         it.  Do not stream the modified parameter flag.
9651         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
9652         it.  Do not stream the modified parameter flag.
9653         * ipa-cp.c (ipcp_analyze_node): Removed.
9654         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
9655         with only a call to ipa_analyze_node.
9656         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
9657         node with only a call to ipa_analyze_node.
9658
9659 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9660
9661         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
9662
9663 2010-06-25  Jan Hubicka  <jh@suse.cz>
9664
9665         * tree-pass.h (pass_split_functions): Declare.
9666         * opts.c (decode_options): Enable function splitting at -O2
9667         * timevar.def (TV_IPA_FNSPLIT): New macro.
9668         * ipa-split.c: New file.
9669         * common.opt (-fpartial-inlining): New flag.
9670         * Makefile.in (ipa-split.o): New object file.
9671         * passes.c (init_optimization_passes): Add ipa-split.
9672         * params.def (partial-inlining-entry-probability): New parameters.
9673         * doc/invoke.texi (-fpartial-inlining): New.
9674
9675 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9676
9677         PR 44665
9678         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
9679         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
9680         (gimplify_expr): Likewise.
9681
9682 2010-06-25  Martin Jambor  <mjambor@suse.cz>
9683
9684         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
9685         statements instead of bailing out on them.
9686         (ipa_analyze_indirect_call_uses): Do not require that loads from the
9687         parameter are in the same BB as the condition.  Update comments.
9688
9689 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
9690
9691         PR middle-end/43866
9692         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
9693         true or always false, return NULL_TREE.
9694         (tree_unswitch_single_loop): Optimize conditions even when reaching
9695         max-unswitch-level parameter.  If num > 0, optimize first all conditions
9696         using entry checks, then do still reachable block discovery and consider
9697         only conditions in still reachable basic blocks in the loop.
9698
9699         PR tree-optimization/44539
9700         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
9701         the call doesn't have LHS, but has VDEF.
9702
9703 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
9704
9705         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
9706         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
9707         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
9708         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
9709         * system.h (MODIFY_TARGET_NAME): Poison.
9710
9711 2010-06-25  Alan Modra  <amodra@gmail.com>
9712
9713         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
9714         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
9715         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9716         CMODEL_LARGE as default.
9717         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
9718         (offsettable_ok_by_alignment): Delete.
9719         (rs6000_emit_move): Remove mcmodel=medium optimization.
9720
9721 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
9722
9723         With large parts from Jim Wilson:
9724         PR target/43902
9725         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
9726         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
9727         * optabs.c (optab_for_tree_code): Likewise.
9728         (expand_widen_pattern_expr): Likewise.
9729         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
9730         out of execute_optimize_widening_mul.
9731         (convert_plusminus_to_widen): New function.
9732         (execute_optimize_widening_mul): Use the two new functions.
9733         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
9734         Remove code to generate widening multiply-accumulate.  Add support
9735         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
9736         * gimple-pretty-print.c (dump_ternary_rhs): New function.
9737         (dump_gimple_assign): Call it when appropriate.
9738         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
9739         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
9740         (expand_gimple_stmt_1): Likewise.
9741         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
9742         WIDEN_MULT_MINUS_EXPR.
9743         * tree-ssa-operands.c (get_expr_operands): Likewise.
9744         * tree-inline.c (estimate_operator_cost): Likewise.
9745         * gimple.c (extract_ops_from_tree_1): Renamed from
9746         extract_ops_from_tree.  Add new arg for a third operand; fill it.
9747         (gimple_build_assign_stat): Support operations with three operands.
9748         (gimple_build_assign_with_ops_stat): Likewise.
9749         (gimple_assign_set_rhs_from_tree): Likewise.
9750         (gimple_assign_set_rhs_with_ops_1): Renamed from
9751         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
9752         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
9753         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
9754         WIDEN_MULT_MINUS_EXPR.
9755         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
9756         (extract_ops_from_tree_1): Adjust declaration.
9757         (gimple_assign_set_rhs_with_ops_1): Likewise.
9758         (gimple_build_assign_with_ops): Pass NULL for last operand.
9759         (gimple_build_assign_with_ops3): New macro.
9760         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
9761         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
9762         functions.
9763         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
9764         (verify_gimple_assign): Call it.
9765         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
9766         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
9767         functions for dealing with three-operand statements.
9768         * tree.c (commutative_ternary_tree_code): New function.
9769         * tree.h (commutative_ternary_tree_code): Declare it.
9770         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
9771         ternary statements.
9772         (gimple_assign_nonzero_warnv_p): Likewise.
9773         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
9774         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
9775         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
9776         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
9777         (struct hashtable_expr): New member ternary in the union.
9778         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
9779         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
9780         (iterative_hash_hashable_expr): Likewise.
9781         (print_expr_hash_elt): Handle EXPR_TERNARY.
9782         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
9783         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
9784         statements.  Handle GIMPLE_TERNARY_RHS.
9785
9786 2010-06-25  Jan Hubicka  <jh@suse.cz>
9787
9788         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
9789
9790 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
9791
9792         PR c/44517
9793         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
9794         parameters are not good.
9795         (c_parser_parameter_declaration): Error unknown type name if the type
9796         name can't start declaration specifiers.
9797
9798 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * gcc.c (translate_options): Don't mention +e in comment.
9801         (process_command): Don't handle +e specially.
9802
9803 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
9804
9805         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
9806
9807         * ira-build.c (merge_hard_reg_conflicts): New function.
9808         (create_cap_allocno, copy_info_to_removed_store_destinations,
9809         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
9810         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
9811         (remove_unnecessary_allocnos, remove_low_level_allocnos)
9812         copy_nifo_to_removed_store_destination): Use them.
9813         * ira-lives.c (make_hard_regno_born): New function, split out of
9814         make_regno_born.
9815         (make_allocno_born): Likewise.
9816         (make_hard_regno_dead): New function, split out of make_regno_dead.
9817         (make_allocno_dead): Likewise.
9818         (inc_register_pressure): New function, split out of set_allocno_live.
9819         (dec_register_pressure): New function, split out of clear_allocno_live.
9820         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
9821         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
9822         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
9823         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
9824         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
9825         mark_pseudo_regno_live.
9826         (process_bb_node_lives): Use mark_pseudo_regno_live,
9827         make_hard_regno_born and make_allocno_dead.
9828         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
9829         set_allocno_live, clear_allocno_live): Delete functions.
9830
9831         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
9832         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
9833         functions.
9834         (ira_flattening): Use ira_parent_allocno.
9835         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
9836         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
9837
9838         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
9839         statement.
9840
9841         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
9842         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
9843         minmax_set_iter_cond, minmax_set_iter_next,
9844         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
9845         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
9846         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
9847         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
9848         uses changed.
9849
9850         * ira-int.h (struct live_range, live_range_t): Renamed from struct
9851         ira_allocno_live_range and allocno_live_range_t; all uses changed.
9852         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
9853         All uses changed.
9854
9855 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
9856
9857         * thumb2.md (thumb2_tlobits_cbranch): Delete.
9858         (peephole2 to convert zero_extract/compare of single bit to
9859          lshift/compare): New.
9860
9861 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
9862
9863         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
9864         recursive call and call to 'int_const_binop'.
9865         (build_range_check, fold_cond_expr_with_comparison, unextend,
9866         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
9867         multiple_of_p): Adjust call to const_binop.
9868
9869 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
9870
9871         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
9872         determine size of XFmode operand.
9873         (XFmode extended DFmode push splitter): Ditto.
9874         (XFmode extended SFmode push splitter): Ditto.
9875
9876 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9877
9878         PR target/44588
9879         * config/i386/i386.md (extract_code): New.
9880         (<u>divmodqi4): Likewise.
9881         (divmodhiqi3): Likewise.
9882         (udivmodhiqi3): Likewise.
9883         (<u>divqi3): Remvoved.
9884
9885 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
9886
9887         PR middle-end/44492
9888         * recog.h (struct recog_data): Add is_asm field.
9889         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
9890         present in constraints of inline-asm operand and memory operand
9891         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
9892         (extract_insn): Initialize recog_data.is_asm.
9893         * doc/md.texi (Constraints): Document operand side-effect rules.
9894
9895 2010-06-24  Andi Kleen  <ak@linux.intel.com>
9896
9897         * c-parser.c (c_parser_conditional_expression): Call
9898         warn_for_omitted_condop.
9899         * doc/invoke.texi: Document omitted condop warning.
9900
9901 2010-06-24  Nick Clifton<nickc@redhat.com>
9902
9903         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
9904         insn in the sequence is a jump insn before setting its label.
9905
9906 2010-06-24  Alan Modra  <amodra@gmail.com>
9907
9908         * collect2.c (main): Match exactly --version and --help.
9909
9910 2010-06-24  DJ Delorie  <dj@redhat.com>
9911
9912         * config/m32c/m32c-pragma.c: Don't include rtl.h.
9913
9914 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
9915
9916         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
9917         using X87MODEF mode iterator.
9918         (pushsf splitter): Macroize splitter using P mode iterator.
9919         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
9920         mode iterator.
9921
9922         (*movxf_internal): Rename from *movxf_integer.
9923         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
9924         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
9925         (*movdf_internal): Rename from *movdf_integer.
9926         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
9927         (*movsf_internal): Rename from *movdf_1.
9928
9929 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
9930
9931         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
9932         (const_gimple_seq_node): Removed typedefs.
9933
9934         * gimple.h (gimple_seq_node_d, gimple_seq_node)
9935         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
9936
9937 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9938
9939         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
9940         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
9941         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
9942         and CODE_FOR_vec_extract_lo_v4df.
9943
9944         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
9945         Changed to define_insn_and_split.
9946         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
9947         (vec_extract_lo_v16hi): Likewise.
9948         (vec_extract_lo_v32qi): Likewise.
9949         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
9950         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
9951
9952 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
9953
9954         PR target/44640
9955         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
9956         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
9957         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
9958         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
9959         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
9960
9961         PR target/44640
9962         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
9963
9964         PR other/44644
9965         * df-core.c (struct df): Rename to df_d.
9966         * df.h (struct df): Likewise.
9967         * dse.h (struct df): Remove forward declaration.
9968         * recog.h (struct insn_data): Rename to:
9969         (struct_insn_data_d).  Adjusted all users.
9970
9971 2010-06-23  Arnaud Charlet  <charlet@adacore.com
9972
9973         PR ada/22220
9974         * doc/install.texi: Update requirements to build GNAT.
9975
9976 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
9977
9978         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
9979         enum type.
9980         (m68k_sched_attr_opx_type): Remove unreachable return.
9981         (m68k_sched_attr_opy_type): Likewise.
9982         (m68k_sched_attr_size): Likewise.
9983         (sched_get_opxy_mem_type): Likewise.
9984         (m68k_sched_attr_op_mem): Likewise.
9985
9986 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
9987
9988         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
9989         new statement and adjust VDEF only if necessary.  Remove superfluous
9990         call to maybe_clean_or_replace_eh_stmt.
9991         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
9992         copy the flags.
9993         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
9994         * tree-inline.c (copy_bb): ...and not there.
9995
9996 2010-06-22  Cary Coutant  <ccoutant@google.com>
9997
9998         * dwarf2out.c (is_nested_in_subprogram): New function.
9999         (should_move_die_to_comdat): Use it.
10000         (copy_ancestor_tree): Don't mark DIEs here.
10001         (copy_decls_walk): Start walk from root of newly-added tree;
10002         mark DIEs here instead.
10003
10004 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10005
10006         * config/i386/i386.md (unit): Also check sseishft1.
10007
10008 2010-06-22  Jan Hubicka  <jh@suse.cz>
10009
10010         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
10011         enabled.
10012
10013 2010-06-22  Jan Hubicka  <jh@suse.cz>
10014
10015         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
10016         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
10017         Return true if something changed.
10018         * df.h (df_confluence_function_n): Return bool.
10019         * df-core.c (df_worklist_propagate_forward,
10020         df_worklist_propagate_backward): Track changes and ages.
10021         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
10022         track ages.
10023         * dse.c (dse_confluence_n): Return always true.
10024
10025 2010-06-22  Jan Hubicka  <jh@suse.cz>
10026
10027         * bitmap.c (bitmap_clear_bit): Micro optimize.
10028
10029 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
10030
10031         * config/i386/i386.md (SWI1248x): New mode iterator.
10032         (SWI48x): Ditto.
10033         (SWI12): Ditto.
10034         (SWI24): Ditto.
10035
10036         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
10037         SWI1248x mode iterator.
10038         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
10039         using SWI124 mode iterator.
10040         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
10041         mode iterator.
10042         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
10043         *pushdi2_prologue_rex64 using P mode iterator.
10044         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
10045         using SWI48 mode iterator.
10046         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
10047         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
10048         using SWI1248x mode iterator.
10049         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
10050         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
10051         SWI48 mode iterator.
10052         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
10053         iterator.
10054         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
10055         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
10056         SWI12 mode iterator.
10057         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
10058         SWI12 mode iterator.
10059         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
10060         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
10061         SWI24 mode iterator.
10062         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
10063         SWI48 mode iterator.
10064         (mov<mode>_insn_1): New expander.
10065         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
10066         using SWI48x mode iterator.
10067
10068         (*movoi_internal_avx): Rename from *movoi_internal.
10069         (*movti_internal_rex64): Rename from *movti_rex64.
10070         (*movti_internal_sse): Rename from *movti_sse.
10071         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
10072         (*movdi_internal): Rename from *movdi_2.
10073         (*movsi_internal): Rename from *movsi_1.
10074         (*movhi_internal): Rename from *movhi_1.
10075         (*movqi_internal): Rename from *movqi_1.
10076
10077         (insv): Update the call to gen_movsi_insv_1 for rename.
10078         * config/i386/i386.c (promote_duplicated_reg): Ditto.
10079
10080 2010-06-22  Jan Hubicka  <jh@suse.cz>
10081
10082         * passes.c (execute_function_todo): Move call of statistics_fini_pass
10083         to ...
10084         (execute_todo) ... this one.
10085
10086 2010-06-22  Alan Modra  <amodra@gmail.com>
10087
10088         PR target/44364
10089         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10090         * caller-save.c (insert_restore, insert_save): Use non-validate
10091         form of adjust_address.
10092
10093 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10094
10095         PR target/39690
10096         * config/pa/pa.c (override_options): Disable
10097         -freorder-blocks-and-partition.
10098
10099 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10100
10101         PR target/44615
10102         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
10103
10104         * config/i386/i386.md (type): Add sseishft1
10105
10106         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
10107         (ppro_insn_load): Likewise.
10108         (ppro_insn_store): Likewise.
10109         (ppro_insn_both): Likewise.
10110
10111         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
10112         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
10113         for type.
10114         (*vec_extractv2di_1_avx): Likewise.
10115         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
10116         type.  Remove atom_unit.
10117         (*vec_extractv2di_1_sse2): Likewise.
10118
10119 2010-06-21  DJ Delorie  <dj@redhat.com>
10120
10121         * diagnostic.h (diagnostic_classification_change_t): New.
10122         (diagnostic_context): Add history and push/pop list.
10123         (diagnostic_push_diagnostics): Declare.
10124         (diagnostic_pop_diagnostics): Declare.
10125         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
10126         from pragmas in a history chain instead of the global table.
10127         (diagnostic_push_diagnostics): New.
10128         (diagnostic_pop_diagnostics): New.
10129         (diagnostic_report_diagnostic): Scan history chain to find state
10130         of diagnostics as of the diagnostic location.
10131         * opts.c (set_option): Pass UNKNOWN_LOCATION to
10132         diagnostic_classify_diagnostic.
10133         (enable_warning_as_error): Likewise.
10134         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
10135         use in the history chain.
10136         * doc/extend.texi: Document pragma GCC diagnostic changes.
10137
10138 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
10139
10140         * dwarf2out.c (add_linkage_name): New function.  Don't add
10141         anything to DW_TAG_member DIEs.
10142         (add_name_and_src_coords_attributes): Use it.
10143         (gen_variable_die): Call it for C++ static data members if
10144         specification is DW_TAG_member.
10145
10146         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
10147         C++ char16_t and char32_t.
10148
10149         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
10150         * genattrtab.c: Include vecprim.h.
10151         (cached_attrs, cached_attr_count, attrs_seen_once,
10152         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
10153         attrs_cached_after): New variables.
10154         (find_attrs_to_cache): New function.
10155         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
10156         (write_test_expr): Add attrs_cached argument, return it too,
10157         attempt to cache non-const attributes used more than once in
10158         a single case handling.
10159         (write_attr_get): Use find_attrs_to_cache, for caching candidates
10160         emit cached_* variables.  Adjust write_attr_set callers.
10161         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
10162         to find attributes that should be cached in this block.  Adjust
10163         write_test_expr callers.
10164         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
10165         callers.
10166         (make_automaton_attrs): Adjust write_test_expr caller.
10167
10168         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
10169         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
10170         (make_automaton_attrs): If find_tune_attr returns non-NULL,
10171         write separate internal_dfa_insn_code_* and insn_default_latency_*
10172         functions for each attribute's value and emit init_sched_attrs
10173         function and function pointers.
10174         * genattr.c (const_attrs, reservations): New variables.
10175         (gen_attr): Add const attributes to const_attrs vector.
10176         (check_tune_attr, find_tune_attr): New functions.
10177         (main): Add reservations to reservations vector.  If find_tune_attr
10178         returns true, add prototype for init_sched_attrs and make
10179         internal_dfa_insn_code and insn_default_latency function pointers,
10180         otherwise define init_sched_attrs as dummy macro.
10181         * cfgexpand.c: Include insn-attr.h.
10182         (gimple_expand_cfg): Call init_sched_attrs.
10183
10184         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
10185
10186         PR target/44575
10187         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
10188         va_arg from a set of register save slots into a temporary,
10189         if the container is bigger than type size, do the copying
10190         using smaller mode or using memcpy.
10191
10192         PR bootstrap/44426
10193         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
10194         prototype.
10195         (sel_print_to_dot): Remove macro.
10196         (sel_print): Likewise.  New prototype.
10197         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
10198         (sel_print): New function.
10199
10200 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10201
10202         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
10203         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
10204
10205 2010-06-21  Nick Clifton  <nickc@redhat.com>
10206
10207         * config/rx/rx.h (PTRDIFF_TYPE): Define.
10208         (SMALL_REGISTER_CLASS): Define (to zero).
10209         (PRINT_OPERAND): Delete.
10210         (PRINT_OPERAND_ADDRESS): Delete.
10211         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
10212         (rx_print_operand_address): Delete prototype.
10213         * config/rx/rx.c (rx_print_operand): Make static.
10214         Allow %H and %L to handle CONST_DOUBLEs.
10215         (rx_print_operand_address): Make static.
10216         (rx_gen_move_template): Rename local variable 'template' to
10217         out_template.
10218         (rx_function_arg): Do not pass unknown sized objects in registers.
10219         (TARGET_PRINT_OPERAND): Define.
10220         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10221
10222 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10223
10224         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
10225
10226 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
10227
10228         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
10229         stack-alignment for simple leaf-functions.
10230
10231 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10232
10233         * doc/install.texi: Document bootstrap-lto.
10234
10235 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
10236
10237         PR debug/44248
10238         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
10239         (input_function): Drop them here, if VTA is disabled.
10240
10241 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
10242
10243         PR target/44546
10244         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
10245         New predicate.
10246         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
10247         ix86_swapped_fp_comparsion_operator instead of
10248         ix86_fp_comparison_operator.
10249
10250         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
10251         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
10252         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
10253         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
10254         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
10255         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
10256
10257 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
10258
10259         PR other/32998
10260         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
10261         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
10262         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
10263         (decode_cmdline_option): Update for this return value.  Set
10264         orig_option_with_args_text field.  Set arg field for unknown
10265         options.  Make static.
10266         (decode_cmdline_options_to_array): New.
10267         (prune_options): Update handling of find_opt return value.
10268         * opts.c (read_cmdline_option): Take decoded option.  Return void.
10269         (read_cmdline_options): Take decoded options.
10270         (decode_options): Add parameters for decoded options.  Use
10271         decode_cmdline_options_to_array.  Use decoded options for -O
10272         scan.  Use integral_argument for -O parameters.  Update call to
10273         read_cmdline_options.
10274         (enable_warning_as_error): Update handling of find_opt return value.
10275         * opts.h: Update comment on unknown options.
10276         (struct cl_decoded_option): Update comments on opt_index and arg.
10277         Add orig_option_with_args_text.
10278         (decode_cmdline_option): Remove.
10279         (decode_cmdline_options_to_array): Declare.
10280         (decode_options): Update prototype.
10281         * toplev.c (save_argv): Remove.
10282         (save_decoded_options, save_decoded_options_count): New.
10283         (read_integral_parameter): Remove.
10284         (print_switch_values): Use decoded options.
10285         (toplev_main): Don't set save_argv.  Update call to decode_options.
10286         * toplev.h (read_integral_parameter): Remove.
10287         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
10288
10289 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
10290
10291         PR target/44072
10292         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
10293         immediate.
10294         * constraints.md (Pw, Px): New constraints.
10295         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
10296
10297 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
10298
10299         * config/i386/sse.md (fma4modesuffixf4): Removed.
10300         (ssemodesuffixf2s): Likewise.
10301         (ssemodesuffixf4): Likewise.
10302         (ssemodesuffixf2c): Likewise.
10303         (ssescalarmodesuffix2s): Likewise.
10304         (avxmodesuffixf2c): Likewise.
10305         (ssemodesuffix): New.
10306         (ssescalarmodesuffix): Likewise.
10307         Update patterns with ssemodesuffix and ssescalarmodesuffix.
10308
10309 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
10310
10311         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
10312
10313 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10314
10315         * stor-layout.c (debug_rli): Remove unused local variables.
10316
10317 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10318
10319         PR rtl-optimization/40900
10320         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
10321         original expression for later reuse.
10322         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
10323         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
10324
10325 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
10326
10327         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
10328         double_int_fits_in_uhwi_p): Implement as static inline.
10329         (double_int_xor): New inline function.
10330         (double_int_lrotate, double_int_rrotate, double_int_max,
10331         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10332         double_int_smin): Declare.
10333         (lrotate_double, rrotate_double): Remove declaration.
10334         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
10335         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
10336         (double_int_lrotate, double_int_rrotate, double_int_max,
10337         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10338         double_int_smin): New function.
10339         * fold-const.c (int_const_binop): Clean up, use double_int_*
10340         functions.
10341         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
10342         double_int_* and immed_double_int_const functions.
10343
10344 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10345
10346         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
10347         * function.c (types_used_by_cur_var_decl): Likewise.
10348         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
10349
10350 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10351
10352         * tree.h (record_layout_info): Change type of pending_statics field
10353         to a VEC.
10354         * stor-layout.c (start_record_layout): Store NULL into
10355         pending_statics.
10356         (debug_rli): Call debug_vec_tree instead of debug_tree.
10357         (place_field): Likewise.
10358         (finish_record_layout): Likewise.
10359
10360 2010-06-18  Alan Modra  <amodra@gmail.com>
10361
10362         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
10363
10364 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10365
10366         PR target/43740
10367         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
10368         for SET source operand from SET destination operand.
10369
10370 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
10371
10372         PR rtl-optimization/39871
10373         * reload1.c (init_eliminable_invariants): For flag_pic, disable
10374         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
10375         (function_invariant_p): Rule out a plus of frame or arg pointer with
10376         a SYMBOL_REF.
10377         * ira.c (find_reg_equiv_invariant_const): Likewise.
10378
10379 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
10380
10381         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
10382         print_operand_address and puts to output the operand for CONST.
10383
10384 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
10385
10386         PR debug/44572
10387         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
10388         hook.
10389
10390 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10391
10392         * v850-protos.h (print_operand): Delete.
10393         (print_operand_address): Delete.
10394         * v850.h (PRINT_OPERAND): Delete.
10395         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10396         (PRINT_OPERAND_ADDRESS): Delete.
10397         * v850.c (print_operand_address): Rename to...
10398         (v850_print_operand_address): ...this.  Make static. Call
10399         v850_print_operand.
10400         (print_operand): Rename to...
10401         (v850_print_operand): ...this.  Make static.  Call
10402         v850_print_operand_address.
10403         (v850_print_operand_punct_valid_p): New function.
10404         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10405         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10406
10407 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10408
10409         * config/sh/sh-protos.h (print_operand): Delete.
10410         (print_operand_address): Delete.
10411         * config/sh/sh.h (PRINT_OPERAND): Delete.
10412         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10413         (PRINT_OPERAND_ADDRESS): Delete.
10414         * config/sh/sh.c (sh_print_operand_address): Make static.
10415         (sh_print_operand): Make static.  Call sh_print_operand_address
10416         and sh_print_operand.
10417         (sh_print_operand_punct_valid_p): New function.
10418         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10419         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10420
10421 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10422
10423         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
10424         (mcore_print_operand_address): Delete.
10425         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
10426         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10427         (PRINT_OPERAND_ADDRESS): Delete.
10428         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
10429         (mcore_print_operand): Make static.
10430         (mcore_print_operand_punct_valid_p): New function.
10431         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
10432         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10433
10434 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10435
10436         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
10437         (print_operand_address): Delete.
10438         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
10439         (PRINT_OPERAND_ADDRESS): Delete.
10440         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
10441         static.
10442         (m68hc11_print_operand): Make static.
10443         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10444
10445 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10446
10447         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
10448         (m32r_print_operand_address): Delete.
10449         * config/m32r/m32r.h (m32r_punct_chars): Delete.
10450         (PRINT_OPERAND): Delete.
10451         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10452         (PRINT_OPERAND_ADDRESS): Delete.
10453         * config/m32r/m32r.c (m32r_punct_chars): Make static.
10454         (m32r_print_operand_address): Make static.
10455         (m32r_print_operand): Make static.
10456         (m32r_print_operand_punct_valid_p): New function.
10457         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10458         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10459
10460 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10461
10462         * config/iq2000/iq2000-protos.h (print_operand): Delete.
10463         (print_operand_address): Delete.
10464         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
10465         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10466         (PRINT_OPERAND_ADDRESS): Delete.
10467         (iq2000_print_operand_punct): Delete.
10468         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
10469         (iq2000_print_operand_address): Make static.
10470         (iq2000_print_operand): Make static.
10471         (iq2000_print_operand_punct_valid_p): New function.
10472         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10473         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10474
10475 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10476
10477         * config/frv/frv-protos.h (frv_print_operand): Delete.
10478         (frv_print_operand_address): Delete.
10479         * config/frv/frv.h (PRINT_OPERAND): Delete.
10480         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10481         (PRINT_OPERAND_ADDRESS): Delete.
10482         * config/frv/frv.c (frv_print_operand_address): Make static.
10483         (frv_print_operand): Make static.
10484         (frv_print_operand_punct_valid_p): New function.
10485         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10486         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10487
10488 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10489
10490         * tree.h (vec_member): Declare.
10491         * tree.c (vec_member): Define.
10492
10493 2010-06-17  Richard Guenther  <rguenther@suse.de>
10494
10495         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
10496         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
10497
10498 2010-06-17  Richard Guenther  <rguenther@suse.de>
10499
10500         * tree-inline.c (declare_return_variable): Remove bogus code.
10501
10502 2010-06-17  Richard Guenther  <rguenther@suse.de>
10503
10504         * gimplify.c (gimplify_bind_expr): Always promote complex
10505         and vector variables to registers if possible.
10506
10507 2010-06-17  Richard Guenther  <rguenther@suse.de>
10508
10509         * expr.c (get_inner_reference): Use double_int for bit_offset
10510         calculation.
10511
10512 2010-06-16  DJ Delorie  <dj@redhat.com>
10513
10514         * common.opt (-fstrict-volatile-bitfields): new.
10515         * doc/invoke.texi: Document it.
10516         * fold-const.c (optimize_bit_field_compare): For volatile
10517         bitfields, use the field's type to determine the mode, not the
10518         field's size.
10519         * expr.c (expand_assignment): Likewise.
10520         (get_inner_reference): Likewise.
10521         (expand_expr_real_1): Likewise.
10522         * expmed.c (store_fixed_bit_field): Likewise.
10523         (extract_bit_field_1): Likewise.
10524         (extract_fixed_bit_field): Likewise.
10525
10526 2010-06-16  Richard Guenther  <rguenther@suse.de>
10527
10528         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
10529
10530 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
10531
10532         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
10533         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
10534         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
10535         * debug.c: Likewise.
10536         * sdbout.c: Likewise.
10537         * vmsdbgout.c: Likewise.
10538         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
10539         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
10540         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
10541         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
10542         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
10543         * dwarf2out.c (dw_fde_struct): New fields
10544         dw_fde_vms_{end,begin}_prologue.
10545         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
10546         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
10547         (dwarf2out_vms_end_prologue): New function.
10548         (dwarf2out_vms_begin_epilogue): New function.
10549         (dw_val_struct): New value dw_val_class_vms_delta.
10550         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
10551         begin_epilogue for VMS.
10552         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
10553         new static functions.
10554         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
10555         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
10556         static functions.
10557         (print_die): New case dw_val_class_vms_delta.
10558         (attr_checksum): Likewise.
10559         (same_dw_val_p: Likewise.
10560         (size_of_die): Likewise.
10561         (value_format): Likewise.
10562         (output_die): Likewise.
10563         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
10564         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
10565         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
10566         dwarf2out_cfi_begin_epilogue
10567         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
10568
10569 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10570
10571         * config/cris/cris-protos.h (cris_print_operand): Delete.
10572         (cris_print_operand_address): Delete.
10573         * config/cris/cris.h (PRINT_OPERAND): Delete.
10574         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10575         (PRINT_OPERAND_ADDRESS): Delete.
10576         * config/cris/cris.c (cris_print_operand_address): Make static.
10577         (cris_print_operand): Make static.
10578         (cris_print_operand_punct_valid_p): New function.
10579         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10580         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10581
10582 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10583
10584         * config/arm/arm-protos.h (arm_print_operand): Delete.
10585         (arm_print_operand_address): Delete.
10586         * config/arm/arm.h (PRINT_OPERAND): Delete.
10587         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10588         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
10589         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
10590         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
10591         (arm_print_operand): Make static.
10592         (arm_print_operand_punct_valid_p): New function.
10593         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10594         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10595
10596 2010-06-16  Nick Clifton  <nickc@redhat.com>
10597
10598         * config/rx/constraints.md (NEGint4): New constraint.
10599         * config/rx/rx.md (attr cc): Add set_zsc.
10600         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
10601         initialised.
10602         (cmpsf): Likewise.
10603         (call_internal): Clobber the cc0 register.
10604         (call_value_internal): Likewise.
10605         (cstoresi4): Likewise.
10606         (movsieq): Likewise.
10607         (movsine): Likewise.
10608         (addsi3): Add alternative to handle small negative constants.
10609         (sunsi3): Likewise.
10610         (addsi3): Do not set the O bit in the cc0 register.
10611         (adddi3): Likewise.
10612         (subsi3): Likewise.
10613         (subdi3): Likewise.
10614         (andsi3): Reorder alternatives to prefer shorter forms.
10615         (mulsi3): Likewise.
10616         (iorsi3): Likewise.
10617         (negsi2): Note that the cc0 flags are set.
10618         (rotlsi3): Note that only the Z and S bits are set in cc0.
10619         (lshrsi3): Likewise.
10620         (ashlsi3): Likewise.
10621         (subsf3): Use %Q for the MEM operand.
10622         (fix_truncsfsi2): Likewise.
10623         (floatsisf2): Likewise.
10624         (bitset): Remove early clobber from destination.
10625         (bitset_in_memory): Likewise.
10626         (lrintsf2): Clobber the cc0 register.
10627         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
10628         (rx_print_operand): Handle %N.
10629
10630 2010-06-16  Jan Hubicka  <jh@suse.cz>
10631
10632         * df-core.c (df_compact_blocks): Free problem_temps vector.
10633
10634 2010-06-16  Martin Jambor  <mjambor@suse.cz>
10635
10636         PR tree-optimization/43905
10637         * tree-sra.c: Include tree-inline.h.
10638         (create_abstract_origin): Removed.
10639         (modify_function): Version the call graph node instead of creating
10640         abstract origins and dealing with same_body aliases.
10641         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
10642         function is versionable.
10643         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
10644
10645 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
10646
10647         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
10648         (CHOOSE_DYNAMIC_LINKER): Update.
10649
10650 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
10651
10652         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
10653         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
10654         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
10655         *prefetch_3dnow_rex.
10656
10657 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
10658
10659         * target.h (struct asm_out):Add declare_constant_name field.
10660         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10661         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
10662         * output.h (default_asm_declare_constant_name): Declare.
10663         (assemble_label): Update prototype.
10664         * varasm.c (assemble_constant_contents): Use
10665         targetm.asm_out.declare_constant_name target hook.
10666         (assemble_label): Add 'file' argument.
10667         (default_asm_declare_constant_name): New function.
10668         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
10669         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
10670         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
10671
10672         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
10673         * config/darwin.c (darwin_asm_declare_constant_name): New function.
10674         (machopic_output_indirection): Update assemble_label argument list.
10675         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
10676         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10677
10678 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
10679
10680         PR middle-end/44391
10681         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
10682         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
10683
10684 2010-06-15  Richard Guenther  <rguenther@suse.de>
10685
10686         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
10687
10688 2010-06-15  Paul Brook  <paul@codesourcery.com>
10689
10690         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
10691         hard-float ABI.
10692
10693 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
10694
10695         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
10696         don't get a vector type for output.
10697
10698 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
10699
10700         PR fortran/44536
10701         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
10702         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
10703         (LANG_HOOKS_DECLS): Add it.
10704         * gimplify.c (omp_notice_variable): Call
10705         lang_hooks.decls.omp_report_decl.
10706
10707 2010-06-15  Martin Jambor  <mjambor@suse.cz>
10708
10709         PR lto/44464
10710         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
10711         on the newly dead SSA name.
10712
10713 2010-06-15  Alan Modra  <amodra@gmail.com>
10714
10715         * doc/invoke.texi: Add mcmodel to powerpc options.
10716         * configure.ac: Add HAVE_LD_LARGE_TOC test.
10717         * configure: Regenerate.
10718         * config.in: Regenerate.
10719         * config/rs6000/linux64.opt (mcmodel): New.
10720         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
10721         (TARGET_CMODEL, SET_CMODEL): Define.
10722         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
10723         select CMODEL_MEDIUM default.
10724         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
10725         (TARGET_CMODEL): Define default.
10726         * config/rs6000/rs6000.c (cmodel): New variable.
10727         (rs6000_explicit_options): Add cmodel field.
10728         (rs6000_handle_option): Handle -mcmodel.
10729         (create_TOC_reference): Add largetoc_reg param.  Generate high,
10730         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
10731         (rs6000_delegitimize_address): Recognise new toc reference rtl
10732         and minimal-toc rtl.
10733         (rs6000_legitimize_reload_address): Handle new toc references.
10734         (print_operand_address): Handle legitimate_constant_pool_address_p
10735         match before lo_sum.
10736         (rs6000_eliminate_indexed_memrefs): Tidy.
10737         (rs6000_emit_move): Tweak threshold for inlining constants.
10738         Keep rs6000_emit_allocate_stack large stack frame offsets
10739         loaded into r0 inline.
10740         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
10741         (tocrel_base, tocrel_offset): New variables.
10742         (toc_relative_expr_p): Set them here.
10743         (print_operand_address): Skip over any offset on constant pool address.
10744         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
10745         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
10746         (offsettable_ok_by_alignment): New function.
10747         (rs6000_emit_move): Address suitably aligned local symbol_refs
10748         relative to the toc pointer for -mcmodel=medium.
10749         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
10750         strict param.  Allow lo_sum version of addressing.  Verify reg
10751         used for -mminimal-toc and -mcmodel != small.  Update all callers.
10752         * config/rs6000/constraints.md: Update for above change.
10753         * config/rs6000/predicates.md: Likewise.
10754         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
10755         code.
10756         (tls_gd): Split for -mcmodel=medium/large.
10757         (tls_gd_high, tls_gd_low): New.
10758         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
10759         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
10760         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
10761         (largetoc_high, largetoc_low): New.
10762         (cmptf_internal2): Add clobber.
10763         * config/rs6000/rs6000-protos.h: Update.
10764
10765 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
10766
10767         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
10768         true if no prefetch is going to be generated for a given group.
10769         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
10770         estimate the prefetch_count.
10771         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
10772         prefetch count by considering the unroll_factor and prefetch_mod
10773         for is_loop_prefetching_profitable.
10774
10775 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
10776
10777         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
10778         anything if the argument is not a MEM.
10779
10780 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
10781
10782         PR debug/43650
10783         PR debug/44181
10784         PR debug/44247
10785         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
10786         debug stmts.
10787         (canonicalize_loop_ivs): Likewise.
10788
10789 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
10790
10791         PR debug/43656
10792         * haifa-sched.c (setup_insn_reg_pressure_info,
10793         update_register_pressure): Reject debug insns.
10794         (ready_sort): Don't setup reg pressure for debug insns.
10795         (schedule_insn): Don't update reg pressure for debug insns.
10796
10797 2010-06-14  Richard Guenther  <rguenther@suse.de>
10798
10799         * lto-streamer.c (cached_bp): Remove.
10800         (bitpack_delete): Likewise.
10801         (bitpack_create): Likewise.
10802         (bp_get_next_word): Likewise.
10803         (bp_pack_value, bp_unpack_value): Move ...
10804         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
10805         Re-implement.
10806         (struct bitpack_d): Likewise.
10807         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
10808         New inline functions.
10809         * lto-streamer-out.c (lto_output_bitpack): Remove.
10810         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
10811         (pack_value_fields): Adjust.
10812         (lto_write_tree): Likewise.
10813         (output_gimple_stmt): Likewise.
10814         (output_function): Likewise.
10815         * lto-streamer-in.c (input_gimple_stmt): Adjust.
10816         (input_function): Likewise.
10817         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
10818         (lto_input_bitpack): Remove.
10819         (lto_materialize_tree): Adjust.
10820         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
10821         * lto-cgraph.c (lto_output_edge): Adjust.
10822         (lto_output_node): Likewise.
10823         (lto_output_varpool_node): Likewise.
10824         (lto_output_ref): Likewise.
10825         (input_node): Likewise.
10826         (input_varpool_node): Likewise.
10827         (input_ref): Likewise.
10828         (input_edge): Likewise.
10829         (output_node_opt_summary): Likewise.
10830         (input_node_opt_summary): Likewise.
10831         * ipa-pure-const.c (pure_const_write_summary): Likewise.
10832         (pure_const_read_summary): Likewise.
10833         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
10834         (ipa_read_indirect_edge_info): Likewise.
10835         (ipa_write_node_info): Likewise.
10836         (ipa_read_node_info): Likewise.
10837
10838 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10839
10840         PR target/44534
10841         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
10842         (vec_extract_lo_v16hi): Likewise.
10843         (vec_extract_lo_v32qi): Likewise.
10844
10845 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
10846
10847         PR bootstrap/44426
10848         * tree.h (build_call_expr): Don't define as vararg macro, instead
10849         add a prototype.
10850         * builtins.c (build_call_nofold): Remove.
10851         (expand_builtin_int_roundingfn, expand_builtin_pow,
10852         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
10853         expand_builtin_memset_args, expand_builtin_strcmp,
10854         expand_builtin_strncmp, expand_builtin_memory_chk): Use
10855         build_call_nofold_loc instead of build_call_nofold.
10856         (build_call_expr): New function.
10857
10858         PR tree-optimization/44508
10859         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
10860         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
10861         don't eliminate trivially dead stmts.
10862         * tree-vrp.c (vrp_finalize): Pass false as last argument
10863         to substitute_and_fold.
10864         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
10865         to substitute_and_fold.
10866         * tree-ssa-ccp.c (ccp_finalize): Likewise.
10867
10868         PR bootstrap/44509
10869         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
10870
10871 2010-06-14  Ira Rosen  <irar@il.ibm.com>
10872
10873         PR tree-optimization/44507
10874         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
10875         to build initial vector for BIT_AND_EXPR.
10876         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
10877
10878 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
10879
10880         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
10881         adjust z10prop set_attr.
10882
10883 2010-06-13  Jan Hubicka  <jh@suse.cz>
10884
10885         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
10886         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
10887         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
10888         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
10889         datastructure checks into checking asserts.
10890         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
10891         * tree-ssa-sccvn.c (VN_INFO): Likewise.
10892         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
10893         df_ref_create_structure): Likewise.
10894         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
10895         pool_free): Use gcc_checking_assert.
10896         * alias.c (get_alias_set): Likewise.
10897         * var-tracking.c (variable_htab_free, shared_hash_copy,
10898         canonicalize_values_mark, variable_merge_over_cur): Likewise.
10899         * lto-streamer.c (bp_unpack_value): Likewise.
10900
10901 2010-06-13  Richard Guenther  <rguenther@suse.de>
10902
10903         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
10904         Do not stream but initialize TYPE_CANONICAL to NULL.
10905         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
10906         * gimple.c (gimple_types_compatible_p): Disregard
10907         TYPE_STRUCTURAL_EQUALITY_P.
10908         (gimple_register_type): Use TYPE_CANONICAL as cache.
10909         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
10910         before registering common types.
10911         * config/i386/i386.c (ix86_function_arg_boundary): Do not
10912         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
10913         * tree.h (TYPE_CANONICAL): Clarify documentation.
10914
10915 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
10916
10917         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10918         LIBCALL_VALUE): Remove macros.
10919         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
10920         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10921         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10922         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
10923         (ia64_function_value): Make static. Handle receiving the function
10924         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
10925
10926 2010-06-12  Jan Hubicka  <jh@suse.cz>
10927
10928         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
10929         at correct place.
10930
10931 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
10932
10933         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
10934
10935 2010-06-12  Jan Hubicka  <jh@suse.cz>
10936
10937         * df-core.c (df_clear_bb_info): New function.
10938         (df_set_blocks): bb_info is always allocated.
10939         (df_get_bb_info): Use block_info_elt_size.
10940         (df_set_bb_info): Likewise.
10941         (df_compact_blocks): Update for new block_info.
10942         (grow_bb_info): New function.
10943         * df-problems.c (df_grow_bb_info): Move to df-core.c
10944         (df_rd_set_bb_info): Remove.
10945         (df_rd_free_bb_info): Do not free block pool.
10946         (df_rd_alloc): Do not create pool, use check for
10947         obstack presence instead of NULL pointer for new blocks.
10948         (df_rd_free): DO not free alloc pool; clear block_info.
10949         (problem_RD): Add size of block info structure.
10950         (df_lr_set_bb_info): Remove.
10951         (df_lr_free_bb_info): Do not free block pool.
10952         (df_lr_alloc): Do not create pool, use check for
10953         obstack presence instead of NULL pointer for new blocks.
10954         (df_lr_free): DO not free alloc pool; clear block_info.
10955         (problem_LR): Add size of block info structure.
10956         (df_live_set_bb_info): Remove.
10957         (df_live_free_bb_info): Do not free block pool.
10958         (df_live_alloc): Do not create pool, use check for
10959         obstack presence instead of NULL pointer for new blocks.
10960         (df_live_free): DO not free alloc pool; clear block_info.
10961         (problem_LIVE): Add size of block info structure.
10962         (problem_CHAIN): Add size of block info structure.
10963         (df_byte_lr_set_bb_info): Remove.
10964         (df_byte_lr_free_bb_info): Do not free block pool.
10965         (df_byte_lr_alloc): Do not create pool, use check for
10966         obstack presence instead of NULL pointer for new blocks.
10967         (df_byte_lr_free): DO not free alloc pool; clear block_info.
10968         (problem_BYTE_LR): Add size of block info structure.
10969         (problem_NOTE): Add size of block info structure.
10970         (df_byte_MD_set_bb_info): Remove.
10971         (df_byte_MD_free_bb_info): Do not free block pool.
10972         (df_byte_MD_alloc): Do not create pool, use check for
10973         obstack presence instead of NULL pointer for new blocks.
10974         (df_byte_MD_free): DO not free alloc pool; clear block_info.
10975         (problem_BD): Add size of block info structure.
10976         * df-scan.c (df_scan_free_internal): Free block pool.
10977         (df_scan_set_bb_info): Remove.
10978         (df_scan_free_bb_info): Check for artificial_defs instead
10979         of bb_info being non-NULL.
10980         (df_scan_alloc): DO not create df_scan_block pool.
10981         (problem_SCAN): Set size of block info.
10982         (df_bb_refs_record): Do not allocate bb_info.
10983         * df.h (df_problem): Add block_info_elt_size.
10984         (struct dataflow): Change block_info to void *.
10985         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
10986         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
10987         in-line structures.
10988
10989 2010-06-12  Jan Hubicka  <jh@suse.cz>
10990
10991         PR tree-optimize/44485
10992         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
10993         containing use of return value of noreturn function.
10994
10995 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
10996
10997         * targhooks.c (default_function_value): Don't use
10998         FUNCTION_OUTGOING_VALUE.
10999         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
11000         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
11001
11002 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
11003
11004         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
11005         Add crtfastmath.o to extra_parts.
11006         * config/mips/crtfastmath.c: New.
11007         * config/mips/linux.h (ENDFILE_SPEC): New.
11008
11009 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
11010
11011         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
11012         old_type in parameter.
11013         (gcc_type_for_value): Update call to gcc_type_for_interval.
11014         (compute_type_for_level_1): Renamed compute_type_for_level.
11015         Update call to gcc_type_for_interval.
11016
11017 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11018
11019         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
11020         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
11021
11022 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
11023
11024         * opts-common.c: Include options.h.
11025         (integral_argument): Move from opts.c.
11026         (decode_cmdline_option): New.  Based on read_cmdline_option.
11027         * opts.c (integral_argument): Move to opts-common.c.
11028         (read_cmdline_option): Move most contents to
11029         decode_cmdline_option.  Use %qs in diagnostics.
11030         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
11031         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
11032         decode_cmdline_option): New.
11033
11034 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11035
11036         PR target/44481
11037         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
11038         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
11039         (partiysi2_cmp): Ditto.
11040         (*partiyhi2_cmp): Ditto.
11041         (*parityqi2_cmp): Remove.
11042
11043 2010-06-11  Jan Hubicka  <jh@suse.cz>
11044
11045         * bitmap.h (bmp_iter_next_bit): New.
11046         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
11047
11048 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
11049             Eric Botcazou  <ebotcazou@adacore.com>
11050
11051         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
11052         computed cost.
11053
11054 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11055
11056         * config/i386/i386.md (unspec): New define_c_enum.
11057         (unspecv): Ditto.
11058
11059 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
11060
11061         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
11062
11063 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
11064
11065         PR middle-end/44483
11066         * tree-if-conv.c (bb_predicate_s): New struct.
11067         (bb_predicate_p): New.
11068         (bb_has_predicate): New.
11069         (bb_predicate): New.
11070         (set_bb_predicate): New.
11071         (bb_predicate_gimplified_stmts): New.
11072         (set_bb_predicate_gimplified_stmts): New.
11073         (add_bb_predicate_gimplified_stmts): New.
11074         (init_bb_predicate): New.
11075         (free_bb_predicate): New.
11076         (is_predicated): Use bb_predicate.
11077         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
11078         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
11079         before processing their successors.
11080         (clean_predicate_lists): Removed.
11081         (find_phi_replacement_condition): Use bb_predicate.
11082         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
11083         computations.
11084         (insert_gimplified_predicates): New.
11085         (combine_blocks): Call insert_gimplified_predicates.
11086         (tree_if_conversion): Call free_bb_predicate instead of
11087         clean_predicate_lists.
11088
11089 2010-10-11  Paul Brook  <paul@codesourcery.com>
11090
11091         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
11092         * config/arm/arm.c (all_architectures): Change v7e-m default to
11093         cortexm4.
11094         * config/arm/arm-cores.def: Add cortex-m4.
11095         * config/arm/arm-tune.md: Regenerate.
11096
11097 2010-06-11  Jan Hubicka  <jh@suse.cz>
11098
11099         * ipa-pure-const.c (special_builtlin_state): New function.
11100         (check_call): Use it instead of special casign BUILT_IN_RETURN.
11101         (propagate_pure_const): Use it.
11102
11103 2010-06-11  Jan Hubicka  <jh@suse.cz>
11104
11105         * df-problems.c (df_live_scratch): Convert to bitmap_head.
11106         (df_live_alloc): Initialize df_live_scratch when initializing
11107         problem_data.
11108         (df_live_transfer_function): Update uses of df_live_scratch.
11109         (df_live_free): Free problem_data; clear df_live_scratch before
11110         releasing the obstack.
11111         (df_md_free): Free problem data.
11112
11113 2010-06-11  Jan Hubicka  <jh@suse.cz>
11114
11115         * doc/invoke.texi (Wsuggest-attribute): Document.
11116         (Wmissing-noreturn): Remove.
11117         * ipa-pure-const.c (warn_function_noreturn): New function.
11118         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
11119         warn_missing_noreturn.
11120         * common.opt (Wsuggest-attribute=noreturn): New.
11121         * tree-flow.h (warn_function_noreturn): Declare.
11122         * tree-cfg.c (execute_warn_function_noreturn): Use
11123         warn_function_noreturn.
11124         (gate_warn_function_noreturn): New.
11125         (pass_warn_function_noreturn): Update.
11126
11127 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11128
11129         * c-typeck.c (handle_warn_cast_qual): Add loc
11130         parameter. Improve warning message.
11131         (build_c_cast): Pass location to handle_warn_cast_qual.
11132
11133 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
11134
11135         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
11136         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
11137         insn mnemonic.
11138         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
11139
11140 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
11141
11142         Fix bootstap on mips
11143         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
11144         be naming typedefs.
11145
11146 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
11147
11148         * system.h (helper_const_non_const_cast): New inline for
11149         gcc version <= 4.0.
11150         (CONST_CAST2): For gcc version <= 4.0 use
11151         new helper to do const/non-const casting.
11152
11153 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11154
11155         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
11156         * Makefile.in (OBJS-common): Include insn-enums.o.
11157         (insn-enums.o): New rule.
11158         (simple_generated_c): Add insn-enums.c.
11159         (build/genenums.o): New rule.
11160         (genprogmd): Add "enums".
11161         * genconstants.c (print_enum_type): Declare a C string array
11162         for each enum.
11163         * genenums.c: New file.
11164         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
11165         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
11166         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
11167
11168 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11169
11170         * doc/md.texi (define_enum_attr): Document.
11171         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
11172         * read-md.h (lookup_enum_type): Declare.
11173         * read-md.c (lookup_enum_type): New function.
11174         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
11175         * genattrtab.c (attr_desc): Add an enum_name field.
11176         (evaluate_eq_attr): Take the associated attribute as argument.
11177         Get the enum prefix from the enum_name field, if defined.
11178         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
11179         (simplify_test_exp): Pass attr to evaluate_eq_attr.
11180         (add_attr_value): New function, split out from...
11181         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
11182         (write_test_expr): Pass attr to evaluate_eq_attr.
11183         (write_attr_get): Use the enum_name as the enum tag, if defined.
11184         (write_attr_valueq): Use the enum_name as a prefix, if defined.
11185         (find_attr): Initialize enum_name.
11186         (main): Handle DEFINE_ENUM_ATTR.
11187         * gensupport.c (process_rtx): Likewise.
11188         * config/mips/mips.h (mips_tune_attr): Delete.
11189         * config/mips/mips.md (cpu): Use define_attr_enum.
11190
11191 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11192
11193         * doc/md.texi (define_c_enum, define_enum): Document.
11194         * read-md.h (md_constant): Add a parent_enum field.
11195         (enum_value, enum_type): New structures.
11196         (upcase_string, traverse_enum_types): Declare.
11197         * read-md.c (enum_types): New variable.
11198         (upcase_string, add_constant): New functions.
11199         (handle_constants): Don't create the hash table here.
11200         Use add_constant.
11201         (traverse_md_constants): Don't check for a null md_constants.
11202         (decimal_string, handle_enum, traverse_enum_types): New functions.
11203         (read_md_files): Initialize md_constants and md_enums.
11204         * genconstants.c (print_md_constant): Ignore info argument.
11205         Only print constants that belong to no enum.
11206         (print_enum_type): New function.
11207         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
11208         for each defined enum type.
11209         * config/mips/mips.md (processor): New define_enum.
11210         (unspec): New define_c_enum.
11211         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
11212         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
11213         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
11214         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
11215         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
11216         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
11217         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
11218         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
11219         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
11220         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
11221         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
11222         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
11223         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
11224         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
11225         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
11226         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
11227         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
11228         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
11229         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
11230         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
11231         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
11232         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
11233         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11234         (UNSPEC_RDDSP): Move to mips-dsp.md.
11235         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
11236         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
11237         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
11238         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
11239         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
11240         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
11241         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
11242         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
11243         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
11244         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
11245         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
11246         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
11247         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
11248         Moved to mips-dspr2.md.
11249         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
11250         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
11251         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
11252         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
11253         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
11254         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
11255         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11256         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11257         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11258         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11259         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11260         UNSPEC_LOONGSON_PSADBH)
11261         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11262         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11263         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
11264         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11265         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11266         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11267         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
11268         (cpu): Update comment.
11269         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
11270         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
11271         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
11272         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
11273         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
11274         UNSPEC_LOONGSON_PCMPEQ)
11275         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
11276         UNSPEC_LOONGSON_PINSR_0)
11277         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11278         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11279         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11280         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11281         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11282         UNSPEC_LOONGSON_PSADBH)
11283         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11284         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11285         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
11286         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11287         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11288         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11289         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
11290         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
11291         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
11292         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
11293         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
11294         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
11295         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
11296         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
11297         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
11298         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
11299         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
11300         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
11301         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
11302         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
11303         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
11304         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
11305         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
11306         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
11307         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
11308         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
11309         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11310         (UNSPEC_RDDSP): Moved from mips.md.
11311         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
11312         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
11313         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
11314         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
11315         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
11316         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
11317         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
11318         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
11319         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
11320         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
11321         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
11322         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
11323         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
11324         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
11325         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
11326         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
11327         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
11328         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
11329         (UNSPEC_SCC): Moved from mips.md.
11330         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
11331         "processor_type" to "processor".
11332         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
11333         * config/mips/mips.h (processor_type): Delete.
11334         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
11335         "processor_type" to "processor".
11336
11337 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11338
11339         * configure.ac (tm_include_list): Add insn-constants.h.
11340         * configure: Regenerate.
11341         * Makefile.in (GTM_H): Move insn-constants.h here from...
11342         (TM_H): ...here.
11343         * mkconfig.sh: Remove special handling for insn-constants.h.
11344
11345 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11346
11347         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
11348         (BUILD_MD): ...this new variable.
11349         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
11350         that include the old contents of simple_generated_h and
11351         simple_generated_c.
11352         (simple_generated_h, simple_generated_c): Include them.  Add
11353         insn-constants.h.
11354         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
11355         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
11356         Remove these dependencies from the main rule and include
11357         insn-conditions.md in the command line only if it appears
11358         in the dependency list.
11359         (insn-constants.h, s-constants): Delete.
11360         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
11361         or gensupport.h.
11362         (build/genmddeps.o): Likewise.
11363         (genprogrtl): New variable that contains everything from genprogmd
11364         except mddeps and constants.
11365         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
11366         depend on $(BUILD_MD)
11367         (genprog): New variable.  Make these programs depend on
11368         $(BUILD_ERRORS).
11369         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
11370         (main): Use read_md_files instead of init_rtx_reader_args.
11371         * genconstants.c: As for genmddeps.c.
11372         * read-md.h (read_skip_construct): Declare.
11373         * read-md.c (read_skip_construct): New function.
11374         (handle_file): Allow a null handle_directive, skipping the
11375         construct if so.
11376         (parse_include): Update the comment accordingly.
11377
11378 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11379
11380         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
11381         * genmddeps.c: Include read-md.h.
11382         (main): Call init_rtx_reader_args instead of init_md_reader_args.
11383         * genattr.c (main): Likewise.
11384         * genattrtab.c (main): Likewise.
11385         * genautomata.c (main): Likewise.
11386         * gencodes.c (main): Likewise.
11387         * genconditions.c (main): Likewise.
11388         * genconfig.c (main): Likewise.
11389         * genconstants.c (main): Likewise.
11390         * genemit.c (main): Likewise.
11391         * genextract.c (main): Likewise.
11392         * genflags.c (main): Likewise.
11393         * genopinit.c (main): Likewise.
11394         * genoutput.c (main): Likewise.
11395         * genpeep.c (main): Likewise.
11396         * genrecog.c (main): Likewise.
11397         * genpreds.c (main): Likewise.
11398         * gensupport.h (in_fname): Move to read-md.h.
11399         (init_md_reader_args_cb): Rename to...
11400         (init_rtx_reader_args_cb): ...this and return a bool.
11401         (init_md_reader_args): Rename to...
11402         (init_rtx_reader_args): ...this and return a bool.
11403         (include_callback): Move to read-md.h.
11404         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
11405         (file_name_list, first_dir_md_include): Move to read-md.c
11406         (first_bracket_include): Delete unused variable.
11407         (last_dir_md_include): Move to read-md.c.
11408         (process_include): Delete, moving code to read-md.c:handle_include.
11409         (process_rtx): Don't handle INCLUDE.
11410         (save_string): Delete.
11411         (rtx_handle_directive): New function.
11412         (init_md_reader_args_cb): Rename to...
11413         (init_rtx_reader_args_cb): ...this and return a boolean success value.
11414         Use read_md_args.
11415         (init_md_reader_args): Rename to...
11416         (init_rtx_reader_args): ...this and return a boolean success value.
11417         * rtl.def (INCLUDE): Delete.
11418         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
11419         argument.
11420         * read-rtl.c (read_conditions): Don't gobble ')' here.
11421         (read_mapping): Likewise.
11422         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
11423         Handle top-level non-rtx constructs here rather than in read_rtx_1.
11424         Store the whole queue in *X.  Remove call to init_md_reader.
11425         (read_rtx_1): Rename to...
11426         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
11427         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
11428         here.
11429         (read_nested_rtx): New function.  Handle (nil) here rather than
11430         in read_rtx_code.
11431         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
11432         gobble ')' here.
11433         * read-md.h (directive_handler_t): New type.
11434         (in_fname, include_callback): Moved from read-md.h.
11435         (read_constants, init_md_reader): Delete.
11436         (read_md_files): Declare.
11437         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
11438         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
11439         from gensupport.c.
11440         (read_constants): Rename to...
11441         (handle_constants): ...this.  Don't gobble ')' here.
11442         (handle_include, handle_file, handle_toplevel_file)
11443         (parse_include): New functions, mostly taken from gensupport.c.
11444         (init_md_reader): Subsume into...
11445         (read_md_files): ...this new function.
11446
11447 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11448
11449         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
11450         (unread_char): Decrement read_md_lineno after putting back '\n'.
11451         * read-md.c (fatal_with_file_and_line): Push back any characters
11452         that we decide not to add to the context.
11453         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
11454         fatal_expected_char in cases where '/' ends a line (for example).
11455         (read_name): Don't increment read_md_lineno here.
11456         (read_escape): Likewise.
11457         (read_quoted_string): Likewise.
11458         (read_braced_string): Likewise.
11459
11460 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11461
11462         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
11463         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
11464         * genconstants.c: Include read-md.h.
11465         * read-rtl.c (md_constants): Move to read-md.c.
11466         (md_name): Move to read-md.h.
11467         (initialize_iterators): Use leading_string_hash instead of def_hash
11468         and leading_string_eq_p instead of def_name_eq_p.
11469         (read_name): Move to read-md.c.
11470         (def_hash, def_name_eq_p): Delete.
11471         (read_constants, traverse_md_constants): Move to read-md.c.
11472         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
11473         * read-md.h: Include hashtab.h.
11474         (md_name): Moved from read-rtl.c.
11475         (md_constant): Moved from read-md.h.
11476         (leading_string_hash, leading_string_eq_p, read_name)
11477         (read_constants, traverse_md_constants): Declare.
11478         * read-md.c (md_constants): Moved from read-rtl.c.
11479         (leading_string_hash, leading_string_eq_p): New functions.
11480         (read_name, read_constants, traverse_md_constants): Moved from
11481         read-rtl.c.
11482
11483 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11484
11485         * read-rtl.c (md_name): New structure.
11486         (read_name): Take an md_name instead of a buffer pointer.
11487         Use the "string" field instead of strcpy when expanding constants.
11488         (read_constants): Remove the tmp_char argument.  Update the calls
11489         to read_name, using two local name buffers instead of the tmp_char
11490         argument.  Merge the constant-creation code.
11491         (read_conditions): Remove the tmp_char argument.  Update the calls
11492         to read_name, using a local name buffer instead of the tmp_char
11493         argument.
11494         (read_mapping): Replace tmp_char variable with a local name buffer.
11495         Update the calls to read_name.
11496         (read_rtx_1): Likewise.  Update the calls to read_constants and
11497         read_conditions.
11498
11499 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11500
11501         * Makefile.in (build/read-md.o): Depend on errors.h.
11502         * read-md.h (error_with_line): Declare.
11503         * read-md.c: Include errors.h.
11504         (message_with_line_1): New function, extracted from...
11505         (message_with_line): ...here.
11506         (error_with_line): New function.
11507         * genattrtab.c: If a call to message_with_line is followed by
11508         "have_error = 1;", replace both statements with a call to
11509         error_with_line.
11510         * genoutput.c: Likewise.
11511         * genpreds.c: Likewise.
11512         * genrecog.c: If a call to message_with_line is followed by
11513         "error_count++;", replace both statements with a call to
11514         error_with_line.
11515         (errorcount): Delete.
11516         (main): Don't check it.
11517         * gensupport.c: If a call to message_with_line is followed by
11518         "errors = 1;", replace both statements with a call to error_with_line.
11519         (errors): Delete.
11520         (process_define_cond_exec): Check have_error instead of errors.
11521         (init_md_reader_args_cb): Likewise.  Don't set errors.
11522
11523 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11524
11525         * read-md.h (read_md_file): Declare.
11526         (read_char, unread_char): New functions.
11527         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11528         (read_quoted_string, read_string): Remove FILE * argument.
11529         * read-md.c (read_md_file): New variable.
11530         (read_md_filename, read_md_lineno): Update comments and remove
11531         unnecessary initialization.
11532         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11533         (read_escape, read_quoted_string, read_braced_string, read_string):
11534         Remove FILE * argument.  Update calls accordingly, using read_char
11535         and unread_char instead of getc and ungetc.
11536         * rtl.h (read_rtx): Remove FILE * argument.
11537         * read-rtl.c (iterator_group): Remove FILE * argument from
11538         "find_builtin".
11539         (iterator_traverse_data): Remove "infile" field.
11540         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
11541         (add_mapping, read_name, read_constants, read_conditions)
11542         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
11543         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
11544         Remove file arguments from all calls, using read_char and unread_char
11545         instead of getc and ungetc.
11546         * gensupport.c (process_include): Preserve read_md_file around
11547         the include.  Set read_md_file to the handle of the included file.
11548         Update call to read_rtx.
11549         (init_md_reader_args_cb): Set read_md_file to the handle of the file
11550         and remove local FILE *.  Update calls to read_rtx.
11551
11552 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11553
11554         * read-md.h (read_rtx_lineno): Rename to...
11555         (read_md_lineno): ...this.
11556         (read_rtx_filename): Rename to...
11557         (read_md_filename): ...this.
11558         (copy_rtx_ptr_loc): Rename to...
11559         (copy_md_ptr_loc): ...this.
11560         (print_rtx_ptr_loc): Rename to...
11561         (print_md_ptr_loc): ...this.
11562         * read-md.c: Likewise.  Update references after renaming.
11563         (string_obstack): Replace RTL with MD in comment.
11564         (set_rtx_ptr_loc): Rename to...
11565         (set_md_ptr_loc): ...this.
11566         (get_rtx_ptr_loc): Rename to...
11567         (get_md_ptr_loc): ...this.
11568         * genconditions.c: Update references after renaming.
11569         * genemit.c: Likewise.
11570         * genoutput.c: Likewise.
11571         * genpreds.c: Likewise.
11572         * gensupport.c: Likewise.
11573         * read-rtl.c: Likewise.
11574
11575 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11576
11577         * Makefile.in (READ_MD_H): New variable.
11578         (BUILD_RTL): Add build/read-md.o.
11579         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
11580         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
11581         (build/genattrtab.o, build/genconditions.o build/genemit.o)
11582         (build/genextract.o, build/genflags.o, build/genoutput.o)
11583         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
11584         (build/read-md.o): New rule.
11585         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
11586         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
11587         * coretypes.h: ...here.
11588         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
11589         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
11590         * genattr.c: Include read-md.h.
11591         * genattrtab.c: Likewise.
11592         * genconditions.c: Likewise.
11593         * genemit.c: Likewise.
11594         * genextract.c: Likewise.
11595         * genflags.c: Likewise.
11596         * genoutput.c: Likewise.
11597         * genpreds.c: Likewise.
11598         * genrecog.c: Likewise.
11599         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
11600         (join_c_conditions, print_c_condition, read_rtx_filename)
11601         (read_rtx_lineno): Move to read-md.h.
11602         * read-rtl.c: Include read-md.h.
11603         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
11604         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
11605         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
11606         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
11607         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
11608         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
11609         (read_braced_string, read_string): Move to read-md.c.
11610         (read_rtx): Move some initialization to init_md_reader and call
11611         init_md_reader here.
11612         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
11613         Move to read-md.h.
11614         * gensupport.c: Include read-md.h.
11615         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
11616         * read-md.h, read-md.c: New files.
11617
11618 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
11619
11620         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11621         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11622         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
11623         * config/moxie/moxie.c (moxie_function_value): Make static.
11624         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
11625         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11626
11627 2010-06-10  Martin Jambor  <mjambor@suse.cz>
11628
11629         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
11630         * dbgcnt.def (tree_sra): New counter.
11631         * tree-sra.c: Include dbgcnt.h.
11632         (gate_intra_sra): Check tree_sra debug counter.
11633
11634 2010-06-10  Martin Jambor  <mjambor@suse.cz>
11635
11636         PR tree-optimization/44258
11637         * tree-sra.c (build_access_subtree): Return false iff there is a
11638         partial overlap.
11639         (build_access_trees): Likewise.
11640         (analyze_all_variable_accesses): Disqualify candidates if
11641         build_access_trees returns true for them.
11642
11643 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
11644
11645         PR debug/41371
11646         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
11647         tail-recurse into canonical node.  Fast-forward over
11648         non-canonical VALUEs.
11649
11650 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
11651
11652         PR boostrap/44470
11653         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
11654         (*addsi_1_zext) <TYPE_LEA>: Likewise.
11655         (add lea splitter): Likewise.
11656         (add_zext lea splitter): Likewise.
11657
11658 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
11659
11660         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
11661
11662 2010-06-10  Jan Hubicka  <jh@suse.cz>
11663
11664         * df-problems.c (df_live_problem_data): Add live_bitmaps.
11665         (df_live_alloc): Initialize problem data and live_osbtacks.
11666         (df_live_finalize): Remove obstack, problem data; do not
11667         clear all bitmaps.
11668         (df_live_top_dump, df_live_bottom_dump): Do not dump old
11669         data when not allocated.
11670         (df_live_verify_solution_start): Do not allocate problem data.
11671         (df_live_verify_solution_end): Check if out is allocated.
11672         (struct df_md_problem_data): New structure.
11673         (df_md_alloc): Allocate problem data.
11674         (df_md_free): Free problem data; do not clear bitmaps.
11675
11676 2010-06-10  Jan Beulich  <jbeulich@novell.com>
11677
11678         PR bootstrap/37304
11679         * configure.ac: Replace $() with ${} when intending to expand
11680         variables rather than invoking commands.
11681         * configure: Re-generate.
11682
11683 2010-06-10  Jan Hubicka  <jh@suse.cz>
11684
11685         PR rtl-optimization/44460
11686         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
11687         TYPE_NEEDS_CONSTRUCTING sanity check.
11688
11689 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
11690
11691         * doc/include/fdl.texi: Move to GFDL version 1.3.
11692
11693         * doc/cpp.texi: Move to GFDL version 1.3.
11694         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
11695         * doc/gccint.texi: Move to GFDL version 1.3.
11696         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
11697         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
11698         * doc/invoke.texi: Move to GFDL version 1.3.
11699
11700 2010-06-09  Jan Hubicka  <jh@suse.cz>
11701
11702         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
11703         Break out from ...
11704         (propagate) ... here; swap the order.
11705
11706 2010-06-09  Jan Hubicka  <jh@suse.cz>
11707
11708         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
11709         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
11710         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
11711         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
11712
11713 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
11714
11715         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
11716         Do not the gather memory reference in the outer loop if the step
11717         is not a constant.
11718
11719 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
11720
11721         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
11722         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
11723         8 to 4.  Minor change of the related comments.
11724
11725 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
11726
11727         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
11728         the scev analysis when the variable is not used outside the loop
11729         in a close phi node: call compute_overall_effect_of_inner_loop.
11730
11731 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
11732
11733         * graphite-sese-to-poly.c (single_pred_cond): Renamed
11734         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
11735         (build_sese_conditions_before): Renamed call to single_pred_cond.
11736         (build_sese_conditions_after): Same.
11737
11738 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
11739
11740         * graphite-poly.h: Fix comments and indentation.
11741         * graphite-sese-to-poly.c: Same.
11742         (build_sese_conditions_before): Compute stmt and gbb only when needed.
11743         * tree-chrec.c: Fix comments and indentation.
11744         (tree-ssa-loop-niter.c): Same.
11745
11746 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11747
11748         PR rtl-optimization/42461
11749         * dce.c (deletable_insn_p): Return true for const or pure calls again.
11750         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
11751
11752 2010-06-09  Jan Hubicka  <jh@suse.cz>
11753
11754         * bitmap.c (bitmap_and): Walk array forward.
11755         (bitmap_and_compl_into): Likewise.
11756         (bitmap_xor): Likewise.
11757         (bitmap_xor_into):  Likewise.
11758         (bitmap_equal_p): Likewise.
11759         (bitmap_intersect_p): Likewise.
11760         (bitmap_intersect_compl_p): Likewise.
11761         (bitmap_ior_and_into): Likewise.
11762         (bitmap_elt_copy): Likewise.
11763         (bitmap_and_compl): Likewise.
11764         (bitmap_elt_ior): Likewise.
11765
11766 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
11767
11768         * opts-common.c (prune_options): Ensure replacement argv array
11769         is correctly terminated by a NULL entry.
11770
11771 2010-06-09  Jan Hubicka  <jh@suse.cz>
11772
11773         * cgraph.h (varpool_first_static_initializer,
11774         varpool_next_static_initializer): Make checking only when
11775         checking enabled.
11776         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
11777         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
11778         gcc_assert to gcc_checking_assert.
11779         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
11780         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
11781         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
11782         op_iter_init_phiuse, op_iter_init_phidef,
11783         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
11784         gcc_checking_assert.
11785         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
11786         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
11787         partition_is_global, live_on_entry, live_on_exit,
11788         live_merge_and_clear): Likewise.
11789         * system.h (gcc_checking_assert): New macro.
11790         * gimple.h (set_bb_seq): Use gcc_checking_assert.
11791
11792 2010-06-09  Jason Merrill  <jason@redhat.com>
11793
11794         * Makefile.in (TAGS): Collect tags info from c-family.
11795
11796 2010-06-09  Jan Hubicka  <jh@suse.cz>
11797
11798         * gimple.h (gcc_gimple_checking_assert): New macro.
11799         (gimple_set_def_ops, gimple_set_use_ops,
11800         gimple_set_vuse, gimple_set_vdef,
11801         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
11802         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
11803         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
11804         gimple_asm_output_op, gimple_asm_output_op_ptr,
11805         gimple_asm_set_output_op, gimple_asm_clobber_op,
11806         gimple_asm_set_clobber_op, gimple_asm_label_op,
11807         gimple_asm_set_label_op, gimple_try_set_kind,
11808         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
11809         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
11810         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
11811         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
11812         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
11813         gimple_omp_for_set_initial, gimple_omp_for_final,
11814         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
11815         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
11816         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
11817         conditional with ENABLE_GIMPLE_CHECKING.
11818         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
11819
11820 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
11821
11822         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
11823         (get_computation_cost_at): Use it.
11824         (determine_use_iv_cost_condition): Likewise.
11825         (determine_iv_cost): Likewise.
11826
11827 2010-06-09  Richard Guenther  <rguenther@suse.de>
11828
11829         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
11830         replace constants.
11831
11832 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
11833
11834         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
11835
11836 2010-06-09  Martin Jambor  <mjambor@suse.cz>
11837
11838         PR tree-optimization/44423
11839         * tree-sra.c (dump_access): Dump also grp_assignment_read.
11840         (analyze_access_subtree): Pass negative allow_replacements to children
11841         if the current type is scalar.
11842
11843 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
11844
11845         PR testsuite/42843
11846         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
11847         * doc/plugins.texi (Plugin license check): Update information
11848         on type of plugin_is_GPL_compatible.
11849         * Makefile.in (PLUGINCC): Define as $(COMPILER).
11850         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
11851
11852 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
11853
11854         * config/arm/arm.c (thumb2_reorg): New function.
11855         (arm_reorg): Call it.
11856         * config/arm/thumb2.md (define_peephole2 for flag clobbering
11857         arithmetic operations): Delete.
11858
11859 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
11860
11861         PR target/44067
11862         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
11863         e500v2 target.
11864
11865 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
11866
11867         PR plugins/44459
11868         * gcc-plugin.h: Encapsulate all declarations in extern "C".
11869
11870 2010-06-08  Jan Hubicka  <jh@suse.cz>
11871
11872         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
11873         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
11874
11875 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
11876
11877         PR tree-optimization/39874
11878         PR middle-end/28685
11879         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
11880         Declare.
11881         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
11882         same_bool_result_p): New.
11883         (and_var_with_comparison, and_var_with_comparison_1,
11884         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
11885         (or_var_with_comparison, or_var_with_comparison_1,
11886         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
11887         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
11888         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
11889         of combine_comparisons.
11890         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
11891
11892 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
11893
11894         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11895         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11896         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
11897         pdp11_function_value_regno_p): New functions.
11898         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11899         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11900
11901 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
11902
11903         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
11904         Thumb-2 in the MINUS case.
11905
11906 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11907
11908         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
11909
11910         * doc/gty.texi (GTY Options): Document typed GC allocation and
11911         variable_size GTY option.
11912
11913         * ggc-internal.h: New.
11914
11915         * ggc.h: Update copyright year.
11916         (digit_string): Move to stringpool.c.
11917         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
11918         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
11919         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
11920         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
11921         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
11922         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
11923         (ggc_force_collect, ggc_get_size, ggc_statistics)
11924         (ggc_print_common_statistics): Move to ggc-internal.h.
11925         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
11926         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
11927         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
11928         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
11929         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
11930         (ggc_alloc_zone_pass_stat): Remove.
11931         (ggc_internal_alloc_stat, ggc_internal_alloc)
11932         (ggc_internal_cleared_alloc_stat): New.
11933         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
11934         (ggc_internal_vec_alloc_stat)
11935         (ggc_internal_cleared_vec_alloc_stat)
11936         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
11937         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
11938         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
11939         (ggc_cleared_alloc_ptr_array_two_args): New.
11940         (htab_create_ggc, splay_tree_new_ggc): Redefine.
11941         (ggc_splay_alloc): Change the type of the first argument to
11942         enum gt_types_enum.
11943         (ggc_alloc_string): Make macro.
11944         (ggc_alloc_string_stat): New.
11945         (ggc_strdup): Redefine.
11946         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
11947         (ggc_alloc_rtvec_sized): New.
11948         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
11949         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
11950         (ggc_internal_cleared_alloc_zone_stat)
11951         (ggc_internal_zone_alloc_stat)
11952         (ggc_internal_zone_cleared_alloc_stat)
11953         (ggc_internal_zone_vec_alloc_stat)
11954         (ggc_alloc_zone_rtx_def_stat)
11955         (ggc_alloc_zone_tree_node_stat)
11956         (ggc_alloc_zone_cleared_tree_node_stat)
11957         (ggc_alloc_cleared_gimple_statement_d_stat): New.
11958
11959         * ggc-common.c: Include ggc-internal.h.
11960         (ggc_internal_cleared_alloc_stat): Rename from
11961         ggc_alloc_cleared_stat.
11962         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
11963         (ggc_calloc): Remove.
11964         (ggc_cleared_alloc_htab_ignore_args): New.
11965         (ggc_cleared_alloc_ptr_array_two_args): New.
11966         (ggc_splay_alloc): Add obj_type parameter.
11967         (init_ggc_heuristics): Formatting fixes.
11968
11969         * ggc-none.c: Update copyright year.
11970         (ggc_alloc_stat): Rename to ggc_alloc_stat.
11971         (ggc_alloc_cleared_stat): Rename to
11972         ggc_internal_cleared_alloc_stat.
11973         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
11974
11975         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
11976         Remove references to ggc_alloc in comments.
11977         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
11978         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
11979         (new_ggc_zone, destroy_ggc_zone): Remove.
11980         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
11981
11982         * ggc-zone.c: Include ggc-internal.h.  Remove references to
11983         ggc_alloc in comments.
11984         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
11985         (ggc_internal_alloc_zone_pass_stat): New.
11986         (ggc_internal_cleared_alloc_zone_stat): New.
11987         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
11988         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
11989         (new_ggc_zone, destroy_ggc_zone): Remove.
11990
11991         * stringpool.c: Update copyright year.  Include ggc-internal.h
11992         (digit_vector): Make static.
11993         (digit_string): Moved from ggc.h.
11994         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
11995         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
11996
11997         * Makefile.in (GGC_INTERNAL_H): New.
11998         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
11999         $(GGC_INTERNAL_H) to dependencies.
12000
12001         * gentype.c: Update copyright year.
12002         (walk_type): Accept variable_size GTY option.
12003         (USED_BY_TYPED_GC_P): New macro.
12004         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
12005         whitespace at the end of strings.
12006         (get_type_specifier, variable_size_p): New functions.
12007         (alloc_quantity, alloc_zone): New enums.
12008         (write_typed_alloc_def): New function.
12009         (write_typed_struct_alloc_def): Likewise.
12010         (write_typed_typed_typedef_alloc_def): Likewise.
12011         (write_typed_alloc_defns): Likewise.
12012         (output_typename, write_splay_tree_allocator_def): Likewise.
12013         (write_splay_tree_allocators): Likewise.
12014         (main): Call write_typed_alloc_defns and
12015         write_splay_tree_allocators.
12016
12017         * lto-streamer.h (lto_file_decl_data_ptr): New.
12018
12019         * passes.c (order): Define using cgraph_node_ptr.
12020
12021         * strinpool.c (struct string_pool_data): Declare nested_ptr using
12022         ht_identifier_ptr.
12023
12024         * gimple.h (union gimple_statement_d): Likewise.
12025
12026         * rtl.h (struct rtx_def): Likewise.
12027         (struct rtvec_def): Likewise.
12028
12029         * tree.h (union tree_node): Likewise.
12030
12031         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
12032
12033         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
12034
12035         * tree-scalar-evolution.c (scev_initialize): Likewise.
12036
12037         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
12038
12039         * dwarf2asm.c (dw2_force_const_mem): Likewise.
12040
12041         * omp-low.c (lower_omp_critical): Likewise.
12042
12043         * bitmap.h (struct bitmap_head_def): Update comment to not
12044         reference ggc_alloc.
12045
12046         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
12047
12048         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
12049
12050         * ipa-prop.c (duplicate_ggc_array): Rename to
12051         duplicate_ipa_jump_func_array.  Use typed GC allocation.
12052         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
12053
12054         * gimple.c (gimple_alloc_stat): Use
12055         ggc_alloc_cleared_gimple_statement_d_stat.
12056
12057         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
12058
12059         * tree.c (make_node_stat): Use
12060         ggc_alloc_zone_cleared_tree_node_stat.
12061         (make_tree_vec_stat): Likewise.
12062         (build_vl_exp_stat): Likewise.
12063         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
12064         (make_tree_binfo_stat): Likewise.
12065         (tree_cons_stat): Likewise.
12066
12067         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
12068         (shallow_copy_rtx_stat): Likewise.
12069         (make_node_stat): Likewise.
12070
12071         * lto-symtab.c: Fix comment.
12072
12073         * tree-cfg.c (create_bb): Update comment to not reference
12074         ggc_alloc_cleared.
12075         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
12076
12077         * varpool.c (varpool_node): Use typed GC allocation.
12078         (varpool_extra_name_alias): Likewise.
12079
12080         * varasm.c (emutls_decl): Likewise.
12081         (get_unnamed_section): Likewise.
12082         (get_noswitch_section): Likewise.
12083         (get_section): Likewise.
12084         (get_block_for_section): Likewise.
12085         (build_constant_desc): Likewise.
12086         (create_constant_pool): Likewise.
12087         (force_const_mem): Likewise.
12088
12089         * tree.c (build_vl_exp_stat): Likewise.
12090         (build_real): Likewise.
12091         (build_string): Likewise.
12092         (decl_debug_expr_insert): Likewise.
12093         (decl_value_expr_insert): Likewise.
12094         (type_hash_add): Likewise.
12095         (build_omp_clause): Likewise.
12096
12097         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
12098
12099         * tree-ssa.c (init_tree_ssa): Likewise.
12100
12101         * tree-ssa-structalias.c (heapvar_insert): Likewise.
12102
12103         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12104
12105         * tree-ssa-loop-niter.c (record_estimate): Likewise.
12106
12107         * tree-ssa-alias.c (get_ptr_info): Likewise.
12108
12109         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12110
12111         * tree-phinodes.c (allocate_phi_node): Likewise.
12112
12113         * tree-iterator.c (tsi_link_before): Likewise.
12114         (tsi_link_after): Likewise.
12115
12116         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12117
12118         * tree-dfa.c (create_var_ann): Likewise.
12119
12120         * tree-cfg.c (create_bb): Likewise.
12121
12122         * toplev.c (alloc_for_identifier_to_locale): Likewise.
12123         (general_init): Likewise.
12124
12125         * stringpool.c (stringpool_ggc_alloc): Likewise.
12126         (gt_pch_save_stringpool): Likewise.
12127
12128         * sese.c (if_region_set_false_region): Likewise.
12129
12130         * passes.c (do_per_function_toporder): Likewise.
12131
12132         * optabs.c (set_optab_libfunc): Likewise.
12133         (set_conv_libfunc): Likewise.
12134
12135         * lto-symtab.c (lto_symtab_register_decl): Likewise.
12136
12137         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12138         (input_eh_region): Likewise.
12139         (input_eh_lp): Likewise.
12140         (make_new_block): Likewise.
12141         (unpack_ts_real_cst_value_fields): Likewise.
12142
12143         * lto-section-in.c (lto_new_in_decl_state): Likewise.
12144
12145         * lto-cgraph.c (input_node_opt_summary): Likewise.
12146
12147         * loop-init.c (loop_optimizer_init): Likewise.
12148
12149         * lambda.h (lambda_vector_new): Likewise.
12150
12151         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
12152
12153         * ira.c (update_equiv_regs): Likewise.
12154
12155         * ipa.c (cgraph_node_set_new): Likewise.
12156         (cgraph_node_set_add): Likewise.
12157         (varpool_node_set_new): Likewise.
12158         (varpool_node_set_add): Likewise.
12159
12160         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
12161         (duplicate_ipa_jump_func_array): Likewise.
12162         (ipa_read_node_info): Likewise.
12163
12164         * ipa-cp.c (ipcp_create_replace_map): Likewise.
12165
12166         * integrate.c (get_hard_reg_initial_val): Likewise.
12167
12168         * gimple.c (gimple_alloc_stat): Likewise.
12169         (gimple_build_omp_for): Likewise.
12170         (gimple_seq_alloc): Likewise.
12171         (gimple_copy): Likewise.
12172
12173         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
12174         (gsi_insert_after_without_update): Likewise.
12175
12176         * function.c (add_frame_space): Likewise.
12177         (insert_temp_slot_address): Likewise.
12178         (assign_stack_temp_for_type): Likewise.
12179         (allocate_struct_function): Likewise.
12180         (types_used_by_var_decl_insert): Likewise.
12181
12182         * except.c (init_eh_for_function): Likewise.
12183         (gen_eh_region): Likewise.
12184         (gen_eh_region_catch): Likewise.
12185         (gen_eh_landing_pad): Likewise.
12186         (add_call_site): Likewise.
12187
12188         * emit-rtl.c (get_mem_attrs): Likewise.
12189         (get_reg_attrs): Likewise.
12190         (start_sequence): Likewise.
12191         (init_emit): Likewise.
12192
12193         * dwarf2out.c (new_cfi): Likewise.
12194         (queue_reg_save): Likewise.
12195         (dwarf2out_frame_init): Likewise.
12196         (new_loc_descr): Likewise.
12197         (find_AT_string): Likewise.
12198         (new_die): Likewise.
12199         (add_var_loc_to_decl): Likewise.
12200         (clone_die): Likewise.
12201         (clone_as_declaration): Likewise.
12202         (break_out_comdat_types): Likewise.
12203         (new_loc_list): Likewise.
12204         (loc_descriptor): Likewise.
12205         (add_loc_descr_to_each): Likewise.
12206         (add_const_value_attribute): Likewise.
12207         (tree_add_const_value_attribute): Likewise.
12208         (add_comp_dir_attribute): Likewise.
12209         (add_name_and_src_coords_attributes): Likewise.
12210         (lookup_filename): Likewise.
12211         (store_vcall_insn): Likewise.
12212         (dwarf2out_init): Likewise.
12213
12214         * dbxout.c (dbxout_init): Likewise.
12215
12216         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12217
12218         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12219
12220         * config/score/score7.c (score7_output_external): Likewise.
12221
12222         * config/score/score3.c (score3_output_external): Likewise.
12223
12224         * config/s390/s390.c (s390_init_machine_status): Likewise.
12225
12226         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12227         (rs6000_init_machine_status): Likewise.
12228         (output_toc): Likewise.
12229
12230         * config/pa/pa.c (pa_init_machine_status): Likewise.
12231         (get_deferred_plabel): Likewise.
12232
12233         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12234
12235         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12236
12237         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12238
12239         * config/mep/mep.c (mep_init_machine_status): Likewise.
12240         (mep_note_pragma_flag): Likewise.
12241
12242         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12243
12244         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12245
12246         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12247
12248         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12249         (i386_pe_maybe_record_exported_symbol): Likewise.
12250
12251         * config/i386/i386.c (get_dllimport_decl): Likewise.
12252         (ix86_init_machine_status): Likewise.
12253         (assign_386_stack_local): Likewise.
12254
12255         * config/frv/frv.c (frv_init_machine_status): Likewise.
12256
12257         * config/darwin.c (machopic_indirection_name): Likewise.
12258
12259         * config/cris/cris.c (cris_init_machine_status): Likewise.
12260
12261         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12262
12263         * config/avr/avr.c (avr_init_machine_status): Likewise.
12264
12265         * config/arm/arm.c (arm_init_machine_status): Likewise.
12266
12267         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12268         (alpha_need_linkage): Likewise.
12269         (alpha_use_linkage): Likewise.
12270
12271         * cgraph.c (cgraph_allocate_node): Likewise.
12272         (cgraph_create_edge_1): Likewise.
12273         (cgraph_create_indirect_edge): Likewise.
12274         (cgraph_add_asm_node): Likewise.
12275
12276         * cfgrtl.c (init_rtl_bb_info): Likewise.
12277
12278         * cfgloop.c (alloc_loop): Likewise.
12279         (rescan_loop_exit): Likewise.
12280
12281         * cfg.c (init_flow): Likewise.
12282         (alloc_block): Likewise.
12283         (unchecked_make_edge): Likewise.
12284
12285         * c-parser.c (c_parse_init): Likewise.
12286         (c_parse_file): Likewise.
12287
12288         * c-decl.c (bind): Likewise.
12289         (record_inline_static): Likewise.
12290         (push_scope): Likewise.
12291         (make_label): Likewise.
12292         (lookup_label_for_goto): Likewise.
12293         (finish_struct): Likewise.
12294         (finish_enum): Likewise.
12295         (c_push_function_context): Likewise.
12296
12297         * bitmap.c (bitmap_element_allocate): Likewise.
12298         (bitmap_gc_alloc_stat): Likewise.
12299
12300         * alias.c (record_alias_subset): Likewise.
12301         (init_alias_analysis): Likewise.
12302
12303 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
12304
12305         * fold-const.c (fold_comparison): Remove redundant parenthesis.
12306         * tree-inline.c (expand_call_inline): Pass translated return value of
12307         cgraph_inline_failed_string to diagnostic function.
12308
12309 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
12310             Shujing Zhao  <pearly.zhao@oracle.com>
12311
12312         PR c/37724
12313         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
12314         implicit bad conversions is initialization.
12315         (error_init): Use gmsgid instead of msgid for argument name and change
12316         the call for error.
12317         (pedwarn_init): Use gmsgid instead of msgid for argument name and
12318         change the call for pedwarn.
12319         (warning_init): Use gmsgid instead of msgid for argument name and
12320         change the call for warning.
12321
12322 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
12323
12324         * config/mips/mips-protos.h (mips_print_operand): Delete.
12325         (mips_print_operand_address): Delete.
12326         * config/mips/mips.h (mips_print_operand_punct): Delete.
12327         (PRINT_OPERAND): Delete.
12328         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12329         (PRINT_OPERAND_ADDRESS): Delete.
12330         * config/mips/mips.c (mips_print_operand_punct): Make static.
12331         (mips_print_operand_address): Make static.
12332         (mips_print_operand): Make static.  Call
12333         mips_print_operand_punct_valid_p.
12334         (mips_print_operand_punct_valid_p): New function.
12335         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12336         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12337
12338 2010-06-07  Jan Hubicka  <jh@suse.cz>
12339
12340         PR middle-end/44454
12341         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
12342         are allocated.
12343
12344 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12345
12346         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
12347         name of RECORD.
12348
12349 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12350
12351         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12352         attributes): Document gas.
12353
12354 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
12355
12356         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
12357         <TYPE_LEA>: Split instruction.
12358         <default>: Remove alternative 2 handling.
12359         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
12360         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
12361         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
12362
12363         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
12364         (ashift_zext lea splitter): Use DImode for multiplication.
12365
12366         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
12367         to generate addition.
12368
12369 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
12370
12371         * common.opt (fira-verbose): Use Var.
12372         (fpcc-struct-return): Use Init instead of VarExists.
12373         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
12374         toplev.c.
12375         * flags.h (flag_signed_char, flag_short_enums,
12376         flag_pcc_struct_return, flag_ira_verbose,
12377         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
12378         * toplev.c (flag_detailed_statistics, flag_signed_char,
12379         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
12380         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
12381         * toplev.h (flag_crossjumping, flag_if_conversion,
12382         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
12383         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
12384         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
12385         flag_cprop_registers, time_report, flag_ira_loop_pressure,
12386         flag_ira_coalesce, flag_ira_move_spills,
12387         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
12388
12389 2010-06-07  Jan Hubicka  <jh@suse.cz>
12390
12391         * df-core.c (df_analyze_problem): Do verification after allocation.
12392
12393         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
12394         (df_lr_alloc): Initialize problem data; move bitmaps to
12395         lr_bitmaps obstack.
12396         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
12397         (df_lr_verify_solution_start): Do not initialize problem data;
12398         allocate bitmaps in lr_bitmaps.
12399         (df_lr_verify_solution_end): Do not free problem data.
12400
12401 2010-06-07  Jan Hubicka  <jh@suse.cz>
12402
12403         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
12404         if caller is noreturn.
12405         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
12406         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
12407         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
12408         * ipa-pure-const.c (check_decl): Add IPA parameter.
12409         (state_from_flags): New function.
12410         (better_state, worse_state): New functions.
12411         (check_call): When in IPA mode, do not care about callees.
12412         (check_load, check_store): Update.
12413         (check_ipa_load, check_ipa_store): New.
12414         (check_stmt): When in IPA mode, use IPA checkers.
12415         (analyze_function): Use state_from_flags.
12416         (propagate): Check indirect edges and references.
12417
12418 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
12419
12420         PR rtl-optimization/44404
12421         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
12422         of count_occurrences to see if it's safe to modify mem_insn.
12423
12424 2010-06-07  Richard Guenther  <rguenther@suse.de>
12425
12426         * gimplify.c (gimplify_cleanup_point_expr): For empty body
12427         and EH-only cleanup drop the cleanup instead of inserting it
12428         unconditionally.
12429
12430 2010-06-07  Ira Rosen  <irar@il.ibm.com>
12431
12432         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
12433         documentation.
12434         * targhooks.c (default_builtin_vectorization_cost): New function.
12435         * targhooks.h (default_builtin_vectorization_cost): Declare.
12436         * target.h (enum vect_cost_for_stmt): Define.
12437         (builtin_vectorization_cost): Change argument and comment.
12438         * tree-vectorizer.h: Remove cost model macros.
12439         * tree-vect-loop.c: Include target.h.
12440         (vect_get_cost): New function.
12441         (vect_estimate_min_profitable_iters): Replace cost model macros with
12442         calls to vect_get_cost.
12443         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
12444         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
12445         default implementation.
12446         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
12447         calls to target hook builtin_vectorization_cost.
12448         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
12449         Likewise.
12450         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
12451         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
12452         implementation to return costs.
12453         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12454         * config/spu/spu.h: Remove vectorizer cost model macros.
12455         * config/i386/i386.h: Likewise.
12456         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
12457         a call to target hook builtin_vectorization_cost.
12458
12459 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
12460
12461         PR target/44319
12462         * config/i386/i386.c (override_options): Turn zee pass on for level 2
12463         and above and defer till target is known.
12464         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
12465         turn off otherwise.
12466
12467 2010-05-25  Jan Hubicka  <jh@suse.cz>
12468
12469         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
12470         (df_compact_blocks): Likewise.
12471         * df.h (struct df): Turn hardware_regs_used,
12472         regular_block_artificial_uses, eh_block_artificial_uses,
12473         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
12474         bitmap_head.
12475         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
12476         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
12477         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
12478         df_scan_blocks, df_insn_delete, df_insn_rescan,
12479         df_insn_rescan_debug_internal, df_insn_rescan_all,
12480         df_process_deferred_rescans, df_process_deferred_rescans,
12481         df_notes_rescan, df_get_call_refs, df_get_call_refs,
12482         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
12483         df_record_entry_block_defs, df_record_exit_block_uses,
12484         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
12485         df_scan_verify): Update.
12486
12487 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12488
12489         PR c++/44188
12490         * c-common.c (is_typedef_decl): Move this definition ...
12491         * tree.c (is_typedef_decl): ... here.
12492         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12493         * c-common.h (is_typedef_decl): Move this declaration ...
12494         * tree.h (is_typedef_decl): ... here.
12495         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12496         * dwarf2out.c (is_naming_typedef_decl): New function.
12497         (gen_tagged_type_die): Split out of ...
12498         (gen_type_die_with_usage): ... this function. When an anonymous
12499         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12500         is emitted for the typedef.
12501         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12502         anonymous tagged types.
12503
12504 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12505
12506         PR c/20000
12507         * c-decl.c (grokdeclarator): Delete warning.
12508
12509 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12510
12511         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
12512         newly built CALL_EXPR.
12513         * tree-profile.c (tree_profiling): Don't profile functions produced
12514         for built-in stuff.
12515
12516 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
12517
12518         PR bootstrap/44427
12519         PR bootstrap/44428
12520         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
12521         endianness-independent.
12522
12523 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
12524
12525         * c-common.c: Move to c-family/.
12526         * c-common.def: Likewise.
12527         * c-common.h: Likewise.
12528         * c-cppbuiltin.c: Likewise.
12529         * c-dump.c: Likewise.
12530         * c-format.c: Likewise.
12531         * c-format.h : Likewise.
12532         * c-gimplify.c: Likewise.
12533         * c-lex.c: Likewise.
12534         * c-omp.c: Likewise.
12535         * c.opt: Likewise.
12536         * c-opts.c: Likewise.
12537         * c-pch.c: Likewise.
12538         * c-ppoutput.c: Likewise.
12539         * c-pragma.c: Likewise.
12540         * c-pragma.h: Likewise.
12541         * c-pretty-print.c: Likewise.
12542         * c-pretty-print.h: Likewise.
12543         * c-semantics.c: Likewise.
12544         * stub-objc.c: Likewise.
12545
12546         * gengtype.c (get_file_langdir): Special-case files in c-family/.
12547         (get_output_file_with_visibility): Fix name for c-common.h.
12548         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
12549
12550         * c-tree.h: Update include path for moved files.
12551         * c-lang.c: Likewise.
12552         * c-lang.h: Likewise.
12553         * c-parser.c: Likewise.
12554         * c-convert.c: Likewise.
12555         * c-decl.c: Likewise.
12556         * c-objc-common.c: Likewise.
12557         * configure.ac: Make sure c-family/ exists in the build directory.
12558         * configure: Regenerate.
12559         * Makefile.in: Update paths for moved files.  Regroup files per
12560         location and update dependencies.  Move generated_files down after
12561         ALL_GTFILES_H.
12562
12563         * config/spu/spu-c.c: Update paths for moved files.
12564         * config/mep/mep-pragma.c: Likewise.
12565         * config/darwin-c.c: Likewise.
12566         * config/i386/msformat-c.c: Likewise.
12567         * config/i386/i386-c.c: Likewise.
12568         * config/avr/avr-c.c: Likewise.
12569         * config/sol2-c.c: Likewise.
12570         * config/ia64/ia64-c.c: Likewise.
12571         * config/rs6000/rs6000-c.c: Likewise.
12572         * config/arm/arm.c: Likewise.
12573         * config/arm/arm-c.c: Likewise.
12574         * config/h8300/h8300.c: Likewise.
12575         * config/v850/v850-c.c: Likewise.
12576
12577         * config/t-darwin: Fix dependencies for moved files.
12578         * config/t-sol2: Fix dependencies for moved files.
12579         * config/mep/t-mep: Fix dependencies for moved files.
12580         * config/ia64/t-ia64: Fix dependencies for moved files.
12581         * config/rs6000/t-rs6000: Fix dependencies for moved files.
12582         * config/v850/t-v850: Fix dependencies for moved files.
12583         * config/v850/t-v850e: Fix dependencies for moved files.
12584
12585         * config/m32c/m32c-pragma.c
12586
12587         * po/exgettext: Look in c-family/ also.
12588
12589 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
12590
12591         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
12592         (mark_control_dependent_edges_necessary): Call it instead of marking
12593         the last statement manually.
12594         (propagate_necessity): Likewise.
12595
12596 2010-06-05  Jan Hubicka  <jh@suse.cz>
12597
12598         * basic-block.h (compute_dominance_frontiers): Updated.
12599         (compute_idf): Likewise.
12600
12601         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
12602         for dominance frontiers.
12603         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
12604         (insert_updated_phi_nodes_for): Likewise.
12605         (update_ssa): Likewise.
12606         * cfganal.c (compute_dominance_frontiers_1): Likewise.
12607         (compute_dominance_frontiers): Likewise.
12608         (compute_idf): Likewise.
12609         * df-problems.c (df_md_local_compute): Likewise.
12610
12611 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
12612
12613         * target.h (struct gcc_target): Add memory_move_cost field.
12614         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
12615         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
12616         * targhooks.c (default_memory_move_cost): New function.
12617         * targhooks.h (default_memory_move_cost): Declare function.
12618         * reload.h (memory_move_cost): Declare.
12619         (memory_move_secondary_cost): Change type of 'in' argument to bool.
12620         * reginfo.c (memory_move_cost): New function.
12621         (memory_move_secondary_cost): Change type of 'in' argument to bool.
12622         * ira.h (ira_memory_move_cost): Update comment.
12623         * ira.c (ira_memory_move_cost): Update comment.
12624         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
12625         with memory_move_cost.
12626         * postreload.c (reload_cse_simplify_set): (Ditto.).
12627         * reload1.c (choose_reload_regs): (Ditto.).
12628         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
12629         (MEMORY_MOVE_COST):  Revise documentation.
12630
12631         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12632         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12633         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
12634         type of 'in' argument to bool.
12635         (TARGET_MEMORY_MOVE_COST): Define.
12636
12637 2010-06-05  Jan Hubicka  <jh@suse.cz>
12638
12639         * ipa-pure-const.c (propagate): Fix typo in handling of functions
12640         that cannot return.  Be more careful when merging the results with
12641         previously known ones.
12642
12643 2010-06-05  Matthias Klose  <doko@ubuntu.com>
12644
12645         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
12646         function to add the -iplugindir option.
12647         (find_plugindir_spec_function): Add new declaration and function.
12648         (static_spec_func): Use it for "find-plugindir".
12649
12650 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
12651
12652         PR c++/44361
12653         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
12654         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
12655         statement expression.
12656
12657 2010-06-05  Jan Hubicka  <jh@suse.cz>
12658
12659         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
12660         (df_rd_problem_data): Convert sparse_invalidated_by_call,
12661         dense_invalidated_by_call to bitmap head.
12662         (df_rd_alloc, df_rd_bb_local_compute_process_def,
12663         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
12664         df_rd_start_dump, df_lr_verify_transfer_functions,
12665         df_live_verify_transfer_functions, df_chain_create_bb,
12666         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
12667         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
12668         df_simulate_one_insn_forwards, df_md_alloc,
12669         df_md_bb_local_compute_process_def,
12670         df_md_bb_local_compute_process_def, df_md_local_compute,
12671         df_md_transfer_function df_md_free): Update.
12672
12673 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
12674
12675         PR c/44322
12676         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
12677         target type for ADDR_EXPR; require no changes to qualifiers except
12678         for function types.
12679         * c-tree.h (c_build_type_variant): Remove.
12680
12681 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
12682
12683         * genautomata.c (get_excl_set): Do work per element, not per char.
12684         (check_presence_pattern_sets): Similar.
12685         (check_absence_pattern_sets): Similar.
12686
12687 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
12688
12689         * genautomata.c (curr_state_pass_num): Delete.
12690         (min_issue_delay_pass_states): Delete.
12691         (min_issue_delay): Delete.
12692         (initiate_min_issue_delay_pass_states): Delete.
12693         (output_min_issue_delay_table): Compute min_issue_delay_vect
12694         using a breadth-first search variant.
12695         (output_tables): Don't call initiate_min_issue_delay_pass_states.
12696
12697 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12698
12699         PR boostrap/44421
12700         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
12701         (df_byte_lr_bb_local_compute): Likewise.
12702
12703 2010-06-03  Jason Merrill  <jason@redhat.com>
12704
12705         Implement noexcept operator (5.3.7)
12706         * c-common.c (c_common_reswords): Add noexcept.
12707         * c-common.h (enum rid): Add RID_NOEXCEPT.
12708
12709 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
12710
12711         * config/darwin-driver.c (darwin_default_min_version): Use
12712         GCC-specific formats in diagnostics.
12713         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
12714         diagnostics.
12715         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
12716         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
12717         eval_spec_function, handle_braces, process_brace_body, main,
12718         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
12719         getenv_spec_function, compare_version_strings,
12720         version_compare_spec_function): Use GCC-specific formats in
12721         diagnostics.
12722
12723 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
12724
12725         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
12726         that operand 0 and operand 1 are equal.
12727         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
12728         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
12729         and operand 1 are equal.
12730         <default>: Ditto.  Remove ??? comment.
12731         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
12732         and operand 1 are equal.
12733         <default>: Ditto.  Remove ??? comment.
12734         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
12735         are equal.
12736         (*add<mode>_4) <default>: Ditto.
12737         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
12738
12739 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
12740
12741         * config/i386/i386-protos.h (ix86_print_operand): Declare.
12742         * config/i386/i386.c (ix86_print_operand): Make non-static.
12743         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
12744         * output.h (output_operand): Declare.
12745         * final.c (output_operand): Make non-static.
12746
12747 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
12748
12749         PR rtl-optimization/44013
12750         * sched-deps.c (add_dependence_list_and_free): Don't free lists
12751         when processing debug insns.
12752
12753         PR debug/41371
12754         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
12755         recursing.  Check that recursion is bounded.  Rename inner var
12756         to avoid hiding incoming argument.
12757
12758 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
12759
12760         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
12761         operands[2] == 255.
12762         (*addqi_3): Ditto.
12763         (*addqi_4): Ditto.
12764         (*addqi_5): Ditto.
12765         (*addqi_ext_1_rex64): Ditto.
12766         (*addqi_ext_1): Ditto.
12767
12768         (*addqi_4): Check for incdec_operand in QImode.
12769
12770         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
12771         using SWI mode iterator.
12772         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
12773         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
12774         mode iterator.
12775         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
12776         using SWI mode iterator.
12777
12778 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12779
12780         PR c/25880
12781         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
12782         * c-format.c (gcc_diag_flag_specs): Add hash.
12783         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
12784         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
12785         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
12786         pp_c_cv_qualifiers. Handle qualifiers spelling here.
12787         (pp_c_type_qualifier_list): Call the function above.
12788         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
12789         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
12790         (WARN_FOR_QUALIFIERS): New macro.
12791         (convert_for_assignment): Use it.
12792
12793 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
12794
12795         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
12796
12797 2010-06-04  Jan Hubicka  <jh@suse.cz>
12798
12799         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
12800         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
12801         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
12802         DF_BYTE_LR_OUT): Update for embedded bitmaps.
12803         * fwprop.c (single_def_use_enter_block): Likewise.
12804         * ddg.c (create_ddg_dep_from_intra_loop_link,
12805         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
12806         * loop-iv.c (latch_dominating_def): Likewise.
12807         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
12808         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
12809         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
12810         df_rd_transfer_function, df_rd_top_dump,
12811         df_rd_bottom_dump): Update.
12812         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
12813         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
12814         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
12815         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
12816         df_lr_verify_solution_start, df_lr_verify_solution_end,
12817         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
12818         df_live_free_bb_info, df_live_alloc, df_live_reset,
12819         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
12820         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
12821         df_live_verify_solution_start, df_live_verify_solution_end,
12822         df_live_verify_transfer_functions, df_chain_create_bb,
12823         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
12824         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
12825         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
12826         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
12827         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
12828         df_byte_lr_transfer_function, df_byte_lr_top_dump,
12829         df_byte_lr_bottom_dump, df_create_unused_note,
12830         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
12831         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
12832         df_md_transfer_function, df_md_init, df_md_confluence_0,
12833         df_md_confluence_n,
12834         df_md_top_dump, df_md_bottom_dump): Update.
12835         (struct df_lr_problem_data): Embedd bitmap headers.
12836
12837 2010-06-04  Jan Hubicka  <jh@suse.cz>
12838
12839         * dce.c (dce_process_block): Do not re-scan already marked
12840         instructions.
12841
12842 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
12843
12844         PR rtl-optimization/39871
12845         PR rtl-optimization/40615
12846         PR rtl-optimization/42500
12847         PR rtl-optimization/42502
12848         * ira.c (init_reg_equiv_memory_loc: New function.
12849         (ira): Call it twice.
12850         * reload.h (calculate_elim_costs_all_insns): Declare.
12851         * ira-costs.c: Include "reload.h".
12852         (regno_equiv_gains): New static variable.
12853         (init_costs): Allocate it.
12854         (finish_costs): Free it.
12855         (ira_costs): Call calculate_elim_costs_all_insns.
12856         (find_costs_and_classes): Take estimated elimination costs
12857         into account.
12858         (ira_adjust_equiv_reg_cost): New function.
12859         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
12860         * reload1.c (init_eliminable_invariants, free_reg_equiv,
12861         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
12862         (elim_bb): New static variable.
12863         (reload): Move code out of here into init_eliminable_invariants and
12864         free_reg_equiv.  Call them.
12865         (calculate_elim_costs_all_insns): New function.
12866         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
12867         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
12868         but call note_reg_elim_costly if we turned a valid memory address
12869         into an invalid one.
12870         * Makefile.in (ira-costs.o): Depend on reload.h.
12871
12872 2010-06-04  Julian Brown  <julian@codesourcery.com>
12873
12874         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
12875         for pool ranges.
12876
12877 2010-06-04  Richard Guenther  <rguenther@suse.de>
12878
12879         PR lto/41584
12880         * cgraph.h (struct varpool_node): Add lto_file_data field.
12881         * lto-cgraph.c (input_varpool_node): Initialize it.
12882
12883 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
12884
12885         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
12886         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
12887         predicate in "type" attribute calculation.
12888         (*addsi_1_zext): Ditto.
12889         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
12890         (*addsi_2_zext): Ditto.
12891         (*add<mode>_3): Ditto.
12892         (*addsi_3_zext): Ditto.
12893         (*add<mode>_5): Ditto.
12894
12895 2010-06-03  Jan Hubicka  <jh@suse.cz>
12896
12897         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
12898         of bitmap_bit_p.
12899         * cfganal.c (compute_dominance_frontiers_1): Likewise.
12900
12901 2010-06-03  Jan Hubicka  <jh@suse.cz>
12902
12903         * df-problems.c (df_create_unused_note, df_note_bb_compute):
12904         micro-optimize the checks when to add new note.
12905
12906 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
12907
12908         * final.c (output_asm_insn): Call
12909         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
12910         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
12911         (output_address): Call targetm.asm_out.print_operand_address.
12912         Update comments.
12913         * target.h (struct gcc_target): Add print_operand,
12914         print_operand_address, and print_operand_punct_valid_p fields.
12915         * targhooks.h (default_print_operand): Declare.
12916         (default_print_operand_address): Declare.
12917         (default_print_operand_punct_valid_p): Declare.
12918         * targhooks.c (default_print_operand): Define.
12919         (default_print_operand_address): Define.
12920         (default_print_operand_punct_valid_p): Define.
12921         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
12922         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
12923         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
12924         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
12925         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
12926         * vmsdbgout.c (addr_const_to_string): Update comment.
12927         * config/i386/i386.c (print_operand): Rename to...
12928         (ix86_print_operand): ...this.  Make static.
12929         (print_operand_address): Rename to...
12930         (ix86_print_operand_address): ...this.  Make static.  Call
12931         ix86_print_operand instead of PRINT_OPERAND.
12932         (ix86_print_operand_punct_valid_p): New function.
12933         (TARGET_PRINT_OPERAND): Define.
12934         (TARGET_PRINT_OPERAND_ADDRESS): Define.
12935         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12936         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
12937         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12938         (PRINT_OPERAND): Delete.
12939         (PRINT_OPERAND_ADDRESS): Delete.
12940         * config/i386/i386-protos.h (print_operand): Delete prototype.
12941         (print_operand_address): Delete prototype.
12942
12943 2010-06-03  Richard Guenther  <rguenther@suse.de>
12944
12945         PR tree-optimization/44403
12946         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12947         Preserve pointer qualifiers.
12948         (vect_create_data_ref_ptr): Likewise.
12949
12950 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
12951
12952         PR c++/44294
12953         * defaults.h (MAX_FIXED_MODE_SIZE): New.
12954
12955         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
12956
12957 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
12958
12959         PR debug/44375
12960         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
12961         return false if merging the bbs would lead to goto_locus
12962         location being lost from the IL.
12963
12964 2010-06-03  Jan Hubicka  <jh@suse.cz>
12965             Jakub Jelinek  <jakub@redhat.com>
12966
12967         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
12968         set->regs[i] is NULL or has just one entry.
12969
12970 2010-06-03  Jan Hubicka  <jh@suse.cz>
12971
12972         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
12973         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
12974
12975 2010-06-03  Paul Brook  <paul@codesourcery.com>
12976
12977         * config/arm/arm.c (FL_TUNE): Define.
12978         (arm_default_cpu, arm_cpu_select): Remove.
12979         (all_cores): Populate core field.
12980         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
12981         (arm_find_cpu): New function.
12982         (arm_handle_option): Lookup cpu/architecture names.
12983         (arm_override_options): Cleanup mcpu/march/mtune handling.
12984         (arm_file_start): Ditto.
12985
12986 2010-06-03  Alan Modra  <amodra@gmail.com>
12987
12988         PR target/44169
12989         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
12990         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
12991         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
12992         (rs6000_emit_load_toc_table): Likewise.
12993
12994 2010-06-02  Jan Hubicka  <jh@suse.cz>
12995
12996         * passes.c (init_optimization_passes): Put ipa reference
12997         after ipa pure-const.
12998
12999 2010-06-02  Jan Hubicka  <jh@suse.cz>
13000
13001         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
13002         calls_read_all and calls_write_all.
13003         (get_reference_optimization_summary): Fix formatting.
13004         (is_proper_for_analysis): Check that decl is not readonly.
13005         (propagate_bits): Check CONST/PURE/noreturn flags.
13006         (ipa_init): Move all_module_statics to optimization_summary_obstack.
13007         (analyze_function): Ignore indirect edges.
13008         (copy_global_bitmap): For all module statics, do nothing.
13009         (generate_summary): Do not print calls_read_all/calls_write_all.
13010         (read_write_all_from_decl): Take node as argument; check
13011         cgraph_node_cannot_return.
13012         (propagate): Reorganize read_all/write_all computation;
13013         check indirect edges; check ecf flags; use all_module_statics
13014         in the results; do not free all_module_statics.
13015         (stream_out_bitmap): Handle all_module_statics.
13016         (ipa_reference_write_optimization_summary): Likewise; use
13017         varpool/cgraph encoders to get boundaries.
13018         (ipa_reference_read_optimization_summary): Read in all_module_statics;
13019         use it when possible.
13020
13021 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13022
13023         PR target/44218
13024         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
13025         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
13026
13027         * doc/extend.texi (powerpc builtins): Document vec_recip,
13028         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
13029
13030         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
13031         (rs6000_emit_swrsqrt): Ditto.
13032         (rs6000_emit_swdivsf): Delete.
13033         (rs6000_emit_swdivdf): Ditto.
13034         (rs6000_emit_swrsqrtsf): Ditto.
13035
13036         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
13037         describe the reciprocal estimate support for each type.
13038         (recip_options): Map -mrecip=<opt> into option bits.
13039         (gen_2arg_fn_t): New typedef for binary rtx gen function.
13040         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
13041         reciprocal estimate instructions.
13042         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
13043         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
13044         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
13045         cost information if -mdebug=cost or -mdebug=reg.
13046         (rs6000_override_options): Set -mrecip-precision for power6, and
13047         power7 machines.  If -mvsx or -mdfp, enable various options that
13048         came in previous instruction set ISAs, unless the option was
13049         explicitly disabled by the command line option.  Parse
13050         -mrecip=<opt> options.
13051         (rs6000_builtin_vectorized_function): Add support for vectorizing
13052         the reciprocal estimate builtins and expansions.
13053         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
13054         (bdesc_2arg): Add reciprocal estimate builtins.
13055         (bdesc_1arg): Add reciprocal square root estimate builtins.
13056         (rs6000_expand_builtin): Rewrite to use a switch statement,
13057         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
13058         (rs6000_init_builtins): Create declarations for reciprocal
13059         estimate builtins.
13060         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
13061         sized, prefer traditional floating point registers, if integer
13062         vector types, prefer altivec registers.  Don't actually look at
13063         the memory address any more.
13064         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
13065         builtins.
13066         (rs6000_load_constant_and_splat): New helper function to load up
13067         the constant for reciprocal estimate instructions.
13068         (rs6000_emit_madd): New helper function for generating
13069         multiply/add type instructions, based on the current switches.
13070         (rs6000_emit_msub): Ditto.
13071         (rs6000_emit_mnsub): Ditto.
13072         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
13073         replace a divide with a reciprocal estimate and fixup, adding
13074         support for machines with high precision and vectors.
13075         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
13076         low precision machines.
13077         (rs6000_emit_swdiv): New common function to be called to replace a
13078         division with reciprocal estimate and fixup.
13079         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
13080         for double and vector types.  Add support for high precision machines.
13081
13082         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
13083         the reciprocal estimate instructions can be generated.
13084         (TARGET_FRE): Ditto.
13085         (TARGET_FRSQRTES): Ditto.
13086         (TARGET_FRSQRTE): Ditto.
13087         (RS6000_RECIP_*): New macros for reciprocal estimate support.
13088
13089         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
13090         square root estimate on vectors.
13091         (re<mode>2): New insn for reciprocal division estimate on vectors.
13092
13093         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
13094         New builtin.
13095         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
13096         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
13097         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
13098         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
13099         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
13100         (RS6000_BUILTIN_RSQRT): Ditto.
13101         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
13102         floating point builtin.
13103
13104         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13105         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
13106         __RECIP_PRECISION__ based on the command line switches.
13107         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
13108
13109         * config/rs6000/rs6000.opt (-mrecip): Document add support for
13110         replacing division instructions with reciprocal estimate and fixup.
13111         (-mrecip=<opt>): New option.
13112         (-mrecip-precision): Ditto.
13113
13114         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
13115         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
13116         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
13117         precision scalar.
13118
13119         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
13120         (UNSPEC_VREFP): Ditto.
13121         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
13122         conterparts with regard to support of -mno-fused-madd and -ffast-math.
13123         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
13124         reciprocal estimate instructions to be generated.
13125         (altivec_vrefp): Ditto.
13126
13127         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
13128         estimate support.
13129         (rreg): New mode attribute for reciprocal estimate support.
13130         (recip<mode>3): New insn for division using reciprocal estimate
13131         and fixup builtins.
13132         (divide define_split): New define_split to convert floating point
13133         division to use reciprocal estimate if the user used the
13134         appropriate options and the split is run when we can add new
13135         pseudo registers for the fixup.
13136         (rsqrt<mode>2): New insn for reciprocal square root support.
13137         (recipsf3): Move into recip<mode>3.
13138         (recipdf3): Ditto.
13139         (fres): Use TARGET_FRES.
13140         (rsqrtsf2): Move into rsqrt<mode>2.
13141         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
13142         (copysignsf3): Add support for VSX.
13143         (fred): Use TARGET_FRE.
13144         (fred_fpr): Ditto.
13145         (rsqrtdf_internal1): New function for frsqrte instruciton.
13146
13147         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
13148         (vec_rsqrt): Ditto.
13149
13150 2010-06-03  Richard Guenther  <rguenther@suse.de>
13151
13152         PR middle-end/44291
13153         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
13154         (set_user_assembler_libfunc): Likewise.
13155
13156 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13157
13158         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
13159         defaults.h.
13160         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
13161         to defaults.h
13162         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
13163         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
13164         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
13165         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
13166         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
13167         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
13168         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
13169         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
13170         * defaults.h: Updated for above mentioned changes.
13171
13172 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
13173
13174         * c-common.c: Remove header include of tm_p.h.
13175         * Makefile.in (c-common.o): Remove TM_P_H dependency.
13176
13177 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
13178
13179         * tree.h (struct tree_decl_map): New type.
13180         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
13181         (tree_decl_map_hash): New prototype.
13182         (debug_expr_for_decl, value_expr_for_decl): Change into
13183         tree_decl_map hashtab from tree_map.
13184         (init_ttree): Adjust initialization.
13185         (tree_decl_map_hash): New function.
13186         (decl_debug_expr_lookup, decl_debug_expr_insert,
13187         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
13188
13189 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13190
13191         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
13192         linker emulations.
13193         * configure: Regenerate.
13194         * config.in: Regenerate.
13195
13196         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
13197         (X86_64_EMULATION): Define.
13198         (TARGET_LD_EMULATION): Use them.
13199
13200         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
13201         (SPARC64_EMULATION): Define.
13202         (LINK_ARCH_SPEC): Use them.
13203
13204 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13205
13206         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
13207         smallest_mode_for_size for computing the precision types of new
13208         graphite IVs.  Do not call lang_hooks.types.type_for_size.
13209
13210 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13211
13212         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
13213         information.
13214         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
13215
13216 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
13217
13218         PR middle-end/44363
13219         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
13220         return false instead.
13221
13222 2010-06-02  Jan Hubicka  <jh@suse.cz>
13223
13224         PR middle-end/44295
13225         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
13226         create new cgraph node to check callee.
13227
13228 2010-06-02  Richard Guenther  <rguenther@suse.de>
13229
13230         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
13231
13232 2010-06-02  Richard Guenther  <rguenther@suse.de>
13233
13234         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
13235         (lto_wrapper_cleanup): ... this.  Do not exit.
13236         (fatal): Adjust.  Exit here.
13237         (fatal_perror): Likewise.
13238         (fatal_signal): New function.
13239         (main): Set up signal handlers to cleanup temporary files.
13240         * Makefile.in (lto-wrapper.o): Adjust dependencies.
13241
13242 2010-06-02  Richard Guenther  <rguenther@suse.de>
13243
13244         PR tree-optimization/44377
13245         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
13246
13247 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13248
13249         * config/s390/2097.md (z10_fhex): Remove insn reservation.
13250         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
13251         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
13252         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
13253         instruction.
13254         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
13255
13256 2010-06-02  Jan Hubicka  <jh@suse.cz>
13257
13258         * bitmap.c (bitmap_descriptor): Add search_iter.
13259         (bitmap_find_bit): Increment it.
13260         (print_statistics): Print it.
13261
13262 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
13263
13264         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
13265         instead of gimple_build_call_vec.  Delete unnecessary local variable.
13266
13267 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13268
13269         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
13270         change from yesterday.
13271
13272 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13273
13274         * c-ada-spec.c: Clean up redundant includes.
13275
13276 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
13277
13278         * gimplify.c: Do not include except.h and optabs.h.
13279         (gimplify_body): Do not initialize RTL profiling.
13280         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
13281         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
13282         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
13283         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
13284         langhooks.h.
13285
13286         * tree-pretty-print.h: Include pretty-print.h.
13287         * gimple-pretty-print.h: Include pretty-print.h.
13288
13289         * tree-pretty-print.c: Do not include diagnostic.h.
13290         * tree-vrp.c: Likewise.
13291         * tree-tailcall.c: Likewise
13292         * tree-scalar-evolution.c: Likewise
13293         * tree-ssa-dse.c: Likewise
13294         * tree-chrec.c: Likewise
13295         * tree-ssa-sccvn.c: Likewise
13296         * tree-ssa-copyrename.c: Likewise
13297         * tree-nomudflap.c: Likewise
13298         * tree-call-cdce.c: Likewise
13299         * tree-stdarg.c: Likewise
13300         * tree-ssa-math-opts.c: Likewise
13301         * tree-nrv.c: Likewise
13302         * tree-ssa-sink.c: Likewise
13303         * tree-browser.c: Likewise
13304         * tree-ssa-loop-ivcanon.c: Likewise
13305         * tree-ssa-loop.c: Likewise
13306         * tree-parloops.c: Likewise
13307         * tree-ssa-address.c: Likewise
13308         * tree-ssa-ifcombine.c: Likewise
13309         * tree-if-conv.c: Likewise
13310         * tree-data-ref.c: Likewise
13311         * tree-affine.c: Likewise
13312         * tree-ssa-phiopt.c: Likewise
13313         * tree-ssa-coalesce.c: Likewise
13314         * tree-ssa-pre.c: Likewise
13315         * tree-ssa-live.c: Likewise
13316         * tree-predcom.c: Likewise
13317         * tree-ssa-forwprop.c: Likewise
13318         * tree-ssa-dce.c: Likewise
13319         * tree-ssa-ter.c: Likewise
13320         * tree-ssa-loop-prefetch.c: Likewise
13321         * tree-optimize.c: Likewise
13322         * tree-ssa-phiprop.c: Likewise
13323         * tree-object-size.c: Likewise
13324         * tree-outof-ssa.c: Likewise
13325         * tree-ssa-structalias.c: Likewise
13326         * tree-switch-conversion.c: Likewise
13327         * tree-ssa-reassoc.c: Likewise
13328         * tree-ssa-operands.c: Likewise
13329         * tree-vectorizer.c: Likewise
13330         * tree-vect-data-refs.c: Likewise
13331         * tree-vect-generic.c: Likewise
13332         * tree-vect-stmts.c: Likewise
13333         * tree-vect-patterns.c: Likewise
13334         * tree-vect-slp.c: Likewise
13335         * tree-vect-loop.c: Likewise
13336         * tree-ssa-loop-ivopts.c: Likewise
13337         * tree-ssa-loop-im.c: Likewise
13338         * tree-ssa-loop-niter.c: Likewise
13339         * tree-ssa-loop-unswitch.c: Likewise
13340         * tree-ssa-loop-manip.c: Likewise
13341         * tree-ssa-loop-ch.c: Likewise
13342         * tree-dump.c: Likewise
13343         * tree-complex.c: Likewise
13344
13345         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
13346         * tree-ssa-uninit.c: Likewise
13347         * tree-ssa-threadupdate.c: Likewise
13348         * tree-ssa-uncprop.c: Likewise
13349         * tree-ssa-ccp.c: Likewise
13350         * tree-ssa-dom.c: Likewise
13351         * tree-ssa-propagate.c: Likewise
13352         * tree-ssa-alias.c: Likewise
13353         * tree-dfa.c: Likewise
13354         * tree-cfgcleanup.c: Likewise
13355         * tree-sra.c: Likewise
13356         * tree-ssa-copy.c: Likewise
13357         * tree-ssa.c: Likewise
13358         * tree-profile.c: Likewise
13359         * tree-cfg.c: Likewise
13360         * tree-ssa-threadedge.c: Likewise
13361         * tree-vect-loop-manip.c: Likewise
13362
13363         * tree-inline.c: Do not include diagnostic.h and expr.h.
13364         Include rtl.h.
13365         (copy_decl_for_dup_finish): Do not use NULL_RTX.
13366
13367         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
13368         * tree-loop-distribution.c: Likewise.
13369
13370 2010-06-01  Jan Hubicka  <jh@suse.cz>
13371
13372         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
13373
13374 2010-06-01  Jan Hubicka  <jh@suse.cz>
13375
13376         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
13377         remove return value.
13378         (split_bbs_on_noreturn_calls) .... here.
13379         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
13380         * tree-flow.h (fixup_noreturn_call): New.
13381
13382 2010-06-01  Jan Hubicka  <jh@suse.cz>
13383
13384         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
13385
13386 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
13387
13388         * tree.h (build_nt_call_list): Delete.
13389         * tree.c (build_nt_call_list): Delete.
13390
13391 2010-06-01  Jan Hubicka  <jh@suse.cz>
13392
13393         * fwprop.c: Make emit-rtl.h include last.
13394         * rtlanal.c: Include emit-rtl.h.
13395         * genautomata.c: Output emit-rtl include into insn-automata.c
13396         * df-scan.c: Include emit-rtl.h.
13397         * haifa-sched.c: Indlude emit-rtl.h.
13398         * mode-switching.c: Indlude emit-rtl.h.
13399         * graph.c: Indlude emit-rtl.h.
13400         * sel-sched.c: Include emit-rtl.h.
13401         * sel-sched-ir.c: Include emit-rtl.h.
13402         * ira-build.c: Include emit-rtl.h.
13403         * emit-rtl.c (first_insn, last_insn): Remove defines.
13404         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
13405         Move to emit-rtl.h.
13406         (set_new_first_and_last_insn, get_last_insn_anywhere,
13407         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
13408         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
13409         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
13410         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
13411         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
13412         Use accessor functions.
13413         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13414          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13415         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13416         mem_expr_equal_p): Move here from rtl.h.
13417         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
13418         Move here from emit-rtl.c; make inline.
13419         * cfglayout.h: Include emit-rtl.h.
13420         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13421          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13422         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13423         mem_expr_equal_p, get_insns, set_first-insn,
13424         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
13425         * reg-stack.c: Include emit-rtl.h.
13426         * dce.c: Likewise.
13427
13428 2010-06-01  Jan Hubicka  <jh@suse.cz>
13429
13430         * cgraph.h (tree_function_versioning): Update prototype.
13431         (cgraph_function_versioning): Update prototype.
13432         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
13433         bitmap.
13434         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
13435         (cgraph_materialize_clone, save_inline_function_body): Update use of
13436         tree_function_versioning.
13437         * tree-inline.c (copy_bb): Look for previous copied block to link
13438         after; fix debug output.
13439         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
13440         (copy_body): Likewise.
13441         (expand_call_inline): Update use of copy_body.
13442         (tree_function_versioning): Update use of copy body; accept
13443         blocks_to_copy and new_entry.
13444
13445 2010-06-01  Jan Hubicka  <jh@suse.cz>
13446
13447         * gegenrtl.c: Remove unnecesary prototypes.
13448         (gendecl): Remove.
13449         (gendef): Produce static inline.
13450         (gencode): Remove.
13451         (main): Do not decode parameters; generate header only.
13452         * Makefile.in (genrtl.c): Remove.
13453
13454 2010-06-01  Jan Hubicka  <jh@suse.cz>
13455
13456         * tree-switch-conversion.c (build_one_array): Make it readonly.
13457
13458 2010-06-01  Richard Guenther  <rguenther@suse.de>
13459
13460         * optabs.c (init_optabs): Guard all accesses to reinit.
13461         * ipa-pure-const.c (propagate): Fix another typo.
13462         * opts.c (common_handle_option): Split assignment to bool.
13463         * c-opts.c (c_common_handle_option): Likewise.
13464
13465 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
13466             Matthew Gingell  <gingell@adacore.com>
13467
13468         * doc/invoke.texi: Mention -fdump-ada-spec.
13469         * tree-dump.c (dump_files): Add ada-spec.
13470         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
13471         * tree-pass.h (tree_dump_index): Add TDI_ada.
13472         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
13473         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
13474         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
13475         * c-decl.c: Include c-ada-spec.h.
13476         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
13477         functions.
13478         (c_write_global_declarations): Add handling of -fdump-ada-spec.
13479         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
13480         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
13481         * c-ada-spec.h, c-ada-spec.c: New files.
13482
13483 2010-06-01  Richard Guenther  <rguenther@suse.de>
13484
13485         PR lto/43853
13486         * ipa-pure-const.c (get_function_state): Hand back varying state
13487         if we do not have one.
13488         (has_function_state): New function.
13489         (duplicate_node_data): Adjust.
13490         (remove_node_data): Likewise.
13491         (pure_const_write_summary): Likewise.
13492         (propagate): Likewise.  Fix typo.
13493
13494 2010-06-01  Jan Hubicka  <jh@suse.cz>
13495
13496         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
13497         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
13498         (execute_all_ipa_transforms): Do not play with the states.
13499
13500 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13501
13502         * config/arm/t-linux-androideabi: New.
13503         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
13504
13505 2010-06-01  Jan Hubicka  <jh@suse.cz>
13506
13507         * tree-inline.c (estimate_num_insns): For stdarg functions look
13508         into call statement to count cost of argument passing.
13509
13510 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
13511
13512         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
13513         argument for fprintf.
13514         (ix86_output_addr_diff_elt): Likewise.
13515         (x86_function_profiler): Likewise.
13516         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
13517         (LPREFIX): Likewise.
13518         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
13519
13520 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13521
13522         PR target/44338
13523         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
13524         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
13525         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
13526         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
13527         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
13528         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
13529         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
13530         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
13531         TARGET_FUSED_MADD.
13532
13533 2010-05-31  Jan Hubicka  <jh@suse.cz>
13534
13535         * tree.h (tree_range_check_failed): Declare noreturn.
13536
13537 2010-05-31  Jan Hubicka  <jh@suse.cz>
13538
13539         * gimple.c (gimple_call_builtin_p): New function.
13540         * gimple.h (gimple_call_builtin_p): Declare.
13541         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
13542         to exit.
13543         (execute_warn_function_return): BUILT_IN_RETURN is return.
13544         (split_critical_edges): Return edges are not critical.
13545         (is_ctrl_altering_stmt): Builtin_in_return is altering.
13546         (gimple_verify_flow_info): Handle built_in_return.
13547         (execute_warn_function_return): Handle built_in_return.
13548         * ipa-pure-const.c (check_call): Ignore builtin_return.
13549
13550 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13551
13552         PR middle-end/44337
13553         * expr.c (expand_assignment): Don't store anything for out-of-bounds
13554         array accesses with non-MEM.
13555
13556         PR tree-optimization/44182
13557         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
13558         newly needs to end a bb is followed by debug stmts, instead return
13559         true from the function at the end.
13560         (maybe_move_debug_stmts_to_successors): New function.
13561         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
13562
13563 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
13564
13565         PR target/44161
13566         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
13567
13568 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
13569
13570         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
13571         for nested functions in non-optimized compilation.
13572
13573 2010-05-31  Richard Guenther  <rguenther@suse.de>
13574
13575         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
13576
13577 2010-05-30  Jan Hubicka  <jh@suse.cz>
13578
13579         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
13580
13581 2010-05-30  Richard Guenther  <rguenther@suse.de>
13582
13583         PR lto/42975
13584         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
13585         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
13586         no longer needed.
13587
13588 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
13589
13590         * config/darwin.c (output_objc_section_asm_op): Add comment.
13591         (name_needs_quotes): Add '_' to list of valid comment chars.
13592         (machopic_output_function_base_name): Remove unneeded quotes.
13593         (darwin_encode_section_info): Adjust asm whitespace.
13594         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
13595         (ASM_OUTPUT_LOCAL): Ditto.
13596         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
13597         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
13598         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
13599
13600 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
13601
13602         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
13603         RS6000_OUTPUT_BASENAME unconditionally.
13604         (rs6000_output_function_epilogue): Likewise.
13605
13606 2010-05-30  Jan Hubicka  <jh@suse.cz>
13607
13608         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
13609         nodes.
13610
13611 2010-05-30  Richard Guenther  <rguenther@suse.de>
13612
13613         * tree-cfg.c (verify_gimple_assign_single): Implement
13614         verification for COND_EXPR rhs.
13615
13616 2010-05-30  Jan Hubicka  <jh@suse.cz>
13617
13618         * cgraph.h (cgraph_dump_file): Declare.
13619         * cgraphunit.c (cgraph_dump_file): Export.
13620         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
13621
13622 2010-05-30  Jan Hubicka  <jh@suse.cz>
13623
13624         * dwarf2out.c (reference_to_unused,
13625         premark_types_used_by_global_vars_helper): Avoid creation of new
13626         varpool nodes.
13627
13628 2010-05-30  Jan Hubicka  <jh@suse.cz>
13629
13630         * cgraph.h (cgraph_node_cannot_return,
13631         cgraph_edge_cannot_lead_to_return): New functions.
13632         * cgraph.c (cgraph_node_cannot_return,
13633         cgraph_edge_cannot_lead_to_return): Use them.
13634         * ipa-pure-const.c (pure_const_names): New static var.
13635         (check_call): Handle calls not leading to return.
13636         (pure_const_read_summary): Dump info read.
13637         (propagate): Dump info about propagation process; ignore side effects
13638         of functions not leading to exit; fix handling of pure functions.
13639
13640 2010-05-30  Jan Hubicka  <jh@suse.cz>
13641
13642         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
13643         for tail call epilogues.
13644
13645 2010-05-30  Jan Hubicka  <jh@suse.cz>
13646
13647         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
13648         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
13649         dump files.
13650
13651 2010-05-29  Jan Hubicka  <jh@suse.cz>
13652
13653         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
13654         node; remove references in node we no longer keep in cgrpah but need
13655         body of.
13656
13657 2010-05-29  Jan Hubicka  <jh@suse.cz>
13658
13659         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
13660
13661 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13662
13663         PR target/44165
13664         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
13665
13666 2010-05-29  Jan Hubicka  <jh@suse.cz>
13667
13668         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
13669         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
13670         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
13671         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
13672         debug_names_replaced_by, debug_update_ssa): Likewise.
13673         * sbitmap.c (debug_sbitmap): Likewise.
13674         * genrecog.c (debug_decision, debug_decision_list): Likewise.
13675         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
13676         debug_tree_chain): Likewise.
13677         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
13678         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
13679         * optabs.c (debug_optab_libfuncs): Likewise.
13680         (verify_loop_closed_ssa): Likewise.
13681         * value-prof.c (verify_histograms): Likewise.
13682         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
13683         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
13684         * cfghooks.c (verify_flow_info): Likewise.
13685         * fold-const.c (debug_fold_checksum): Likewise.
13686         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
13687         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
13688         Likewise.
13689         * omega.c (debug_omega_problem): Likewise.
13690         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
13691         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
13692         * dominance.c (verify_dominators, debug_dominance_info,
13693         debug_dominance_tree): Likewise.
13694         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
13695         * df_regno_debug, df_ref_debug,
13696         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
13697         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
13698         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
13699         * sel-sched.c (debug_state): Likewise.
13700         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
13701         Likewise.
13702         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
13703         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
13704         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
13705         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
13706         Likewise.
13707         * c-pretty-print.c (debug_c_tree): Likewise.
13708         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
13709         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
13710         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
13711         * ebitmap.c (debug_ebitmap): Likewise.
13712         * function.c (debug_find_var_in_block_tree): Likewise.
13713         * print-rtl.c (debug_rtx): Likewise.
13714         (debug_rtx_count): Likewise.
13715         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
13716         * stor-layout.c (debug_rli): Likewise.
13717         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
13718         * tree-data-ref.c (debug_data_references,
13719         debug_data_dependence_relations, debug_data_reference,
13720         debug_data_dependence_relation, debug_rdg_vertex,
13721         debug_rdg_component, debug_rdg): Likewise.
13722         * tree-affine.c (debug_aff): Likewise.
13723         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
13724         Likewise.
13725         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
13726         * emit-rtl.c (verify_rtl_sharing): Likewise.
13727         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
13728         debug_value_expressions): Likewise.
13729         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
13730         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
13731         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
13732         * cfglayout.c (verify_insn_chain): Likewise.
13733         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
13734         debug_clast_stmt, debug_generated_program): Likewise.
13735         * ggc-page.c (debug_print_page_list): Likewise.
13736         * tree-ssa-ter.c (debug_ter): Likewise.
13737         * graphite-dependences.c (debug_pddr): Likewise.
13738         * sched-deps.c (debug_ds): Likewise.
13739         * tree-ssa.c (verify_ssa): Likewise.
13740         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
13741         debug_scattering_functions, debug_iteration_domains, debug_pdr,
13742         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
13743         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
13744         * tree-inline.c (debug_find_tree): Likewise.
13745         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
13746         debug_ppl_powerset_matrix): Likewise.
13747         * var-tracking.c (debug_dv): Likewise.
13748         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
13749         * cfgloop.c (verify_loop_structure): Likewise.
13750         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
13751         * c-common.c (verify_sequence_points): Likewise.
13752         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
13753         debug_candidates, debug_rgn_dependencies): Likewise.
13754         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
13755         * debug_constraint_graph, debug_solution_for_var,
13756         debug_sa_points_to_info): Likewise.
13757         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
13758         Likewie.
13759         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
13760         debug_loops, debug_loop, debug_loop_num): Likewise.
13761         * passes.c (debug_pass): Likewise.
13762         (dump_properties): Likewise; add cfglayout property.
13763         (debug_properties): Likewise.
13764         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
13765         * varpool.c (debug_varpool): Likewise.
13766         * regcprop.c (debug_value_data): Likewise.
13767         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
13768         debug_immediate_uses_for): Likewise.
13769
13770 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13771
13772         PR bootstrap/44315
13773         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
13774         Filter out insn-flags.h.
13775
13776 2010-05-29  Jan Hubicka  <jh@suse.cz>
13777
13778         * cgraph.h (struct varpool_node_set_def,
13779         struct cgraph_node_set_def): Remove unused AUX pointer.
13780         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
13781         VEC_empty macro.
13782
13783 2010-05-29  Jan Hubicka  <jh@suse.cz>
13784
13785         PR middle-end/44324
13786         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
13787
13788 2010-05-29  Richard Guenther  <rguenther@suse.de>
13789
13790         * lto-streamer.c (cached_bp): New global variable.
13791         (bitpack_create): Return the cached bitpack, if available.
13792         (bitpack_delete): Clear and cache the bitpack, if appropriate.
13793         (bp_pack_value): Remove redundant asserts.
13794
13795 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
13796
13797         PR middle-end/44306
13798         * tree-if-conv.c (is_true_predicate): New.
13799         (is_predicated): Use is_true_predicate.
13800         (add_to_predicate_list): Same.  Do not use unshare_expr.
13801         (add_to_dst_predicate_list): Same.
13802
13803 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
13804
13805         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
13806         field on edges.
13807         (predicate_bbs): Same.
13808         (clean_predicate_lists): Same.
13809         (find_phi_replacement_condition): Do not AND the predicate from
13810         edge->aux.
13811
13812 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13813
13814         PR bootstrap/44315
13815         * Makefile.in (build/gencondmd.o): Add a missing `\'.
13816
13817 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13818
13819         PR target/44261
13820         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
13821         (negdf2): Adjust expander pattern and use negdf2_slow.
13822         (negsf2): Likewise.
13823
13824 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
13825
13826         * basic-block.h (struct control_flow_graph): Move last_label_uid field
13827         up.
13828         * df.h (struct df_base_ref): Move regno field up.
13829         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
13830         * expr.h (struct separate_ops): Move location field up.
13831         * optabs.h (struct optab_d): Move libcall_basename field down.
13832         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
13833         * config/i386/i386.h (struct machine_function): Convert call_abi field
13834         into a bitfield.  Move cfa field to the end of the structure.
13835
13836 2010-05-29  Jan Hubicka  <jh@suse.cz>
13837
13838         * varpool.c (varpool_get_node): Fix lookup.
13839
13840 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13841
13842         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
13843         RTL specific prototypes with #ifdef RTX_CODE.
13844         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
13845         * config/spu/t-spu-elf: Fix dependencies.
13846
13847         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
13848
13849 2010-05-29  Mike Stump  <mikestump@comcast.net>
13850
13851         PR bootstrap/44315
13852         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
13853         TM_H when building to avoid dependency loops.
13854
13855 2010-05-29  Jan Hubicka  <jh@suse.cz>
13856
13857         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
13858         refs and body; not the whole node for masters of materialized clones.
13859
13860 2010-05-29  Mike Stump  <mikestump@comcast.net>
13861
13862         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
13863
13864 2010-05-29  Jan Hubicka  <jh@suse.cz>
13865
13866         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
13867         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
13868         use of clone_function_name.
13869         * cgraph.h (cgraph_create_virtual_clone,
13870         cgraph_function_versioning): update prototypes.
13871         (clone_function_name): Declare.
13872         * ipa-cp.c (ipcp_insert_stage): Update call of
13873         cgraph_create_virtual_clone.
13874         * omp-low.c (create_omp_child_function_name): Use
13875         cgraph_create_virtual_clone.
13876         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
13877         (cgraph_function_versioning): Take SUFFIX argument; produce new name
13878         and make decl local.
13879
13880 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13881
13882         * vec.h: Include statistics.h
13883         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
13884         with VEC_H.
13885
13886 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13887
13888         * c-lex.c: Do not include c-tree.h.
13889         * c-pretty-print.c: Likewise.
13890         * c-opts.c: Likewise.
13891         * c-gimplify.c: Likewise.
13892         * c-common.c: Likewise.
13893         * c-dump.c: Likewise.  Include c-common.h.
13894
13895 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13896
13897         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
13898         before including diagnostic-core.h.
13899         (c_cpp_error): New prototype moved from c-tree.h.
13900         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
13901         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
13902         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
13903         (c_cpp_error): Prototype moved to c-common.h.
13904         * Makefile.in: Update dependency for C_COMMON_H.
13905
13906 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13907
13908         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
13909         * c-common.c (c_register_addr_space): Remove here.
13910         * c-decl.c (c_register_addr_space): Re-add here.
13911
13912 2010-05-28  Mike Stump  <mikestump@comcast.net>
13913
13914         * config/darwin-c.c: Remove c-tree.h include.
13915
13916 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13917
13918         * gcc.c: Include diagnostic.h.
13919         (error_count): Remove.  All users changed to use errorcount.
13920         (programname): Remove.  All users changed to use progname.
13921         (fancy_abort, internal_error, fatal_error, error, warning, inform,
13922         fnotice): Remove.
13923         (execute): Don't include "Internal error" and bug reporting
13924         information in argument of internal_error call.
13925         (process_command): Don't increment error_count after calling
13926         perror_with_name.
13927         (input_filename): Rename to gcc_input_filename.  All users
13928         changed.
13929         (main): Call diagnostic_initialize.  Register delete_temp_files
13930         with atexit.  Use seen_error to test for errors.
13931         * gcc.h: Include diagnostic-core.h.
13932         (fatal_error, error, warning): Remove.
13933         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
13934         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
13935         (gcc.o): Update dependencies.
13936
13937 2010-05-28  Jeff Law  <law@redhat.com>
13938
13939         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
13940         functions.
13941         * ira.h (ira_bad_reload_regno): Declare
13942         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
13943
13944         * ira-color.c (update_curr_costs): Free updated hard reg costs.
13945         (ira_reassign_conflict_allocnos): Remove bogus asserts.
13946         (allocno_reload_assign): Likewise.
13947
13948 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
13949
13950         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
13951         build1_stat.
13952
13953 2010-05-28  Richard Guenther  <rguenther@suse.de>
13954
13955         PR lto/44312
13956         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
13957         Stream fixed-point constants mode.
13958         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
13959         and TYPE_PRECISION.
13960         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
13961         Stream fixed-point constants mode.
13962         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
13963         and TYPE_PRECISION.
13964
13965 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
13966
13967         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
13968         only place it was called from.
13969         (number_of_latch_executions): Do not return chrec_dont_know when the
13970         may_be_zero is a runtime condition: instead, return a COND_EXPR
13971         including the may_be_zero condition.
13972         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
13973         of nb_iterations.
13974         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
13975         COND_EXPRs.
13976
13977 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
13978
13979         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
13980         generate COND_EXPRs for degenerate_phi_result.
13981
13982 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
13983
13984         PR middle-end/44293
13985         * tree-if-conv.c (if_convertible_loop_p): Check the
13986         if-convertibility of phi nodes in non predicated BBs.
13987
13988 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13989
13990         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
13991
13992 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13993
13994         PR driver/15303
13995         * gcc.c (inform, warning, inform): New functions.
13996         (fatal_ice): Rename to internal_error; change cmsgid parameter to
13997         gmsgid.  All callers changed.
13998         (notice): Rename to fnotice; add parameter fp.  All callers changed.
13999         (fatal_error): Rename to fatal_signal.  All users changed.
14000         (fatal): Rename to fatal_error; change cmsgid parameter to
14001         gmsgid.  All callers changed.
14002         (process_command): Use warning instead of error for warnings.
14003         (end_going_arg): Don't use _() around argument of error.
14004         (do_spec_1): Use inform for message from %n specs.  Use warning
14005         instead of error for warnings.
14006         (main): Use inform for comparison messages.  Use warning for
14007         message about unused linker input.
14008         (error): Increment error_count.  Print "error: ".
14009         * gcc.h (fatal): Change to fatal_error.
14010         (warning): Declare.
14011         * config/darwin-driver.c (darwin_default_min_version): Use warning
14012         instead of fprintf for warnings.
14013         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
14014
14015 2010-05-28  Julian Brown  <julian@codesourcery.com>
14016
14017         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
14018         (*thumb2_addsi3_compare0_scratch): New.
14019         * config/arm/constraints.md (Pv): New.
14020         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
14021         for ARM mode only.
14022         (*addsi3_compare0_scratch): Likewise.
14023
14024 2010-05-28  Jan Hubicka  <jh@suse.cz>
14025
14026         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
14027         check.
14028         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
14029         only on local statics.
14030
14031 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
14032
14033         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
14034
14035 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14036
14037         PR bootstrap/44314
14038         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
14039         (OPTION_GLIBC): Define.
14040
14041 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14042
14043         PR debug/41048
14044         * dwarf2out.c (double_int_type_size_in_bits): New function.
14045         (round_up_to_align): Change first argument and return value to
14046         double_int.
14047         (field_byte_offset): Work internally on double_ints.
14048
14049         PR target/43636
14050         * builtins.c (expand_movstr): Use a temporary pseudo instead
14051         of target even when target is not NULL and not const0_rtx, but
14052         fails movstr predicate.
14053         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
14054
14055 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14056
14057         * final.c (rest_of_clean_state): Use %m in errors instead of
14058         strerror (errno).
14059         * gengtype.c (read_input_list, close_output_files): Use xstrerror
14060         instead of strerror.
14061         * toplev.c (process_options): Use %m in errors instead of strerror
14062         (errno).
14063         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
14064         (errno).
14065
14066 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
14067
14068         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
14069         (ix86_canonical_va_list_type): Make static.  Add declaration.
14070         (ix86_enum_va_list): Make static.  Reindent.
14071         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
14072         (ix86_canonical_va_list_type): Ditto.
14073         (ix86_enum_va_list): Ditto.
14074
14075 2010-05-28  Richard Guenther  <rguenther@suse.de>
14076
14077         * lto-wrapper.c (run_gcc): With -save-temps generate a
14078         user-visible ltrans filename.  Fixup ltrans unit numbering.
14079
14080 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
14081
14082         * c-common.c (c_common_nodes_and_builtins): Replace use
14083         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
14084         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
14085         to ix86_enum_va_list.
14086         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
14087         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
14088         (TARGET_ENUM_VA_LIST_P): Add hook description.
14089         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
14090         * target.h (gcc_target): Add enum_va_list hook.
14091
14092         PR bootstrap/44299
14093         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
14094         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
14095         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
14096
14097 2010-05-28  Alan Modra  <amodra@gmail.com>
14098
14099         PR target/44266
14100         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
14101         emit_library_call machinery to set up __tls_get_addr calls.
14102
14103 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14104
14105         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
14106
14107 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
14108
14109         Revert fix for PR c++/44188
14110         * c-common.c (is_typedef_decl): Revert the moving of  this
14111         definition ...
14112         * tree.c (is_typedef_decl): ... here.
14113         (typdef_variant_p): Revert the moving of this  definition
14114         here from gcc/cp/tree.c.
14115         * c-common.h (is_typedef_decl): Revert the moving of this
14116         declaration ...
14117         * tree.h (is_typedef_decl): ... here.
14118         (typedef_variant_p): Revert the moving of this  declaration here
14119         from gcc/cp/cp-tree.h
14120         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
14121         (gen_tagged_type_die): Revert the splitting out of ...
14122         (gen_type_die_with_usage): ... this function. Revert the anonymous
14123         tagged type handling.
14124         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
14125         typedefs naming anonymous tagged types.
14126
14127 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14128
14129         * config/rs6000/rs6000-modes.def (PSImode): Delete.
14130
14131 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
14132
14133         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
14134         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
14135         throughout.
14136         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
14137         "xer" to "ca".
14138         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
14139         XER_REGS to CA_REGS throughout.
14140         * config/rs6000/rs6000.h: Same.
14141         (ADDITIONAL_REGISTER_NAMES): Add "xer".
14142         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
14143         that mode_iterator "P" is the size for arithmetic carries as well.
14144         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
14145
14146 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
14147
14148         PR bootstrap/44255
14149         * combine.c (struct rtx_subst_pair): Define unconditionally.
14150         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
14151         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
14152         Call make_compound_operation on pair->to.
14153         (propagate_for_debug): Don't call make_compound_operation here.
14154         Always use simplify_replace_fn_rtx.
14155
14156 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
14157
14158         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
14159         * config/xtensa/xtensa.c (override_options): Check
14160           TARGET_FORCE_NO_PIC and set flag_pic.
14161         * config/xtensa/xtensa.opt: Document -mforce-no-pic
14162
14163 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14164
14165         PR bootstrap/44299
14166         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
14167         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
14168
14169 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14170
14171         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
14172         toplev.h.
14173         * diagnostic.c: Don't include toplev.h.
14174         (progname): Define.  Moved from toplev.c.
14175         (seen_error): New function.
14176         * diagnostic.h: Include diagnostic-core.h.
14177         (diagnostic_t, emit_diagnostic): Don't declare here.
14178         * toplev.c (progname): Move to toplev.c.
14179         (emit_debug_global_declarations, compile_file, finalize,
14180         do_compile, toplev_main): Use seen_error.
14181         * toplev.h: Include diagnostic-core.h.
14182         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
14183         internal_error, warning, warning_at, error, error_n, error_at,
14184         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
14185         verbatim, fnotice, progname): Move to diagnostic-core.h.
14186         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
14187         (expand_builtin_expect): Use seen_error.
14188         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
14189         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
14190         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
14191         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
14192         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
14193         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
14194         errorcount for errors.
14195         * c-opts.c (c_common_finish): Use seen_error.
14196         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14197         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
14198         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
14199         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
14200         (get_coverage_counts): Use seen_error.
14201         * dwarf2out.c (dwarf2out_finish): Use seen_error.
14202         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
14203         gimplify_body): Use seen_error.
14204         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
14205         * ipa-pure-const.c (gate_pure_const): Use seen_error.
14206         * ipa-reference.c (gate_reference): Use seen_error.
14207         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
14208         * lambda-code.c: Include diagnostic-core.h instead of
14209         diagnostic.h.
14210         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
14211         * lto-compress.c: Include diagnostic-core.h instead of
14212         diagnostic.h.
14213         * lto-section-in.c: Include diagnostic-core.h instead of
14214         diagnostic.h.
14215         * lto-streamer-out.c: Include diagnostic-core.h instead of
14216         diagnostic.h.
14217         * lto-streamer.c: Include diagnostic-core.h instead of
14218         diagnostic.h.
14219         (gate_lto_out): Use seen_error.
14220         * matrix-reorg.c: Include diagnostic-core.h instead of
14221         diagnostic.h.
14222         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
14223         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
14224         (gate_expand_omp, lower_omp_1): Use seen_error.
14225         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
14226         (rest_of_decl_compilation, rest_of_type_compilation,
14227         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
14228         * tree-cfg.c (label_to_block_fn): Use seen_error.
14229         * tree-inline.c (optimize_inline_calls): Use seen_error.
14230         * tree-mudflap.c (mudflap_finish_file): Use
14231         seen_error.
14232         * tree-optimize.c (gate_all_optimizations,
14233         gate_all_early_local_passes, gate_all_early_optimizations): Use
14234         seen_error.
14235         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
14236         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
14237         (varpool_remove_unreferenced_decls,
14238         varpool_assemble_pending_decls): Use seen_error.
14239         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
14240         (TOPLEV_H, DIAGNOSTIC_H): Update.
14241         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
14242         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
14243         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
14244         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
14245         coverage.o, lambda-code.o): Update dependencies.
14246
14247 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
14248
14249         PR c++/44188
14250         * c-common.c (is_typedef_decl): Move this definition ...
14251         * tree.c (is_typedef_decl): ... here.
14252         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
14253         * c-common.h (is_typedef_decl): Move this declaration ...
14254         * tree.h (is_typedef_decl): ... here.
14255         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
14256         * dwarf2out.c (is_naming_typedef_decl): New function.
14257         (gen_tagged_type_die): Split out of ...
14258         (gen_type_die_with_usage): ... this function. When an anonymous
14259         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
14260         is emitted for the typedef.
14261         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
14262         anonymous tagged types.
14263
14264 2010-05-27  Jason Merrill  <jason@redhat.com>
14265
14266         * print-tree.c (debug_vec_tree): New fn.
14267         (print_vec_tree): New fn.
14268         * tree.h: Declare them.
14269         * gdbinit.in (pvt): New command.
14270
14271         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
14272
14273         * gdbinit.in (pdd): New command.
14274
14275 2010-05-27  Jan Hubicka  <jh@suse.cz>
14276
14277         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
14278         (update_caller_keys): Return early if there are no callers;
14279         only update fibheap when decresing the key.
14280         (update_callee_keys): Avoid recursion.
14281         (decide_inlining_of_small_functions): When badness does not match;
14282         re-insert into fibheap.
14283
14284 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
14285
14286         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
14287         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
14288         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
14289         (ALL_HOST_OBJS): Now a union of the above two.
14290         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
14291         all files in ALL_HOST_FRONTEND_OBJS.
14292         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
14293
14294         * c-common.c: Pretend to be a backend file by undefining
14295         IN_GCC_FRONTEND (still need rtl.h here).
14296
14297 2010-05-27  Jan Hubicka  <jh@suse.cz>
14298
14299         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
14300         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
14301
14302 2010-05-27  Jan Hubicka  <jh@suse.cz>
14303
14304         * sched-ebb.c: Rename struct deps to struct deps_desc.
14305         * ddg.c: Likewise.
14306         * sel-sched-ir.c: Likewise.
14307         * sched-deps.c: Likewise.
14308         * sched-int.h: Likewise.
14309         * sched-rgn.c: Likewise.
14310
14311 2010-05-27  Jon Beniston  <jon@beniston.com>
14312
14313         PR 43726
14314         * config/lm32/lm32.h: Remove definition of
14315         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
14316
14317 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14318
14319         PR lto/44230
14320         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
14321
14322 2010-05-27  Richard Guenther  <rguenther@suse.de>
14323
14324         PR tree-optimization/44284
14325         * tree-vect-stmts.c (vectorizable_assignment): Handle
14326         sign-changing conversions as simple copy.
14327
14328 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14329
14330         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
14331         Bionic C library.
14332         (__gthread_active_p): Check for pthread_create if compiling against
14333         Bionic C library.
14334
14335 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14336
14337         Support compilation for Android platform.  Reimplement -mandroid.
14338
14339         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
14340         (*android*): Set ANDROID_DEFAULT.
14341         (arm*-*-linux*): Include linux-android.h.
14342         (arm*-*-eabi*): Don't include previous -mandroid implementation.
14343         * config/arm/eabi.h: Remove, move Android-specific parts ...
14344         * config/linux-android.h: ... here.  New file.
14345         * config/arm/eabi.opt: Rename to ...
14346         * config/linux-android.opt: ... this.
14347         (mandroid): Allow -mno-android option.  Initialize based on
14348         ANDROID_DEFAULT.
14349         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
14350         Move logic to corresponding LINUX_TARGET_* macros.
14351         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
14352         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
14353         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
14354         Android definitions.
14355         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
14356         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
14357         Document.
14358
14359 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14360
14361         Add support for Bionic C library
14362
14363         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
14364         macro.
14365         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
14366         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
14367
14368         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
14369         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
14370         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
14371         to support multiple C libraries.  Handle Bionic.
14372         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
14373         (BIONIC_DYNAMIC_LINKER64): Define.
14374         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
14375         Update.
14376         (TARGET_HAS_SINCOS): Enable for Bionic.
14377
14378         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
14379         the last option specified on command line take effect.
14380         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
14381         (mbionic): New.
14382         (mglibc, muclibc): Update.
14383
14384         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
14385         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
14386         DEFAULT_LIBC.
14387
14388         * doc/invoke.texi (-mglibc, -muclibc): Update.
14389         (-mbionic): Document.
14390
14391 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14392
14393         * c-common.h (c_register_addr_space): Add prototype.
14394         (ADDR_SPACE_KEYWORD): Remove.
14395         * c-common.c (c_register_addr_space): New function.
14396         (c_addr_space_name): Reimplement.
14397         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
14398
14399         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
14400         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
14401
14402         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
14403         Remove TARGET_ADDR_SPACE_KEYWORDS.
14404
14405 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14406
14407         * input.c: New file.
14408         * input.h (main_input_filename): Move declaration to toplev.h.
14409         * toplev.c (input_location, line_table): Move to input.c
14410         * toplev.h (main_input_filename): Move declaration from input.h.
14411         * tree.c (expand_location): Move to input.c.
14412         * Makefile.in (OBJS-common): Add input.o.
14413         (input.o): Add dependencies.
14414
14415 2010-05-27  Richard Guenther  <rguenther@suse.de>
14416
14417         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
14418         for non-existant files.
14419         (fork_execute): Mark args_name file as deleted.
14420
14421 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14422
14423         PR bootstrp/44287
14424         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
14425         (narrow_signed_type): Likewise.
14426
14427 2010-05-26  Jan Hubicka  <jh@suse.cz>
14428
14429         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
14430         edge only when checking is enabled; check using former_clone_of;
14431         check inline clones too.
14432         (cgraph_materialize_clone): Record former_clone_of pointer.
14433         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
14434         combining redirections; dump args_to_skip bitmap
14435         (cgraph_materialize_all_clones): Do no redirection here.
14436         * ipa-inline.c (inline_transform): Do redirection here.
14437         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
14438         cheking only).
14439
14440 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14441
14442         * config/avr/avr-c.c: Do not include regs.h.
14443         Include cpplib.h for cpp_define and tree.h for c-common.h.
14444         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
14445         * config/avr/t-avr: Fix dependencies for avr-c.o.
14446
14447 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14448
14449         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
14450         string instead of SYMBOL_REF rtx.
14451         * rtl.h (set_stack_check_libfunc): Move prototype from here...
14452         * libfuncs.h: ...to here.  Adjust for explow.c change.
14453
14454 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14455
14456         * pretty-print.c: Don't include ggc.h.
14457         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
14458         (identifier_to_locale): Use them for allocation.
14459         * pretty-print.h (identifier_to_locale_alloc,
14460         identifier_to_locale_free): Declare.
14461         * toplev.c (alloc_for_identifier_to_locale): New.
14462         (general_init): Set identifier_to_locale_alloc and
14463         identifier_to_locale_free.
14464         * Makefile.in (pretty-print.o): Update dependencies.
14465
14466 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14467
14468         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
14469         pointer types if they have different alignment or mode.
14470
14471 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
14472
14473         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14474         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14475         * config/sparc/sparc-protos.h (function_value): Remove declaration.
14476         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
14477         sparc_function_value_regno_p): New functions.
14478         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14479         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14480         (function_value): Rename to...
14481         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
14482         argument to 'outgoing'.
14483         (function_arg_record_value, function_arg_union_value,
14484         function_arg_vector_value): Update comment.
14485
14486 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14487
14488         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
14489         (fde_needed_for_eh_p): New predicate.
14490         (output_call_frame_info): Use it throughout to decide whether FDEs
14491         are needed for EH purpose.
14492         (dwarf2out_begin_prologue): Reorder assignments.
14493
14494 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14495
14496         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
14497         special case loop->header.
14498         (is_predicated): New.
14499         (if_convertible_loop_p): Call it.
14500
14501 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14502
14503         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
14504         iterator in parameter.  Do not generate code during the analysis.
14505         (tree_if_convert_cond_stmt): Removed.
14506         (tree_if_convert_stmt): Removed.
14507         (predicate_bbs): New.
14508         (if_convertible_loop_p): Call predicate_bbs.
14509         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
14510         now contains all the analysis part.
14511
14512 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14513
14514         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
14515         statements in the analysis part.
14516         (tree_if_convert_stmt): Update comment.
14517         (remove_conditions_and_labels): New.
14518         (combine_blocks): Call remove_conditions_and_labels.
14519         (tree_if_conversion): Update comment.
14520
14521 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14522
14523         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
14524         than 2 predecessors or more than 2 successors.
14525
14526 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14527
14528         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
14529         of loops in which the data dependence analysis fails.
14530
14531 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14532
14533         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
14534         CDI_POST_DOMINATORS.
14535         (tree_if_conversion): Same.
14536
14537 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14538
14539         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
14540
14541 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14542
14543         * tree-if-conv.c: Update copyright years.  Fix comments.
14544         Fix indentation.
14545
14546 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
14547
14548         * builtin-types.def (BT_INT128): New primitive type.
14549         (BT_UINT128): Likewise.
14550         * c-common.c (c_common_r): Add __int128 keyword.
14551         (c_common_type_for_size): Handle __int128.
14552         (c_common_type_for_mode): Likewise.
14553         (c_common_signed_or_unsigned_type): Likewise.
14554         (c_common_nodes_and_builtins): Add builtin type
14555         if target supports 128-bit integer scalar.
14556         * c-common.h (enum rid): Add RID_INT128.
14557         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
14558         if target supports 128-bit integer scalar.
14559         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
14560         (finish_declspecs): Likewise.
14561         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
14562         (c_token_starts_declspecs): Likewise.
14563         (c_parser_declspecs): Likewise.
14564         (c_parser_attributes): Likewise.
14565         (c_parser_objc_selector): Likewise.
14566         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
14567         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
14568         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
14569         * tree.c (make_or_reuse_type): Likewise.
14570         (make_unsigned_type): Likewise.
14571         (build_common_tree_nodes_2): Likewise.
14572         * tree.h (enum integer_type_kind): Add itk_int128 and
14573         itk_unsigned_int128.
14574         (int128_integer_type_node): New define.
14575         (int128_unsigned_type_node): New define.
14576         * doc/extend.texi: Add documentation about __int128 type.
14577
14578 2010-05-26  Richard Guenther  <rguenther@suse.de>
14579
14580         * tree-ssa-sccvn.c (copy_nary): Adjust.
14581         (copy_phis): Rename to ...
14582         (copy_phi): ... this.  Adjust.
14583         (copy_references): Rename to ...
14584         (copy_reference): ... this.  Adjust.
14585         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
14586         result into the valid table.
14587
14588 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14589
14590         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
14591         insn-config.h, insn-codes.h, recog.h, and optabs.h.
14592
14593 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14594
14595         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
14596
14597 2010-05-26  Richard Guenther  <rguenther@suse.de>
14598
14599         * opts.c (common_handle_option): Handle OPT_Ofast.
14600
14601 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14602
14603         * diagnostic.c: Don't include opts.h.
14604         (permissive_error_option): Define.
14605         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
14606         for classify_diagnostic.  Don't use memset for
14607         classify_diagnostic.  Initialize new and recently added fields.
14608         (diagnostic_classify_diagnostic): Use context->n_opts instead of
14609         N_OPTS.
14610         (diagnostic_report_diagnostic): Pass context parameter to
14611         diagnostic_report_warnings_p.  Use option_enabled and option_name
14612         hooks from context.
14613         (emit_diagnostic): Use permissive_error_option.
14614         (permerror): Likewise.
14615         * diagnostic.h: Don't include options.h.
14616         (struct diagnostic_context): Add n_opts, opt_permissive,
14617         inhibit_warnings, warn_system_headers, option_enabled and
14618         option_name fields.  Change classify_diagnostic to a pointer.
14619         * opts-diagnostic.h: New file.
14620         * opts.c: Include opts-diagnostic.h.
14621         (common_handle_option): Set global_dc fields for -Wfatal-errors,
14622         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
14623         (option_name): New function.
14624         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
14625         (c_common_handle_option): Set global_dc->permissive for
14626         -fpermissive.
14627         * c-common.c (c_cpp_error): Save and restore
14628         global_dc->warn_system_headers, not variable warn_system_headers.
14629         * toplev.c: Include opts-diagnostic.h.
14630         (general_init): Update call to diagnostic_initialize.  Set
14631         global_dc->show_column, global_dc->option_enabled and
14632         global_dc->option_name.
14633         (process_options): Don't set global_dc fields here.
14634         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
14635         (diagnostic.o, opts.o, toplev.o): Update dependencies.
14636
14637 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14638
14639         * config/picochip/picochip.md (movsi): Split a movsi from a
14640         const after reload.
14641
14642 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14643
14644         * ggc-zone.c: Update copyright year.
14645         (poison_region): Mark memory for Valgrind as undefined before
14646         memset () call and inaccessible afterwards.
14647         (ggc_pch_total_size): Change type of i to int.
14648
14649 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14650
14651         * ggc-common.c (ggc_free_overhead): Allow empty slot.
14652
14653 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14654
14655         * ggc-common.c: Update copyright year.
14656         (ggc_rlimit_bound): Remove prototype.  Compile only if
14657         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
14658         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
14659         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
14660         (ggc_min_heapsize_heuristic): Likewise.
14661
14662 2010-05-26  Richard Guenther  <rguenther@suse.de>
14663
14664         PR rtl-optimization/44164
14665         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
14666         no-common access-path disambiguation.
14667         (indirect_ref_may_alias_decl_p): Adjust.
14668         (indirect_refs_may_alias_p): Likewise.
14669         (refs_may_alias_p_1): Likewise.
14670
14671 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14672
14673         * c-typeck.c: Do not include expr.h.
14674
14675 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14676
14677         * rtl.h (decl_default_tls_model): Move prototype from here...
14678         * output.h: ...to here.
14679         * c-decl.c: Do not include rtl.h.
14680         * c-pragma.c: Likewise.
14681         * c-parser.c: Likewise.
14682         * c-gimplify.c: Likewise.  And also not hard-reg-set.
14683         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
14684         FIXME note for it.  Add a FIXME note for expr.h.
14685         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
14686         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
14687         defined.
14688
14689 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
14690
14691         PR target/44199
14692         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
14693         or total_size is larger than red zone size for non-V4 ABI, emit a
14694         stack_tie resp. frame_tie insn before stack pointer restore.
14695         * config/rs6000/rs6000.md (frame_tie): New insn.
14696
14697 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14698
14699         * function.h (struct function): Add can_throw_non_call_exceptions bit.
14700         * lto-streamer-in.c (input_function): Stream it in.
14701         * lto-streamer-out.c (output_function): Stream it out.
14702         * function.c (allocate_struct_function): Set it.
14703         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
14704         for flag_non_call_exceptions.
14705         * cfgbuild.c (control_flow_insn_p): Likewise.
14706         (make_edges): Likewise.
14707         * cfgexpand.c (expand_stack_alignment): Likewise.
14708         * combine.c (distribute_notes): Likewise.
14709         * cse.c (cse_extended_basic_block): Likewise.
14710         * except.c (insn_could_throw_p): Likewise.
14711         * gcse.c (simple_mem): Likewise.
14712         * ipa-pure-const.c (check_call): Likewise.
14713         (check_stmt ): Likewise.
14714         * lower-subreg.c (lower-subreg.c): Likewise.
14715         * optabs.c (emit_libcall_block): Likewise.
14716         (prepare_cmp_insn): Likewise.
14717         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
14718         * postreload.c (rest_of_handle_postreload): Likewise.
14719         * reload1.c (reload_as_needed): Likewise.
14720         (emit_input_reload_insns): Likewise.
14721         (emit_output_reload_insns): Likewise.
14722         (fixup_abnormal_edges): Likewise.
14723         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
14724         * store-motion.c (find_moveable_store): Likewise.
14725         * tree-eh.c (stmt_could_throw_p): Likewise.
14726         (tree_could_throw_p): Likewise.
14727         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14728         * config/arm/arm.c (arm_expand_prologue): Likewise.
14729         (thumb1_expand_prologue): Likewise.
14730         * config/rx/rx.md (cbranchsf4): Likewise.
14731         (cmpsf): Likewise.
14732         * config/s390/s390.c (s390_emit_prologue): Likewise.
14733         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
14734         (inline_forbidden_into_p): New predicate.
14735         (expand_call_inline): Use it to forbid inlining.
14736         (tree_can_inline_p): Likewise.
14737
14738 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
14739
14740         * config/i386/i386-c.c: Do not include rtl.h.
14741         * config/i386/t-i386: Update dependencies.
14742
14743 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
14744
14745         * attribs.c: Do not include rtl.h.
14746         * Makefile.in: Update dependencies.
14747
14748 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
14749
14750         * double-int.h (double_int_and): New.
14751         * combine.c (try_combine): Clean up, use double_int_* and
14752         immed_double_int_const functions.
14753
14754 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14755
14756         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
14757         stderr to /dev/null instead of grep -q.
14758         * configure: Regenerate.
14759
14760 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
14761
14762         * Makefile.in (EXCEPT_H): Fix typo.
14763
14764 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
14765
14766         * ira-build.c (update_conflict_hard_reg_costs): New.
14767         (ira_build): Call update_conflict_hard_reg_costs.
14768
14769 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
14770
14771         PR debug/41371
14772         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
14773         ENABLE_CHECKING.
14774         (intersect_loc_chains): Walk the s2var's loc_chain together
14775         with s1node chain as long as the locations are equal, don't
14776         call find_loc_in_1pdv in that case.
14777
14778         PR debug/42801
14779         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
14780         (copy_bind_expr): ... instead of here.
14781         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
14782         if the block hasn't been remapped.
14783         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
14784         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
14785
14786 2010-05-25  Richard Guenther  <rguenther@suse.de>
14787
14788         PR middle-end/44069
14789         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
14790         out-of-bounds array accesses.
14791
14792 2010-05-25  Richard Guenther  <rguenther@suse.de>
14793
14794         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
14795         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
14796         (run_gcc): Re-organize to make cleanup easier.
14797
14798 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14799
14800         * config/s390/s390.c (optimization_options): Fix and move the
14801         flag_prefetch_loop_arrays override ...
14802         (override_options): ... here.
14803
14804 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
14805
14806         * diagnostic.c: Don't include plugin.h.
14807         (diagnostic_report_diagnostic): Don't handle plugins specially
14808         here.  Pass context to internal_error callback.
14809         * diagnostic.h (struct diagnostic_context): Add context parameter
14810         to internal_error callback.
14811         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
14812         * plugin.h (struct diagnostic_context): Declare.
14813         (warn_if_plugins, plugins_internal_error_function): Declare.
14814         * toplev.c (general_init): Set global_dc->internal_error.
14815         * Makefile.in (diagnostic.o): Update dependencies.
14816
14817 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
14818
14819         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
14820         * config/rs6000/t-darwin64: New.
14821         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
14822         build crt2.
14823
14824 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
14825
14826         PR 44203
14827         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
14828         match the original (and intended) behaviour before r159557.  This
14829         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
14830         in two ways.
14831
14832 2010-05-25  Richard Guenther  <rguenther@suse.de>
14833
14834         * doc/invoke.texi: Document -Ofast.
14835         * target.h (struct gcc_target): Add handle_ofast.
14836         * target-def.h (TARGET_HANDLE_OFAST): Add.
14837         (TARGET_INITIALIZER): Adjust.
14838         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
14839         * common.opt (Ofast): Add.
14840
14841 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
14842
14843         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
14844         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
14845
14846 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
14847
14848         PR target/43610
14849         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
14850         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
14851         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
14852         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
14853
14854 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
14855
14856         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
14857         DW_OP_minus with negated offset instead of DW_OP_plus.
14858         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
14859
14860 2010-05-25  Wei Guozhi  <carrot@google.com>
14861
14862         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
14863         tst instruction and a new alternative.
14864         * config/arm/constraints.md (Pu): New constraint.
14865
14866 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
14867
14868         * function.c (assign_stack_local_1): Initialize variable
14869         to avoid warning when bootstrapping at -O3.
14870
14871 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
14872
14873         * configure.ac (all_lang_makefiles): Remove everything related to it.
14874         * configure: Regenerate.
14875         * Makefile.in: Fix reference to ada Make-lang.in.
14876         Remove support for LANG_MAKEFILES.
14877
14878 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
14879             Sandra Loosemore  <sandra@codesourcery.com>
14880
14881         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
14882         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
14883         description.  Add arm_neon_fp16_ok.
14884         (Add Options): Add arm_neon and arm_neon_fp16.
14885
14886 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
14887
14888         * diagnostic.c: Don't include flags.h.
14889         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
14890         context parameters.  Check flags in the context passed as a parameter.
14891         (diagnostic_build_prefix): Add context parameter.  Check
14892         show_column flag in context.
14893         (diagnostic_action_after_output): Check fatal_errors flag in context.
14894         (diagnostic_report_current_module): Check show_column flag in context.
14895         (default_diagnostic_starter): Update call to
14896         diagnostic_build_prefix.
14897         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
14898         (emit_diagnostic): Pass context to permissive_error_kind.
14899         (permerror): Pass context to permissive_error_kind.
14900         * diagnostic.h (struct diagnostic_context): Add show_column,
14901         pedantic_errors, permissive and fatal_errors fields.
14902         (diagnostic_build_prefix): Update prototype.
14903         * langhooks.c
14904         * toplev.c (process_options): Set flags in global_dc from
14905         flag_show_column, flag_pedantic_errors, flag_permissive,
14906         flag_fatal_errors.
14907         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
14908         to diagnostic_build_prefix.
14909         * Makefile.in (diagnostic.o): Update dependencies.
14910
14911 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14912
14913         * config/i386/ia32intrin.h (__crc32q): Define only if
14914         __SSE4_2__ is defined.
14915
14916 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
14917
14918         PR target/44132
14919         PR middle-end/43602
14920         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
14921         DECL_VISIBILITY_SPECIFIED.
14922         (emutls_decl): Set DECL_PRESERVE_P and copy
14923         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
14924         (emutls_finalize_control_var): New callback.
14925         (emutls_finish): Finalize emutls control variables.
14926         * toplev.c (compile_file): Move the call to emutls_finish ()
14927         before varpool_assemble_pending_decls ().
14928
14929 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
14930
14931         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
14932         added to the preprocessor condition.
14933
14934 2010-05-24  Paul Brook  <paul@codesourcery.com>
14935
14936         * gengtype-lex.l: Add HARD_REG_SET.
14937         * expr.c (expand_expr_real_1): Record writes to hard registers.
14938         * function.c (rtl_data): Add asm_clobbers.
14939         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
14940         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
14941         Use crtl->asm_clobbers.
14942
14943 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14944
14945         * doc/makefile.texi (Makefile): Mention stages 'profile'
14946         and 'feedback' for profiledbootstrap.
14947
14948 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14949
14950         PR target/44245
14951         * config/i386/i386.c (def_builtin): Properly check
14952         OPTION_MASK_ISA_64BIT.
14953
14954 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
14955
14956         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
14957         typedefs with different but compatible types.  Allow duplicate
14958         typedefs with the same type except for pedantic non-C1X, but give
14959         warning for variably modified types.
14960         * c-typeck.c (tagged_types_tu_compatible_p,
14961         function_types_compatible_p, type_lists_compatible_p,
14962         comptypes_internal): Add parameter different_types_p; set
14963         *different_types_p for different but compatible types.  All
14964         callers changed.
14965         (comptypes_check_different_types): New.
14966         * c-tree.h (comptypes_check_different_types): Declare.
14967
14968 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
14969
14970         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
14971         * jump.c: Include basic-block.h.
14972         * profile.c: Likewise.
14973         * tree-profile.c: Likewise.
14974         * coverage.c: Likewise.
14975         * basic-block.h (optimize_function_for_size_p): Move to function.h.
14976         (optimize_function_for_speed_p): Likewise.
14977         * function.h (optimize_function_for_size_p,
14978         optimize_function_for_speed_p): Moved here from basic-block.h.
14979         * Makefile.in: Update dependencies.
14980
14981 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14982
14983         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
14984         before calling make; allow override through $MAKE.
14985         * doc/invoke.texi (Optimize Options): Document override.
14986
14987 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
14988
14989         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
14990         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14991         (rs6000_mode_dependent_address_ptr): Make static.
14992         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14993         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
14994         Remove.
14995
14996 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
14997
14998         PR target/43869
14999         * config/i386/i386.c: Make sure that the correct regparm is passed.
15000
15001 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15002
15003         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
15004         * sbitmap.c: ...to here to internalize sbitmap element access.
15005         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
15006         Explain why basic-block.h is included.
15007         * function.h: Include tm.h for CUMULATIVE_ARGS.
15008         * Makefile.in: Update dependencies.
15009
15010 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15011
15012         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
15013         New core types.
15014         * sbitmap.h (struct sbitmap_def): Do not typedef here.
15015         * sbitmap.c: Include sbitmap.h.
15016         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
15017         hard-reg-set.h.  Split everything related to regsets out from here...
15018         * regset.h: ...to here.  New file.
15019         * df.h: Include regset.h and sbitmap.h.
15020         * tree-flow.h: Likewise.
15021         * cfgloop.h: Likewise.
15022         * except.h: Do not include sbitmap.h.  Include hashtab.h.
15023         * cgraph.h: Include vec.h and function.h.
15024         * reload.h (struct insn_chain): Change types of live_throughout
15025         and dead_or_set from regset_head to bitmap_head.
15026         (compute_use_by_pseudos): Be defined also if regset.h is not included.
15027         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
15028         spilled_regs from regset_head to bitmap_head to avoid dependency
15029         in regset.h.
15030         * sel-sched-ir.h: Include regset.h.
15031         * reload.c: Include df.h before reload.h.
15032         * caller-save.c: Likewise.
15033         * reload1.c: Likewise.
15034         * ira.c: Likewise.
15035         (mark_elimination): Update type of r to bitmap, consistent with
15036         DF_LR_IN.
15037         * dominance.c: Include bitmap.h.
15038         * modulo-sched.c: Include df.h.
15039         * cfganal.c: Include bitmap.h and sbitmap.h.
15040         * cfgbuild.c: Include sbitmap.h.
15041         * lcm.c: Include sbitmap.h.
15042         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
15043         * domwalk.c: Include sbitmap.h, exclude ggc.h.
15044         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
15045         * cselib.c: Include bitmap.h.
15046         * tree-optimize.c: Include regset.h.
15047         * stmt.c: Include bitmap.h.
15048         * Makefile.in: Update dependencies.
15049
15050 2010-05-22  Jan Hubicka  <jh@suse.cz>
15051
15052         * cgraph.h (struct varpool_node): Add same_comdat_group.
15053         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
15054         pointer.
15055         (output_varpool): Update call of lto_output_varpool_node.
15056         (input_varpool): Read same_comdat_group pointer.
15057         (input_varpool_1): Fixup same_comdat_group pointer.
15058         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
15059         group is needed, all are.
15060         * varpool.c (varpool_remove_node): Remove node from same comdat group
15061         linklist too.
15062         (varpool_analyze_pending_decls): Walk same comdat groups.
15063
15064 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15065
15066         * rtl.h (union rtunion_def): Remove rt_bit member.
15067         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
15068         * print-rtl (print_rtx): Do not print the member.
15069         * gengtype.c (adjust_field_rtx_def): Do not handle it.
15070         * gengenrtl.c (type_from_format): Likewise.
15071         (accessor_from_format): Likewise.
15072
15073 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
15074
15075         * dbgcnt.c: Include toplev.h instead of errors.h.
15076         * ira-emit.c: Don't include errors.h.
15077         * ira.c: Include toplev.h instead of errors.h.
15078         * lto-compress.c: Include toplev.h instead of errors.h.
15079         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
15080         ira.o, dbgcnt.o): Update dependencies.
15081
15082 2010-05-22  Richard Guenther  <rguenther@suse.de>
15083
15084         * gimple.c (gimple_types_compatible_p): Check type qualifications
15085         before merging pointer to complete and pointer to incomplete type.
15086         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
15087         we use our own resolution algorithm.  The gold linker plugin
15088         doesn't do the job we want it to do here.
15089
15090 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
15091
15092         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15093         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15094         (sparc_mode_dependent_address_p): New function.
15095
15096 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15097
15098         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
15099
15100         * timevar.c: Do not include any core headers.
15101         (timevar_print): De-i18n-ize.
15102         (print_time): Likewise.
15103         * timevar.h (timevar_push, timevar_pop): Make inline functions.
15104
15105 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
15106
15107         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
15108         langhooks-def.h.
15109         (diagnostic_initialize): Initialize x_data not last_function.
15110         (diagnostic_report_current_function): Move to tree-diagnostic.c.
15111         (default_diagnostic_starter): Call
15112         diagnostic_report_current_module not
15113         diagnostic_report_current_function.
15114         (diagnostic_report_diagnostic): Initialize x_data not
15115         abstract_origin.
15116         (verbatim): Likewise.
15117         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
15118         x_data.
15119         (struct diagnostic_context): Change last_function to x_data.
15120         (diagnostic_auxiliary_data): Replace with
15121         diagnostic_context_auxiliary_data and
15122         diagnostic_info_auxiliary_data.
15123         (diagnostic_last_function_changed, diagnostic_set_last_function,
15124         diagnostic_report_current_function): Move to tree-diagnostic.h.
15125         (print_declaration, dump_generic_node, print_generic_stmt,
15126         print_generic_stmt_indented, print_generic_expr,
15127         print_generic_decl, debug_c_tree, dump_omp_clauses,
15128         print_call_name, debug_generic_expr, debug_generic_stmt,
15129         debug_tree_chain, default_tree_printer): Move to
15130         tree-pretty-print.h.
15131         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
15132         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
15133         gimple-pretty-print.h.
15134         * pretty-print.c: Don't include tree.h
15135         (pp_base_format): Don't handle %K here.
15136         (pp_base_tree_identifier): Move to tree-pretty-print.c.
15137         * pretty-print.h (text_info): Change abstract_origin to x_data.
15138         (pp_tree_identifier, pp_unsupported_tree,
15139         pp_base_tree_identifier): Move to tree-pretty-print.h.
15140         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
15141         tree-pretty-print.h: New files.
15142         * tree-pretty-print.c: Include tree-pretty-print.h.
15143         (percent_K_format): New.  Moved from pretty-print.c.
15144         (pp_base_tree_identifier): Move from pretty-print.c.
15145         * c-objc-common.c: Include tree-pretty-print.h.
15146         (c_tree_printer): Handle %K here.
15147         * langhooks.c: Include tree-diagnostic.h.
15148         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
15149         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
15150         (default_tree_printer): Handle %K using percent_K_format.
15151         (general_init): Use default_tree_diagnostic_starter.
15152         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
15153         (free_lang_data): Use default_tree_diagnostic_starter.
15154         * c-pretty-print.c: Include tree-pretty-print.h.
15155         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15156         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15157         * dwarf2out.c: Include tree-pretty-print.h.
15158         * except.c: Include tree-pretty-print.h.
15159         * gimple-pretty-print.c: Include tree-pretty-print.h and
15160         gimple-pretty-print.h.
15161         * gimplify.c: Include tree-pretty-print.h.
15162         * graphite-poly.c: Include tree-pretty-print.h and
15163         gimple-pretty-print.h.
15164         * ipa-cp.c: Include tree-pretty-print.h.
15165         * ipa-inline.c: Include gimple-pretty-print.h.
15166         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15167         * ipa-pure-const.c: Include gimple-pretty-print.h.
15168         * ipa-struct-reorg.c: Include tree-pretty-print.h and
15169         gimple-pretty-print.h.
15170         * ipa-type-escape.c: Include tree-pretty-print.h.
15171         * print-rtl.c: Include tree-pretty-print.h.
15172         * print-tree.c: Include gimple-pretty-print.h.
15173         * sese.c: Include tree-pretty-print.h.
15174         * tree-affine.c: Include tree-pretty-print.h.
15175         * tree-browser.c: Include tree-pretty-print.h.
15176         * tree-call-cdce.c: Include gimple-pretty-print.h.
15177         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
15178         * tree-chrec.c: Include tree-pretty-print.h.
15179         * tree-data-ref.c: Include tree-pretty-print.h and
15180         gimple-pretty-print.h.
15181         * tree-dfa.c: Include tree-pretty-print.h.
15182         * tree-if-conv.c: Include tree-pretty-print.h and
15183         gimple-pretty-print.h.
15184         * tree-inline.c: Include tree-pretty-print.h.
15185         * tree-into-ssa.c: Include tree-pretty-print.h and
15186         gimple-pretty-print.h.
15187         * tree-nrv.c: Include tree-pretty-print.h.
15188         * tree-object-size.c: Include tree-pretty-print.h and
15189         gimple-pretty-print.h.
15190         * tree-outof-ssa.c: Include tree-pretty-print.h and
15191         gimple-pretty-print.h.
15192         * tree-parloops.c: Include tree-pretty-print.h and
15193         gimple-pretty-print.h.
15194         * tree-predcom.c: Include tree-pretty-print.h and
15195         gimple-pretty-print.h.
15196         * tree-scalar-evolution.c: Include tree-pretty-print.h and
15197         gimple-pretty-print.h.
15198         * tree-sra.c: Include tree-pretty-print.h.
15199         * tree-ssa-address.c: Include tree-pretty-print.h.
15200         * tree-ssa-alias.c: Include tree-pretty-print.h.
15201         * tree-ssa-ccp.c: Include tree-pretty-print.h and
15202         gimple-pretty-print.h.
15203         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
15204         * tree-ssa-copy.c: Include tree-pretty-print.h and
15205         gimple-pretty-print.h.
15206         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
15207         * tree-ssa-dce.c: Include tree-pretty-print.h and
15208         gimple-pretty-print.h.
15209         * tree-ssa-dom.c: Include tree-pretty-print.h and
15210         gimple-pretty-print.h.
15211         * tree-ssa-dse.c: Include gimple-pretty-print.h.
15212         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
15213         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
15214         * tree-ssa-live.c: Include tree-pretty-print.h and
15215         gimple-pretty-print.h.
15216         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
15217         gimple-pretty-print.h.
15218         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
15219         gimple-pretty-print.h.
15220         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
15221         gimple-pretty-print.h.
15222         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
15223         gimple-pretty-print.h.
15224         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
15225         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
15226         * tree-ssa-operands.c: Include tree-pretty-print.h and
15227         gimple-pretty-print.h.
15228         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
15229         gimple-pretty-print.h.
15230         * tree-ssa-pre.c: Include tree-pretty-print.h and
15231         gimple-pretty-print.h.
15232         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
15233         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
15234         gimple-pretty-print.h.
15235         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
15236         gimple-pretty-print.h.
15237         * tree-ssa-sink.c: Include gimple-pretty-print.h.
15238         * tree-ssa-ter.c: Include tree-pretty-print.h and
15239         gimple-pretty-print.h.
15240         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
15241         * tree-ssa.c: Include tree-pretty-print.h and
15242         gimple-pretty-print.h.
15243         * tree-stdarg.c: Include gimple-pretty-print.h.
15244         * tree-switch-conversion.c: Include gimple-pretty-print.h.
15245         * tree-tailcall.c: Include tree-pretty-print.h and
15246         gimple-pretty-print.h.
15247         * tree-vect-data-refs.c: Include tree-pretty-print.h and
15248         gimple-pretty-print.h.
15249         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
15250         gimple-pretty-print.h.
15251         * tree-vect-loop.c: Include tree-pretty-print.h and
15252         gimple-pretty-print.h.
15253         * tree-vect-patterns.c: Include gimple-pretty-print.h.
15254         * tree-vect-slp.c: Include tree-pretty-print.h and
15255         gimple-pretty-print.h.
15256         * tree-vect-stmts.c: Include tree-pretty-print.h and
15257         gimple-pretty-print.h.
15258         * tree-vectorizer.c: Include tree-pretty-print.h.
15259         * tree-vrp.c: Include tree-pretty-print.h and
15260         gimple-pretty-print.h.
15261         * value-prof.c: Include tree-pretty-print.h and
15262         gimple-pretty-print.h.
15263         * var-tracking.c: Include tree-pretty-print.h.
15264         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
15265         (tree-diagnostic.o): New dependencies.
15266         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
15267         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
15268         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
15269         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
15270         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
15271         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
15272         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
15273         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
15274         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
15275         tree-ssa-address.o, tree-ssa-loop-niter.o,
15276         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
15277         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
15278         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
15279         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
15280         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
15281         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
15282         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
15283         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
15284         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
15285         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
15286         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
15287         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
15288         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
15289         tree-switch-conversion.o, var-tracking.o, value-prof.o,
15290         cfgexpand.o, pretty-print.o): Update dependencies.
15291
15292 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
15293
15294         * tree-ssa-structalias.c: Remove tm_p.h from include.
15295
15296 2010-05-21  Jeff Law  <law@redhat.com>
15297
15298         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
15299
15300 2010-05-21  Jason Merrill  <jason@redhat.com>
15301
15302         * tree-eh.c (cleanup_is_dead_in): New.
15303         (lower_try_finally): Don't generate a dead cleanup region.
15304         (lower_cleanup): Likewise.
15305
15306 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15307
15308         PR debug/44223
15309         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
15310         unchain each use from the cyclic next_regno_use chain first.
15311
15312 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15313
15314         * real: Do not include gmp.h, mpfr.h, and mpc.h.
15315         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
15316         (real_value_negate, real_value_abs): New prototypes.
15317         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
15318         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
15319         new include file for interface between MPFR and REAL_VALUE_TYPE.
15320         * real.c: Include realmpfr.h.
15321         (real_arithmetic2): Remove legacy function.
15322         (real_value_negate): New.
15323         (real_value_abs): New.
15324         (mfpr_from_real, real_from_mpfr): Move from here...
15325         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15326         * builtins.c: Include realmpfr.h.
15327         * fold-const.c: Include realmpfr.h.
15328         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
15329         (fold_negate_const): Likewise.
15330         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
15331         * toplev.c: Include realmpfr.h.
15332         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
15333         and real_value_negate.
15334         * fixed-value.c (check_real_for_fixed_mode): Likewise.
15335         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
15336         (vfp3_const_double_index): Likewise.
15337         (arm_print_operand): Likewise.
15338         * Makefile.in: Update dependencies.
15339
15340 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15341
15342         * config/s390/s390.c (override_options): Increase the default
15343         of max-completely-peel-times.
15344
15345 2010-05-21  Julian Brown  <julian@codesourcery.com>
15346             Mark Mitchell  <mark@codesourcery.com>
15347
15348         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
15349         sibling calls for Thumb-1.
15350         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
15351         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
15352         Thumb-2.
15353         (*call_insn, *call_value_insn): Don't use for Thumb-2.
15354         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
15355         for Thumb-2.
15356         (return): New expander.
15357         (*arm_return): New name for ARM return insn.
15358         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
15359
15360 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
15361
15362         * config.gcc (sparc64-*-rtems*): New target.
15363
15364 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15365
15366         * tree.c (build_function_decl_skip_args): Fix grammar.
15367         (build_function_type_list_1): Fix typos, adjust formatting.
15368
15369 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15370
15371         * tree.h: Include real.h and fixed-value.h as basic datatypes.
15372         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
15373         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
15374         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
15375         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
15376         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
15377         tree-pretty-print.c, tree-loop-distribution.c,
15378         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
15379         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
15380         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
15381         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
15382         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
15383         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
15384         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
15385         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
15386         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
15387         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
15388         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
15389         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
15390         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
15391         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
15392         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
15393         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
15394         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
15395         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
15396         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
15397         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
15398         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
15399         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
15400         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
15401         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
15402         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
15403         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
15404         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
15405         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
15406         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
15407         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
15408         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
15409         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
15410         config/score/score7.c, config/score/score.c, config/arm/arm.c,
15411         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
15412         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
15413         config/bfin/bfin.c: Clean up redundant includes.
15414         * Makefile.in: Update accordingly.
15415
15416 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15417
15418         PR middle-end/44204
15419         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
15420         statement has no arguments.
15421
15422 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
15423
15424         PR/44139
15425         * varasm.c (emutls_decl): Merge attributes to new decl.
15426
15427 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15428
15429         PR middle-end/44101
15430         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
15431         around the uniquized constructor if its type requires a conversion.
15432
15433 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15434
15435         PR debug/44205
15436         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
15437         at -O0 goto_locus of any of the incoming edges differs from
15438         goto_locus of outgoing edge, or gimple_location of any of the
15439         labels differs.
15440
15441 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
15442
15443         * ira.c (ira_non_ordered_class_hard_regs): Define.
15444         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
15445         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
15446         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
15447         cost of unaligned hard regs when allocating multi-reg pseudos.
15448
15449 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
15450
15451         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
15452         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
15453         for TARGET_NO_FLOAT.
15454         * config/mips/mips.c (mips_file_start): Expand conditional expression
15455         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
15456         (mips_override_options): Move -mno-float override -msoft-float and
15457         -mhard-float.
15458         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
15459         Condition(TARGET_SUPPORTS_NO_FLOAT).
15460         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
15461         __mips_no_float here.
15462         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
15463         (TARGET_SUPPORTS_NO_FLOAT): Define.
15464         * config/mips/sdemtk.opt: Delete.
15465
15466 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
15467
15468         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
15469
15470 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
15471
15472         PR target/43733
15473         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
15474         * configure: Regenerate.
15475         * config.in: Regenerate.
15476         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
15477         instead of sahf only for 64bit targets.
15478
15479 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15480
15481         PR debug/44178
15482         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
15483         setup_ref_regs for DEBUG_INSNs.
15484
15485 2010-05-20  Jan Hubicka  <jh@suse.cz>
15486
15487         PR middle-end/44197
15488         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
15489
15490 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15491
15492         PR bootstrap/43870
15493         * df-scan.c (df_ref_compare): Stabilize sort.
15494
15495 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15496
15497         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
15498         argument.  Don't use DW_OP_piece if offset is non-zero,
15499         put offset into second DW_OP_bit_piece argument.
15500         (dw_sra_loc_expr): Adjust callers.  For memory expressions
15501         compute offset.
15502
15503 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
15504
15505         PR target/44202
15506         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
15507         settings for 16-bit-constant "addo" alternative.
15508
15509 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
15510
15511         * config/mips/mips-dsp.md (add<DSPV:mode>3,
15512         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
15513
15514         PR target/43764
15515         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
15516         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
15517         Use it.
15518
15519 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
15520
15521         * diagnostic.c (FLOAT, FFS): Don't undefine.
15522         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
15523         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
15524         include ordering.
15525
15526 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15527
15528         * combine.c (propagate_for_debug): Call make_compound_operation
15529         on the source value.
15530         (try_combine): When implementing a split chosen by find_split_point,
15531         either copy i2src or set it to null.  Assert that i2src is not null
15532         before substituting into CALL_INSN_FUNCTION_USAGE.
15533
15534 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
15535
15536         * double-int.h (double_int_ior): New function.
15537         * tree.h (build_int_cst_wide_type): Remove.
15538         * tree.c (build_int_cst_wide_type): Remove.
15539         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
15540         of build_int_cst_wide_type.
15541         * stor-layout.c (set_sizetype): (Ditto.).
15542         * dojump.c (do_jump): Use build_int_cstu instead of
15543         build_int_cst_wide_type.
15544
15545 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15546
15547         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
15548         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
15549         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
15550         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
15551         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
15552         propagate the 'data' argument to copy_tree_r.
15553         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
15554         Propagate 'data' argument to walk_tree.
15555         (copy_if_shared): New function.
15556         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
15557         (unmark_visited): New function.
15558         (unshare_body): Call copy_if_shared instead of doing it manually.
15559         (unvisit_body): Call unmark_visited instead of doing it manually.
15560
15561 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
15562
15563         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
15564         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
15565         * hooks.c: Likewise.
15566         * target-def.h (TARGET_FOLD_BUILTIN): Define to
15567         hook_tree_tree_int_treep_bool_null.
15568         * target.h (struct gcc_target): Update signature of fold_builtin
15569         field.
15570         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
15571         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
15572         instead of the call expression.
15573         (fold_builtin_call_array): Pass n and argarray directly.
15574         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
15575         consing a list.
15576         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
15577         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
15578         `i' and use it in place of `arity'.
15579         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
15580         Dereference `args' directly.
15581         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
15582
15583 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15584
15585         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15586         3dnow, sse3, sse2.
15587         (Directives): Document optional dg-require-effective-target
15588         selector.
15589
15590 2010-05-19  Richard Guenther  <rguenther@suse.de>
15591
15592         PR lto/44196
15593         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
15594
15595 2010-05-19  Richard Guenther  <rguenther@suse.de>
15596
15597         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
15598         * common.opt (fwhopr=): New.
15599         * opts.c (common_handle_option): Handle OPT_fwhopr.
15600         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
15601         * collect2.c (main): Match -fwhopr*.
15602         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
15603         Execute ltrans stage in parallel when jobs is bigger than 1.
15604
15605 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15606
15607         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15608         pentiumpro on Solaris 8/x86 with Sun as.
15609         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
15610         hidden alias bug.
15611         (gcc_cv_as_ix86_quad): Check for .quad directive.
15612         * configure: Regenerate.
15613         * config.in: Regenerate.
15614         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
15615
15616 2010-05-19  Martin Jambor  <mjambor@suse.cz>
15617
15618         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
15619         also for indirect edges.  Actual printing moved...
15620         (ipa_print_node_jump_functions_for_edge): ...here.
15621         (ipa_compute_jump_functions): Renamed to
15622         ipa_compute_jump_functions_for_edge and made static.
15623         (ipa_compute_jump_functions): New function.
15624         (make_edge_direct_to_target): Check if the number of arguments on
15625         the newly direct edge is the same as the number of parametrs of
15626         the callee.
15627         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
15628         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
15629         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15630         analysis functions unconditionally, call the new
15631         ipa_analyze_params_uses on the node instead of every edge.
15632
15633 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
15634
15635         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
15636         to tree.
15637         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
15638         also checks for a constant int vs.  non-constant but
15639         loop-invariant steps.
15640         (find_or_create_group): Change the sort algorithm to only consider
15641         steps that are constant ints.
15642         (idx_analyze_ref): Adopt code to handle a tree instead of a
15643         HOST_WIDE_INT for step.
15644         (gather_memory_references_ref): Handle tree instead of int and be
15645         prepared to see a NULL_TREE.
15646         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
15647         prefetches if the step cannot be calculated at compile time.
15648         (issue_prefetch_ref): Issue prefetches for non-constant but
15649         loop-invariant steps.
15650
15651 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15652
15653         Revert:
15654         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15655
15656         * tree.h (build_call_list): Remove.
15657         * tree.c (build_call_list): Remove.
15658
15659 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15660
15661         * tree.h (build_call_list): Remove.
15662         * tree.c (build_call_list): Remove.
15663
15664 2010-05-18  Jan Hubicka  <jh@suse.cz>
15665
15666         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
15667
15668 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
15669
15670         PR rtl-optimization/43332
15671         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
15672
15673 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
15674
15675         * tree.h (build_int_cstu): Implement as static inline.
15676         * tree.c (build_int_cstu): Remove function.
15677         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
15678         sign extended.
15679
15680 2010-05-18  Richard Guenther  <rguenther@suse.de>
15681
15682         PR lto/44143
15683         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
15684         (debug): Initialize from -save-temps.
15685         (collect_execute): Print command-line when verbose.
15686         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
15687         for ltrans invocation.  Produce -dumpbase flag again.
15688         (process_args): Remove.
15689         (main): Simplify.
15690         * collect2.c (maybe_run_lto_and_relink): Only pass object
15691         files to lto-wrapper.
15692         * gcc.c (LINK_COMMAND_SPEC): Likewise.
15693
15694 2010-05-18  Jan Hubicka  <jh@suse.cz>
15695
15696         * opts.c (decode_options): Do not disable whopr at ipa_cp.
15697         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
15698
15699 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
15700
15701         PR lto/44184
15702         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
15703         in a GIMPLE_ASM.
15704         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
15705         in a GIMPLE_ASM.
15706
15707 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
15708
15709         PR debug/41371
15710         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
15711         rtx_equal_p inline.
15712
15713 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
15714
15715         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
15716         lto-macho as lto_binary_reader.
15717
15718         * darwin.c (darwin_asm_named_section): Do not add assembler comment
15719         after .section directive; just print it before the directive instead.
15720
15721 2010-05-17  Jan Hubicka  <jh@suse.cz>
15722
15723         * cgraph.c (cgraph_create_virtual_clone): Only check
15724         versionable_function_p when not in wpa and checking is enabled.
15725         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
15726         there are no more functions to materialize.
15727
15728 2010-05-17  Jan Hubicka  <jh@suse.cz>
15729
15730         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
15731         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
15732         New functions.
15733         (output_cgraph): Call output_cgraph_opt_summary.
15734         (input_cgrpah): Call input_cgraph_opt_summary.
15735         (output_cgraph_opt_summary_p, output_node_opt_summary,
15736         input_node_opt_summary, input_cgraph_opt_section): New functions.
15737         * lto-section-in.c (lto_section_name): Add cgraphopt.
15738         * tree-inline.c (tree_function_versioning): Handle parm_num.
15739         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
15740         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
15741
15742 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
15743
15744         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
15745         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
15746         the insn to prefetch ratio heuristic to loops with known trip count.
15747
15748 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
15749
15750         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
15751         (schedule_prefetches): Do not generate a prefetch if the unroll factor
15752         is far from what is required by the prefetch.
15753
15754 2010-05-17  Jan Hubicka  <jh@suse.cz>
15755
15756         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
15757         (ipcp_estimate_growth): Likewise.
15758         (ipcp_const_param_count): Likewise.
15759         (ipcp_insert_stage): Likewise.
15760         * ipa-prop.c (visit_load_for_mod_analysis): New function.
15761         (visit_store_addr_for_mod_analysis): Set used flag.
15762         (ipa_detect_param_modifications): Set used flag for SSE params;
15763         update use of walk_stmt_load_store_addr_ops.
15764         (ipa_print_node_params): Print used flag.
15765         (ipa_write_node_info): Stream used flag.
15766         (ipa_read_node_info): Likewise.
15767         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
15768         (ipa_is_param_used): New function.
15769         (lto_ipa_fixup_call_notes): Remove unused declaration.
15770
15771 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15772
15773         PR target/44074
15774         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
15775         * configure: Regenerate.
15776         * config.in: Regenerate.
15777         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
15778         !HAVE_AS_IX86_REP_LOCK_PREFIX.
15779         Don't emit whitespace.
15780         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
15781         (*rep_movsi): Likewise.
15782         (*rep_movsi_rex64): Likewise.
15783         (*rep_movqi): Likewise.
15784         (*rep_movqi_rex64): Likewise.
15785         (*rep_stosdi_rex64): Likewise.
15786         (*rep_stossi): Likewise.
15787         (*rep_stossi_rex64): Likewise.
15788         (*rep_stosqi): Likewise.
15789         (*rep_stosqi_rex64): Likewise.
15790         (*cmpstrnqi_nz_1): Use {%;} after repz.
15791         (*cmpstrnqi_nz_rex_1): Likewise.
15792         (*cmpstrnqi_1): Likewise.
15793         (*cmpstrnqi_rex_1): Likewise.
15794         (*strlenqi_1): Use {%;} after repnz.
15795         (*strlenqi_rex_1): Likewise.
15796         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
15797         (*sync_compare_and_swap<mode>): Likewise.
15798         (sync_double_compare_and_swap<mode>): Likewise.
15799         (*sync_double_compare_and_swapdi_pic): Likewise.
15800         (sync_old_add<mode>): Likewise.
15801         (sync_add<mode>): Likewise.
15802         (sync_sub<mode>): Likewise.
15803         (sync_<code><mode>): Likewise.
15804
15805 2010-05-17  Martin Jambor  <mjambor@suse.cz>
15806
15807         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
15808         otr_token and polymorphic.
15809         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
15810         (cgraph_clone_edge): Copy the above fields.
15811         * tree.c (get_binfo_at_offset): New function.
15812         * tree.h (get_binfo_at_offset): Declare.
15813         * ipa-prop.h (enum jump_func_type): Added known_type jump function
15814         type, reordered items, updated comments.
15815         (union jump_func_value): Added base_type field, reordered fields.
15816         (enum ipa_lattice_type): Moved down in the file.
15817         (struct ipa_param_descriptor): New field polymorphic.
15818         (ipa_is_param_polymorphic): New function.
15819         * ipa-prop.c: Include gimple.h and gimple-fold.h.
15820         (ipa_print_node_jump_functions): Print known type jump functions.
15821         (compute_complex_pass_through): Renamed to...
15822         (compute_complex_assign_jump_func): this.
15823         (compute_complex_ancestor_jump_func): New function.
15824         (compute_known_type_jump_func): Likewise.
15825         (compute_scalar_jump_functions): Create known type and complex ancestor
15826         jump functions.
15827         (ipa_note_param_call): New parameter polymorphic, set the corresponding
15828         flag in the call note accordingly.
15829         (ipa_analyze_call_uses): Renamed to...
15830         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
15831         variable var only in the block where it is used.
15832         (ipa_analyze_virtual_call_uses): New function.
15833         (ipa_analyze_call_uses): Likewise.
15834         (combine_known_type_and_ancestor_jfs): Likewise.
15835         (update_jump_functions_after_inlining): Implemented handling of a
15836         number of new jump function types combination.
15837         (print_edge_addition_message): Removed.
15838         (make_edge_direct_to_target): New function.
15839         (try_make_edge_direct_simple_call): Likewise.
15840         (try_make_edge_direct_virtual_call): Likewise.
15841         (update_call_notes_after_inlining): Renamed to...
15842         (update_indirect_edges_after_inlining): this.  Moved edge creation for
15843         indirect calls to try_make_edge_direct_simple_call, also calls
15844         try_make_edge_direct_virtual_call for virtual calls.
15845         (ipa_print_node_params): Changed the header message.
15846         (ipa_write_jump_function): Stream also known type jump functions.
15847         (ipa_read_jump_function): Likewise.
15848         (ipa_write_indirect_edge_info): Stream new fields in
15849         cgraph_indirect_call_info.
15850         (ipa_read_indirect_edge_info): Likewise.
15851         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
15852         GIMPLE_FOLD_H.
15853
15854 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15855
15856         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
15857
15858 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
15859
15860         * tree.h (CALL_EXPR_ARGS): Delete.
15861         (call_expr_arglist): Delete.
15862         * tree.c (call_expr_arglist): Delete.
15863         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
15864         targetm.fold_builtin.
15865         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
15866         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
15867         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
15868         arglist parameter.  Use CALL_EXPR_ARG.
15869         (picochip_expand_builtin_3op): Likewise.
15870         (picochip_expand_builtin_2opvoid): Likewise.
15871         (picochip_expand_array_get): Likewise.
15872         (picochip_expand_array_put): Likewise.
15873         (picochip_expand_array_testport): Likewise.
15874         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
15875         rather than arglist.
15876         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
15877         CALL_EXPR_ARGS.
15878         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
15879         than TREE_VALUE and TREE_CHAIN.
15880         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15881         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
15882         the arglist.
15883
15884 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
15885
15886         PR bootstrap/42347
15887         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
15888         to have no fallthru edge.
15889
15890         PR middle-end/44102
15891         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
15892         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
15893         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
15894         add BARRIER after previous bb if needed.
15895
15896 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
15897
15898         * tree.c (build_function_type_list_1): Remove bogus assert condition.
15899
15900 2010-05-17  Alan Modra  <amodra@gmail.com>
15901
15902         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
15903         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
15904         with copy_reg rtx param.
15905         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
15906         Correct cases where code for ABI_V4 did not initialise the reg
15907         used to access frame.  Also leave frame_reg_rtx as sp for large
15908         frames that save no regs.
15909
15910 2010-05-17  Martin Jambor  <mjambor@suse.cz>
15911
15912         PR middle-end/44133
15913         * tree-sra.c (create_access_replacement): New parameter rename, mark
15914         the replaement for renaming only when it is true.
15915         (get_access_replacement): Pass true in the rename parameter of
15916         create_access_replacement.
15917         (get_unrenamed_access_replacement): New function.
15918         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
15919         replacement declaration from it.
15920
15921 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
15922
15923         * function.c (try_fit_stack_local, add_frame_space): New static
15924         functions.
15925         (assign_stack_local_1): Use them.  Look for opportunities to use
15926         space previously wasted on alignment.
15927         * function.h (struct frame_space): New.
15928         (struct rtl_data): Add FRAME_SPACE_LIST member.
15929         * reload1.c (something_was_spilled): New static variable.
15930         (alter_reg): Set it.
15931         (reload): Test it in addition to testing if the frame size changed.
15932
15933 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
15934
15935         * config/s390/s390.c: Define sane prefetch settings and activate
15936         flag_prefetch_loop_arrays on -O3.
15937         * config/s390/s390.h: Declare that read can use write prefetch.
15938
15939 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
15940
15941         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
15942         build.
15943
15944 2010-05-16  Jan Hubicka  <jh@suse.cz>
15945
15946         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
15947         function body; do not check stdarg field of struct function.
15948
15949 2010-05-16  Jan Hubicka  <jh@suse.cz>
15950
15951         * cgraph.c (dump_cgraph_node): Dump versionable flag.
15952         * cgraph.h (cgraph_local_info): Add versionable flag.
15953         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
15954         (ipcp_versionable_function_p): Use it.
15955         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15956         versionable flag.
15957
15958 2010-05-16  Jan Hubicka  <jh@suse.cz>
15959
15960         * cgraph.c (cgraph_clone_node): Take decl argument and insert
15961         clone into hash when it is different from orig.
15962         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
15963         * cgraph.h (cgraph_clone_node): Update prototype.
15964         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
15965         (lto_cgraph_encoder_delete): Delete body map.
15966         (lto_cgraph_encoder_size): Move to header.
15967         (lto_cgraph_encoder_encode_body_p,
15968         lto_set_cgraph_encoder_encode_body): New.
15969         (lto_output_node): Do not take written_decls argument; output clone_of
15970         pointer.
15971         (add_node_to): Add include_body_argument; call
15972         lto_set_cgraph_encoder_encode_body on master of the clone.
15973         (add_references): Update use of add_node_to.
15974         (compute_ltrans_boundary): Likewise.
15975         (output_cgraph): Do not create written_decls bitmap.
15976         (input_node): Take nodes argument; stream in clone_of correctly.
15977         (input_cgraph_1): Update use of input_node.
15978         * lto-streamer-out.c (lto_output): Use encoder info to decide
15979         what bodies to output.
15980         * ipa-inline.c (cgraph_clone_inlined_nodes,
15981         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
15982         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
15983         (lto_cgraph_encoder_size): Define here.
15984         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
15985         Declare.
15986
15987 2010-05-16  Richard Guenther  <rguenther@suse.de>
15988
15989         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
15990         -fipa-type-escape.
15991         * ipa-type-escape.c (gate_type_escape_vars): Run when
15992         -fipa-struct-reorg runs.
15993         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
15994         * common.opt (fipa-type-escape): Remove.
15995
15996 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
15997
15998         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
15999         (decode_options): Likewise.
16000         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
16001
16002 2010-05-16  Jan Hubicka  <jh@suse.cz>
16003
16004         * ipa.c (function_and_variable_visibility): Also bring local all
16005         aliases.
16006
16007 2010-05-16  Richard Guenther  <rguenther@suse.de>
16008
16009         * alias.c (nonoverlapping_memrefs_p): Remove use of
16010         IPA type-escape information.
16011
16012 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
16013
16014         * c-common.c (c_common_reswords): Add _Static_assert for C.
16015         * c-parser.c (c_token_starts_declaration,
16016         c_parser_next_token_starts_declaration,
16017         c_parser_static_assert_declaration_no_semi,
16018         c_parser_static_assert_declaration): New.
16019         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
16020         Handle static assertions if static_assert_ok.
16021         (c_parser_external_declaration, c_parser_declaration_or_fndef,
16022         c_parser_compound_statement_nostart, c_parser_label,
16023         c_parser_for_statement, c_parser_objc_methodprotolist,
16024         c_parser_omp_for_loop): All callers of
16025         c_parser_declaration_or_fndef changed.
16026         (c_parser_struct_declaration): Handle static assertions.
16027         (c_parser_compound_statement_nostart): Use
16028         c_parser_next_token_starts_declaration and
16029         c_token_starts_declaration to detect start of declarations.
16030         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
16031         Likewise.
16032
16033 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
16034
16035         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
16036         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16037         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16038         TARGET_FUNCTION_VALUE_REGNO_P): Define.
16039         (mmix_function_outgoing_value): Rename to...
16040         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
16041         (mmix_function_value_regno_p): Make static.
16042         (mmix_libcall_value): New function.
16043         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
16044         mmix_function_value_regno_p): Remove declaration.
16045
16046 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16047
16048         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
16049         BUILT_IN_ALLOCA if stack checking is enabled.
16050
16051 2010-05-16  Richard Guenther  <rguenther@suse.de>
16052
16053         * var-tracking.c (vars_copy_1): Inline ...
16054         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16055         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
16056         (variable_merge_over_cur): Adjust.  Merge asserts.
16057         (variable_merge_over_src): Likewise.
16058         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
16059         (variable_post_merge_new_vals): Merge asserts.
16060         (variable_post_merge_perm_vals): Likewise.
16061         (find_mem_expr_in_1pdv): Likewise.
16062         (dataflow_set_different_value): Remove.
16063         (onepart_variable_different_p): Merge asserts.
16064         (variable_different_p): Likewise.
16065         (dataflow_set_different_1): Inline ...
16066         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
16067         (emit_notes_for_differences_1): Merge asserts.
16068
16069 2010-05-16  Richard Guenther  <rguenther@suse.de>
16070
16071         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
16072         * optabs.c (libfunc_decl_hash): Likewise.
16073         * varasm.c (emutls_decl): Likewise.
16074
16075 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
16076
16077         * c-decl.c: Don't include gimple.h.
16078         (merge_decls): Do not copy gimple_body.
16079
16080 2010-05-15  Jason Merrill  <jason@redhat.com>
16081
16082         * c.opt: Add -fnothrow-opt.
16083
16084 2010-05-15  Jan Hubicka  <jh@suse.cz>
16085
16086         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
16087         analyzed.
16088         * passes.c (ipa_write_summaries): Write all analyzed nodes.
16089
16090 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
16091
16092         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
16093         * Makefile.in: Add it.
16094         Fix all other Makefile dependencies for changes below.
16095         * tree.h: Include it instead of defining VEC primitives here.
16096         * gimple.h: Likewise.
16097         * rtl.h: Likewise.
16098         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
16099         * except.h: Include vecir.h, break dependence on tree.h.
16100
16101         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
16102         Move from here...
16103         * tree-iterator.c: ...to here.
16104         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
16105
16106         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
16107         tm_p.h.
16108         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
16109         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
16110         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
16111         tree-mudflap.h, and target.h.
16112         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
16113         predict.h, tree-inline.h, gimple.h, and langhooks.h.
16114         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
16115         Add FIXME for why gimple.h is still included (should be unnecessary
16116         since GCC 4.5 gimplification unit-at-a-time).
16117         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
16118         * c-pragma.c: Add FIXME for why function.h needs to be included just
16119         for cfun, at front-end level.
16120         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
16121         Do not include ggc.h, but include vecprim.h for VEC(char).
16122         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
16123         Explain why target.h is included.
16124         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
16125         Explain why gimple.h is included.
16126         * c-ppoutput.c: Do not include tm.h.
16127         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
16128         * c-parses.c: Explain why rtl.h is included, and that this (and only
16129         this) is also why tm.h must be included.
16130         Do not include except.h.
16131         * c-lang.c: Do not include ggc.h.
16132
16133 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
16134
16135         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
16136
16137 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
16138
16139         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
16140         unions by default if those structs and unions have no tags.  Do
16141         not condition anonymous struct and unions handling on flag_iso.
16142         Allow anonymous structs and unions for C1X.
16143         (finish_struct): Do not diagnose lack of named fields when
16144         anonymous structs and unions present for C1X.  Accept flexible
16145         array members in structure with anonymous structs or unions but no
16146         directly named fields.
16147         * doc/extend.texi (Unnamed Fields): Update.
16148
16149 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16150
16151         * gimple.h (compare_field_offset): Rename into...
16152         (gimple_compare_field_offset): ...this.
16153         * gimple.c (compare_field_offset): Rename into...
16154         (gimple_compare_field_offset): ...this.  Compare the full access if
16155         the offset is self-referential.
16156         (gimple_types_compatible_p): Adjust for above renaming.
16157         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
16158         DECL_NONADDRESSABLE_P flag of fields before merging them.
16159
16160 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
16161
16162         * tree.h (ctor_to_list): Delete.
16163         * tree.c (ctor_to_list): Delete.
16164
16165 2010-05-15  Jan Hubicka  <jh@suse.cz>
16166
16167         * ipa-reference.c: Include toplev.h
16168         (is_proper_for_analysis): Only add to all_module_statics
16169         if it is allocated.
16170         (write_node_summary_p, stream_out_bitmap,
16171         ipa_reference_write_optimization_summary,
16172         ipa_reference_read_optimization_summary): New.
16173         (struct ipa_opt_pass_d pass_ipa_reference): Add
16174         optimization summary streaming.
16175         * lto-cgraph.c (referenced_from_this_partition_p,
16176         reachable_from_this_partition_p): New functions.
16177         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
16178         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
16179         * opts.c (decode_options): Enable ipa_reference.
16180         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
16181         * lto-streamer.h (referenced_from_this_partition_p,
16182         reachable_from_this_partition_p): Declare.
16183
16184 2010-05-15  Richard Guenther  <rguenther@suse.de>
16185
16186         PR tree-optimization/44038
16187         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
16188         taking the address of a V_C_E of a constant.
16189
16190 2010-05-14  Jan Hubicka  <jh@suse.cz>
16191
16192         * tree.h (memory_identifier_string): Remove.
16193         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
16194         (ipa_reference_global_vars_info_d): Remove statics_not_read and
16195         statics_not_written.
16196         (ipa_reference_optimization_summary_d): New structure.
16197         (ipa_reference_optimization_summary_t): New type and vector.
16198         (ipa_reference_vars_info_d): Embedd structures instead of using
16199         pointers.
16200         (reference_vars_to_consider): Remove out of GGC space.
16201         (module_statics_escape): Remove.
16202         (global_info_obstack): Rename to ...
16203         (optimization_summary_obstack): ... this one.
16204         (initialization_status_t): Remove.
16205         (memory_identifier_string): Remove.
16206         (get_reference_vars_info): Fix indenting.
16207         (set_reference_vars_info): Likewise.
16208         (get_reference_optimization_summary): New.
16209         (set_reference_optimization_summary): New.
16210         (get_global_reference_vars_info): Remove.
16211         (ipa_reference_get_read_global): Remove.
16212         (ipa_reference_get_written_global): Remove.
16213         (ipa_reference_get_not_read_global): Update.
16214         (ipa_reference_get_not_written_global): Update.
16215         (is_proper_for_analysis): Outlaw addressable.
16216         (propagate_bits): Update for new datastructures.
16217         (analyze_variable): Remove.
16218         (init_function_info): Update for new datastructures.
16219         (clean_function_local_data): Remove.
16220         (clean_function): Remove.
16221         (copy_global_bitmap): Use optimizations_summary_obstack.
16222         (duplicate_node_data): Duplicate optimization summary only.
16223         (remove_node_data): Remove optimization summary only.
16224         (generate_summary): Do not analyze variables; do not compute
16225         module_statics_escape; do not prune solutions by it.
16226         (read_write_all_from_decl): Fix typos in comments.
16227         (propagate): Doscover readonly and nonaddressable first;
16228         update for new datastructures; share global bitmaps.
16229         * ipa-reference.h (ipa_reference_get_read_global,
16230         ipa_reference_get_written_global): Remove.
16231         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
16232         * Makefile.in: Remove ipa-refereference from GT files.
16233
16234 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16235
16236         PR debug/44112
16237         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
16238         for all SYMBOL_REF_DECLs.
16239
16240 2010-05-14  Jan Hubicka  <jh@suse.cz>
16241
16242         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
16243         (varpool_all_refs_explicit_p): New inline function.
16244         * ipa-reference.c: Update comment.
16245         (module_statics_written): Remove.
16246         (get_static_decl): Remove.
16247         (ipa_init): Do not initialize module_statics_written.
16248         (analyze_function): Likewise.
16249         (generate_summary): Likewise; do not compute module_statics_readonly
16250         and do not update variable flags.
16251         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
16252         * ipa.c: Inlucde flags.h
16253         (cgraph_local_node_p): New.
16254         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
16255         promote functions to local.
16256         (ipa_discover_readonly_nonaddressable_vars): New function.
16257         (function_and_variable_visibility): Use cgraph_local_node_p.
16258         * varpool.c (varpool_finalize_decl): Set force_output for
16259         DECL_PRESERVE_P vars.
16260
16261 2010-05-14  Jan Hubicka  <jh@suse.cz>
16262
16263         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
16264
16265 2010-05-14  Richard Guenther  <rguenther@suse.de>
16266
16267         PR tree-optimization/44119
16268         * tree-ssa-pre.c (eliminate): Properly mark replacement of
16269         a PHI node necessary.
16270
16271 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16272
16273         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
16274
16275 2010-05-14  Jason Merrill  <jason@redhat.com>
16276
16277         PR c++/44127
16278         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
16279         (gimple_call_set_nothrow): New.
16280         * gimple.c (gimple_build_call_from_tree): Call it.
16281         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
16282
16283         PR c++/44127
16284         * gimplify.c (gimplify_seq_add_stmt): No longer static.
16285         * gimple.h: Declare it.
16286         * gimple.c (gimple_build_eh_filter): No ops.
16287
16288 2010-05-14  Jan Hubicka  <jh@suse.cz>
16289
16290         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
16291         nodes already in queue.
16292         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
16293         re-enqueueing node.
16294
16295 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16296
16297         PR debug/44136
16298         * cfgexpand.c (expand_debug_expr): If non-memory op0
16299         has BLKmode, return NULL.
16300
16301 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
16302
16303         * config.gcc: Add support for --with-cpu option for bdver1.
16304         * config/i386/i386.h (TARGET_BDVER1): New macro.
16305         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
16306         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16307         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
16308         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16309         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
16310         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
16311         (processor_type): Add PROCESSOR_BDVER1.
16312         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
16313         processor_type in config/i386/i386.h.
16314         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
16315         movaps <reg, reg> instead of movapd <reg, reg> when replacing
16316         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
16317         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
16318         to emit packed xor instead of packed double/packed integer
16319         xor for SSE and AVX when moving a zero value.
16320         * config/i386/sse.md: Add check for
16321         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
16322         movapd/movdqa for SSE and AVX.
16323         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
16324         single logical operations i.e and, or and xor instead of packed double
16325         logical operations for SSE and AVX.
16326         * config/i386/i386-c.c (ix86_target_macros_internal):
16327         Add PROCESSOR_BDVER1.
16328         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
16329         (has_fma4, has_xop): New.
16330         * config/i386/i386.c (bdver1_cost): New variable.
16331         (m_BDVER1): New macro.
16332         (m_AMD_MULTIPLE): Add m_BDVER1.
16333         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
16334         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
16335         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
16336         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
16337         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
16338         x86_tune_sse_partial_reg_dependency,
16339         x86_tune_sse_unaligned_load_optimal,
16340         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
16341         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
16342         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
16343         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
16344         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
16345         Enable/disable for bdver1.
16346         (processor_target_table): Add bdver1_cost.
16347         (cpu_names): Add bdver1.
16348         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
16349          processor_alias_table.
16350         (ix86_expand_vector_move_misalign): Change.
16351         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
16352         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
16353         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
16354         of movupd/movdqu for SSE and AVX.
16355         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
16356         (ix86_tune_adjust_cost): Add code for bdver1.
16357         (standard_sse_constant_opcode): Add check for
16358         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
16359         of packed double xor for SSE and AVX.
16360
16361 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
16362
16363         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
16364         result to unsigned.
16365
16366 2010-05-14  Tristan Gingold  <gingold@adacore.com>
16367
16368         * toplev.c (default_debug_hooks): Remove this variable.
16369         (process_options): Remove assignments to default_debug_hooks.
16370
16371 2010-05-14  Martin Jambor  <mjambor@suse.cz>
16372
16373         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
16374         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
16375         * langhooks.h (struct lang_hooks_for_decls): Removed field
16376         fold_obj_type_ref.
16377         * tree.c (free_lang_data): Remove assignment to
16378         lang_hooks.fold_obj_type_ref.
16379         * tree.def (OBJ_TYPE_REF): Update comment.
16380
16381 2010-05-14  Richard Guenther  <rguenther@suse.de>
16382
16383         PR tree-optimization/44124
16384         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
16385
16386 2010-05-14  Alan Modra  <amodra@gmail.com>
16387
16388         PR target/44075
16389         * config/rs6000/rs6000.c (struct machine_function): Reorder
16390         fields for better packing.  Add lr_save_state.
16391         (rs6000_ra_ever_killed): Return lr_save_state if set.
16392         (rs6000_emit_eh_reg_restore): Set lr_save_state.
16393
16394 2010-05-13  Jan Hubicka  <jh@suse.cz>
16395
16396         * varpool.c (decide_is_variable_needed): Drop code checking
16397         TREE_SYMBOL_REFERENCED.
16398
16399 2010-05-13  Jan Hubicka  <jh@suse.cz>
16400
16401         * final.c (output_addr_const): Do not call mark_decl_referenced.
16402         * cgraphunit.c (process_function_and_variable_attributes): Use
16403         mark_needed_node dirrectly.
16404         (assemble_thunk): Do not call mark_decl_referenced.
16405
16406 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
16407
16408         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
16409
16410 2010-05-13  Jeff Law  <law@redhat.com>
16411
16412         * ira-conflicts.c (print_allocno_conflicts): New function broken out
16413         from...
16414         (print_conflicts): Call print_allocno_conflicts.
16415
16416 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16417
16418         PR debug/44104
16419         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
16420         if it is NULL.
16421
16422 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
16423
16424         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
16425         t-mingw-w64 or t-mingw-w32 for multilib configuration.
16426         * config/i386/t-mingw-w32: New.
16427         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
16428
16429 2010-05-13  Martin Jambor  <mjambor@suse.cz>
16430
16431         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
16432         gimple-fold.c).
16433         * gimple-fold.c (get_base_binfo_for_type): New function.
16434         (gimple_get_relevant_ref_binfo): Likewise.
16435         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16436         (gimple_fold_obj_type_ref): Likewise.
16437         (fold_gimple_call): Simplify condition for folding virtual calls
16438         and call gimple_fold_obj_type_ref.
16439         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
16440         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16441
16442 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
16443
16444         * config/rs6000/rs6000-protos.h
16445         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
16446         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
16447         (rs6000_debug_mode_dependent_address)
16448         (rs6000_mode_dependent_address_ptr): Likewise.
16449
16450 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16451
16452         PR debug/43983
16453         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
16454         by SRA.
16455         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
16456         * tree-sra.c (create_access_replacement): Call unshare_expr before
16457         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
16458         * dwarf2out.c: Include tree-flow.h.
16459         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
16460         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
16461         Handle DW_OP_bit_piece.
16462         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
16463         construct_piece_list, adjust_piece_list): New functions.
16464         (add_var_loc_to_decl): Handle SRA optimized variables.
16465         Adjust for var_loc_note to loc field renaming.
16466         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
16467         in VAR_LOCATION note.
16468         (new_loc_descr_op_bit_piece): New function.
16469         (dw_sra_loc_expr): New function.
16470         (dw_loc_list): Use it.  Don't handle the last range after the
16471         loop, handle it inside of the loop.  Adjust for var_loc_note
16472         to loc field renaming.
16473         (add_location_or_const_value_attribute): Only special case
16474         single entry loc lists if loc is NOTE_P.  Adjust for
16475         var_loc_note to loc field renaming.
16476         (dwarf2out_var_location): Don't set newloc->var_loc_note
16477         and newloc->next here.
16478
16479 2010-05-12  Jan Hubicka  <jh@suse.cz>
16480
16481         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
16482         flag.
16483         * cgraph.h (cgraph_only_called_directly_p,
16484         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
16485         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
16486         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
16487         (assemble
16488         * ipa.c (cgraph_remove_unreachable_nodes): Use
16489         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
16490         flags.
16491         * tree-inline.c (copy_bb): Check address_taken flag.
16492         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
16493         externally_visible flag.
16494
16495 2010-05-12  Jason Merrill  <jason@redhat.com>
16496
16497         PR bootstrap/44048
16498         PR target/44099
16499         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
16500         * sdbout.c (plain_type_1): Likewise.
16501         * dwarf2out.c (is_base_type): Likewise.
16502         (gen_type_die_with_usage): Likewise.  Generate
16503         DW_TAG_unspecified_type for any LANG_TYPE.
16504
16505 2010-05-12  Jan Hubicka  <jh@suse.cz>
16506
16507         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
16508         indrect edges too.
16509         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
16510         (cgraph_clone_edge): Update.
16511         (cgraph_node_remove_callees): Remove indirect calls too.
16512         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
16513         (cgraph_create_indirect_edge): Update prototype.
16514         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
16515         is_proper_for_analysis.
16516         (add_new_function, visited_nodes, function_insertion_hook_holder,
16517         get_local_reference_vars_info, mark_address_taken, mark_address,
16518         mark_load, mark_store, check_asm_memory_clobber, check_call,
16519         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
16520         (ipa_init): Do not initialize visited_nodes;
16521         function_insertion_hook_holder.
16522         (analyze_variable): Rewrite.
16523         (analyze_function): Rewrite.
16524         (copy_local_bitmap): Remove.
16525         (duplicate_node_dat): Do not duplicate local info.
16526         (generate_summary): Simplify to only walk cgraph.
16527         (write_node_summary_p, ipa_reference_write_summary,
16528         ipa_reference_read_summary): Remove.
16529         (propagate): Do not remove function insertion;
16530         generate summary.
16531         (pass_ipa_reference): NULLify summary handling fields.
16532         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
16533         (input_edge): Input ecf_flags.
16534         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
16535         (update_indirect_edges_after_inlining): Ignore edges with unknown
16536         param.
16537
16538 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
16539
16540         * implicit-zee.c: New file.
16541         * tree-pass.h (pass_implicit_zee): Declare.
16542         * passes.c (init_optimization_passes): Add zee pass.
16543         * common.opt (fzee): New flag.
16544         * timevar.def (TV_ZEE): Define.
16545         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
16546         and beyond.
16547         * Makefile.in (implicit-zee.o): Add new build file.
16548
16549 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16550             Nathan Froyd  <froydnj@codesourcery.com>
16551
16552         * c-common.c (sync_resolve_params): Remove write-only variable.
16553
16554 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
16555
16556         * target.h (struct gcc_target): Add mode_dependent_address_p field.
16557         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16558         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
16559         * targhooks.c (default_mode_dependent_address_p): New function.
16560         * targhooks.h (default_mode_dependent_address_p): Declare function.
16561         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16562         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
16563         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
16564         target hook. Change return type to bool.
16565         * recog.h (mode_dependent_address_p): Change return type to bool.
16566
16567 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16568             Nathan Froyd  <froydnj@codesourcery.com>
16569
16570         * tree-mudflap.c (build_function_type_0, build_function_type_1,
16571         build_function_type_2, build_function_type_3): Remove.
16572         (mudflap_init): Use build_function_type_list.
16573
16574 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16575             Nathan Froyd  <froydnj@codesourcery.com>
16576
16577         * coverage.c (build_fn_info_value): Call build_constructor instead of
16578         build_constructor_from_list.
16579         (build_ctr_info_value): Likewise.
16580         (build_gcov_info): Likewise.
16581
16582 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
16583
16584         * tree.c (build_constructor): Compute TREE_CONSTANT for the
16585         resultant constructor.
16586         (build_constructor_single): Don't set TREE_CONSTANT.
16587         (build_constructor_from_list): Don't compute TREE_CONSTANT.
16588
16589 2010-05-12  Jan Hubicka  <jh@suse.cz>
16590
16591         * cgraph.h (struct varpool_node): Add aux.
16592         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
16593         * varpool.c (varpool_remove_node): Do not remove initializer.
16594         (varpool_reset_queue): Export.
16595         (varpool_finalize_decl): Volatile vars are forced to be output.
16596         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
16597         replaced decl.
16598         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
16599         process_references, varpool_can_remove_if_no_refs): New functions.
16600         (cgraph_remove_unreachable_nodes): Handle variables too.
16601
16602 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16603
16604         PR target/44088
16605         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
16606
16607 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
16608
16609         PR middle-end/44085
16610         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
16611         change value of ORT_TASK.
16612         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
16613         (omp_notice_threadprivate_variable): New function.
16614         (omp_notice_variable): Call it for threadprivate variables.
16615         If enclosing ctx is a task, print enclosing task rather than
16616         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
16617         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
16618         if task has untied clause.
16619
16620         PR debug/42278
16621         * dwarf2out.c (base_type_die): Don't add name attribute here.
16622         (modified_type_die): Instead of sizetype use
16623         its underlying original type.  If a DW_TAG_base_type doesn't
16624         have name added, add __unknown__.
16625         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
16626         always call force_type_die instead.
16627
16628 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
16629
16630         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
16631         for __stack_chk_guard.
16632
16633 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
16634
16635         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
16636         don't call start_source_file debug hook here...
16637         (finish_options): ... but here, after outputting predefined and
16638         command line defines and undefs.
16639
16640         PR middle-end/44071
16641         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
16642         no fallthru edge.
16643         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
16644         optimizing away empty bb with no successors, move over its
16645         footer chain to fallthru predecessor.
16646         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
16647         (rtl_split_edge): For asm goto call patch_jump_insn even if
16648         splitting fallthru edge.
16649
16650         PR c++/44059
16651         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
16652         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
16653         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
16654         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
16655         on DW.ref.* decls.
16656
16657         PR c++/44062
16658         * c-parser.c (c_parser_expression): Mark LHS of a comma
16659         expression as read if it is a decl, handled component or
16660         COMPOUND_EXPR with that on the RHS.
16661         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
16662         if it is a decl or handled component.
16663
16664 2010-05-11  Jan Hubicka  <jh@suse.cz>
16665
16666         * lto-symtab.c (lto_symtab_free): New function.
16667         * lto-streamer.h (lto_symtab_free): Declare.
16668
16669 2010-05-11  Jan Hubicka  <jh@suse.cz>
16670
16671         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
16672         that if function is needed it is reachable.
16673         (lto_output_node): See if it the function is reachable or referenced.
16674         (output_cgraph): Update call of lto_output_node.
16675         * lto-streamer.h (reachable_from_other_partition_p): Declare.
16676
16677 2010-05-11  Jan Hubicka  <jh@suse.cz>
16678
16679         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
16680         Mark as used.
16681
16682 2010-05-11  Jan Hubicka  <jh@suse.cz>
16683
16684         PR tree-optimize/44063
16685         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
16686         queue.
16687         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
16688         limits.
16689         (estimate_function_body_sizes): Compute sizes even when disregarding.
16690
16691 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
16692
16693         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
16694
16695 2010-05-11  Jan Hubicka  <jh@suse.cz>
16696
16697         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
16698         into every boundary.
16699
16700 2010-05-11  Jan Hubicka  <jh@suse.cz>
16701
16702         * matrix-reorg.c (matrix_reorg): Rebuild edges.
16703
16704 2010-05-11  Jan Hubicka  <jh@suse.cz>
16705
16706         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
16707         lto_streamer_cache_delete): Put nodes into heap.
16708         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
16709         heap.
16710
16711 2010-05-11  Jan Hubicka  <jh@suse.cz>
16712
16713         * cgraphbuild.c (cgraph_rebuild_references): New.
16714         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
16715         out extern inlines.
16716         * cgraph.h (cgraph_rebuild_references): Declare.
16717         * tree-inline.c (tree_function_versioning): Use it.
16718         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
16719
16720 2010-05-11  Jan Hubicka  <jh@suse.cz>
16721
16722         * cgraph.c: Include ipa-utils.h
16723         (cgraph_create_virtual_clone): Update references.
16724         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
16725
16726 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
16727
16728         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
16729         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
16730         cache size.
16731
16732 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
16733
16734         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
16735
16736 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
16737
16738         * gcc.c (execute): For -### don't quote arguments that
16739         contain just alphanumerics and _/-. characters.
16740         * doc/invoke.texi: Document that change for -###.
16741
16742         PR debug/44023
16743         * df-problems.c (struct dead_debug): Add to_rescan field.
16744         (dead_debug_init): Clear to_rescan field.
16745         (dead_debug_finish): Rescan all debug insns in to_rescan
16746         bitmap and free the bitmap.
16747         (dead_debug_insert_before): Instead of rescanning debug insns
16748         immediately queue their rescanning until dead_debug_finish.
16749         (df_note_bb_compute): After dead_debug_add do continue instead
16750         of break.
16751
16752 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
16753
16754         PR debug/44028
16755         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
16756         clear also INSN_REG_USE_LIST.
16757
16758 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16759
16760         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
16761
16762 2010-05-10  Jan Hubicka  <jh@suse.cz>
16763
16764         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
16765         commited change.
16766
16767 2010-05-10  Jan Hubicka  <jh@suse.cz>
16768
16769         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
16770         Allocate encoders.
16771         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
16772         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
16773         (lto_streamer_cache_create): Init alloc pool.
16774         (lto_streamer_cache_delete): Free alloc pool.
16775         * lto-streamer.h: Include alloc pool.
16776         (lto_streamer_cache_d): Use alloc pool.
16777         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
16778
16779 2010-05-10  Jan Hubicka  <jh@suse.cz>
16780
16781         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
16782         * cgraphbuild.c: Include except.h
16783         (record_type_list, record_eh_tables): New function.
16784         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
16785
16786 2010-05-10  Jan Hubicka  <jh@suse.cz>
16787
16788         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
16789         __frame_dummy_init_array_entry, force_to_data): Attribute as used
16790         rather than unused.
16791
16792 2010-05-10  Michael Matz  <matz@suse.de>
16793
16794         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
16795         (can_reassociate_p): Use FLOAT_TYPE_P.
16796         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
16797         (vect_force_simple_reduction): ... this.
16798         * tree-parloops.c (gather_scalar_reductions): Use
16799         vect_force_simple_reduction.
16800         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
16801         vect_is_simple_reduction, add modify argument, if true rewrite
16802         "a-b" into "a+(-b)".
16803         (vect_is_simple_reduction, vect_force_simple_reduction): New
16804         functions.
16805         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
16806
16807 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16808             Vladimir Makarov  <vmakarov@redhat.com>
16809
16810         PR rtl-optimization/44012
16811         * ira-build.c (remove_unnecessary_allocnos): Nullify
16812         regno_allocno_map of the removed allocno.
16813
16814 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16815
16816         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
16817         to /dev/null.
16818         * configure: Regenerate.
16819
16820 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16821
16822         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
16823         unused.
16824         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
16825         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
16826         support in Sun ld.
16827         * configure: Regenerate.
16828
16829 2010-05-10  Richard Guenther  <rguenther@suse.de>
16830
16831         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
16832         marked if the entry identifier is marked.
16833
16834 2010-05-10  Richard Guenther  <rguenther@suse.de>
16835
16836         * c-common.c (struct c_common_attributes): Add fnspec attribute.
16837         (handle_fnspec_attribute): New function.
16838         * gimple.h (gimple_call_return_flags): Declare.
16839         (gimple_call_arg_flags): Likewise.
16840         * gimple.c (gimple_call_arg_flags): New function.
16841         (gimple_call_return_flags): Likewise.
16842         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
16843         New argument flags.
16844         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
16845         return value flags.
16846         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
16847         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
16848         main work to ...
16849         (make_heapvar_for): ... this new function.
16850         (handle_rhs_call): Handle fnspec attribute argument specifiers.
16851         (handle_lhs_call): Likewise.
16852         (find_func_aliases): Adjust.
16853
16854 2010-05-10  Richard Guenther  <rguenther@suse.de>
16855
16856         PR tree-optimization/44050
16857         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
16858
16859 2010-05-10  Wei Guozhi  <carrot@google.com>
16860
16861         PR target/42879
16862         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
16863
16864 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
16865
16866         PR c/10676
16867         * c-typeck.c (lookup_field): Take a type directly.  Update
16868         recursive calls.
16869         (build_component_ref): Update call to lookup_field.
16870         (set_init_label): Use lookup_field to find initialized field.
16871         Handle returned list of fields like a sequence of designators.
16872
16873 2010-05-09  Richard Guenther  <rguenther@suse.de>
16874
16875         PR middle-end/44024
16876         * fold-const.c (tree_single_nonzero_warnv_p): Properly
16877         handle &FUNCTION_DECL.
16878
16879 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
16880
16881         PR c/4784
16882         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
16883         structures and unions recursively.
16884         (detect_field_duplicates): Move duplicate detection with a hash to
16885         detect_field_duplicates_hash.  Always use a hash if anonymous
16886         structures or unions are present.
16887         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
16888         give errors.
16889
16890 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16891
16892         PR target/44046
16893         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
16894         detect Atom, Core 2 and Core i7.
16895
16896 2010-05-09  Richard Guenther  <rguenther@suse.de>
16897
16898         * gcc.c (store_arg): Handle temporary file deletion for
16899         joined arguments.
16900
16901 2010-05-09  Richard Guenther  <rguenther@suse.de>
16902
16903         PR middle-end/44043
16904         * ipa-inline.c (estimate_function_body_sizes): Return after
16905         disregarding inline limits.
16906
16907 2010-05-09  Richard Guenther  <rguenther@suse.de>
16908
16909         * gcc.c (store_arg): Revert last change.
16910
16911 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
16912
16913         PR middle-end/28685
16914         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
16915         (optimize_ops_list): Call it.
16916
16917 2010-05-08  Richard Guenther  <rguenther@suse.de>
16918
16919         PR tree-optimization/44030
16920         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
16921         NECESSARY flag if we propagate from a inserted expression.
16922
16923 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16924
16925         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
16926         domain types as equal if they are both PLACEHOLDER_EXPRs.
16927
16928 2010-05-08  Richard Guenther  <rguenther@suse.de>
16929
16930         * lto-wrapper.c (run_gcc): Remove linker output from
16931         command line for LTRANS invocation.
16932
16933 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
16934
16935         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16936         lto-macho as lto_binary_reader.
16937         * target.h (struct gcc_target): New hooks lto_start and lto_end.
16938         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
16939         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
16940         in lto_start and lto_end calls.
16941         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
16942         magic numbers.
16943         (scan_prog_file): Update is_elf_or_coff call.
16944         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
16945
16946         * collect2.c (main): Fix enum comparison.
16947
16948         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
16949         Add prototypes.
16950         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
16951         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
16952         and TARGET_ASM_LTO_END.
16953         * darwin.c: Include obstack.h and lto-streamer.h.
16954         (lto_section_names_offset, lto_section_names_obstack,
16955         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
16956         global variables.
16957         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
16958         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
16959         to a temporary file.
16960         (darwin_asm_lto_end): New function.  Restore asm_out_file.
16961         (darwin_asm_named_section): For LTO sections, replace the name with
16962         the offset of the section name in a string table, and build this
16963         table.
16964         (darwin_file_start): Initialize global vars for LTO support.
16965         (darwin_file_end): If output to asm_out_file was redirected, append it
16966         to the proper asm_out_file here.  Add the section names section.
16967
16968 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
16969
16970         * c-pragma.c (pending_weak_d, pending_weak): New.
16971         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
16972         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
16973         handle_pragma_weak): Update the uses of pending_weaks.
16974
16975 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16976
16977         PR documentation/44016
16978         * doc/standards.texi (Standards): Link to unversioned
16979         cxx0x_status.html page.
16980
16981 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
16982
16983         PR target/43708
16984         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
16985         in addition to TREE_USED, to avoid "set but unused" warnings.
16986
16987 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
16988
16989         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
16990         (is_loop_prefetching_profitable): Do not insert prefetches
16991         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
16992         times the prefetch ahead distance.
16993
16994 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
16995
16996         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
16997         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
16998         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
16999         the unroll_factor.
17000
17001 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17002
17003         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
17004         a diagnostic info when the insn-to-mem ratio is too small.
17005
17006 2010-05-07  Richard Guenther  <rguenther@suse.de>
17007
17008         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
17009         the linker plugin.
17010         (store_arg): Queue temp_filename for deletion instead of
17011         the whole argument.
17012
17013 2010-05-07  Richard Guenther  <rguenther@suse.de>
17014
17015         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
17016         (run_gcc): Handle LTRANS phase invocation.
17017         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
17018
17019 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
17020
17021         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
17022         this is also meaningful on PARM_DECLs and RESULT_DECLs.
17023
17024 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17025
17026         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
17027
17028 2010-05-07  Richard Guenther  <rguenther@suse.de>
17029
17030         PR tree-optimization/44020
17031         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
17032         code when PRE is not yet initialized.
17033
17034 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17035
17036         * config/mips/dbxmdebug.h: Remove.
17037         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
17038
17039 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
17040
17041         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
17042         with null pointer and also warn about ordered comparison of zero with
17043         pointer if -Wextra.
17044
17045 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17046
17047         * graphite-blocking.c
17048         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
17049         * graphite-clast-to-gimple.c
17050         (clast_to_gcc_expression): Same.
17051         (precision_for_value): Same.
17052         (precision_for_interval): Same.
17053         (gcc_type_for_interval): Same.
17054         (graphite_create_new_guard): Same.
17055         (compute_bounds_for_level): Same.
17056         (graphite_create_new_loop_guard): Same.
17057         * graphite-interchange.c
17058         (build_linearized_memory_access): Same.
17059         (pdr_stride_in_loop): Same.
17060         (memory_strides_in_loop_1): Same.
17061         (memory_strides_in_loop): Same.
17062         (extend_scattering): Same.
17063         (psct_scattering_dim_for_loop_depth): Same.
17064         (pbb_number_of_iterations): Same.
17065         * graphite-poly.h
17066         (debug_iteration_domains): Same.
17067         * graphite-ppl.c
17068         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17069         (ppl_set_inhomogeneous_gmp): Same.
17070         (ppl_strip_loop): Same.
17071         (ppl_lexico_compare_linear_expressions): Same.
17072         (ppl_read_polyhedron_matrix): Same.
17073         (ppl_max_for_le_pointset): Same.
17074         * graphite-ppl.h
17075         (ppl_read_polyhedron_matrix): Same.
17076         (tree_int_to_gmp): Same.
17077         (gmp_cst_to_tree): Same.
17078         (ppl_set_inhomogeneous): Same.
17079         (ppl_set_inhomogeneous_tree): Same.
17080         (ppl_set_coef): Same.
17081         (ppl_set_coef_tree): Same.
17082         * graphite-sese-to-poly.c
17083         (build_pbb_scattering_polyhedrons): Same.
17084         (build_scop_scattering): Same.
17085         (scan_tree_for_params_right_scev): Same.
17086         (scan_tree_for_params): Same.
17087         (find_params_in_bb): Same.
17088         (find_scop_parameters): Same.
17089         (add_upper_bounds_from_estimated_nit): Same.
17090         (build_loop_iteration_domains): Same.
17091         (add_condition_to_domain): Same.
17092         (pdr_add_memory_accesses): Same.
17093
17094 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17095
17096         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
17097         CLooG's value_* macros to their respective mpz_* counterparts.
17098         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
17099         (graphite_create_new_loop_guard): Same.
17100         * graphite-interchange.c (build_linearized_memory_access): Same.
17101         (pdr_stride_in_loop): Same.
17102         (memory_strides_in_loop_1): Same.
17103         (1st_interchange_profitable_p): Same.
17104         * graphite-poly.c (extend_scattering): Same.
17105         (psct_scattering_dim_for_loop_depth): Same.
17106         (pbb_number_of_iterations): Same.
17107         (pbb_number_of_iterations_at_time): Same.
17108         * graphite-poly.h (new_1st_loop): Same.
17109         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
17110         (oppose_constraint): Same.
17111         (insert_constraint_into_matrix): Same.
17112         (ppl_set_inhomogeneous_gmp): Same.
17113         (ppl_set_coef_gmp): Same.
17114         (ppl_strip_loop): Same.
17115         (ppl_lexico_compare_linear_expressions): Same.
17116         (ppl_max_for_le_pointset): Same.
17117         (ppl_min_for_le_pointset): Same.
17118         (ppl_build_realtion): Same.
17119         * graphite-ppl.h (gmp_cst_to_tree): Same.
17120         (ppl_set_inhomogeneous): Same.
17121         (ppl_set_inhomogeneous_tree): Same.
17122         (ppl_set_coef): Same.
17123         (ppl_set_coef_tree): Same.
17124         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17125         (build_scop_scattering): Same.
17126         (add_value_to_dim): Same.
17127         (scan_tree_for_params_right_scev): Same.
17128         (scan_tree_for_params_int): Same.
17129         (scan_tree_for_params): Same.
17130         (find_params_in_bb): Same.
17131         (find_scop_parameters): Same.
17132         (add_upper_bounds_from_estimated_nit): Same.
17133         (build_loop_iteration_domains): Same.
17134         (create_linear_expr_from_tree): Same.
17135         (add_condition_to_domain): Same.
17136         (pdr_add_memory_accesses): Same.
17137
17138 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
17139             Jason Merrill  <jason@redhat.com>
17140
17141         * c-common.c (c_common_reswords): Add nullptr.
17142         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
17143         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
17144         (gen_type_die_with_usage): Likewise.
17145         * dbxout.c (dbxout_type): Likewise.
17146         * sdbout.c (plain_type_1): Likewise.
17147
17148 2010-05-06  Jason Merrill  <jason@redhat.com>
17149
17150         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
17151         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
17152         ret appropriately.
17153         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
17154
17155         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
17156         stripping WITH_SIZE_EXPR.
17157         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
17158         change.
17159
17160 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17161
17162         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
17163         list of obsolete configurations.
17164         Disabled check for obsolete configurations.
17165         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
17166         Removed support for previous versions.
17167         * config/mips/iris.h: Removed.
17168         * config/mips/iris5.h: Removed.
17169         * config/mips/iris6.h: Merged old iris.h contents.
17170         (TARGET_IRIX): Removed.
17171         (DRIVER_SELF_SPECS): Removed mabi=32.
17172         (IDENT_ASM_OP): Removed undef.
17173         (STARTFILE_SPEC): Removed mabi=32.
17174         (ENDFILE_SPEC): Likewise.
17175         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
17176         (MACHINE_TYPE): Update for IRIX 6.5.
17177         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
17178         TARGET_IRIX by TARGET_IRIX6.
17179         (mips_file_start): Likewise.
17180         (mips_output_external): Remove IRIX 5/6 O32 support.
17181         (mips_output_function_prologue): Likewise.
17182         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
17183         TARGET_IRIX6.
17184         (TARGET_CPU_CPP_BUILTINS): Likewise.
17185         (TARGET_IRIX): Removed.
17186         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
17187         (MULTILIB_DIRNAMES): Removed 32.
17188         (MULTILIB_OSDIRNAMES): Removed ../lib.
17189         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
17190         (Specific, mips-sgi-irix5): Document removal.
17191         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
17192         Remove references to older IRIX 6 releases and the O32 ABI.
17193
17194 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
17195
17196         PR bootstrap/43994
17197         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
17198         instead of DF_REF_REAL_REG.
17199
17200 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
17201
17202         PR target/43888
17203         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
17204         handling to still return true for x64 targets.
17205
17206 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17207
17208         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
17209
17210 2010-05-06  Jan Hubicka  <jh@suse.cz>
17211
17212         PR tree-optimization/43791
17213         * ipa-inline.c (update_caller_keys): Remove bogus
17214         disregard_inline_limits check.
17215
17216 2010-05-06  Michael Matz  <matz@suse.de>
17217
17218         PR tree-optimization/43984
17219         * tree-ssa-pre.c (inserted_phi_names): Remove.
17220         (inserted_exprs): Change to bitmap.
17221         (create_expression_by_pieces): Set bits, don't append to vector.
17222         (insert_into_preds_of_block): Don't handle inserted_phi_names.
17223         (eliminate): Don't look at inserted_phi_names, remove deleted
17224         insns from inserted_exprs.
17225         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
17226         (init_pre, fini_pre): Allocate and free bitmaps.
17227         (execute_pre): Insert insns on edges before elimination.
17228
17229 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
17230
17231         * tree.c (initializer_zerop): Handle STRING_CST.
17232
17233 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17234
17235         PR 40989
17236         * doc/invoke.texi (Wimplicit): Document as C only.
17237         * opts.c (common_handle_option): Add argument kind.
17238         (handle_option): Rename as read_cmdline_option. Factor out code to...
17239         (handle_option): ... here. New.
17240         (handle_options): Rename as read_cmdline_options.
17241         (decode_options): Update call.
17242         (set_option): Use option index instead of option pointer. Classify
17243         diagnostics correctly.
17244         (enable_warning_as_error): Call handle_option.
17245         * opts.h (set_option): Update declaration.
17246         (handle_option): Declare.
17247         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
17248         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
17249         * c-opts.c (set_Wimplicit): Delete.
17250         (c_family_lang_mask): New static constant.
17251         (c_common_handle_option): Add argument kind. Use handle_option
17252         instead of set_Wimplicit.
17253         (c_common_post_options): warn_implicit and warn_implicit_int
17254         are disabled by default.
17255         * c-common.c (warn_implicit): Do not define here.
17256         * c-common.h (warn_implicit): Do not declare here.
17257         (c_common_handle_option): Update declaration.
17258         * lto-opts.c (lto_reissue_options): Update call to set_option.
17259
17260 2010-05-06  Richard Guenther  <rguenther@suse.de>
17261
17262         PR tree-optimization/43571
17263         * domwalk.c (walk_dominator_tree): Walk the dominator
17264         sons in more optimal order.
17265
17266 2010-05-06  Richard Guenther  <rguenther@suse.de>
17267
17268         PR tree-optimization/43934
17269         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
17270         (stmt_cost): Likewise.
17271         (extract_true_false_args_from_phi): New helper.
17272         (determine_max_movement): For PHI nodes verify we can hoist them
17273         and compute their cost.
17274         (determine_invariantness_stmt): Handle PHI nodes.
17275         (move_computations_stmt): Likewise.  Hoist PHI nodes in
17276         if-converted form using COND_EXPRs.
17277         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
17278         (tree_ssa_lim): Likewise.
17279         * tree-flow.h (tree_ssa_lim): Adjust prototype.
17280         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
17281
17282 2010-05-06  Richard Guenther  <rguenther@suse.de>
17283
17284         PR tree-optimization/43987
17285         * tree-ssa-structalias.c (could_have_pointers): For possibly
17286         address-taken variables force pointers to be recorded.
17287         (create_variable_info_for_1): Likewise.
17288         (push_fields_onto_fieldstack): Pass in wheter all fields
17289         must have pointers.
17290         (find_func_aliases): Query types instead of vars whether
17291         they contain pointers where appropriate.
17292
17293 2010-05-06  Jan Hubicka  <jh@suse.cz>
17294
17295         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
17296         (record_reference, mark_address, mark_load, mark_store): Record
17297         references.
17298         (record_references_in_initializer): Update call of record_references.
17299         (rebuild_cgraph_edges): Remove all references before rebuiding.
17300         * cgraph.c (cgraph_create_node): Clear ref list.
17301         (cgraph_remove_node): Remove references.
17302         (dump_cgraph_node): Dump references.
17303         (cgraph_clone_node): Clone references.
17304         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
17305         (struct cgraph_node, varpool_node): Add ref_lst.
17306         * ipa-ref.c: New file.
17307         * ipa-ref.h: New file.
17308         * ipa-ref-inline.h: New file.
17309         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
17310         (referenced_from_other_partition_p): New function.
17311         (lto_output_varpool_node): Take set arugment; call
17312         referenced_from_other_partition.
17313         (lto_output_ref): New.
17314         (add_references): New.
17315         (output_refs): New.
17316         (output_cgraph): Compute boundary based on references; output refs.
17317         (output_varpool): Accept cgraph_node_set argument.
17318         (input_ref): New.
17319         (input_refs): New.
17320         (input_cgraph): Call input_refs.
17321         * lto-section-in.c (lto_section_name): Add refs.
17322         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
17323         (ipa-ref.o): New file.
17324         * varpool.c (varpool_node): Clear ipa ref list.
17325         (varpool_remove_node): Remove references.
17326         (dump_varpool_node): Dump references.
17327         (varpool_assemble_decl): Only compile finalized ones.
17328         (varpool_extra_name_alias): Initialize ref list.
17329         * lto-streamer.c (lto-get_section_name): Add .refs section.
17330         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
17331         (referenced_from_other_partition_p): Declared.
17332
17333 2010-05-06  Ira Rosen  <irar@il.ibm.com>
17334
17335         PR tree-optimization/43901
17336         * tree-vect-stmts.c (vectorizable_call): Assert that vector
17337         type is not NULL if it's transformation phase, and return
17338         FALSE if it's analysis.
17339         (vectorizable_conversion, vectorizable_operation,
17340         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
17341
17342 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
17343
17344         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17345         Delete.
17346         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17347         New define.
17348         * config/mips/mips-protos.h
17349         (mips_small_register_classes_for_mode_p): Delete prototype.
17350
17351 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
17352
17353         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
17354         * config/arm/arm.c (multiple_operation_profitable_p,
17355         compute_offset_order): New static functions.
17356         (load_multiple_sequence, store_multiple_sequence): Use them.
17357         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
17358         memory offsets, not register numbers.
17359         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
17360
17361 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
17362
17363         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
17364         (get_pending_sizes, put_pending_size, put_pending_sizes):
17365         Update the uses of pending_sizes.
17366         * c-decl.c (store_parm_decls): Likewise.
17367         * c-tree.h (struct c_arg_info): Likewise.
17368         * tree.h: Update the prototype for get_pending_sizes and
17369         put_pending_sizes.
17370
17371 2010-05-05  Jason Merrill  <jason@redhat.com>
17372
17373         PR debug/43370
17374         * c-common.c (handle_aligned_attribute): Respect
17375         ATTR_FLAG_TYPE_IN_PLACE.
17376
17377         PR testsuite/43758
17378         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
17379         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17380         (TARGET_INITIALIZER): Use it.
17381         * c-common.c (attribute_takes_identifier_p): Call it.
17382         * c-common.h: Update prototype.
17383         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
17384         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17385
17386 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17387
17388         PR debug/43950
17389         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
17390         DW_ID_down_case for Fortran compilation units.
17391
17392 2010-05-05  Jan Hubicka  <jh@suse.cz>
17393
17394         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
17395         handle aliases.
17396
17397 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17398
17399         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
17400         a variable-sized RESULT_DECL.
17401
17402 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
17403
17404         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
17405
17406 2010-05-05  Jason Merrill  <jason@redhat.com>
17407
17408         PR c++/43787
17409         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
17410         returns GS_OK.
17411         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
17412
17413 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
17414             Jakub Jelinek  <jakub@redhat.com>
17415
17416         PR debug/43478
17417         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
17418         (dead_debug_init, dead_debug_finish): New functions.
17419         (dead_debug_add, dead_debug_insert_before): Likewise.
17420         (df_note_bb_compute): Initialize a dead_debug object, add dead
17421         debug uses to it, insert debug bind insns before death insns,
17422         reset debug insns that refer to pending uses at the end.
17423         * rtl.h (make_debug_expr_from_rtl): New prototype.
17424         * varasm.c (make_debug_expr_from_rtl): New function.
17425
17426 2010-05-05  Jan Hubicka  <jh@suse.cz>
17427
17428         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
17429         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
17430         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
17431         lto_varpool_encoder_deref, lto_varpool_encoder_size,
17432         lto_varpool_encoder_encode_initializer_p,
17433         lto_set_varpool_encoder_encode_initializer): New functions.
17434         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
17435         call output_varpool.
17436         (input_varpool_node): Do not always set analyzed.
17437         (input_cgraph_1): Return vector of cgraph nodes.
17438         (input_varpool_1): Return vector of varpools.
17439         (input_cgraph): Free the vectors.
17440         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17441         output only initializers needed.
17442         (lto_output): Only call output_cgraph.
17443         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
17444         * lto-section-out.c (lto_new_out_decl_state): Initialize
17445         state->varpool_node_encoder.
17446         * lto-streamer.h (lto_varpool_encoder_d): New.
17447         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
17448         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
17449         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
17450         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
17451         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
17452         Declare.
17453         (output_varpool, input_varpool): Remove declarations.
17454
17455 2010-05-05  Jan Hubicka  <jh@suse.cz>
17456
17457         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
17458         with body can prevail.
17459
17460 2010-05-05  Jan Hubicka  <jh@suse.cz>
17461
17462         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
17463         size.
17464
17465 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17466
17467         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
17468
17469         * gengtype.h (erro_at_line): Constify pos argument.
17470
17471         * gengtype.c: Include hashtab.h.
17472         (enum gc_used): Document GC_MAYBE_POINTED_TO.
17473         (error_at_line): Constify pos argument.
17474         (do_typedef): Initialize p->opt field.
17475         (get_file_gtfilename): Fix comment typo.
17476         (struct walk_type_data): Constify line field.
17477         (get_output_file_for_structure): New function.
17478         (write_local_func_for_structure): Constify orig_s argument.
17479         Use get_output_file_for_structure.
17480         (write_func_for_structure): Use get_output_file_for_structure.
17481         (INDENT): New define.
17482         (dump_pair, dump_type, dump_type_list, dump_typekind)
17483         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
17484         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
17485         functions.
17486         (seen_types): New variable.
17487         (main): New variable do_dump.  Process "-d" command line option.
17488         Call dump_everything if dump requested.
17489
17490 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17491
17492         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
17493         in a temporary instead of invoking the macro multiple times.
17494         (track_expr_p): Likewise.
17495
17496 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
17497
17498         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
17499         per new semantics.
17500         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
17501         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
17502         conditions for printing notes.
17503         * common.opt (-Wcoverage-mismatch): Allow negative, default to
17504         true, update documentation.
17505         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
17506
17507 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
17508
17509         PR c/43981
17510         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
17511         on dimen.
17512
17513 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17514
17515         PR target/43799
17516         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
17517         (*sse_prologue_save_insn1): Likewise.
17518         (SSE prologue save splitter): Likewise.
17519
17520 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17521
17522         * tree.c (free_lang_data_in_one_sizepos): New inline function.
17523         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
17524         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
17525         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
17526         all decls.  Call it on DECL_FIELD_OFFSET of fields.
17527         (find_decls_types_r): Follow DECL_VALUE_EXPR.
17528         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
17529
17530 2010-05-04  Martin Jambor  <mjambor@suse.cz>
17531
17532         * tree-sra.c (build_access_from_expr_1): The first parameter type
17533         changed to simple tree.
17534         (build_access_from_expr): Likewise, gsi parameter was eliminated.
17535         (scan_assign_result): Renamed to assignment_mod_result, enum elements
17536         renamed as well.
17537         (build_accesses_from_assign): Removed all parameters except for a
17538         simple gimple statement.  Now returns a simple bool.
17539         (scan_function): All non-analysis parts moved to separate functions
17540         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
17541         parameters and updated both callers.
17542         (sra_modify_expr): Removed parameter data.
17543         (sra_modify_function_body): New function.
17544         (perform_intra_sra): Call sra_modify_function_body to modify the
17545         function body.
17546         (replace_removed_params_ssa_names): Parameter data changed into
17547         adjustments vector.
17548         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
17549         changed the parameter dont_convert to convert with the opposite
17550         meaning.
17551         (sra_ipa_modify_assign): Parameter data changed into adjustments
17552         vector, return value changed to bool.
17553         (ipa_sra_modify_function_body): New function.
17554         (sra_ipa_reset_debug_stmts): Updated a comment.
17555         (modify_function): Use ipa_sra_modify_function_body to modify function
17556         body.
17557
17558 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17559
17560         PR middle-end/43671
17561         * alias.c (true_dependence): Handle the same VALUE in x and mem.
17562         (canon_true_dependence): Likewise.
17563         (write_dependence_p): Likewise.
17564
17565 2010-05-04  Jan Hubicka  <jh@suse.cz>
17566
17567         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
17568         * cgraphbuild.c: Include ipa-utils.h
17569         (record_reference_ctx): New struct.
17570         (record_reference): Simplify to work on initializers; not statements.
17571         (mark_address, mark_load, mark_store): New.
17572         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17573         walk PHI nodes too.
17574         (record_references_in_initializer): Update use of record_reference.
17575         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17576         walk PHI nodes too.
17577
17578 2010-05-04  Jan Hubicka  <jh@suse.cz>
17579
17580         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
17581         node will be removed anyway.
17582         (lto_varpool_replace_node): Allow also unanalyzed nodes;
17583         relink aliases of node into prevailing node.
17584         * varpool.c (varpool_remove_node): Remove aliases properly;
17585         when removing node, remove all its aliases too; remove DECL_INITIAL
17586         of removed node; ggc_free the varpool node.
17587
17588 2010-05-04  Richard Guenther  <rguenther@suse.de>
17589
17590         PR tree-optimization/43879
17591         * tree-ssa-structalias.c (alias_get_name): Use
17592         DECL_ASSEMBLER_NAME if available.
17593         (create_function_info_for): Return the varinfo node.
17594         (ipa_pta_execute): Associate same-body aliases and extra names
17595         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
17596
17597 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17598
17599         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
17600
17601 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
17602
17603         PR bootstrap/43964
17604         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
17605         only if HONOR_REG_ALLOC_ORDER is not defined.
17606
17607 2010-05-04  Richard Guenther  <rguenther@suse.de>
17608
17609         PR tree-optimization/43949
17610         * tree-vrp.c (extract_range_from_binary_expr): Only handle
17611         TRUNC_MOD_EXPR.
17612
17613 2010-04-26  Jason Merrill  <jason@redhat.com>
17614
17615         * c.opt (-fstrict-enums): New.
17616         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
17617
17618 2010-05-03  David Ung  <davidu@mips.com>
17619             James E. Wilson  <wilson@codesourcery.com>
17620
17621         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
17622         emit the trap instruction before the divide for TUNE_74K.
17623
17624 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
17625
17626         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
17627         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
17628         based on the above, for new target hook.
17629
17630         * hooks.c (hook_bool_mode_true): New generic hook.
17631         * hooks.h (hook_bool_mode_true): Add prototype.
17632
17633         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
17634         target hook.
17635         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
17636         target hook, set to hook_bool_mode_false.
17637         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
17638         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
17639         with targetm.small_register_classes_for_mode_p.
17640         (find_reusable_reload): Likewise.
17641         (combine_reloads): Likewise.
17642         * reload1.c (reload_as_needed): Likewise.
17643         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
17644         * ifcvt.c (noce_process_if_block, check_cond_move_block,
17645         dead_or_predicable): Likewise.
17646         * regmove.c (optimize_reg_copy_1): Likewise.
17647         * calls.c (prepare_call_address): Likewise.
17648         (precompute_register_parameters): Likewise.
17649
17650         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
17651         hook definition.
17652         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
17653         implementation of the hook that considers all register classes
17654         small except for SH64.
17655         (sh_override_options): Use the new hook.
17656         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
17657         Add prototype.
17658
17659         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
17660         hook definition.
17661         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
17662         implementation of the hook that considers all register classes
17663         small for THUMB1.
17664         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
17665         Add prototype.
17666
17667         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
17668         hook definition.
17669         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
17670         implementation of the hook that considers all register classes
17671         small for MIPS16.
17672         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
17673         Add prototype.
17674
17675         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
17676         hook definition.
17677         * config/m32c/m32c.h: Likewise.
17678         * config/pdp11/pdp11.h: Likewise.
17679         * config/avr/avr.h: Likewise.
17680         * config/xtensa/xtensa.h: Likewise.
17681         * config/m68hc11/m68hc11.h: Likewise.
17682         * config/mn10300/mn10300.h: Likewise.
17683         * config/mcore/mcore.h: Likewise.
17684         * config/h8300/h8300.h: Likewise.
17685         * config/bfin/bfin.h: Likewise.
17686
17687         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
17688         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
17689
17690 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
17691
17692         * double-int.h (tree_to_double_int): Remove macro.
17693         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
17694         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
17695         (tree_to_double_int): New function.
17696         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
17697         Move ...
17698         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
17699
17700 2010-05-03  Richard Guenther  <rguenther@suse.de>
17701
17702         PR tree-optimization/43971
17703         * tree-ssa-structalias.c (get_constraint_for_1): Fix
17704         constraints in the !flag_delete_null_pointer_checks case.
17705
17706 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
17707
17708         PR debug/43972
17709         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
17710         result mode matches original rtl mode.
17711
17712 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
17713
17714         PR target/43888
17715         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
17716
17717 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17718
17719         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
17720         when processing flag options.
17721
17722 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17723
17724         * gcov-iov.c (main): Change format string placeholder
17725         from %#08x to 0x%08x.
17726         * genchecksum.c (dosum): Change format string placeholder
17727         from %#02x to 0x%02x.
17728
17729 2010-05-02  Richard Guenther  <rguenther@suse.de>
17730
17731         PR tree-optimization/43879
17732         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
17733
17734 2010-05-02  Bruno Haible  <bruno@clisp.org>
17735
17736         * doc/extend.texi (Function Attributes): Fix a typo.
17737
17738 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17739
17740         Revert:
17741         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
17742         placeholder from 0x%x to %#x.
17743         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
17744         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17745         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17746         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17747         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17748         * config/i386/i386.c (ix86_target_string): Ditto.
17749         * config/i386/i386.c (output_pic_addr_const): Ditto.
17750         (print_operand): Ditto.
17751
17752 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17753
17754         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
17755         placeholder from 0x%x to %#x.
17756         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
17757         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
17758         (ASM_OUTPUT_DEBUG_DATA): Ditto.
17759         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
17760         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
17761         * optc-gen.awk: Ditto.
17762         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
17763         (HOST_WIDE_INT_PRINT_HEX): Ditto.
17764         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
17765         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
17766
17767 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
17768
17769         * target.h (struct calls): Add function_value_regno_p field.
17770         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
17771         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
17772         * targhooks.c (default_function_value_regno_p): New function.
17773         * targhooks.h (default_function_value_regno_p): Declare function.
17774         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
17775         * builtins.c. (apply_result_size): (Ditto.).
17776         * combine.c. (likely_spilled_retval_p): (Ditto.).
17777         * mode-switching.c. Include 'target.h'.
17778         (create_pre_exit): Use function_value_regno_p hook.
17779         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
17780         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
17781         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
17782
17783         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
17784         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
17785         (ix86_function_value_regno_p): Declare as static, change argument
17786         type to const unsigned int.
17787         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
17788
17789 2010-05-01  Richard Guenther  <rguenther@suse.de>
17790
17791         PR tree-optimization/43949
17792         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
17793         types.
17794         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
17795
17796 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
17797
17798         * rtl.h (CONST_DOUBLE_P): Define.
17799         (rtx_to_double_int): Declare.
17800         * emit-rtl.c (rtx_to_double_int): New function.
17801         * dwarf2out.c (insert_double): New function.
17802         (loc_descriptor, add_const_value_attribute): Clean up, use
17803         rtx_to_double_int and insert_double functions.
17804
17805 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
17806
17807         * doc/extend.texi (Inline): Add missing return keyword to examples.
17808         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
17809         "command-line".
17810
17811 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
17812
17813         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
17814         the variable part of the offset as well.  Use highest_pow2_factor for
17815         all alignment checks.
17816
17817 2010-04-30  Richard Guenther  <rguenther@suse.de>
17818
17819         PR tree-optimization/43879
17820         * tree-ssa-structalias.c (type_could_have_pointers): Functions
17821         can have pointers.
17822
17823 2010-04-30  Jan Hubicka  <jh@suse.cz>
17824
17825         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
17826         varpool.
17827         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
17828
17829 2010-04-30  Jan Hubicka  <jh@suse.cz>
17830
17831         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
17832         New.
17833         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
17834         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
17835         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
17836         cgraph_node_set_needs_ltrans_p): Remove.
17837
17838 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
17839
17840         * sdbout.c: Include vec.h, do not include varray.h.
17841         (deferred_global_decls, sdbout_global_decl,
17842         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
17843         * toplev.c: Do not include varray.h.
17844         (dump_memory_report): Do not dump VARRAY statistics.
17845         * gengtype.c (open_base_file): Ignore varray.h.
17846         * Makefile.in: Update for abovementioned changes.
17847         Remove all traces of varray.c and varray.h.
17848         * varray.c: Remove file.
17849         * varray.h: Remove file.
17850
17851 2010-04-30  Jan Hubicka  <jh@suse.cz>
17852
17853         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
17854         references.
17855
17856 2010-04-30  Jan Hubicka  <jh@suse.cz>
17857
17858         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
17859         needed.
17860
17861 2010-04-30  Richard Guenther  <rguenther@suse.de>
17862
17863         * tree-ssa-structalias.c (get_constraint_for_1): Generate
17864         constraints for CONSTRUCTOR.
17865
17866 2010-04-30  Richard Guenther  <rguenther@suse.de>
17867
17868         PR lto/43946
17869         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
17870         first after all lowering passes.
17871
17872 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
17873
17874         * toplev.c: Include varray.h for statistics dumping.
17875         * tree.h: Do not declare varray_head_tag.
17876         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
17877         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
17878         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
17879         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
17880         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
17881         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
17882         c-common.c, c-common.h, reg-stack.c, basic-block.h,
17883         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
17884         include varray.h.
17885         * Makefile.in: Update for abovementioned changes.
17886
17887 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
17888
17889         PR debug/43942
17890         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
17891
17892 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
17893
17894         * config/picochip/picochip.c (picochip_legitimize_address): Define.
17895         Use this function to do machine-specific conversion.
17896         (picochip_legitimize_reload_address): Likewise.
17897         (picochip_legitimate_address_p): Check valid base register only if
17898         strict.
17899         (picochip_check_conditional_copy): Check for modw only if opnd is
17900         register.
17901         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
17902         to call the function in c.
17903         * config/picochip/picochip-protos.h
17904         (picochip_legitimize_reload_address): Define.
17905         * config/picochip/picochip.md (supported_compare1): Define.
17906
17907 2010-04-30  Jan Hubicka  <jh@suse.cz>
17908
17909         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
17910         (cgraph_global_info): Remove inlined.
17911         (LTO_cgraph_tag_names): Remove.
17912         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
17913         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
17914         simplify cgraph tags and document.
17915         (lto_output_node): Use only LTO_cgraph_unavail_node and
17916         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
17917         for_functions_valid, global info, process and output flags.
17918         (input_overwrite_node): Initialize estimated stack size and
17919         estimated growth.  Do not read flags we no longer store.
17920         (input_node): Likewise do not read info no longer stored.
17921         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
17922         flag.
17923
17924 2010-04-30  Richard Guenther  <rguenther@suse.de>
17925
17926         PR tree-optimization/43879
17927         * tree-ssa-structalias.c (get_constraint_for_1): Properly
17928         handle non-zero initializers.
17929
17930 2010-04-30  Richard Guenther  <rguenther@suse.de>
17931
17932         * builtins.c (fold_builtin_1): Delete free (0).
17933
17934 2010-04-29  Jan Hubicka  <jh@suse.cz>
17935
17936         * gengtype.c (open_base_files): Add lto-streamer.h
17937         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
17938         (pass_ipa_cp): GGC collect.
17939         * toplev. (compile_file): Do not output symbols.
17940         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
17941         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
17942         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
17943         * lto-section-in.c: Include ggc.h
17944         (lto_new_in_decl_state): Alloc in GGC.
17945         (lto_delete_in_decl_state): Likewise.
17946         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
17947         Collect.
17948
17949 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
17950
17951         PR target/42895
17952         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
17953         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
17954         (HONOR_REG_ALLOC_ORDER): Describe new macro.
17955         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
17956         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
17957         account only if HONOR_REG_ALLOC_ORDER is not defined.
17958         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
17959         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
17960
17961 2010-04-29  Jon Grant  <04@jguk.org>
17962
17963         * collect2.c (vflag): Change type from int to bool.
17964         (debug): Likewise.
17965         (helpflag): New global bool.
17966         (main): Set vflag and debug with boolean, not integer truth values.
17967         Accept new "--help" option and output usage text if found.
17968         * collect2.h (vflag): Update prototype.
17969         (debug): Likewise.
17970
17971 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17972
17973         PR bootstrap/43936
17974         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
17975
17976 2010-04-29  Richard Guenther  <rguenther@suse.de>
17977
17978         PR bootstrap/43935
17979         * plugin.h (invoke_plugin_callbacks): Annotate arguments
17980         with ATTRIBUTE_UNUSED.
17981
17982 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17983
17984         PR target/43921
17985         * config/i386/i386.c (get_some_local_dynamic_name): Replace
17986         INSN_P with NONDEBUG_INSN_P.
17987         (distance_non_agu_define): Likewise.
17988         (distance_agu_use): Likewise.
17989
17990 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
17991
17992         From Dominique d'Humieres  <dominiq@lps.ens.fr>
17993         PR bootstrap/43858
17994         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
17995         test_set.
17996
17997 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
17998
17999         * plugin.h (invoke_plugin_callbacks): New inline function.
18000         * plugin.c (flag_plugin_added): New global flag.
18001         (add_new_plugin): Initialize above flag.
18002         (invoke_plugin_callbacks): Rename to ...
18003         (invoke_plugin_callbacks_full): ... this.
18004
18005 2010-04-28  Jan Hubicka  <jh@suse.cz>
18006
18007         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
18008         (lto_varpool_replace_node): New.
18009         (lto_symtab_resolve_symbols): Resolve varpool nodes.
18010         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
18011         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
18012         * cgraph.h (varpool_node_ptr): New type.
18013         (varpool_node_ptr): New vector.
18014         (varpool_node_set_def): New structure.
18015         (varpool_node_set): New type.
18016         (varpool_node_set): New vector.
18017         (varpool_node_set_element_def): New structure.
18018         (varpool_node_set_element, const_varpool_node_set_element): New types.
18019         (varpool_node_set_iterator): New type.
18020         (varpool_node): Add prev pointers, add used_from_other_partition,
18021         in_other_partition.
18022         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
18023         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
18024         varpool_get_node, varpool_remove_node): Declare.
18025         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
18026         varpool_node_set_size): New inlines.
18027         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
18028         * tree-pass.h (varpool_node_set_def): Forward declare.
18029         (ipa_opt_pass_d): Summary writting takes vnode sets too.
18030         (ipa_write_optimization_summaries): Update prototype.
18031         * ipa-cp.c (ipcp_write_summary): Update.
18032         * ipa-reference.c (ipa_reference_write_summary): Update.
18033         * lto-cgraph.c (lto_output_varpool_node): New static function.
18034         (output_varpool): New function.
18035         (input_varpool_node): New static function.
18036         (input_varpool_1): New function.
18037         (input_cgraph): Input varpool.
18038         * ipa-pure-const.c (pure_const_write_summary): Update.
18039         * lto-streamer-out.c (lto_output): Update, output varpool too.
18040         (write_global_stream): Kill WPA hack.
18041         (produce_asm_for_decls): Update.
18042         (output_alias_pair_p): Handle variables.
18043         (output_unreferenced_globals): Output only needed partition of varpool.
18044         * ipa-inline.c (inline_write_summary): Update.
18045         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
18046         cgraph.
18047         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
18048         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
18049         varpool_node_set_new, varpool_node_set_add,
18050         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
18051         debug_varpool_node_set): New functions.
18052         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
18053         (execute_one_pass): Process new decls too.
18054         (ipa_write_summaries_2): Pass around vsets.
18055         (ipa_write_summaries_1): Likewise.
18056         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
18057         to add.
18058         (ipa_write_optimization_summaries_1): Pass around vsets.
18059         (ipa_write_optimization_summaries): Likewise.
18060         * varpool.c (varpool_get_node): New.
18061         (varpool_node): Update doubly linked lists.
18062         (varpool_remove_node): New.
18063         (dump_varpool_node): More dumping.
18064         (varpool_enqueue_needed_node): Update doubly linked lists.
18065         (decide_is_variable_needed): Kill ltrans hack.
18066         (varpool_finalize_decl): Kill lto hack.
18067         (varpool_assemble_decl): Skip decls in other partitions.
18068         (varpool_assemble_pending_decls): Update doubly linkes lists.
18069         (varpool_empty_needed_queue): Likewise.
18070         (varpool_extra_name_alias): Likewise.
18071         * lto-streamer.c (lto_get_section_name): Add vars section.
18072         * lto-streamer.h (lto_section_type): Update.
18073         (output_varpool, input_varpool): Declare.
18074
18075 2010-04-28  Mike Stump  <mikestump@comcast.net>
18076
18077         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
18078
18079 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18080
18081         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
18082         record or union type with RECORD_OR_UNION_TYPE_P predicate.
18083         (lto_input_ts_type_tree_pointers): Likewise.
18084         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
18085         (lto_output_ts_type_tree_pointers): Likewise.
18086
18087 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18088
18089         Uniquization of constants at the Tree level
18090         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
18091         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
18092         bit to the end.
18093         (tree_output_constant_def): Declare.
18094         * gimplify.c (gimplify_init_constructor): When using block copy, first
18095         uniquize the constant constructor on the RHS.
18096         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
18097         DECL_IN_CONSTANT_POOL flag.
18098         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
18099         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
18100         constant pool.
18101         (assemble_variable): Deal with symbols belonging to the tree constant
18102         pool.
18103         (get_constant_section): Add ALIGN parameter and simplify.
18104         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
18105         (assemble_constant_contents): Use the expression of the VAR_DECL.
18106         (output_constant_def_contents): Use the alignment of the VAR_DECL.
18107         (tree_output_constant_def): New global function.
18108         (mark_constant): Use the expression of the VAR_DECL.
18109         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
18110         its expression.
18111         (output_object_block): Likewise and assemble the expression.
18112
18113 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18114
18115         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
18116         hash_tree, eq_tree): New tree hash table.
18117         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
18118         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
18119         lto_orig_address_remove): Reimplement.
18120
18121 2010-04-28  Xinliang David Li  <davidxl@google.com>
18122
18123         PR c/42643
18124         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
18125         (compute_uninit_opnds_pos): New function.
18126         (is_non_loop_exit_postdominating): New function.
18127         (compute_control_dep_chain): New function.
18128         (find_pdom): New function.
18129         (convert_control_dep_chain_into_preds): New function.
18130         (find_predicates): New function.
18131         (find_control_equiv_block): New function.
18132         (collect_phi_def_edges): New function.
18133         (find_def_preds): New function.
18134         (find_dom): New function.
18135         (dump_predicates): New function.
18136         (get_cmp_code): New function.
18137         (is_value_included_in): New function.
18138         (find_matching_predicate_in_rest_chains): New function.
18139         (use_pred_not_overlap_with_undef_path_pred): New function.
18140         (is_use_properly_guarded): New function.
18141         (normalize_cond_1): New function.
18142         (is_and_or_or): New function.
18143         (normalize_cond): New function.
18144         (is_gcond_subset_of): New function.
18145         (is_subset_of_any): New function.
18146         (is_or_set_subset_of): New function.
18147         (is_and_set_subset_of): New function.
18148         (is_norm_cond_subset_of): New function.
18149         (is_pred_expr_subset_of): New function.
18150         (is_pred_chain_subset_of): New function.
18151         (is_included_in): New function.
18152         (is_superset_of): New function.
18153         (find_uninit_use): New function.
18154         (warn_uninitialized_phi): New function.
18155         (compute_possibly_undefined_names): New function.
18156         (ssa_undefined_value_p): New function.
18157         (execute_late_warn_uninitialized): New function.
18158         * tree-ssa.c (ssa_undefined_value_p): Removed.
18159         (warn_uninit): Changed to extern.
18160         (warn_uninitialized_phi): Removed.
18161         (warn_uninitialized_vars): Changed to extern.
18162         (execute_late_warn_uninitialized): Removed
18163         * tree-flow.h: Add new prototypes.
18164         * timevar.def: Add new time variable.
18165         * Makefile.in: Add new build file.
18166
18167 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
18168
18169         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
18170         type if available.
18171
18172 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18173
18174         PR target/22224
18175         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
18176
18177 2010-04-28  Martin Jambor  <mjambor@suse.cz>
18178
18179         * cgraph.h (struct cgraph_node): New field indirect_calls.
18180         (struct cgraph_indirect_call_info): New type.
18181         (struct cgraph_edge): Removed field indirect_call. New fields
18182         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
18183         (cgraph_create_indirect_edge): Declare.
18184         (cgraph_make_edge_direct): Likewise.
18185         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
18186         * ipa-prop.h (struct ipa_param_call_note): Removed.
18187         (struct ipa_node_params): Removed field param_calls.
18188         (ipa_create_all_structures_for_iinln): Declare.
18189         * cgraph.c: Described indirect edges and uids in initial comment.
18190         (cgraph_add_edge_to_call_site_hash): New function.
18191         (cgraph_edge): Search also among the indirect edges, use
18192         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
18193         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
18194         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
18195         site hash.
18196         (initialize_inline_failed): Assign a reason to indirect edges.
18197         (cgraph_create_edge_1): New function.
18198         (cgraph_create_edge): Moved some functionality to
18199         cgraph_create_edge_1.
18200         (cgraph_create_indirect_edge): New function.
18201         (cgraph_edge_remove_callee): Add an assert checking for
18202         non-indirectness.
18203         (cgraph_edge_remove_caller): Special-case indirect edges.
18204         (cgraph_remove_edge): Likewise.
18205         (cgraph_set_edge_callee): New function.
18206         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
18207         (cgraph_make_edge_direct): New function.
18208         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
18209         the declaration of the call statement matches.
18210         (cgraph_node_remove_callees): Special-case indirect edges.
18211         (cgraph_clone_edge): Likewise.
18212         (cgraph_clone_node): Clone also the indirect edges.
18213         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
18214         indirect_call, dump count of indirect_calls edges.
18215         * ipa-prop.c (iinlining_processed_edges): New variable.
18216         (ipa_note_param_call): Create indirect edges instead of
18217         creating notes.  New parameter node.
18218         (ipa_analyze_call_uses): New parameter node, pass it on to
18219         ipa_note_param_call.
18220         (ipa_analyze_stmt_uses): Likewise.
18221         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
18222         (print_edge_addition_message): Work on edges rather than on notes.
18223         (update_call_notes_after_inlining): Likewise, renamed to
18224         update_indirect_edges_after_inlining.
18225         (ipa_create_all_structures_for_iinln): New function.
18226         (ipa_free_node_params_substructures): Do not free notes.
18227         (ipa_edge_duplication_hook): Propagate bits within
18228         iinlining_processed_edges bitmap.
18229         (ipa_node_duplication_hook): Do not duplicate notes.
18230         (free_all_ipa_structures_after_ipa_cp): Renamed to
18231         ipa_free_all_structures_after_ipa_cp.
18232         (free_all_ipa_structures_after_iinln): Renamed to
18233         ipa_free_all_structures_after_iinln.
18234         (ipa_write_param_call_note): Removed.
18235         (ipa_read_param_call_note): Removed.
18236         (ipa_write_indirect_edge_info): New function.
18237         (ipa_read_indirect_edge_info): Likewise.
18238         (ipa_write_node_info): Do not stream notes, do stream information
18239         in indirect edges.
18240         (ipa_read_node_info): Likewise.
18241         (lto_ipa_fixup_call_notes): Removed.
18242         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
18243         * ipa-inline.c (pass_ipa_inline): Likewise.
18244         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
18245         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
18246         * tree-inline.c (copy_bb): Removed an unnecessary double check for
18247         is_gimple_call.
18248         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
18249         edges.
18250         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
18251         (output_cgraph): Stream also indirect edges.
18252         (lto_output_edge): Added capability to stream indirect edges.
18253         (input_edge): Likewise.
18254         (input_cgraph_1): Likewise.
18255         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
18256         of indirect edges.
18257
18258 2010-04-28  Richard Guenther  <rguenther@suse.de>
18259
18260         PR tree-optimization/43879
18261         PR tree-optimization/43909
18262         * tree-ssa-structalias.c (struct variable_info): Add
18263         only_restrict_pointers flag.
18264         (new_var_info): Initialize it.  Increment stats.total_vars here.
18265         (create_function_info_for): Do not increment stats.total_vars here.
18266         (get_function_part_constraint): Fix build with C++.
18267         (insert_into_field_list): Remove.
18268         (push_fields_onto_fieldstack): Properly merge fields.
18269         (create_variable_info_for): Split and simplify.
18270         (create_variable_info_for_1): New piece.
18271         (intra_create_variable_infos): Properly make restrict constraints
18272         from parameters.
18273
18274 2010-04-28  Richard Guenther  <rguenther@suse.de>
18275
18276         PR c++/43880
18277         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
18278
18279 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18280             Jan Hubicka  <hubicka@ucw.cz>
18281
18282         * doc/invoke.texi (-Wsuggest-attribute=const,
18283         -Wsuggest-attribute=pure): Document.
18284         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
18285         (function_always_visible_to_compiler_p,
18286         suggest_attribute, warn_function_pure, warn_function_const):
18287         New functions.
18288         (check_call): Improve debug info.
18289         (analyze_function): Do not check availability.
18290         (add_new_function): Check availability.
18291         (propagate): Output warnings.
18292         (skip_function_for_local_pure_const): New function.
18293         (local_pure_const): Use it; output warnings.
18294         * common.opt (Wsuggest-attribute=const,
18295         Wsuggest-attribute=pure): New.
18296
18297 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18298
18299         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
18300         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
18301         or DW_CFA_def_cfa_offset{,_sf}.
18302
18303 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18304
18305         * tree.h: Fix truncated long macros.
18306
18307 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
18308
18309         * collect2.c (TARGET_64BIT): Redefine to target's default.
18310         * tlink.c: Likewise.
18311         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
18312         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
18313         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
18314         for underscoring __USER_LABEL_PREFIX__.
18315         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
18316         (SUB_LINK_ENTRY32): New.
18317         (SUB_LINK_ENTRY64): New.
18318         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
18319         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
18320         (SUB_LINK_ENTRY64): New.
18321         (SUB_LINK_ENTRY): New.
18322         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
18323         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
18324         x64 target is choosen.
18325         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
18326         * configure: Regenerated.
18327         * configure.ac (leading-mingw64-underscores): Option added.
18328
18329 2010-04-27  Jan Hubicka  <jh@suse.cz>
18330
18331         * doc/invoke.texi (-fipa-profile): Document.
18332         * opts.c (decode_options): Enable ipa-profile at -O1.
18333         * timevar.def (TV_IPA_PROFILE): Define.
18334         * common.opt (fipa-profile): Add.
18335         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
18336         flag for clones.
18337         (cgraph_propagate_frequency): Handle only local ones.
18338         * tree-pass.h (pass_ipa_profile): Declare.
18339         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
18340         (pass_ipa_profile): Use TV_IPA_PROFILE.
18341         * ipa.c (ipa_profile): New function.
18342         (gate_ipa_profile): Likewise.
18343         (pass_ipa_profile): New global variable.
18344         * passes.c (pass_ipa_profile): New.
18345
18346 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
18347
18348         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
18349
18350 2010-04-27  Martin Jambor  <mjambor@suse.cz>
18351
18352         PR middle-end/43812
18353         * ipa.c (dissolve_same_comdat_group_list): New function.
18354         (function_and_variable_visibility): Call
18355         dissolve_same_comdat_group_list when comdat group contains external or
18356         newly local nodes.
18357         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
18358         lists are circular and that they contain only DECL_ONE_ONLY nodes.
18359
18360 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18361
18362         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
18363         (const_hash_1) <VECTOR_CST>: New case.
18364         (compare_constant) <VECTOR_CST>: Likewise.
18365         <ADDR_EXPR>: Deal with LABEL_REFs.
18366         (copy_constant) <VECTOR_CST>: New case.
18367
18368 2010-04-27  Jan Hubicka  <jh@suse.cz>
18369
18370         * cgraph.c (cgraph_propagate_frequency): New function.
18371         * cgraph.h (cgraph_propagate_frequency): Declare.
18372         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
18373         cgraph_propagate_frequency.
18374
18375 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18376
18377         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
18378
18379 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
18380
18381         PR target/40657
18382         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
18383         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
18384         here to determine which regs to push and how much stack to reserve.
18385
18386 2010-04-27  Jie Zhang  <jie@codesourcery.com>
18387
18388         * doc/gimple.texi (gimple_statement_with_ops): Remove
18389         addresses_taken field.
18390         (gimple_statement_with_memory_ops): Likewise.
18391
18392 2010-04-27  Jan Hubicka  <jh@suse.cz>
18393
18394         * tree-inline.c (eni_inlining_weights): Remove.
18395         (estimate_num_insns): Special case more builtins.
18396
18397 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
18398
18399         PR c/32207
18400         * c-typeck.c (build_binary_op): Move forward check for comparison
18401         pointer with null pointer constant and adjust the diagnostic message.
18402
18403 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
18404
18405         PR lto/42776
18406         * configure.ac (gcc_cv_as_section_has_align): Set if installed
18407         binutils supports extended .section directive needed by LTO, or
18408         warn if older binutils found.
18409         (LTO_BINARY_READER): New AC_SUBST'd variable.
18410         (LTO_USE_LIBELF): Likewise.
18411         * gcc/config.gcc (lto_binary_reader): New target-specific configure
18412         variable.
18413         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
18414         (LTO_USE_LIBELF): Likewise.
18415         * configure: Regenerate.
18416
18417         * collect2.c (is_elf): Rename from this ...
18418         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
18419          object files in addition to ELF-formatted ones.
18420         (scan_prog_file): Caller updated.  Also allow for LTO info marker
18421         symbol to be prefixed or not by an extra underscore.
18422
18423         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
18424         * config/i386/winnt.c: Also #include lto-streamer.h
18425         (i386_pe_asm_named_section): Specify 1-byte section alignment for
18426         LTO named sections.
18427         (i386_pe_asm_output_aligned_decl_common): Add comment.
18428         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
18429
18430 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
18431
18432         PR target/43889
18433         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
18434         Add missing earlyclobber for second alternative.
18435
18436 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
18437
18438         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
18439         bits for artificial defs at the top of the block.
18440         * fwprop.c (single_def_use_enter_block): Don't call it.
18441
18442 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
18443
18444         PR 43715
18445         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
18446         instead of "$gcc_cv_objdump -T".
18447         Use "-undefined dynamic_lookup" on darwin.
18448         * gcc/configure: Regenerate.
18449
18450 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18451
18452         PR c/43893
18453         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
18454
18455 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18456
18457         * c-parser.c (struct c_token): Move location field up.
18458         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
18459         (struct c_declspecs): Convert typespec_word, storage_class, and
18460         default_int_p into bitfields.
18461         (struct c_declarator): Move loc field up.
18462
18463 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18464
18465         * cfgloop.h (struct loop): Move can_be_parallel field up.
18466         * ipa-prop.h (struct ip_node_params): Move bitfields up.
18467         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
18468         down.
18469         (struct iv_cand): Convert pos field into a bitfield.
18470         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
18471         field up.
18472         (struct _stmt_vec_info): Shuffle fields for better packing.
18473
18474 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18475
18476         * varasm.c (IN_NAMED_SECTION): Remove guard.
18477         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
18478         (IN_NAMED_SECTION_P): ...this.
18479         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
18480         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
18481
18482 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18483
18484         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
18485         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
18486         of shadowing it.  Fix comments.
18487
18488 2010-04-26  Jan Hubicka  <jh@suse.cz>
18489
18490         * cgraph.c (cgraph_create_node): Set node frequency to normal.
18491         (cgraph_clone_node): Copy function frequency.
18492         * cgraph.h (node_frequency): New enum
18493         (struct cgraph_node): Add.
18494         * final.c (rest_of_clean_state): Update.
18495         * lto-cgraph.c (lto_output_node): Output node frequency.
18496         (input_overwrite_node): Input node frequency.
18497         * tre-ssa-loop-ivopts (computation_cost): Update.
18498         * lto-streamer-out.c (output_function): Do not output function
18499         frequency.
18500         * predict.c (maybe_hot_frequency_p): Update and handle functions
18501         executed once.
18502         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
18503         attribute lookup.
18504         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
18505         (compute_function_frequency): Set noreturn functions to be executed
18506         once.
18507         (choose_function_section): Update.
18508         * lto-streamer-in.c (input_function): Do not input function frequency.
18509         * function.c (allocate_struct_function): Do not initialize function
18510         frequency.
18511         * function.h (function_frequency): Remove.
18512         (struct function): Remove function frequency.
18513         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
18514         (try_update): Update.
18515         * tree-inline.c (initialize_cfun): Do not update function frequency.
18516         * passes.c (pass_init_dump_file): Update.
18517         * i386.c (ix86_compute_frame_layout): Update.
18518         (ix86_pad_returns): Update.
18519
18520 2010-04-26  Jie Zhang  <jie@codesourcery.com>
18521
18522         PR tree-optimization/43833
18523         * tree-vrp.c (range_int_cst_p): New.
18524         (range_int_cst_singleton_p): New.
18525         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
18526         when both operands are constants.  Use range_int_cst_p in
18527         BIT_IOR_EXPR case.
18528
18529 2010-04-26  Jan Hubicka  <jh@suse.cz>
18530
18531         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
18532
18533 2010-04-26  Richard Guenther  <rguenther@suse.de>
18534
18535         PR lto/43080
18536         * gimple.c (gimple_decl_printable_name): Deal gracefully
18537         with a NULL DECL_NAME.
18538
18539 2010-04-26  Richard Guenther  <rguenther@suse.de>
18540
18541         PR lto/42425
18542         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
18543         if emitting debug information and it is either a function
18544         or a namespace decl.
18545
18546 2010-04-26  Ira Rosen  <irar@il.ibm.com>
18547
18548         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
18549         determine if the statement is vectorizable, and a macro to access it.
18550         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18551         Skip statements that can't be vectorized. If the analysis fails,
18552         mark the statement as unvectorizable if vectorizing basic block.
18553         (vect_compute_data_refs_alignment): Likewise.
18554         (vect_verify_datarefs_alignment): Skip statements marked as
18555         unvectorizable. Add print.
18556         (vect_analyze_group_access): Skip statements that can't be
18557         vectorized. If the analysis fails, mark the statement as
18558         unvectorizable if vectorizing basic block.
18559         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
18560         * tree-vect-stmts.c (vectorizable_store): Fix the number of
18561         generated stmts for SLP.
18562         (new_stmt_vec_info): Initialize the new field.
18563         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
18564         statements marked as unvectorizable.
18565
18566 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
18567
18568         * c-common.c (flag_isoc1x): New.
18569         (flag_isoc99): Update comment.
18570         * c-common.h (flag_isoc1x): New.
18571         (flag_isoc99): Update comment.
18572         * c-cppbuiltin.c (builtin_define_float_constants): Also define
18573         __<type>_DECIMAL_DIG__.
18574         * c-opts.c (set_std_c1x): New.
18575         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
18576         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
18577         * c.opt (-std=c1x, -std=gnu1x): New options.
18578         * doc/cpp.texi: Mention -std=c1x.
18579         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
18580         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
18581         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
18582         * doc/standards.texi: Mention C1X.
18583         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
18584         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
18585         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18586         Define for C1X.
18587
18588 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
18589
18590         * config/i386/gmon-sol2.c (_mcleanup): Change format string
18591         placeholder from 0x%x to %#x.
18592         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18593         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18594         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18595         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18596         * config/i386/i386.c (ix86_target_string): Ditto.
18597         (output_pic_addr_const): Ditto.
18598         (print_operand): Ditto.
18599
18600 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
18601
18602         * combine.c (find_split_point): Add third argument.  Use it
18603         to find nested multiply-accumulate instructions.  Adjust calls.
18604         (try_combine): Adjust call to find_split_point.
18605
18606 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18607
18608         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
18609
18610 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
18611
18612         PR tree-optimization/41442
18613         * fold-const.c (merge_truthop_with_opposite_arm): New function.
18614         (fold_binary_loc): Call it.
18615
18616 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18617
18618         * toplev.c (general_init): Set default for fdiagnostics-show-option.
18619         * opts.c (common_handle_option): Allow disabling it.
18620         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
18621
18622 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
18623
18624         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
18625         between modes if both types are integral.
18626
18627 2010-04-23  Richard Guenther  <rguenther@suse.de>
18628
18629         PR tree-optimization/43572
18630         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
18631
18632 2010-04-23  Richard Guenther  <rguenther@suse.de>
18633
18634         PR lto/43455
18635         * tree-inline.c (tree_can_inline_p): Also check compatibility
18636         of return types.
18637
18638 2010-04-23  Martin Jambor  <mjambor@suse.cz>
18639
18640         PR tree-optimization/43846
18641         * tree-sra.c (struct access): New flag grp_assignment_read.
18642         (build_accesses_from_assign): Set grp_assignment_read.
18643         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
18644         (enum mark_read_status): New type.
18645         (analyze_access_subtree): Propagate grp_assignment_read, create
18646         accesses also if both direct_read and root->grp_assignment_read.
18647
18648 2010-04-23  Martin Jambor  <mjambor@suse.cz>
18649
18650         PR middle-end/43835
18651         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
18652         function does not have type attributes.
18653
18654 2010-04-23  Richard Guenther  <rguenther@suse.de>
18655
18656         PR lto/42653
18657         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
18658         of FUNCTION_DECLs.
18659
18660 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18661
18662         * sese.h (create_if_region_on_edge): Remove.
18663
18664         * sese.c (create_if_region_on_edge): Make static.
18665
18666         * tree-inline.c: Do not include ggc.h.
18667
18668         * expr.c: Do not include ggc.h.
18669
18670         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
18671         dependencies.
18672
18673 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
18674
18675         PR target/43744
18676         * config/sh/sh.c (find_barrier): Don't emit a constant pool
18677         in the middle of insns for casesi_worker_2.
18678
18679 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
18680
18681         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
18682
18683 2010-04-22  Ira Rosen  <irar@il.ibm.com>
18684
18685         PR tree-optimization/43842
18686         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
18687         loop unrolling in update of exit phis. Fix comment.
18688         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
18689         least two reduction statements in the loop before starting SLP
18690         analysis.
18691
18692 2010-04-22  Nick Clifton  <nickc@redhat.com>
18693
18694         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
18695
18696 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
18697
18698         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
18699         to simplify a + ~a.
18700
18701 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18702
18703         * tree-parloops.c (loop_parallel_p): New argument
18704         parloop_obstack.  Pass it down.
18705         (parallelize_loops): New variable parloop_obstack.  Initialize it,
18706         pass it down, free it.
18707
18708         * tree-loop-linear.c (linear_transform_loops): Pass down
18709         lambda_obstack.
18710
18711         * tree-data-ref.h (lambda_compute_access_matrices): New argument
18712         of type struct obstack *.
18713
18714         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
18715         scratch_obstack.  Initialize it, pass down, free it.
18716
18717         * lambda.h (lambda_loop_new): Remove.
18718         (lambda_matrix_new, lambda_matrix_inverse)
18719         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
18720         argument of type struct obstack *.
18721
18722         * lambda-trans.c (lambda_trans_matrix_new): New argument
18723         lambda_obstack.  Pass it down, use obstack allocation for ret.
18724         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
18725         it down.
18726
18727         * lambda-mat.c (lambda_matrix_get_column)
18728         (lambda_matrix_project_to_null): Remove.
18729         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
18730         allocation for mat.
18731         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
18732         lambda_obstack.
18733
18734         * lambda-code.c (lambda_loop_new): New function.
18735         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
18736         (lambda_compute_auxillary_space, lambda_compute_target_space)
18737         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
18738         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
18739         (build_access_matrix): New argument lambda_obstack.  Use obstack
18740         allocation for am.
18741         (lambda_compute_step_signs, lambda_compute_access_matrices): New
18742         argument lambda_obstack.  Pass it down.
18743
18744 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
18745
18746         * optabs.h (expand_widening_mult): Declare.
18747
18748 2010-04-22  Richard Guenther  <rguenther@suse.de>
18749
18750         PR tree-optimization/43845
18751         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
18752         lookup the CALL_EXPR function and arguments.
18753
18754 2010-04-22  Nick Clifton  <nickc@redhat.com>
18755
18756         * config/stormy16/stormy16.c
18757         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
18758         * config/stormy16/stormy16.h: Tidy up formatting.
18759         (DONT_USE_BUILTIN_SETJMP): Remove definition.
18760         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
18761         (ineqbranchsi): Delete pattern.
18762         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
18763         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
18764         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
18765         stormy16-lib2-ucmpsi2.c.
18766
18767 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
18768
18769         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
18770         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
18771         extra set merge_set_noclobber, and use it to relax the final test
18772         slightly.
18773         * df.h (df_simulate_find_noclobber_defs): Declare.
18774         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
18775         conditional defs.
18776         (df_simulate_find_noclobber_defs): New function.
18777
18778 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
18779
18780         * config/i386/i386.md: Use {} around multi-line preparation statements.
18781
18782 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18783
18784         * c-tree.h (push_init_level, pop_init_level, set_init_index)
18785         (process_init_element): New argument of type struct obstack *.
18786
18787         * c-typeck.c (push_init_level, pop_init_level, set_designator)
18788         (set_init_index, set_init_label, set_nonincremental_init)
18789         (set_nonincremental_init_from_string, find_init_member)
18790         (output_init_element, output_pending_init_elements)
18791         (process_init_element): New argument braced_init_obstack.  Pass it
18792         down.
18793         (push_range_stack, add_pending_init): New argument
18794         braced_init_obstack.  Use obstack allocation.
18795
18796         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
18797         braced_init_obstack.  Pass it down.
18798         (c_parser_braced_init): New variables ret, braced_init_obstack.
18799         Initialize obstack, pass it down and finally free it.
18800
18801 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
18802
18803         PR middle-end/29274
18804         * tree-pass.h (pass_optimize_widening_mul): Declare.
18805         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
18806         gate_optimize_widening_mul): New static functions.
18807         (pass_optimize_widening_mul): New.
18808         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
18809         <case MULT_EXPR>: Remove support for widening multiplies.
18810         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
18811         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
18812         simplify_gen_unary rather than directly building extensions.
18813         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
18814         WIDEN_MULT_EXPR.
18815         * expmed.c (expand_widening_mult): New function.
18816         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
18817
18818 2010-04-21  Jan Hubicka  <jh@suse.cz>
18819
18820         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
18821         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
18822         * lto-wpa-fixup.c: Remove.
18823         * Makefile.in (lto-wpa-fixup.o): Remove.
18824         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
18825         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
18826         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
18827
18828 2010-04-21  Jan Hubicka  <jh@suse.cz>
18829
18830         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
18831         add write_optimization_summary, read_optimization_summary.
18832         (ipa_write_summaries_of_cgraph_node_set): Remove.
18833         (ipa_write_optimization_summaries): Declare.
18834         (ipa_read_optimization_summaries): Declare.
18835         * ipa-cp.c (pass_ipa_cp): Update.
18836         * ipa-reference.c (pass_ipa_reference): Update.
18837         * ipa-pure-const.c (pass_ipa_pure_const): Update.
18838         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
18839         Update.
18840         * ipa-inline.c (pass_ipa_inline): Update.
18841         * ipa.c (pass_ipa_whole_program): Update.
18842         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
18843         * passes.c (ipa_write_summaries_1): Do not test wpa.
18844         (ipa_write_optimization_summaries_1): New.
18845         (ipa_write_optimization_summaries): New.
18846         (ipa_read_summaries): Do not test ltrans.
18847         (ipa_read_optimization_summaries_1): New.
18848         (ipa_read_optimization_summaries): New.
18849
18850 2010-04-21  Jan Hubicka  <jh@suse.cz>
18851
18852         * lto-cgraph.c (lto_output_node): Do not output comdat groups
18853         for boundary nodes.
18854         (output_cgraph): Do not arrange comdat groups for boundary nodes.
18855
18856 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18857
18858         PR debug/40040
18859         * dwarf2out.c (add_name_and_src_coords_attributes): Add
18860         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
18861
18862 2010-04-21  Jan Hubicka  <jh@suse.cz>
18863
18864         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
18865
18866 2010-04-21  Jan Hubicka  <jh@suse.cz>
18867
18868         * varpool.c (decide_is_variable_needed): Variable is always needed
18869         during ltrans.
18870
18871 2010-04-21  Jan Hubicka  <jh@suse.cz>
18872
18873         * opts.c (decode_options): Enable pure-const pass for whopr.
18874
18875 2010-04-21  Jan Hubicka  <jh@suse.cz>
18876
18877         * cgraph.c (dump_cgraph_node): Dump also assembler name.
18878         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
18879         at WPA dumping.
18880         (cgraph_decide_inlining): Do not expect callee to be removed in all
18881         cases.
18882
18883 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
18884
18885         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
18886
18887 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
18888
18889         * config/i386/i386.md (x86_shrd): Add athlon_decode and
18890         amdfam10_decode attributes.
18891
18892 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18893
18894         PR middle-end/43570
18895         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
18896         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
18897         (lower_copyprivate_clauses): Use private var in outer
18898         context instead of original var.  Make sure the types
18899         are correct for VLAs.
18900
18901 2010-04-21  Richard Guenther  <rguenther@suse.de>
18902
18903         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
18904         to non-pointer objects.
18905
18906 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18907
18908         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
18909         last chain entry if it starts with the still current label.
18910         (add_location_or_const_value_attribute): Check that
18911         loc_list->first->next is NULL instead of comparing ->first with ->last.
18912         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
18913         to add_var_loc_to_decl.
18914
18915         * dwarf2out.c (output_call_frame_info): For dw_cie_version
18916         >= 4 add also address size and segment size fields into CIE header.
18917
18918         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
18919         long as address size is the same as sizeof (void *) and
18920         segment size is 0.
18921         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
18922         address size or segment size is unexpected, return DW_EH_PE_omit.
18923         (classify_object_over_fdes): If get_cie_encoding returned
18924         DW_EH_PE_omit, return -1.
18925         (init_object): If classify_object_over_fdes returned -1,
18926         pretend there were no FDEs at all.
18927
18928 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
18929
18930         * config/i386/i386.md (bswap<mode>2): Macroize expander from
18931         bswap{si,di}2 using SWI48 mode iterator.
18932         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
18933         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
18934         set modrm attribute of bswap insn to 0 and remove length attribute.
18935         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
18936         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
18937         set mode attribute to <MODE> and remove length attribute.
18938
18939 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
18940
18941         PR rtl-optimization/43520
18942         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
18943         zero available registers.
18944
18945 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18946
18947         * builtins.c (fold_builtin_cproj): Fold more cases.
18948
18949 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18950
18951         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
18952         (fold_builtin_1): Fold builtin cproj.
18953         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
18954         Use ATTR_CONST_NOTHROW_LIST.
18955
18956 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
18957
18958         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
18959         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
18960         ffsi2_no_cmove for !TARGET_CMOVE.
18961         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
18962         (ffssi2): Remove expander.
18963         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
18964         mode iterator.
18965         (ctz<mode>2): Ditto from ctz{si,di}2.
18966         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
18967         mode iterator.
18968         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
18969         mode iterator.
18970
18971 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18972
18973         * dwarf2out.c (AT_linkage_name): Define.
18974         (clone_as_declaration): Handle DW_AT_linkage_name.
18975         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
18976         of DW_AT_MIPS_linkage_name.
18977         (move_linkage_attr): Likewise.
18978         (dwarf2out_finish): Likewise.
18979
18980 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
18981
18982         PR middle-end/41952
18983         * fold-const.c (fold_comparison): New folding rule.
18984
18985 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
18986
18987         * double-int.h (double_int_setbit): Declare.
18988         * double-int.c (double_int_setbit): New function.
18989         * rtl.h (immed_double_int_const): Declare.
18990         * emit-rtl.c (immed_double_int_const): New function.
18991         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
18992         and immed_double_int_const functions.
18993         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
18994         expand_copysign_bit): (Ditto.).
18995         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
18996         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
18997         * dojump.c (prefer_and_bit_test): (Ditto.).
18998         * expr.c (convert_modes, reduce_to_bit_field_precision,
18999         const_vector_from_tree): (Ditto.).
19000         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19001
19002 2010-04-20  Jan Hubicka  <jh@suse.cz>
19003
19004         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
19005         (dump_cgraph_node): Dump new flags.
19006         * cgraph.h (struct cgraph_node): Add flags
19007         reachable_from_other_partition and in_other_partition.
19008         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
19009         other partition can not be removed.
19010         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
19011         the other partition must be output; silence sanity checking on
19012         leaking functions bodies from other paritition.
19013         * lto-cgraph.c (reachable_from_other_partition_p): New function.
19014         (lto_output_node): Output new flags; do not sanity check that inline
19015         clones are output; drop lto_forced_extern_inline_p code; do not mock
19016         visibility flags at partition boundaries.
19017         (add_node_to): New function.
19018         (output_cgraph): Use it to sort functions so masters appear before
19019         clones.
19020         (input_overwrite_node): Input new flags.
19021         * passes.c (ipa_write_summaries): Do not call
19022         lto_new_extern_inline_states.
19023         * lto-section-out.c (forced_extern_inline,
19024         lto_new_extern_inline_states lto_delete_extern_inline_states,
19025         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
19026         * lto-streamer.h (lto_new_extern_inline_states,
19027         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
19028         lto_forced_extern_inline_p): Kill.
19029
19030 2010-04-20  Richard Guenther  <rguenther@suse.de>
19031
19032         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
19033         from vars that can have pointers.
19034         (process_constraint): Dump useless constraints.
19035
19036 2010-04-20  Richard Guenther  <rguenther@suse.de>
19037
19038         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
19039         (dump_sa_points_to_info): Remove asserts.
19040         (init_base_vars): nothing_id isn't an escape point nor does it
19041         have pointers.
19042
19043 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19044
19045         * tree.h (TYPE_REF_IS_RVALUE): Define.
19046         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
19047         should_move_die_to_comdat, prune_unused_types_walk): Handle
19048         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
19049         (modified_type_die, gen_reference_type_die): Emit
19050         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
19051         if TYPE_REF_IS_RVALUE and -gdwarf-4.
19052
19053 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19054
19055         PR target/43635
19056         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
19057         calls for -fpic -m31 if they have been sibcall optimized.
19058
19059 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
19060
19061         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
19062         ar.lc fixed and call-used.
19063
19064         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
19065
19066 2010-04-19  Jan Hubicka  <jh@suse.cz>
19067
19068         * opts.c (decode_options): Disable whpr incompatible passes.
19069         * lto/lto.c (lto_1_to_1_map): Skip clones.
19070         (read_cgraph_and_symbols): Do not mark everything as needed.
19071         (do_whole_program_analysis): Do map only after optimizing;
19072         set proper cgraph_state; use passmanager.
19073
19074 2010-04-19  DJ Delorie  <dj@redhat.com>
19075
19076         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
19077         POINTER_PLUS_EXPR and fix them.
19078
19079 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
19080
19081         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
19082         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
19083         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
19084         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
19085         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
19086         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
19087         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
19088         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
19089         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
19090         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
19091         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
19092
19093 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
19094
19095         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
19096         (check_cond_move_block): Likewise.
19097         (cond_move_process_if_block): Likewise.
19098         (noce_find_if_block): Improve formatting.
19099         (find_if_header): Pass 0 to memset and tweak conditions.
19100         (cond_exec_find_if_block): Fix long lines and tweak conditions.
19101
19102 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19103
19104         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
19105         for -gdwarf-4.
19106
19107         PR middle-end/43337
19108         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
19109         with non-local decl doesn't need chain.
19110
19111 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
19112
19113         * ira-color.c (allocno_reload_assign): Avoid accumulating
19114         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
19115
19116 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19117
19118         * gimple.h (create_tmp_reg): Declare.
19119         * gimplify.c (create_tmp_reg): New function.
19120         (gimplify_return_expr): Use create_tmp_reg.
19121         (gimplify_omp_atomic): Likewise.
19122         (gimple_regimplify_operands): Likewise.
19123         * tree-dfa.c (make_rename_temp): Likewise.
19124         * tree-predcom.c (predcom_tmp_var): Likewise.
19125         (reassociate_to_the_same_stmt): Likewise.
19126         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
19127         (get_replaced_param_substitute): Likewise.
19128         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
19129         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
19130         * tree-ssa-pre.c (get_representative_for): Likewise.
19131         (create_expression_by_pieces): Likewise.
19132         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
19133         (create_tailcall_accumulator): Likewise.
19134
19135 2010-04-19  Martin Jambor  <mjambor@suse.cz>
19136
19137         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
19138         new_stmt.
19139         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
19140
19141 2010-04-19  Richard Guenther  <rguenther@suse.de>
19142
19143         PR tree-optimization/43796
19144         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
19145         from SCEV in the lattice.
19146         (vrp_visit_phi_node): Dump change.
19147
19148 2010-04-19  Richard Guenther  <rguenther@suse.de>
19149
19150         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
19151         * configure: Re-generated.
19152
19153 2010-04-19  Richard Guenther  <rguenther@suse.de>
19154
19155         PR tree-optimization/43783
19156         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
19157         constant ARRAY_REF operands two and three if possible.
19158
19159 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
19160
19161         PR target/43766
19162         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
19163
19164 2010-04-19  Jie Zhang  <jie@codesourcery.com>
19165
19166         PR target/43662
19167         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
19168
19169 2010-04-19  Ira Rosen  <irar@il.ibm.com>
19170
19171         PR tree-optimization/37027
19172         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
19173         and macro to access it.
19174         (vectorizable_reduction): Add argument.
19175         (vect_get_slp_defs): Likewise.
19176         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
19177         statements for possible use in SLP.
19178         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
19179         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
19180         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
19181         add new argument.
19182         (vectorizable_reduction): Likewise.
19183         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
19184         vect_get_slp_defs.
19185         (vectorizable_type_demotion, vectorizable_type_promotion,
19186         vectorizable_store): Likewise.
19187         (vect_analyze_stmt): Update call to vectorizable_reduction.
19188         (vect_transform_stmt): Likewise.
19189         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
19190         (vect_build_slp_tree): Fix indentation. Check that there are no loads
19191         from different interleaving chains in same node.
19192         (vect_slp_rearrange_stmts): New function.
19193         (vect_supported_load_permutation_p): Allow load permutations for
19194         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
19195         inside SLP nodes if necessary.
19196         (vect_analyze_slp_instance): Handle reductions.
19197         (vect_analyze_slp): Try to build SLP instances originating from groups
19198         of reductions.
19199         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
19200         (vect_get_constant_vectors): Create initial vectors for reductions
19201         according to reduction code. Add new argument.
19202         (vect_get_slp_defs): Add new argument, pass it to
19203         vect_get_constant_vectors.
19204         (vect_schedule_slp_instance): Remove SLP tree root statements.
19205
19206 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
19207
19208         * tree.h (ENUM_IS_SCOPED): Define.
19209         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
19210         for ENUM_IS_SCOPED enums.
19211
19212 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
19213
19214         * fold-const.c (fold_comparison): Use ssizetype.
19215         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
19216         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
19217         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
19218         * tree-object-size.c (compute_object_sizes): Use size_type_node.
19219
19220         * tree.h (initialize_sizetypes): Remove parameter.
19221         (build_common_tree_nodes): Remove second parameter.
19222         * stor-layout.c (initialize_sizetypes): Remove parameter.
19223         Always create an unsigned type.
19224         (set_sizetype): Assert that the passed type is unsigned and simplify.
19225         * tree.c (build_common_tree_nodes): Remove second parameter.
19226         Adjust call to initialize_sizetypes.
19227         * c-decl.c (c_init_decl_processing): Remove second argument in call to
19228         build_common_tree_nodes.
19229
19230 2010-04-18  Matthias Klose  <doko@ubuntu.com>
19231
19232         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
19233
19234 2010-04-18  Ira Rosen  <irar@il.ibm.com>
19235
19236         PR tree-optimization/43771
19237         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
19238         load permutation doesn't have gaps.
19239
19240 2010-04-18  Jan Hubicka  <jh@suse.cz>
19241
19242         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
19243         (sse_prologue_save_insn expander): Use new pattern.
19244         (sse_prologue_save_insn1): New pattern and splitter.
19245         (sse_prologue_save_insn): Update to deal also with 64bit aligned
19246         blocks.
19247         * i386.c (setup_incoming_varargs_64): Do not compute jump
19248         destination here.
19249         (ix86_gimplify_va_arg): Update alignment needed.
19250         (ix86_local_alignment): Do not align all local arrays to 128bit.
19251
19252 2010-04-17  Jan Hubicka  <jh@suse.cz>
19253
19254         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
19255
19256 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19257
19258         * arm.md (negdi2): Remove redundant code to force values into a
19259         register.
19260
19261 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19262
19263         * arm/bpabi.S: Add EABI alignment attributes to objects.
19264         * arm/bpabi-v6m.S: Likewise.
19265         * arm/crti.asm: Likewise.
19266         * arm/crtn.asm: Likewise.
19267         * arm/lib1funcs.asm: Likewise.
19268         * arm/libunwind.S: Likewise.
19269
19270 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19271
19272         * arm-protos.h (tune_params): New structure.
19273         * arm.c (current_tune): New variable.
19274         (arm_constant_limit): Delete.
19275         (struct processors): Add pointer to the tune parameters.
19276         (arm_slowmul_tune): New tuning option.
19277         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
19278         (all_cores): Adjust to pick up the tuning model.
19279         (arm_constant_limit): New function.
19280         (arm_override_options): Select the appropriate tuning model.  Delete
19281         initialization of arm_const_limit.
19282         (arm_split_constant): Use the new constant-limit model.
19283         (arm_rtx_costs): Pick up the current tuning model.
19284         * arm.md (is_strongarm, is_xscale): Delete.
19285         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
19286         for Xscale variant architectures.
19287         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
19288
19289 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19290
19291         * config/arm/arm.c (arm_gen_constant): Remove unused variable
19292         can_shift.
19293         (arm_rtx_costs_1): Remove unused variable extra_cost.
19294         (arm_unwind_emit_set): Use variable offset.
19295         (thumb1_output_casesi): Remove unused variable flags.
19296
19297 2010-04-16  Jeff Law  <law@redhat.com>
19298
19299         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
19300         needing assignment rather than doing a two-phase assignment.  Remove
19301         unused variable 'm'.
19302
19303 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19304
19305         PR bootstrap/43767
19306         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
19307
19308 2010-04-16  Doug Kwan  <dougkwan@google.com>
19309
19310         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
19311         (next_operand_entry_id): New static variable.
19312         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
19313         (add_to_ops_vec): Assigned unique ID to operand entry.
19314         (struct oecount_s): New field ID.
19315         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
19316         (undistribute_ops_list): Assign unique IDs to oecounts.
19317         (init_reassoc): reset next_operand_entry_id.
19318
19319 2010-04-16  Doug Kwan  <dougkwan@google.com>
19320
19321         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
19322         missing left parenthesis.
19323
19324 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
19325
19326         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
19327         *btdi_rex64 using SWI48 mode iterator.
19328         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
19329         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
19330         *jcc_btdi_mask_rex64.
19331
19332 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
19333
19334         * double-int.h (tree_to_double_int): Convert to macro.
19335         * double-int.c (tree_to_double_int): Remove.
19336
19337 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19338
19339         PR debug/43762
19340         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
19341         with want_address 2 and in case a single element list might be
19342         possible, call it again with want_address 0.
19343
19344 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19345
19346         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
19347         case 'W' print operands for HI mode.
19348         * config/h8300/h8300.h (Y0, Y2) : New constraints.
19349         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
19350         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
19351         * config/h8300/predicate.md (bit_register_indirect_operand): New.
19352
19353         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
19354
19355         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
19356         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
19357         #xx:3 and #xx:4 mode.
19358
19359         * config/h8300/h8300.md (inverted load with HImode dest): Add
19360         support for H8300SX.
19361
19362         * config/h8300/predicate.md (bit_operand): Allow immediate values that
19363         satisfy 'U' constraint.
19364
19365 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19366
19367         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
19368         * configure: Regenerate.
19369         * config.in: Regenerate.
19370         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
19371         works.
19372
19373 2010-04-16  Richard Guenther  <rguenther@suse.de>
19374
19375         * tree.h (struct tree_decl_minimal): Move pt_uid ...
19376         (struct tree_decl_common): ... here.
19377         (DECL_PT_UID): Adjust.
19378         (SET_DECL_PT_UID): Likewise.
19379         (DECL_PT_UID_SET_P): Likewise.
19380
19381 2010-04-16  Richard Guenther  <rguenther@suse.de>
19382
19383         PR tree-optimization/43572
19384         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
19385         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
19386         * tree-flow.h (is_call_clobbered): Remove.
19387         * tree-flow-inline.h (is_call_clobbered): Likewise.
19388         * tree-dfa.c (dump_variable): Do not dump call clobber state.
19389         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
19390         (execute_return_slot_opt): Adjust.
19391         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
19392         check for call clobbered vars here.
19393         (find_tail_calls): Move tailcall verification to the
19394         proper place.
19395
19396 2010-04-16  Diego Novillo  <dnovillo@google.com>
19397
19398         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
19399
19400 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19401
19402         PR target/40603
19403         * config/arm/arm.md (cbranchqi4): New pattern.
19404         * config/arm/predicates.md (const0_operand,
19405         cbranchqi4_comparison_operator): New predicates.
19406
19407 2010-04-16  Richard Guenther  <rguenther@suse.de>
19408
19409         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
19410         (dump_gimple_stmt): Likewise.
19411
19412 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19413
19414         * recog.h (struct recog_data): New field is_operator.
19415         (struct insn_operand_data): New field is_operator.
19416         * recog.c (extract_insn): Set recog_data.is_operator.
19417         * genoutput.c (output_operand_data): Emit code to set the
19418         is_operator field.
19419         * reload.c (find_reloads): Use it rather than testing for an
19420         empty constraint string.
19421
19422         PR target/41514
19423         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
19424         If the previous insn is a cbranchsi4_insn with the same arguments,
19425         omit the compare instruction.
19426
19427         * config/arm/arm.md (addsi3_cbranch): If destination is a high
19428         register, inputs must be low registers and we need a low register
19429         scratch.  Handle alternative 2 like alternative 3.
19430
19431 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19432
19433         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
19434         don't call get_addr on both.  If one expression is a VALUE and
19435         the other a REG, check VALUE's locs if the REG isn't among them.
19436
19437 2010-04-16  Christian Bruel  <christian.bruel@st.com>
19438
19439         * config/sh/sh.h (sh_frame_pointer_required): New function.
19440         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
19441         (flag_omit_frame_pointer) Set.
19442         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
19443         (rounded_frame_size): Adjust size with outgoing_args_size.
19444         (sh_set_return_address): Must return from stack pointer.
19445         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
19446         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19447         (ACCUMULATE_OUTGOING_ARGS): Define.
19448         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
19449         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
19450
19451 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19452
19453         PR target/43471
19454         * config/sh/sh.c (sh_legitimize_reload_address): Use
19455         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
19456         Remove a unneeded check for offset_base.
19457
19458 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19459
19460         * configure: Regenerated.
19461
19462 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19463
19464         * config/s390/s390.c (s390_call_save_register_used): Switch back
19465         to HARD_REGNO_NREGS.
19466
19467 2010-04-15  Richard Guenther  <rguenther@suse.de>
19468
19469         * alias.c (alias_set_subset_of): Handle alias-set zero
19470         child properly.
19471
19472 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
19473             Julian Brown  <julian@codesourcery.com>
19474
19475         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
19476         alternatives according to use of high and low regs.
19477         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19478         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
19479         optimizing for size on Thumb-2.
19480
19481 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
19482
19483         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
19484
19485 2010-04-15  Richard Guenther  <rguenther@suse.de>
19486
19487         * tree-ssa-structalias.c (struct variable_info): Add
19488         is_fn_info flag.
19489         (new_var_info): Initialize it.
19490         (dump_constraints): Support printing last added constraints.
19491         (debug_constraints): Adjust.
19492         (dump_constraint_graph): Likewise.
19493         (make_heapvar_for): Check for NULL cfun.
19494         (get_function_part_constraint): New function.
19495         (get_fi_for_callee): Likewise.
19496         (find_func_aliases): Properly implement IPA PTA constraints.
19497         (process_ipa_clobber): New function.
19498         (find_func_clobbers): Likewise.
19499         (insert_into_field_list_sorted): Remove.
19500         (create_function_info_for): Properly allocate vars for IPA mode.
19501         Do not use insert_into_field_list_sorted.
19502         (create_variable_info_for): Properly generate constraints for
19503         global vars in IPA mode.
19504         (dump_solution_for_var): Always dump the solution.
19505         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
19506         (find_what_var_points_to): Adjust.
19507         (pt_solution_set): Change.
19508         (pt_solution_ior_into): New function.
19509         (pt_solution_empty_p): Export.
19510         (pt_solution_includes_global): Adjust.
19511         (pt_solution_includes_1): Likewise.
19512         (pt_solutions_intersect_1): Likewise.
19513         (dump_sa_points_to_info): Check some invariants.
19514         (solve_constraints): Move constraint dumping ...
19515         (compute_points_to_sets): ... here.
19516         (ipa_pta_execute): ... and here.
19517         (compute_may_aliases): Do not re-compute points-to info
19518         locally if IPA info is available.
19519         (ipa_escaped_pt): New global var.
19520         (ipa_pta_execute): Properly implement IPA PTA.
19521         * tree-into-ssa.c (dump_decl_set): Support dumping
19522         decls not in referenced-vars.
19523         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
19524         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
19525         (dump_points_to_solution): Likewise.
19526         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
19527         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
19528         (remap_gimple_stmt): Reset call clobber/use information if necessary.
19529         (copy_decl_to_var): Copy DECL_PT_UID.
19530         (copy_result_decl_to_var): Likewise.
19531         * tree.c (make_node_stat): Initialize DECL_PT_UID.
19532         (copy_node_stat): Copy it.
19533         * tree.h (DECL_PT_UID): New macro.
19534         (SET_DECL_PT_UID): Likewise.
19535         (DECL_PT_UID_SET_P): Likewise.
19536         (struct tree_decl_minimal): Add pt_uid member.
19537         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
19538         (pt_solution_empty_p): Declare.
19539         (pt_solution_set): Adjust.
19540         (ipa_escaped_pt): Declare.
19541         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
19542         * gimple-pretty-print.c (pp_points_to_solution): New function.
19543         (dump_gimple_call): Dump call clobber/use information.
19544         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
19545         * tree-pass.h (TDF_ALIAS): New dump option.
19546         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
19547         * doc/invoke.texi (-fipa-pta): Update documentation.
19548
19549 2010-04-15  Richard Guenther  <rguenther@suse.de>
19550
19551         * Makefile.in (OBJS-common): Add gimple-fold.o.
19552         (gimple-fold.o): New rule.
19553         * tree.h (maybe_fold_offset_to_reference,
19554         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
19555         prototypes ...
19556         * gimple.h: ... here.
19557         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
19558         may_propagate_address_into_dereference): Move prototypes ...
19559         * gimple.h: ... here.
19560         * tree-ssa-ccp.c (get_symbol_constant_value,
19561         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
19562         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
19563         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
19564         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
19565         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
19566         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
19567         gimplify_and_update_call_from_tree): Move ...
19568         * gimple-fold.c: ... here.  New file.
19569         (ccp_fold_builtin): Rename to ...
19570         (gimple_fold_builtin): ... this.
19571         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
19572
19573 2010-04-15  Richard Guenther  <rguenther@suse.de>
19574
19575         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
19576         fit_double_type, force_fit_type_double, add_double_with_sign,
19577         neg_double, mul_double_with_sign, lshift_double, rshift_double,
19578         lrotate_double, rrotate_double, div_and_round_double): Move ...
19579         * double-int.c: ... here.
19580         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
19581         add_double, neg_double, mul_double_with_sign, mul_double,
19582         lshift_double, rshift_double, lrotate_double, rrotate_double,
19583         div_and_round_double): Move prototypes ...
19584         * double-int.h: ... here.
19585
19586 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
19587
19588         PR target/43742
19589         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
19590         matching constraints to ensure inputs match the output.
19591
19592 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19593
19594         PR target/43742
19595         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
19596         in an input-only operand.
19597
19598 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
19599
19600         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
19601         (double_int_not, double_int_lshift, double_int_rshift): Declare.
19602         (double_int_negative_p): Convert to static inline function.
19603         * double-int.c (double_int_lshift, double_int_lshift): New functions.
19604         (double_int_negative_p): Remove.
19605         * tree.h (lshift_double, rshift_double):
19606         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
19607         * fold-const.c (fold_convert_const_int_from_real,
19608         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
19609         (lshift_double): Change type of arith argument to bool.
19610         (rshift_double): Change type of arith argument to bool. Correct
19611         comment.
19612         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19613
19614 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
19615
19616         PR target/21803
19617         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
19618         at the start and end of the then/else blocks, and omit them from the
19619         conversion.
19620         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
19621         argument; all callers changed.  Pass zero to old_insns_match_p instead.
19622         (flow_find_head_matching_sequence): New function.
19623         (old_insns_match_p): Check REG_EH_REGION notes for calls.
19624         * basic-block.h (flow_find_cross_jump,
19625         flow_find_head_matching_sequence): Declare functions.
19626
19627 2010-04-14  Jason Merrill  <jason@redhat.com>
19628
19629         PR c++/36625
19630         * c-common.c (attribute_takes_identifier_p): New fn.
19631         * c-common.h: Declare it.
19632
19633 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19634
19635         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
19636         splitter condition.
19637         (*udivmod<mode>4): Ditto.
19638
19639 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19640
19641         * config/i386/i386.md (maxmin_int): Rename code attribute from
19642         maxminiprefix and update all users.
19643         (maxmin_float): Ditto from maxminfprefix.
19644         (logic): Ditto from logicprefix.
19645         (absneg_mnemonic): Ditto from absnegprefix.
19646         * config/i386/mmx.md: Update all users of maxminiprefix,
19647         maxminfprefix and logicprefix for rename.
19648         * config/i386/sse.md: Ditto.
19649         * config/i386/sync.md (sync_<code><mode>): Update for
19650         logicprefix rename.
19651
19652 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19653
19654         PR 42966
19655         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
19656         warnings converted to errors.
19657
19658 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19659
19660         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
19661         used insn_type variable.
19662         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
19663         to avoid set-but-not-used warning.
19664
19665 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19666
19667         * df-core.c (df_ref_debug): Change format string placeholder
19668         from 0x%x to %#x.
19669         * dwarf2asm.c (dw2_asm_output_data_raw,
19670         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
19671         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
19672         * dwarf2out.c (output_cfi, output_cfi_directive,
19673         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
19674         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
19675         Ditto.
19676         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
19677         * print-rtl.c (print_rtx): Ditto.
19678
19679 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19680
19681         PR middle-end/42694
19682         * builtins.c (expand_builtin_pow_root): New function to expand pow
19683         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
19684         series of sqrt and cbrt calls under -ffast-math.
19685         (expand_builtin_pow): Call it.
19686
19687 2010-04-14  Michael Matz  <matz@suse.de>
19688
19689         PR tree-optimization/42963
19690         * tree-cfg.c (touched_switch_bbs): New static variable.
19691         (group_case_labels_stmt): New function broken out from ...
19692         (group_case_labels): ... here, use the above.
19693         (start_recording_case_labels): Allocate touched_switch_bbs.
19694         (end_recording_case_labels): Deallocate it, call
19695         group_case_labels_stmt.
19696         (gimple_redirect_edge_and_branch): Remember index of affected BB.
19697
19698 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19699
19700         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
19701         from insn template.
19702
19703 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19704
19705         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
19706
19707 2010-04-13  Jan Hubicka  <jh@suse.cz>
19708
19709         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
19710         of optimized out static functions.
19711         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
19712         cost computation.  Also sanity check for overflows.
19713         (update_caller_keys): Update cgraph_edge_badness call; properly
19714         update fibheap and sanity check that it is up to date.
19715         (add_new_edges_to_heap): Update cgraph_edge_badness.
19716         (cgraph_decide_inlining_of_small_function): Likewise;
19717         add sanity checking that badness in heap is up to date;
19718         improve dumping of reason; Update badness of calls to the
19719         offline copy of function currently inlined; dump badness
19720         of functions not inlined because of unit growth limits.
19721
19722 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
19723
19724         PR middle-end/32628
19725         * c-common.c (pointer_int_sum): Disregard overflow that occured only
19726         because of sign-extension change when converting to sizetype here...
19727         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
19728
19729         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
19730         the folding to constants.  Remove redundant final conversion.
19731         (fold_binary) <associate>: Do not associate if the re-association of
19732         constants alone overflows.
19733         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
19734         to the end of the list.
19735         (multiple_of_p) <COND_EXPR>: New case.
19736
19737 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19738
19739         * opt-functions.awk (opt_sanitized_name): New.
19740         (opt_enum): New.
19741         * optc-gen.awk: Use it
19742         * opth-gen.awk: Use it.
19743
19744 2010-04-13  Martin Jambor  <mjambor@suse.cz>
19745
19746         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
19747         (sra_modify_assign): Delete stmts loading dead data even if racc has no
19748         children.  Call replace_uses_with_default_def_ssa_name to handle
19749         SSA_NAES on lhs.
19750
19751 2010-04-13  Michael Matz  <matz@suse.de>
19752
19753         PR middle-end/43730
19754         * builtins.c (expand_builtin_interclass_mathfn): Also create
19755         a register if the predicate doesn't match.
19756
19757 2010-04-13  Diego Novillo  <dnovillo@google.com>
19758
19759         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
19760         * c-pch.c: Include timevar.h.
19761         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
19762         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
19763         * ggc-common.c: Include timevar.h.
19764         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
19765         * timevar.def (TV_PCH_SAVE): Define.
19766         (TV_PCH_CPP_SAVE): Define.
19767         (TV_PCH_PTR_REALLOC): Define.
19768         (TV_PCH_PTR_SORT): Define.
19769         (TV_PCH_RESTORE): Define.
19770         (TV_PCH_CPP_RESTORE): Define.
19771
19772 2010-04-13  Michael Matz  <matz@suse.de>
19773
19774         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
19775         into MINUS_EXPRs.
19776         (can_reassociate_p): New function.
19777         (break_up_subtract_bb, reassociate_bb): Use it.
19778
19779 2010-04-13  Richard Guenther  <rguenther@suse.de>
19780
19781         PR bootstrap/43737
19782         * builtins.c (c_readstr): Fix assert.
19783
19784 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
19785
19786         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
19787         when generating cltd insn.
19788
19789         (*ashl<mode>3_1): Remove special handling for register operand 2.
19790         (*ashlsi3_1_zext): Ditto.
19791         (*ashlhi3_1): Ditto.
19792         (*ashlhi3_1_lea): Ditto.
19793         (*ashlqi3_1): Ditto.
19794         (*ashlqi3_1_lea): Ditto.
19795         (*<shiftrt_insn><mode>3_1): Ditto.
19796         (*<shiftrt_insn>si3_1_zext): Ditto.
19797         (*<shiftrt_insn>qi3_1_slp): Ditto.
19798         (*<rotate_insn><mode>3_1): Ditto.
19799         (*<rotate_insn>si3_1_zext): Ditto.
19800         (*<rotate_insn>qi3_1_slp): Ditto.
19801
19802 2010-04-13  Richard Guenther  <rguenther@suse.de>
19803
19804         * tree-ssa-structalias.c (callused_id): Remove.
19805         (call_stmt_vars): New.
19806         (get_call_vi): Likewise.
19807         (lookup_call_use_vi): Likewise.
19808         (lookup_call_clobber_vi): Likewise.
19809         (get_call_use_vi): Likewise.
19810         (get_call_clobber_vi): Likewise.
19811         (make_transitive_closure_constraints): Likewise.
19812         (handle_const_call): Adjust to do per-call call-used handling.
19813         (handle_pure_call): Likewise.
19814         (find_what_var_points_to): Remove general callused handling.
19815         (init_base_vars): Likewise.
19816         (init_alias_vars): Initialize call_stmt_vars.
19817         (compute_points_to_sets): Process call-used and call-clobbered
19818         vars for call statements.
19819         (delete_points_to_sets): Free call_stmt_vars.
19820
19821 2010-04-13  Richard Guenther  <rguenther@suse.de>
19822
19823         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19824         Only add RW dependence for dependence distance zero.
19825         Adjust maximal vectorization factor according to dependences.
19826         Move alignment handling ...
19827         (vect_find_same_alignment_drs): ... here.  New function.
19828         (vect_analyze_data_ref_dependences): Adjust.
19829         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
19830         (vect_analyze_data_refs): Adjust minimal vectorization factor
19831         according to data references.
19832         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
19833         dependences before determining the vectorization factor.
19834         Analyze alignment after determining the vectorization factor.
19835         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
19836         dependences before alignment.
19837         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
19838         Adjust prototype.
19839         (vect_analyze_data_refs): Likewise.
19840         (MAX_VECTORIZATION_FACTOR): New define.
19841
19842 2010-04-13  Duncan Sands  <baldrick@free.fr>
19843
19844         * except.h (lang_eh_type_covers): Remove.
19845         * except.c (lang_eh_type_covers): Likewise.
19846
19847 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19848             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19849
19850         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
19851         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
19852         UNITS_PER_LONG where it is ABI relevant.
19853         (s390_return_addr_rtx): Likewise.
19854         (s390_back_chain_rtx): Likewise.
19855         (s390_frame_area): Likewise.
19856         (s390_frame_info): Likewise.
19857         (s390_initial_elimination_offset): Likewise.
19858         (save_gprs): Likewise.
19859         (s390_emit_prologue): Likewise.
19860         (s390_emit_epilogue): Likewise.
19861         (s390_function_arg_advance): Likewise.
19862         (s390_function_arg): Likewise.
19863         (s390_va_start): Likewise.
19864         (s390_gimplify_va_arg): Likewise.
19865         (s390_function_profiler): Likewise.
19866         (s390_optimize_prologue): Likewise.
19867         (s390_rtx_costs): Likewise.
19868         (s390_secondary_reload): Likewise.
19869         (s390_promote_function_mode): Likewise.
19870         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
19871         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
19872         registers available.
19873         (s390_unwind_word_mode): New function.
19874         (s390_function_value): Split 64 bit values into register pair if
19875         used as return value.
19876         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
19877         function call parameters.  Handle parallels.
19878         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
19879         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
19880         (DWARF_CIE_DATA_ALIGNMENT): New macro.
19881         (s390_expand_setmem): Remove unused variable src_addr.
19882         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
19883         deal with 64 bit registers.
19884         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
19885         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
19886         (UNITS_PER_LONG): New macro.
19887         * libjava/include/s390-signal.h: Define extended ucontext
19888         structure containing the upper halfs of the 64 bit registers.
19889
19890 2010-04-13  Simon Baldwin  <simonb@google.com>
19891
19892         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
19893
19894 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
19895
19896         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
19897         rvalue on the RHS if the LHS is of a non-renamable type.
19898         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
19899
19900 2010-04-13  Matthias Klose  <doko@ubuntu.com>
19901
19902         * gcc.c (cc1_options): Handle -iplugindir before processing
19903         the cc1 spec. Only add -iplugindir once.
19904         (cpp_unique_options): Add -iplugindir option if -fplugin* options
19905         found.
19906         * common.opt (iplugindir): Remove `Separate' property, initialize.
19907         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
19908         option.
19909         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
19910         (distclean): Remove plugin dir.
19911         * doc/invoke.texi: Document -iplugindir.
19912
19913 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
19914
19915         * doc/plugins.texi (Loading Plugins): Document short
19916         -fplugin=foo option.
19917         (Plugin API): Mention default_plugin_dir_name function.
19918
19919         * gcc.c (find_file_spec_function): Add new declaration.
19920         (static_spec_func): Use it for "find-file".
19921         (find_file_spec_function): Add new function.
19922         (cc1_options): Add -iplugindir option if -fplugin* options found.
19923
19924         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
19925
19926         * plugin.c (add_new_plugin): Updated comment, and handle short
19927         plugin name.
19928         (default_plugin_dir_name): Added new function.
19929
19930         * common.opt (iplugindir): New option to set the plugin directory.
19931
19932 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
19933
19934         * config/i386/i386.md (any_rotate): New code iterator.
19935         (rotate_insn): New code attribute.
19936         (rotate): Ditto.
19937         (SWIM124): New mode iterator.
19938         (<rotate_insn>ti3): New expander.
19939         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
19940         any_rotate code iterator.
19941         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
19942         using any_rotate code iterator and SWIM124 mode iterator.
19943         (ix86_rotlti3): New insn_and_split pattern.
19944         (ix86_rotrti3): Ditto.
19945         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
19946         ix86_rotl{di,ti}3 patterns.
19947         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
19948         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
19949         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
19950         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
19951         code iterator and SWI mode iterator.
19952         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
19953         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
19954         code iterator.
19955         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
19956         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
19957         (bswap rotatert splitter): Add splitter.
19958         (bswap splitter): Macroize splitter using any_rotate code iterator.
19959         Add insn predicate to split only for TARGET_USE_XCHGB or when
19960         optimizing function for size.
19961
19962 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
19963
19964         * config/pa/pa.c (emit_move_sequence): Remove use of
19965         deleted variable flag_argument_noalias.
19966
19967 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19968
19969         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
19970         configurations.
19971         Add to unsupported targets list.
19972         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
19973         sparc*-sun-solaris2.[567]* from target lists.
19974         * configure: Regenerate.
19975         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
19976         removal.
19977         Remove Solaris 7 patch references.
19978         (Specific, sparc-sun-solaris2.7): Removed.
19979         (sparc-sun-solaris2*): Update Solaris 7 example.
19980         (sparc64-*-solaris2*): Likewise.
19981
19982 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19983
19984         * config.build (alpha*-dec-osf4*): Remove.
19985         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
19986         of obsolete configurations.
19987         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
19988         support.
19989         * config/alpha/t-osf4: Renamed to ...
19990         * config/alpha/t-osf5: ... this.
19991         * config/alpha/osf.h: Renamed to ...
19992         * config/alpha/osf5.h: ... this.
19993         Merged old osf5.h contents.
19994         Update comments.
19995         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
19996         (EXTRA_SPECS): Removed.
19997         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
19998         reflect removal of Tru64 UNIX V4.0/V5.0 support.
19999         Document that.
20000
20001 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20002
20003         * doc/contrib.texi (Contributors, Rainer Orth): Update.
20004
20005 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
20006
20007         PR/43702
20008         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
20009         __thiscall convention.
20010
20011 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20012
20013         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
20014         orig_base.
20015         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
20016
20017 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20018
20019         * function.c (assign_parms_initialize_all): Add unused attribute
20020         to fntype.
20021
20022 2010-04-12  Richard Guenther  <rguenther@suse.de>
20023
20024         * gsstruct.def (GSS_CALL): New.
20025         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
20026         * gimple.h: Include tree-ssa-alias.h.
20027         (struct gimple_statement_call): New.
20028         (union gimple_statement_struct_d): Add gimple_call member.
20029         (gimple_call_reset_alias_info): Declare.
20030         (gimple_call_use_set): New function.
20031         (gimple_call_clobber_set): Likewise.
20032         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
20033         * gimple.c (gimple_call_reset_alias_info): New function.
20034         (gimple_build_call_1): Call it.
20035         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20036         * tree-inline.c (remap_gimple_stmt): Likewise.
20037         (expand_call_inline): Remove callused handling.
20038         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
20039         * tree-dfa.c (dump_variable): Likewise.
20040         * tree-parloops.c (parallelize_loops): Likewise.
20041         * tree-ssa.c (init_tree_ssa): Likewise.
20042         (delete_tree_ssa): Likewise.
20043         * tree-flow-inline.h (is_call_used): Remove.
20044         * tree-flow.h (struct gimple_df): Remove callused member.
20045         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
20046         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
20047         (ref_maybe_used_by_call_p_1): Simplify.
20048         (call_may_clobber_ref_p_1): Likewise.
20049         * tree-ssa-structalias.c (compute_points_to_sets): Set
20050         the call stmt used and clobbered sets.
20051         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
20052         (find_tail_calls): Verify the tail call.
20053
20054 2010-04-12  Richard Guenther  <rguenther@suse.de>
20055
20056         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
20057         single-iteration always-inline inlining.
20058         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
20059         (cgraph_decide_inlining): Do not handle always-inline specially.
20060         (try_inline): Remove always-inline cycle detection special case.
20061         Do not recurse on always-inlines.
20062         (cgraph_early_inlining): Do not iterate if not optimizing.
20063         (cgraph_gate_early_inlining): remove.
20064         (pass_early_inline): Run unconditionally.
20065         (gate_cgraph_decide_inlining): New function.
20066         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
20067         not inlining or optimizing.
20068         (cgraph_decide_inlining_of_small_functions): Also consider
20069         always-inline functions.
20070         (cgraph_default_inline_p): Return true for nodes which should
20071         disregard inline limits.
20072         (estimate_function_body_sizes): Assume zero size and time for
20073         nodes which are marked as disregarding inline limits.
20074         (cgraph_decide_recursive_inlining): Do not perform recursive
20075         inlining on always-inline nodes.
20076
20077 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
20078
20079         PR bootstrap/43699
20080         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
20081         for exprs satisfying handled_component_p.
20082
20083 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
20084
20085         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
20086         non-constant aggregate elements.
20087
20088         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
20089         is a real initialization.
20090
20091 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
20092
20093         PR c/36774
20094         * c-decl.c (start_function): Move forward check for nested function.
20095
20096 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
20097
20098         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
20099         * config/sh/sh.c: Include reload.h.
20100         (sh_legitimize_reload_address): New.
20101         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
20102         sh_legitimize_reload_address.
20103
20104 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20105
20106         * config/sh/sh.md (*movqi_pop): New insn pattern.
20107         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
20108
20109 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20110
20111         * config/i386/i386.md (any_shiftrt): New code iterator.
20112         (shiftrt_insn): New code attribute.
20113         (shiftrt): Ditto.
20114         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
20115         using any_shiftrt code iterator.
20116         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
20117         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
20118         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
20119         pattern from corresponding peephole2 patterns.
20120         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
20121         using any_shiftrt code iterator.
20122         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
20123         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
20124         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
20125         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
20126         *{ashr,lshr}<mode>3_cmp_zext.
20127         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
20128
20129 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20130
20131         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
20132         scratch register.
20133         (*lshr<mode>3_cconly): Ditto.
20134
20135 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
20136
20137         * config/i386/i386.md (lshr<mode>3): Macroize expander from
20138         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20139         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20140         pattern from *lshr{di,ti}3_1 and corresponding splitters using
20141         DWI mode iterator.
20142         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20143         from corresponding peephole2 patterns.
20144         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
20145         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
20146         and *lshrdi3_1_rex64 using SWI mode iterator.
20147         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
20148         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
20149         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
20150         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
20151         and *lshrdi3_cmp_rex64 using SWI mode iterator.
20152         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
20153         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
20154         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
20155         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
20156         SWI mode iterator.
20157
20158 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
20159
20160         * config/i386/i386.md (ashr<mode>3): Macroize expander from
20161         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
20162         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20163         pattern from *ashr{di,ti}3_1 and corresponding splitters using
20164         DWI mode iterator.
20165         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
20166         from corresponding peephole2 patterns.
20167         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
20168         (ashrsi3_cvt): Rename from ashrsi3_31.
20169         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
20170         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
20171         and x86_64_shift_adj_3 using SWI48 mode iterator.
20172         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
20173         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
20174         and *ashrdi3_1_rex64 using SWI mode iterator.
20175         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
20176         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
20177         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
20178         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
20179         and *ashrdi3_cmp_rex64 using SWI mode iterator.
20180         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
20181         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
20182         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
20183         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
20184         SWI mode iterator.
20185         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
20186         * config/i386/i386.c (ix86_split_ashr): Update for renamed
20187         x86_shift<mode>_adj_3 expanders.
20188
20189 2010-04-10  Wei Guozhi  <carrot@google.com>
20190
20191         PR target/42601
20192         * config/arm/arm.c (arm_pic_static_addr): New function.
20193         (legitimize_pic_address): Call arm_pic_static_addr when it detects
20194         a static symbol.
20195         (arm_output_addr_const_extra): Output expression for new pattern.
20196         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
20197
20198 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
20199
20200         * ira-costs.c (record_reg_classes): Ignore alternatives that are
20201         not enabled.
20202
20203         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
20204         * web.c: Include "insn-config.h" and "recog.h".
20205         (union_match_dups): New function.
20206         (web_main): Call it.
20207         (union_defs): Don't try to recognize match_dups.
20208
20209         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
20210         if doing so would replace the entire pattern.
20211
20212 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20213
20214         PR target/43707
20215         PR target/43709
20216         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
20217         and splitter pattern.  Change splitter operand 1 predicate to
20218         nonmemory_operand.
20219
20220 2010-04-09  Martin Jambor  <mjambor@suse.cz>
20221
20222         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
20223         lattices are addresses of CONST_DECLs with the same initial value.
20224         (ipcp_print_all_lattices): Print values of CONST_DECLs.
20225         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
20226
20227 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
20228             Bernd Schmidt  <bernds@codesourcery.com>
20229
20230         * loop-invariant.c (replace_uses): New static function.
20231         (move_invariant_reg): Use it to ensure we can replace the uses.
20232
20233 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
20234
20235         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
20236         function template.
20237         (picochip_override_options): Enable section anchors only above -O1.
20238         (picochip_reorg): Fixed a couple of build warnings.
20239
20240 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20241
20242         * configure.ac (plugin -rdynamic test): Log result.
20243         * configure: Regenerate.
20244         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
20245         (RDYNAMIC_SPEC): Define.
20246         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
20247
20248 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20249
20250         * configure.ac: Determine Sun ld version numbers.
20251         (comdat_group): Restrict GNU ld version checks to gld.
20252         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
20253         (enable_comdat): Support --enable-comdat.
20254         * configure: Regenerate.
20255         * doc/install.texi (Configuration): Document --enable-comdat.
20256
20257 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20258
20259         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
20260         * config/sol2-gld.h: ... here.
20261         * config.gcc (sparc*-*-solaris2*): Reflect this.
20262         (i[34567]86-*-solaris2*): Use it.
20263
20264 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
20265
20266         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
20267         setup_clocks_p.
20268         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
20269
20270 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20271
20272         PR 42965
20273         * diagnostic.c (diagnostic_initialize): Initialize
20274         some_warnings_are_errors.
20275         (diagnostic_finish): New.
20276         (diagnostic_action_after_output): Call it before exiting.
20277         (diagnostic_report_diagnostic): Do not print message here. Set
20278         some_warnings_are_errors.
20279         * diagnostic.h (diagnostic_context): Delete
20280         issue_warnings_are_errors_message. Add some_warnings_are_errors.
20281         (diagnostic_finish): Declare.
20282         * toplev.c (toplev_main): Call it before exit.
20283
20284 2010-04-09  Jason Merrill  <jason@redhat.com>
20285
20286         PR c++/42623
20287         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
20288         for incomplete type.
20289
20290         PR c++/41788
20291         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
20292         based on a warning flag.
20293
20294 2010-04-09  Richard Guenther  <rguenther@suse.de>
20295
20296         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
20297
20298 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
20299
20300         PR bootstrap/43684
20301         * varasm.c (default_assemble_visibility): Wrap vars that are
20302         set, but unused, by targets without GAS.
20303         * config/rs6000/rs6000.c (paired_emit_vector_compare):
20304         Remove set, but unused, vars.
20305         (rs6000_legitimize_tls_address): Likewise.
20306         (altivec_expand_dst_builtin): Likewise.
20307         * config/darwin.c (machopic_classify_symbol): Likewise.
20308         (machopic_indirection_name): Likewise.
20309
20310 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20311
20312         * config/i386/i386.md (DWI): New mode iterator.
20313         (S): New mode attribute.
20314         (shift_operand): Ditto.
20315         (shift_immediate_operand): Ditto.
20316         (ashl_input_operand): Ditto.
20317         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
20318         using SDWIM mode iterator.
20319         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20320         pattern from *ashl{di,ti}3_1 and corresponding splitters using
20321         DWI mode iterator.
20322         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
20323         from corresponding peephole2 patterns.
20324         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
20325         and x86_64_shift_adj_1 using SWI48 mode iterator.
20326         (x86_shift<mode>_adj_2): Ditto.
20327         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
20328         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
20329         using SWI48 mode iterator.
20330         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
20331         *ashldi3_cmp_rex64 using SWI mode iterator.
20332         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
20333         *ashldi3_cconly_rex64 using SWI mode iterator.
20334         * config/i386/i386.c (ix86_split_ashl): Update for renamed
20335         x86_shift<mode>_adj_{1,2}.
20336         (ix86_split_ashr): Ditto.
20337         (ix86_split_lshr): Ditto.
20338
20339 2010-04-09  Richard Guenther  <rguenther@suse.de>
20340
20341         * target.h (builtin_conversion): Pass in input and output types.
20342         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
20343         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
20344         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
20345         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
20346
20347         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
20348         Handle AVX modes.
20349         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
20350
20351 2010-04-09  Richard Guenther  <rguenther@suse.de>
20352
20353         PR target/43152
20354         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
20355
20356 2010-04-09  Richard Guenther  <rguenther@suse.de>
20357
20358         * tree-vectorizer.h (struct _stmt_vec_info): Document
20359         that vectype is the type of the LHS.
20360         (supportable_widening_operation, supportable_narrowing_operation):
20361         Get both input and output vector types as arguments.
20362         (vect_is_simple_use_1): Declare.
20363         (get_same_sized_vectype): Likewise.
20364         * tree-vect-loop.c (vect_determine_vectorization_factor):
20365         Set STMT_VINFO_VECTYPE to the vector type of the def.
20366         (vectorizable_reduction): Adjust.
20367         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
20368         Adjust.  Specify the output vector type.
20369         (vect_pattern_recog_1): Adjust.
20370         * tree-vect-stmts.c (get_same_sized_vectype): New function.
20371         (vectorizable_call): Adjust.
20372         (vectorizable_conversion): Likewise.
20373         (vectorizable_operation): Likewise.
20374         (vectorizable_type_demotion): Likewise.
20375         (vectorizable_type_promotion): Likewise.
20376         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
20377         the def.
20378         (vect_is_simple_use_1): New function.
20379         (supportable_widening_operation): Get both input and output
20380         vector types.
20381         (supportable_narrowing_operation): Likewise.
20382         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
20383
20384 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
20385
20386         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
20387         __thiscall and _thiscall as predefined macros.
20388         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
20389         thiscall attribute handling.
20390         (ix86_comp_type_attributes): Likewise.
20391         (ix86_function_regparm): Likewise.
20392         (ix86_return_pops_args): Likewise.
20393         (init_cumulative_args): Likewise.
20394         (find_drap_reg): Likewise.
20395         (ix86_static_chain): Likewise.
20396         (x86_this_parameter): Likewise.
20397         (x86_output_mi_thunk): Likewise.
20398         (ix86_attribute_table): Add description for thiscall attribute.
20399         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
20400         * doc/extend.texi: Add documentation for thiscall.
20401
20402 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20403
20404         PR c++/28584
20405         * c.opt (Wint-to-pointer-cast): Available in C++.
20406         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
20407
20408 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20409
20410         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
20411         * calls.c (expand_call): Pass the function type to aggregate_value_p.
20412         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
20413         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
20414         function type instead.  Reorder and simplify checks.
20415
20416         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
20417
20418 2010-04-08  Jing Yu  <jingyu@google.com>
20419             Zdenek Dvorak  <ook@ucw.cz>
20420
20421         PR tree-optimization/42720
20422         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
20423         loop unswitch conditions here from ...
20424         (tree_unswitch_single_loop): ... here.
20425
20426 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20427
20428         * tree-if-conv.c: Fix comments and simplify logic.
20429
20430 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20431
20432         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
20433         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
20434         (main_tree_if_conversion): Update call to tree_if_conversion.
20435
20436 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20437
20438         PR 42485
20439         * doc/invoke.texi (-b,-V): Delete.
20440         * doc/tm.texi: Do not mention -b.
20441         * gcc.c (display_help): Delete -b and -V.
20442         (process_command): Delete -b and -V.
20443         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
20444
20445 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
20446             Wolfgang Gellerich  <gellerich@de.ibm.com>
20447
20448         Implement target hook for loop unrolling
20449         * target.h (loop_unroll_adjust): Add a new target hook function.
20450         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
20451         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
20452         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
20453         (s390_loop_unroll_adjust): Implement the new target hook for s390.
20454         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
20455         target hook.
20456         (decide_unroll_stupid): Likewise.
20457
20458 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20459
20460         PR target/43643
20461         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
20462
20463 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20464
20465         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
20466         (Specific, *-*-solaris2*): Likewise.
20467         Don't prefer Sun as over GNU as.
20468
20469 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
20470
20471         * config/s390/s390.c (override_options): Adjust the z10 defaults
20472         for max-unroll-times, max-completely-peeled-insns
20473         and max-completely-peel-times.
20474
20475 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20476
20477         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
20478         instructions for z10.
20479         (s390_expand_setmem): Likewise.
20480         (s390_expand_cmpmem): Likewise.
20481
20482 2010-04-08  Richard Guenther  <rguenther@suse.de>
20483
20484         PR tree-optimization/43679
20485         * tree-ssa-pre.c (eliminate): Only propagate copies.
20486
20487 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20488
20489         PR bootstrap/43681
20490         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
20491         set but not used variable warning.
20492
20493 2010-04-08  Wei Guozhi  <carrot@google.com>
20494
20495         PR target/41653
20496         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
20497         (arm_size_rtx_costs): Call the new function when optimized for size.
20498
20499 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20500
20501         PR debug/43670
20502         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
20503         op0 is not a MEM, just return NULL instead of assertion
20504         failure.
20505         (discover_nonconstant_array_refs): Don't walk debug stmts.
20506
20507 2010-04-08  Doug Kwan  <dougkwan@google.com>
20508
20509         * configure.ac: Recognize gold and do not use its version number
20510         to test ld features.
20511         * configure: Regenerate.
20512
20513 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
20514
20515         PR middle-end/40815
20516         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
20517         (negate_value): Move code to push elements to broken_up_substracts ...
20518         (eliminate_plus_minus_pair): ... here.  Push operands that have no
20519         negative pair to plus_negates.
20520         (repropagate_negates, init_reassoc, fini_reassoc): Update.
20521
20522 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20523
20524         * doc/install.texi (Configuration): Move description of
20525         --enable-lto, --with-libelf*, --enable-gold from Java section to
20526         general section.
20527
20528         * doc/generic.texi (Working with declarations)
20529         (Function Properties, C and C++ Trees): Fix typos.
20530         * doc/sourcebuild.texi (Top Level): Likewise.
20531
20532 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20533
20534         PR c/18624
20535         * tree.h (DECL_READ_P): Define.
20536         (struct tree_decl_common): Add decl_read_flag.
20537         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
20538         a set but not used warning.
20539         (merge_decls): Merge DECL_READ_P flag.
20540         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
20541         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
20542         * c-common.c (handle_used_attribute, handle_unused_attribute):
20543         Likewise.
20544         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
20545         New prototypes.
20546         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
20547         New functions.
20548         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
20549         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
20550         c_parser_binary_expression, c_parser_cast_expression,
20551         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
20552         Call default_function_array_read_conversion instead of
20553         default_function_array_conversion where needed.
20554         (c_parser_unary_expression, c_parser_conditional_expression,
20555         c_parser_postfix_expression_after_primary, c_parser_initelt):
20556         Likewise.  Call mark_exp_read where needed.
20557         (c_parser_statement_after_labels, c_parser_asm_operands,
20558         c_parser_typeof_specifier, c_parser_sizeof_expression,
20559         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
20560         where needed.
20561         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
20562         New.
20563         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
20564         (warn_unused_but_set_parameter): Default to warn_unused
20565         && extra_warnings.
20566         * doc/invoke.texi: Document -Wunused-but-set-variable and
20567         -Wunused-but-set-parameter.
20568
20569         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
20570         used count variable.
20571         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
20572         when operandN variables aren't used in the body of the expander
20573         or splitter.
20574         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
20575         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
20576         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
20577         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
20578         FOR_EACH_IMM_USE_ON_STMT): Likewise.
20579         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
20580         * tree.c (PROCESS_ARG): Likewise.
20581
20582 2010-04-07  Simon Baldwin  <simonb@google.com>
20583
20584         * diagnostic.h (diagnostic_override_option_index): New macro to
20585         set a diagnostic's option_index.
20586         * c-tree.h (c_cpp_error): Add warning reason argument.
20587         * opts.c (_warning_as_error_callback): New.
20588         (register_warning_as_error_callback): Store callback for
20589         warnings enabled via enable_warning_as_error.
20590         (enable_warning_as_error): Call callback, minor code tidy.
20591         * opts.h (register_warning_as_error_callback): Declare.
20592         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
20593         response to -Werror=.
20594         (c_common_init_options): Register warning_as_error_callback in opts.c.
20595         * common.opt: Add -Wno-cpp option.
20596         * c-common.c (struct reason_option_codes_t): Map cpp warning
20597         reason codes to gcc option indexes.
20598         * (c_option_controlling_cpp_error): New function, lookup the gcc
20599         option index for a cpp warning reason code.
20600         * (c_cpp_error): Add warning reason argument, call
20601         c_option_controlling_cpp_error for diagnostic_override_option_index.
20602         * doc/invoke.texi: Document -Wno-cpp.
20603
20604 2010-04-07  Richard Guenther  <rguenther@suse.de>
20605
20606         * ipa-reference.c (mark_load): Use get_base_address.
20607         (mark_store): Likewise.
20608
20609         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
20610         inserting GIMPLE_NOPs into the IL.
20611         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20612         Explicitly strip handled components and indirect references.
20613
20614         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
20615         folding address expressions.
20616         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
20617         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
20618         operand_equal_p to compare decls.
20619         (ptr_deref_may_alias_decl_p): Likewise.
20620         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
20621         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
20622         Handle reversed comparison ops.
20623         * tree-sra.c (asm_visit_addr): Use get_base_address.
20624         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
20625         * ipa-reference.c (mark_address): Use get_base_address.
20626
20627 2010-04-07  Richard Guenther  <rguenther@suse.de>
20628
20629         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
20630         Propagate constants everywhere.
20631
20632 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20633
20634         PR debug/43516
20635         * tree.c (MAX_INT_CACHED_PREC): Define.
20636         (nonstandard_integer_type_cache): New array.
20637         (build_nonstandard_integer_type): Cache results for precision
20638         <= MAX_INT_CACHED_PREC.
20639
20640 2010-04-07  Richard Guenther  <rguenther@suse.de>
20641
20642         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
20643         -fargument-noalias-global, -fargument-noalias-anything): Remove.
20644         * common.opt: Likewise.
20645         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
20646         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
20647         (nonoverlapping_memrefs_p): Likewise.
20648         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20649         * opts.c (common_handle_option): Handle OPT_fargument_alias,
20650         OPT_fargument_noalias, OPT_fargument_noalias_anything and
20651         OPT_fargument_noalias_global for backward compatibility.
20652
20653 2010-04-07  Richard Guenther  <rguenther@suse.de>
20654
20655         PR tree-optimization/43270
20656         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
20657         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
20658         * tree-ssa-pre.c (phi_translate_1): Adjust.
20659         (fully_constant_expression): Split out vn_reference handling to ...
20660         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
20661         Fold reads from constant strings.
20662         (vn_reference_lookup): Handle fully constant references.
20663         (vn_reference_lookup_pieces): Likewise.
20664         * Makefile.in (expmed.o-warn): Add -Wno-error.
20665
20666 2010-04-07  Martin Jambor  <mjambor@suse.cz>
20667
20668         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
20669
20670 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
20671
20672         PR driver/41594
20673         * gcc.c: Add -static-libstdc++ to list of recognized options.
20674
20675 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20676
20677         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
20678
20679 2010-04-07  Richard Guenther  <rguenther@suse.de>
20680
20681         PR middle-end/42617
20682         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
20683         bases build simple mem attributes to retain points-to information.
20684
20685 2010-04-07  Richard Guenther  <rguenther@suse.de>
20686
20687         PR middle-end/42617
20688         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
20689         preserve points-to related information.
20690
20691 2010-04-07  Richard Guenther  <rguenther@suse.de>
20692
20693         PR middle-end/42617
20694         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
20695         discard plain indirect references.
20696         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
20697         * tree.c (tree_nop_conversion): Likewise.
20698
20699 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
20700
20701         PR debug/43628
20702         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
20703
20704 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
20705
20706         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
20707         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
20708
20709 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
20710
20711         * tree-if-conv.c: Fix indentation and comments.
20712
20713 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
20714
20715         * tree-if-conv.c: Sort static functions in topological order.
20716
20717 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
20718
20719         * tree-if-conv.c: Fix indentation and comments.
20720
20721 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20722
20723         PR middle-end/43519
20724         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
20725         lang_hooks.types.type_for_size instead of
20726         build_nonstandard_integer_type.
20727         When converting an unsigned type to signed, double its precision.
20728         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
20729         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
20730         (graphite_create_new_loop_guard): When ub + 1 wraps around,
20731         use lb <= ub.
20732
20733 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20734
20735         PR middle-end/43519
20736         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
20737         POINTER_PLUS_EXPR for pointer types.
20738
20739 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20740
20741         PR middle-end/43519
20742         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
20743         * graphite-clast-to-gimple.c: Include langhooks.h.
20744         (max_signed_precision_type): New.
20745         (max_precision_type): Takes two types as arguments.
20746         (precision_for_value): New.
20747         (precision_for_interval): New.
20748         (gcc_type_for_interval): New.
20749         (gcc_type_for_value): New.
20750         (gcc_type_for_clast_term): New.
20751         (gcc_type_for_clast_red): New.
20752         (gcc_type_for_clast_bin): New.
20753         (gcc_type_for_clast_expr): Split up into several functions.
20754         (gcc_type_for_clast_eq): Rewritten.
20755         (compute_bounds_for_level): New.
20756         (compute_type_for_level_1): New.
20757         (compute_type_for_level): New.
20758         (gcc_type_for_cloog_iv): Removed.
20759         (gcc_type_for_iv_of_clast_loop): Rewritten.
20760         (graphite_create_new_loop): Compute the lower and upper bound types
20761         with gcc_type_for_clast_expr.
20762         (graphite_create_new_loop_guard): Same.
20763         (find_cloog_iv_in_expr): Removed.
20764         (compute_cloog_iv_types_1): Removed.
20765         (compute_cloog_iv_types): Removed.
20766         (gloog): Do not call compute_cloog_iv_types.
20767         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
20768         GBB_CLOOG_IV_TYPES.
20769         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
20770         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
20771         (GBB_CLOOG_IV_TYPES): Removed.
20772
20773 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20774
20775         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
20776         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
20777         (detect_commutative_reduction): Same.
20778
20779 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20780
20781         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
20782         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
20783         argument.
20784         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
20785         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
20786         (rewrite_commutative_reductions_out_of_ssa): Same.
20787         * passes.c (execute_function_todo): Call verify_ssa for every pass
20788         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
20789         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
20790         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
20791         with an extra argument.
20792         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
20793         verify_ssa only when the extra argument is true.
20794         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
20795         with an extra argument.
20796         (tree_transform_and_unroll_loop): Same.
20797
20798 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20799
20800         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
20801         for all the passes of the LNO having LOOP_CLOSED_SSA.
20802         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
20803         * tree-loop-distribution.c (pass_loop_distribution): Same.
20804         * tree-pass.h (TODO_verify_loops): Removed.
20805         * tree-ssa-loop.c (pass_tree_loop_init): Same.
20806         (pass_lim): Same.
20807         (pass_tree_unswitch): Same.
20808         (pass_predcom): Same.
20809         (pass_vectorize): Same.
20810         (pass_linear_transform): Same.
20811         (pass_graphite_transforms): Same.
20812         (pass_iv_canon): Same.
20813         (pass_complete_unroll): Same.
20814         (pass_complete_unrolli): Same.
20815         (pass_parallelize_loops): Same.
20816         (pass_loop_prefetch): Same.
20817         (pass_iv_optimize): Same.
20818
20819 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
20820
20821         PR middle-end/32824
20822         * passes.c (init_optimization_passes): Move pass_lim before
20823         pass_copy_prop and pass_dce_loop.
20824
20825 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
20826
20827         PR target/43667
20828         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
20829         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
20830         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
20831         MULTI_* defines for 4 argument vpermil2p* builtins.
20832
20833 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
20834
20835         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
20836         * config/i386/i386.c (x86_maybe_negate_const_int): New.
20837         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
20838         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
20839         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
20840         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
20841         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
20842         Use x86_maybe_negate_const_int to output insn mnemonic.
20843         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
20844         check from instruction predicate.  Update comments.
20845         * config/i386/sync.md (sync_add<mode>): Use
20846         x86_maybe_negate_const_int to output insn mnemonic.
20847
20848 2010-04-06  Jan Hubicka  <jh@suse.cz>
20849
20850         PR tree-optimization/42906
20851         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
20852         IGNORE_SELF argument.  Set visited_control_parents for fully
20853         processed BBs.
20854         (find_obviously_necessary_stmts): Update call of
20855         mark_control_dependent_edges_necessary.
20856         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
20857
20858 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
20859
20860         * config/i386/i386.md: Remove comment about 'e' and 'E'
20861         operand modifier.
20862
20863 2010-04-06  Richard Guenther  <rguenther@suse.de>
20864
20865         PR tree-optimization/43627
20866         * tree-vrp.c (extract_range_from_unary_expr): Widenings
20867         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
20868         not varying.
20869
20870 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
20871
20872         * BASE-VER: Change to 4.6.0.
20873
20874         PR target/43638
20875         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
20876         handling.
20877
20878 2010-04-06  Richard Guenther  <rguenther@suse.de>
20879
20880         PR middle-end/43661
20881         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
20882
20883 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20884
20885         * doc/invoke.texi (Optimize Options): Document that LTO
20886         won't remove object access purely due to incompatible
20887         declarations.
20888
20889 2010-04-04  Matthias Klose  <doko@ubuntu.com>
20890
20891         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
20892         Initialize variable.
20893
20894 2010-04-03  Richard Guenther  <rguenther@suse.de>
20895
20896         PR middle-end/42509
20897         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
20898         require a non-NULL MEM_OFFSET.
20899
20900 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
20901
20902         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
20903         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
20904         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
20905         config/alpha/predicates.md, config/arm/arm.md,
20906         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
20907         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
20908         config/darwin9.h, config/darwin.c, config/darwin.h,
20909         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
20910         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
20911         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
20912         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
20913         config/mips/mips.md, config/mn10300/mn10300.c,
20914         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
20915         config/rs6000/aix.h, config/rs6000/dfp.md,
20916         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
20917         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
20918         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
20919         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
20920         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
20921         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
20922         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
20923         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
20924         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
20925         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
20926         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
20927         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
20928         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
20929         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
20930         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
20931         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
20932         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
20933         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
20934         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
20935         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
20936         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
20937         opt-functions.awk, opth-gen.awk, params.def, passes.c,
20938         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
20939         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
20940         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
20941         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
20942         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
20943         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
20944         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
20945         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
20946         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
20947         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
20948         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
20949         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
20950         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
20951         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
20952
20953 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20954
20955         PR other/43620
20956         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
20957         * aclocal.m4: Regenerate.
20958
20959 2010-04-02  Richard Guenther  <rguenther@suse.de>
20960
20961         PR tree-optimization/43629
20962         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
20963         if we have seen a constant value.
20964
20965 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
20966
20967         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
20968
20969 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
20970
20971         PR target/43469
20972         * arm.c (legitimize_tls_address): Adjust call to
20973         gen_tls_load_dot_plus_four.
20974         (arm_note_pic_base): New function.
20975         (arm_cannot_copy_insn_p): Use it.
20976         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
20977         constraint.
20978
20979 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20980
20981         PR bootstrap/43531
20982
20983         Revert:
20984         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20985
20986         * Makefile.in ($(out_object_file)): Depend on
20987         gt-$(basename $(notdir $(out_file))).h.
20988
20989 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
20990
20991         * config.gcc (lm32-*-rtems*): Add t-lm32.
20992
20993 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
20994
20995         * config.gcc: Add lm32-*-rtems*.
20996         * config/lm32/rtems.h: New file.
20997
20998 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
20999
21000         PR target/42609
21001         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
21002
21003 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
21004
21005         * dwarf2out.c (output_compilation_unit_header): For
21006         -gdwarf-4 use version 4 instead of version 3.
21007         (output_line_info): For version 4 and above emit additional
21008         maximum ops per insn header field.
21009         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
21010
21011         * dwarf2out.c (is_c_family, is_java): Remove.
21012         (lower_bound_default): New function.
21013         (add_bound_info, gen_descr_array_type_die): Use it.
21014
21015 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
21016
21017         PR debug/43325
21018         * dwarf2out.c (gen_variable_die): Allow debug info for variable
21019         re-declaration when it happens in a function.
21020
21021 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
21022
21023         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
21024         (cgraph_remove_function_insertion_hook): Same.
21025         (cgraph_call_function_insertion_hooks): Same.
21026
21027 2010-04-01  Richard Guenther  <rguenther@suse.de>
21028
21029         PR middle-end/43614
21030         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
21031         and TREE_THIS_VOLATILE.
21032         (copy_ref_info): Likewise.
21033         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
21034         * tree.c (build6_stat): Ignore side-effects of all but arg5
21035         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
21036         TARGET_MEM_REF.
21037
21038 2010-04-01  Richard Guenther  <rguenther@suse.de>
21039
21040         PR tree-optimization/43607
21041         * ipa-type-escape.c (check_call): Do not access non-existing
21042         arguments.
21043
21044 2010-04-01  Richard Guenther  <rguenther@suse.de>
21045
21046         PR middle-end/43602
21047         Revert
21048         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21049                     Jack Howarth  <howarth@bromo.med.uc.edu>
21050
21051         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21052         variables TLS.
21053
21054 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21055
21056         * doc/install.texi (Prerequisites): Document libelf usability on
21057         IRIX 5/6 and Solaris 2.
21058         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
21059         Update GNU as, GNU ld requirements.
21060         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
21061         Document Sun Studio compiler download.
21062         Update and simplify as, ld recommendations.
21063         (Specific, *-*-solaris2.7): Note obsoletion, removal.
21064
21065 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21066
21067         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
21068         with_tune_32 to pentium4.
21069
21070 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
21071
21072         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
21073
21074 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21075
21076         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
21077         obsoletion, removal.
21078         Update IDO URL.
21079         Document GNU as requirement.
21080         Update configure requirements.
21081         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
21082         Recomment IRIX 6.5.18+.
21083         Document IDF/IDL requirement.
21084         Document GNU as requirement.
21085         Document GNU ld bootstrap failure.
21086         Remove freeware.sgi.com reference.
21087
21088 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21089
21090         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
21091         UNIX V4.0, V5.0 obsoletion, removal.
21092         Remove --with-gc=simple reference.
21093         Update VM requirements during bootstrap.
21094         Remove -oldas bootstrap description.
21095         Update binutils reference.
21096         Remove comparison failure note.
21097
21098 2010-03-31  Richard Guenther  <rguenther@suse.de>
21099             Zdenek Dvorak  <ook@ucw.cz>
21100             Sebastian Pop  <sebastian.pop@amd.com>
21101
21102         PR middle-end/43464
21103         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
21104         with multiple arguments.
21105         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
21106
21107 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21108
21109         * graphite-dependences.c (print_pddr): Call print_pdr with an
21110         extra argument.
21111         * graphite-poly.c (debug_pdr): Add an extra argument for the
21112         verbosity level.
21113         (print_pdr): Same.
21114         (print_pbb_domain): Same.
21115         (print_pbb): Same.
21116         (print_scop_context): Same.
21117         (print_scop): Same.
21118         (print_cloog): Same.
21119         (debug_pbb_domain): Same.
21120         (debug_pbb): Same.
21121         (print_pdrs): Same.
21122         (debug_pdrs): Same.
21123         (debug_scop_context): Same.
21124         (debug_scop): Same.
21125         (debug_cloog): Same.
21126         (print_scop_params): Same.
21127         (debug_scop_params): Same.
21128         (print_iteration_domain): Same.
21129         (print_iteration_domains): Same.
21130         (debug_iteration_domain): Same.
21131         (debug_iteration_domains): Same.
21132         (print_scattering_function): Same.
21133         (print_scattering_functions): Same.
21134         (debug_scattering_function): Same.
21135         (debug_scattering_functions): Same.
21136         * graphite-poly.h (debug_pdr): Update declaration.
21137         (print_pdr): Same.
21138         (print_pbb_domain): Same.
21139         (print_pbb): Same.
21140         (print_scop_context): Same.
21141         (print_scop): Same.
21142         (print_cloog): Same.
21143         (debug_pbb_domain): Same.
21144         (debug_pbb): Same.
21145         (print_pdrs): Same.
21146         (debug_pdrs): Same.
21147         (debug_scop_context): Same.
21148         (debug_scop): Same.
21149         (debug_cloog): Same.
21150         (print_scop_params): Same.
21151         (debug_scop_params): Same.
21152         (print_iteration_domain): Same.
21153         (print_iteration_domains): Same.
21154         (debug_iteration_domain): Same.
21155         (debug_iteration_domains): Same.
21156         (print_scattering_function): Same.
21157         (print_scattering_functions): Same.
21158         (debug_scattering_function): Same.
21159         (debug_scattering_functions): Same.
21160
21161 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21162
21163         * graphite-poly.c (print_scattering_function_1): New.
21164         (print_scattering_function): Call it.
21165         (print_scop_params): Remove spaces at the end of lines.
21166         (print_cloog): New.
21167         (debug_cloog): New.
21168         * graphite-poly.h (print_cloog): Declared.
21169         (debug_cloog): Declared.
21170
21171 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21172
21173         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
21174         in loop->header.
21175         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
21176         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
21177         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
21178         to switch between adding the IV bump in loop->latch or in loop->header.
21179
21180 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
21181
21182         * graphite-poly.c (print_scattering_function): Pretty print following
21183         the scoplib format.
21184         (print_pdr): Same.
21185         (print_pbb_domain): Same.
21186         (dump_gbb_cases): Same.
21187         (dump_gbb_conditions): Same.
21188         (print_pdrs): Same.
21189         (print_pbb): Same.
21190         (print_scop_params): Same.
21191         (print_scop_context): Same.
21192         (print_scop): Same.
21193         (print_pbb_body): New.
21194         (lst_indent_to): New.
21195         (print_lst): Start new lines with a #.
21196         * graphite-poly.h (pbb_bb): New.
21197         (pbb_index): Use pbb_bb.
21198         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
21199         disjuncts.
21200         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
21201
21202 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21203
21204         * dwarf2out.c (size_of_die): For -gdwarf-4 use
21205         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
21206         and 0 instead of 1 for dw_val_class_flag.
21207         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
21208         dw_val_class_range_list, dw_val_class_loc_list,
21209         dw_val_class_lineptr and dw_val_class_macptr, use
21210         DW_FORM_flag_present for dw_val_class_flag and
21211         DW_FORM_exprloc for dw_val_class_loc.
21212         (output_die): For -gdwarf-4 print dw_val_class_loc
21213         size as uleb128 instead of 1 or 2 bytes and don't print
21214         anything for dw_val_class_flag.
21215
21216         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
21217         instead of cselib_lookup following by tweaking locs->setting_insn.
21218
21219         PR bootstrap/43596
21220         * cselib.c (cselib_process_insn): Clear cselib_current_insn
21221         even before returning from label, setjmp call or volatile asm
21222         handling.
21223
21224 2010-03-31  Richard Guenther  <rguenther@suse.de>
21225
21226         PR middle-end/43600
21227         * cgraphunit.c (cgraph_output_in_order): Do not allocate
21228         temporary data on stack.
21229
21230 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21231
21232         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
21233         (PUSHSECTION_ASM_OP): Remove.
21234         (POPSECTION_ASM_OP): Remove.
21235         (PUSHSECTION_FORMAT): Remove.
21236         * config/sol2.h (PUSHSECTION_FORMAT): Define.
21237         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
21238         * config/sol2.c (solaris_output_init_fini): Use it.
21239
21240 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21241
21242         PR 43574
21243         * opt-functions.awk (var_type_struct): Use signed char type
21244         for simple variables.
21245
21246 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21247
21248         * config/sol2.c: Include output.h.
21249         (solaris_assemble_visibility): New function.
21250         * config/t-sol2 (sol2.o): Add output.h dependency.
21251         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
21252         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
21253         Redefine.
21254
21255 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21256
21257         PR target/43580
21258         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
21259         V2SImode or XFmode on PRE_DEC.
21260
21261         PR debug/43557
21262         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
21263         BLKmode.
21264
21265 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21266
21267         PR 43562
21268         * reload.h (caller_save_initialized_p): Declare.
21269         * toplev.c (backend_init_target): Don't call
21270         init_caller_save but set caller_save_initialized_p to false.
21271         * caller-save.c (caller_save_initialized_p): Define.
21272         (init_caller_save): Check caller_save_initialized_p.
21273         * ira.c (ira): Call init_caller_save if flag_caller_saves.
21274
21275 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21276
21277         PR target/39048
21278         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
21279         and soft-fp/t-softfp to tmake_file.
21280         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
21281         (LIBGCC2_TF_CEXT): Define.
21282         (TF_SIZE): Define.
21283
21284 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
21285
21286         PR debug/42977
21287         * cselib.c (n_useless_values): Document handling of debug locs.
21288         (n_useless_debug_values, n_debug_values): New variables.
21289         (new_elt_loc_list): Don't add to debug values, keep count.
21290         (promote_debug_loc): New.
21291         (cselib_reset_table): Zero new variables.
21292         (entry_and_rtx_equal_p): Promote debug locs.
21293         (discard_useless_locs): Increment n_useless_debug_values for
21294         debug values.
21295         (remove_useless_values): Adjust n_useless_values and n_debug_values
21296         with n_useless_debug_values.
21297         (add_mem_for_addr): Promote debug locs.
21298         (cselib_lookup_mem): Likewise.
21299         (cselib_lookup_addr): Renamed to...
21300         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
21301         (cselib_log_lookup): ... this.  Turn into...
21302         (cselib_lookup_addr): ... new wrapper.
21303         (cselib_lookup_from_insn): New.
21304         (cselib_invalidate_regno): Increment n_useless_debug_values for
21305         debug values.
21306         (cselib_invalidate_mem): Likewise.
21307         (cselib_process_insn): Take n_deleted and n_debug_values into
21308         account to guard remove_useless_value call.
21309         (cselib_finish): Zero n_useless_debug_values.
21310         * cselib.h (cselib_lookup_from_insn): Declare.
21311         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
21312         (sched_analyze_2): Likewise.
21313
21314 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
21315
21316         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
21317         functions.
21318         (adjust_mems): Replace narrowing SUBREG of expression containing
21319         just PLUS, MINUS, MULT and ASHIFT of registers and constants
21320         with operations in the narrower mode.
21321
21322         PR debug/43593
21323         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
21324         regs_invalidated_by_call instead all call_used_reg_set registers.
21325
21326 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
21327
21328         PR middle-end/43430
21329         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
21330         pointer comparisons with types_compatible_p.
21331         * tree-vect-stmts.c (vectorizable_call): Same.
21332         (vectorizable_condition): Same.
21333
21334 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21335
21336         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
21337         stack check if the mask would be zero.
21338
21339 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21340             Jack Howarth  <howarth@bromo.med.uc.edu>
21341
21342         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21343         variables TLS.
21344
21345 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
21346
21347         PR other/25232
21348         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
21349         and __unordtf2.
21350         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
21351         Include ___unordxf2 and ___unordtf2.
21352         * config/i386/libgcc-glibc.ver: Do not define inheritance from
21353         GCC_4.4.0 here.
21354
21355 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
21356
21357         * config/lm32/t-lm32: New file.
21358         * config.gcc: Use the above file when targetting lm32.
21359
21360 2010-03-28  Duncan Sands  <baldrick@free.fr>
21361
21362         * Makefile.in (PLUGIN_HEADERS): Add except.h.
21363
21364 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21365
21366         PR middle-end/43431
21367         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
21368         Improve vectorization cost model diagnostic.
21369
21370 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21371
21372         PR middle-end/43436
21373         * tree-vect-data-refs.c (vect_analyze_data_refs): When
21374         compute_data_dependences_for_loop returns false, early exit
21375         and output an extra diagnostic for the failed data reference
21376         analysis.
21377
21378 2010-03-29  Richard Guenther  <rguenther@suse.de>
21379
21380         PR tree-optimization/43560
21381         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
21382         (can_sm_ref_p): Treat stores to readonly locations as trapping.
21383
21384 2010-03-29  Jie Zhang  <jie@codesourcery.com>
21385
21386         PR 43564
21387         * toplev.c (process_options): Set optimization_default_node
21388         and optimization_current_node.
21389         * opts.c (decode_options): Don't set optimization_default_node
21390         and optimization_current_node.
21391
21392 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
21393
21394         * config/rtems.h: Abandon -qrtems_debug.
21395
21396 2010-03-28  Jan Hubicka  <jh@suse.cz>
21397
21398         PR tree-optimization/43505
21399         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
21400         map should not be copied.
21401
21402 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21403
21404         PR middle-end/41674
21405         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
21406         cdtors, set DECL_PRESERVE_P.
21407         * ipa.c (cgraph_externally_visible_p): Return true if declaration
21408         should be preseved.
21409
21410 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
21411
21412         PR tree-optimization/43528
21413         * stor-layout.c (place_field): Check that constant fits into
21414         unsigned HWI when skipping calculation of MS bitfield layout.
21415
21416 2010-03-27  Jan Hubicka  <jh@suse.cz>
21417
21418         PR middle-end/43391
21419         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
21420         notice_global_symbol work.
21421
21422 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
21423
21424         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
21425         instead of dwarf2out_decl.
21426         (struct var_loc_node): Remove section_label field.
21427         (dwarf2out_function_decl): New function.
21428         (dwarf2out_var_location): Don't set section_label field.
21429         (dwarf2out_begin_function): Don't empty decl_loc_table here.
21430
21431 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21432
21433         PR tree-optimization/43544
21434         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21435         First argument for builtin vectorized function hook is now a
21436         tree to be able to distinguish between machine specific and
21437         standard builtins.
21438         * targhooks.c (default_builtin_vectorized_function): Ditto.
21439         * targhooks.h (default_builtin_vectorized_function): Ditto.
21440         * target.h (struct gcc_target): Ditto.
21441         * tree-vect-stmts.c (vectorizable_function): Ditto.
21442         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
21443         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
21444         Ditto.
21445
21446 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
21447
21448         PR c/43381
21449         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
21450         nested binding iff it is a FUNCTION_DECL.
21451         (store_parm_decls_newstyle): Pass nested=true to bind for
21452         FUNCTION_DECLs amongst parameters.
21453
21454 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21455
21456         * var-tracking.c (vt_expand_loc_callback): Don't run
21457         cselib_expand_value_rtx_cb in dummy mode if
21458         cselib_dummy_expand_value_rtx_cb returned false.
21459
21460         * var-tracking.c (emit_note_insn_var_location): For one part
21461         notes with offset 0, don't add EXPR_LIST around the location.
21462         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
21463         add_location_or_const_value_attribute): Adjust for that change.
21464
21465         PR debug/43540
21466         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
21467         into first operand and location into second.
21468         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
21469         dw_cfi_oprnd_loc for DW_CFA_expression.
21470         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
21471         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
21472         assume first argument is regnum and second argument is location.
21473
21474 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21475
21476         PR target/42113
21477         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
21478         of scratch register to DImode.  Split to DImode comparison operator.
21479         Use SImode subreg of scratch register in the multiplication.
21480         (*cmp_sadd_sidi): Ditto.
21481         (*cmp_ssub_si): Ditto.
21482         (*cmp_ssub_sidi): Ditto.
21483
21484 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21485
21486         PR target/43524
21487         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
21488         Remove invalid assert and wrong comment.
21489
21490 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21491
21492         PR debug/43516
21493         * flags.h (final_insns_dump_p): New extern.
21494         * final.c (final_insns_dump_p): New variable.
21495         (rest_of_clean_state): Set it before -fdump-final-insns=
21496         dumping, clear afterwards.
21497         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
21498         MEM_ALIAS_SET on MEMs.
21499
21500 2010-03-26  David S. Miller  <davem@davemloft.net>
21501
21502         * configure.ac: Fix sparc GOTDATA_OP bug check.
21503         * configure: Rebuild.
21504
21505 2010-03-26  Alan Modra  <amodra@gmail.com>
21506
21507         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
21508
21509 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21510
21511         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
21512         TLS_SECTION_ASM_FLAG.
21513
21514 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
21515
21516         PR bootstrap/43511
21517         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
21518         Clear first_function_block_is_cold.
21519
21520         PR c/43385
21521         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
21522         argument if the argument is truth_value_p.
21523
21524 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21525
21526         * config/rs6000/constraints.md: Update copyright year for my changes.
21527
21528         PR target/43484
21529         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
21530         used in reg+reg addressing, swap registers.
21531
21532 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21533
21534         PR debug/43293
21535         * target.h (struct gcc_target): Add code_end hook.
21536         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
21537         if not yet defined.
21538         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
21539         * toplev.c (compile_file): Call targetm.asm_out.code_end
21540         hook before unwind info/debug info output.
21541         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
21542         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
21543         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21544         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
21545         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21546         * config/i386/i386.c (ix86_file_end): Renamed to...
21547         (ix86_code_end): ... this.  Make static.  Don't call
21548         file_end_indicate_exec_stack.  Emit unwind info using
21549         final_start_function/final_end_function.
21550         (darwin_x86_file_end): Remove.
21551         (TARGET_ASM_CODE_END): Define.
21552         * config/i386/i386.h (TARGET_ASM_FILE_END,
21553         NEED_INDICATE_EXEC_STACK): Don't define.
21554         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
21555         (TARGET_ASM_FILE_END): Define to darwin_file_end.
21556         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
21557         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
21558
21559         PR target/43498
21560         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
21561         at the beginning and final_end_function at the end.
21562         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
21563
21564 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21565
21566         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
21567         and Sun as TLS syntax.
21568         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
21569         * configure: Regenerate.
21570         * config.in: Regenerate.
21571         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
21572         (default_elf_asm_named_section): Use it.
21573         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
21574         (i386_output_dwarf_dtprel): Likewise.
21575         (output_addr_const_extra): Likewise.
21576         (output_pic_addr_const): Lowercase @GOTTPOFF.
21577         (output_addr_const_extra): Likewise.
21578         (output_pic_addr_const): Lowercase @GOTNTPOFF.
21579         (output_addr_const_extra): Likewise.
21580         (output_pic_addr_const): Lowercase @INDNTPOFF.
21581         (output_addr_const_extra): Likewise.
21582         (output_pic_addr_const): Lowercase @NTPOFF.
21583         (output_addr_const_extra): Likewise.
21584         (output_pic_addr_const): Lowercase @TPOFF.
21585         (output_addr_const_extra): Likewise.
21586         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
21587         (*tls_global_dynamic_64): Likewise.
21588         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
21589         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
21590
21591         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
21592         (ASM_OUTPUT_TLS_COMMON): Use it.
21593         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
21594
21595         PR target/38118
21596         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
21597         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21598         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
21599         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
21600         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21601         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
21602
21603 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21604
21605         * config/i386/i386.c (override_options): Don't accept
21606         -mtls-dialect=sun any longer.
21607         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
21608         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
21609         (*tls_local_dynamic_base_32_sun): Likewise.
21610         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21611
21612 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21613
21614         PR debug/43508
21615         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21616         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
21617
21618         PR debug/43479
21619         * ira.c (adjust_cleared_regs): New function.
21620         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
21621
21622         PR debug/19192
21623         PR debug/43479
21624         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
21625         from gimple_block.
21626         * expr.c (expand_expr_real): Restore previous
21627         curr_insn_source_location and curr_insn_block after
21628         expand_expr_real_1 call.
21629         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
21630         instead of expand_expr_real_1.
21631
21632 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
21633
21634         PR rtl-optimization/43413
21635         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
21636         hard regs too.
21637
21638 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
21639
21640         PR target/43348
21641         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
21642         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
21643
21644 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21645
21646         * config/i386/i386.c (ix86_target_string): Add -mfma.
21647         Fix a typo in comment.
21648
21649 2010-03-22  Mike Stump  <mikestump@comcast.net>
21650
21651         PR target/23071
21652         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
21653         Don't overly align based upon packed packed fields.
21654
21655 2010-03-22  Jason Merrill  <jason@redhat.com>
21656
21657         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
21658         Use () rather than [], and move before the element type.
21659
21660 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21661
21662         * doc/configfiles.texi (Configuration Files): Removed
21663         fixinc/Makefile*, intl/Makefile.*.
21664         * doc/makefile.texi: Fixed markup. Abstract from version
21665         control system used.
21666         (Makefile): Removed obsolete gcc/java/parse.y example.
21667         * doc/sourcebuild.texi: Likewise.
21668         (Top Level): Added config, gnattools, libdecnumber, libgcc,
21669         libgomp, libssp.  Removed fastjar.
21670         (Miscellaneous Docs): Clarify location.
21671         Added COPYING3, COPYING3.LIB.
21672         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
21673
21674 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21675
21676         PR target/38085
21677         * config/i386/i386.c (x86_function_profiler)
21678         [!NO_PROFILE_COUNTERS]: Fix typo.
21679         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
21680         instead of callq.
21681
21682 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
21683             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21684
21685         * doc/sourcebuild.texi (Test Directives): Split into six
21686         subsections, with most of the current text in new subsections
21687         Directives, Selectors, and Final Actions.
21688         (Directives): Split list of test directives into multiple
21689         subsubsections.
21690         (Selectors): Describe use and syntax of selectors.
21691         (Effective-Target Keywords): Describe all existing keywords.
21692         (Add Options): Describe features for dg-add-options.
21693         (Require Support): Describe variants of dg-require-support.
21694         (Final Actions): Describe commands to use in dg-final.
21695
21696 2010-03-22  Michael Matz  <matz@suse.de>
21697
21698         PR middle-end/43475
21699         * recog.c (validate_replace_rtx_group): Replace also in
21700         REG_EQUAL and REG_EQUIV notes.
21701
21702 2010-03-22  Richard Guenther  <rguenther@suse.de>
21703
21704         PR tree-optimization/43390
21705         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
21706         sure vector extracts are type correct.
21707
21708 2010-03-22  Richard Guenther  <rguenther@suse.de>
21709
21710         PR middle-end/40106
21711         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
21712         x * sqrt (x) even when optimizing for size if the target
21713         has native support for sqrt.
21714
21715 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
21716
21717         * varasm.c (make_decl_rtl_for_debug): Also clear
21718         flag_mudflap for the duration of make_decl_rtl call.
21719
21720         PR debug/43443
21721         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
21722         locs from preserved VALUEs.
21723
21724 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21725
21726         PR middle-end/42718
21727         * pa.md (movmemsi): Set align to one if zero.
21728         (movmemdi): Likewise.
21729
21730 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
21731
21732         PR target/42321
21733         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
21734         with their corresponding prologue pushes.
21735
21736 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
21737
21738         PR target/43156
21739         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
21740         at the begining or end.
21741         (spu_expand_epilogue): Likewise.
21742
21743 2010-03-20  Richard Guenther  <rguenther@suse.de>
21744
21745         PR rtl-optimization/43438
21746         * combine.c (make_extraction): Properly zero-/sign-extend an
21747         extraction of the low part of a CONST_INT.  Also handle
21748         CONST_DOUBLE.
21749
21750 2010-03-19  Mike Stump  <mikestump@comcast.net>
21751
21752         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
21753         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
21754         (override_options): Use SUBTARGET32_DEFAULT_CPU.
21755
21756 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
21757
21758         PR c/43211
21759         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
21760         an error.
21761
21762 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
21763
21764         PR rtl-optimization/42258
21765         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
21766         use that may match DEF.
21767
21768         PR target/40697
21769         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
21770         the cost of loading the constant rather than assuming
21771         COSTS_N_INSNS (1).
21772         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
21773         outer code is AND, do the same tests as the andsi3 expander and
21774         return COSTS_N_INSNS (1) if and is cheap.
21775
21776         * optabs.c (avoid_expensive_constant): Fix formatting.
21777
21778 2010-03-19  Michael Matz  <matz@suse.de>
21779
21780         PR c++/43116
21781         * attribs.c (decl_attributes): When rebuilding a function pointer
21782         type use the same qualifiers as the original pointer type.
21783
21784 2010-03-19  Martin Jambor  <mjambor@suse.cz>
21785
21786         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
21787         and is_gimple_ip_invariant_address.
21788
21789 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21790
21791         Revert
21792         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21793
21794         * config/arm/arm.c (arm_override_options): Turn off
21795         flag_dwarf2_cfi_asm for AAPCS variants.
21796
21797 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21798
21799         PR target/43399
21800         * config/arm/arm.c (emit_multi_reg_push): Update comments.
21801         Use PRE_MODIFY instead of PRE_DEC.
21802         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
21803         (vfp_emit_fstmd): Likewise.
21804
21805 2010-03-19  Michael Matz  <matz@suse.de>
21806
21807         PR target/43305
21808         * builtins.c (expand_builtin_interclass_mathfn,
21809         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
21810         if that fails.
21811
21812 2010-03-19  Richard Guenther  <rguenther@suse.de>
21813
21814         PR tree-optimization/43415
21815         * tree-ssa-pre.c (phi_translate): Split out worker to ...
21816         (phi_translate_1): ... this.
21817         (phi_translate): Move all caching here.  Cache all NARY
21818         and REFERENCE translations.
21819
21820 2010-03-19  David S. Miller  <davem@davemloft.net>
21821
21822         With help from Eric Botcazou.
21823         * config/sparc/sparc.c: Include dwarf2out.h.
21824         (emit_pic_helper): Delete.
21825         (pic_helper_symbol_name): Delete.
21826         (pic_helper_emitted_p): Delete.
21827         (pic_helper_needed): New.
21828         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
21829         (get_pc_thunk_name): New.
21830         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
21831         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
21832         Set pic_helper_needed to true.  Don't call emit_pic_helper.
21833         (sparc_expand_prologue): Update load_pic_register call.
21834         (sparc_output_mi_thunk): Likewise.
21835         (sparc_file_end): Emit a hidden comdat symbol for the PIC
21836         thunk if possible.  Output CFI information as needed.
21837
21838 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
21839             Jack Howarth  <howarth@bromo.med.uc.edu>
21840
21841         PR target/36399
21842         * config/i386/i386.h: Fix ABI on darwin x86-32.
21843
21844 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
21845
21846         * tree.h: Declare make_decl_rtl_for_debug.
21847         * varasm.c (make_decl_rtl_for_debug): New.
21848         * dwarf2out.c (rtl_for_decl_location): Call it.
21849         * cfgexpand.c (expand_debug_expr): Call it.
21850
21851 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
21852
21853         PR bootstrap/43399
21854         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
21855         mem_mode.
21856
21857         PR bootstrap/43403
21858         * var-tracking.c (vt_init_cfa_base): Do nothing if
21859         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
21860
21861 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
21862
21863         PR debug/42873
21864         * var-tracking.c (canonicalize_vars_star): New.
21865         (dataflow_post_merge_adjust): Use it.
21866
21867 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
21868
21869         PR debug/43058
21870         * var-tracking.c (non_suitable_const): New function.
21871         (add_uses): For DEBUG_INSNs with constants, don't record any
21872         value, instead just the constant value itself.
21873         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
21874         is not VAR_LOC_UNKNOWN_P, set var to the constant.
21875         (emit_notes_in_bb): Likewise.
21876         (emit_note_insn_var_location): For onepart variables if
21877         cur_loc is a VOIDmode constant, use DECL_MODE.
21878
21879 2010-03-18  Martin Jambor  <mjambor@suse.cz>
21880
21881         PR middle-end/42450
21882         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
21883         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
21884         all non-clones.  Moved call redirection...
21885         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
21886         (cgraph_materialize_all_clones): Dispose of all
21887         combined_args_to_skip bitmaps.
21888         (verify_cgraph_node): Do not check for edges pointing to wrong
21889         nodes in inline clones.
21890         * tree-inline.c (copy_bb): Call
21891         cgraph_redirect_edge_call_stmt_to_callee.
21892         * ipa.c (cgraph_remove_unreachable_nodes): Call
21893         cgraph_node_remove_callees even when there are used clones.
21894
21895 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
21896
21897         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
21898
21899 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
21900
21901         PR target/43383
21902         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
21903         for 32bit.
21904
21905 2010-03-18  Michael Matz  <matz@suse.de>
21906
21907         PR middle-end/43419
21908         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
21909         into sqrt(x) if we need to preserve signed zeros.
21910
21911 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
21912             Eric Botcazou  <ebotcazou@adacore.com>
21913
21914         PR rtl-optimization/43360
21915         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
21916         note if we don't know its invariant status.
21917
21918 2010-03-18  Michael Matz  <matz@suse.de>
21919
21920         PR tree-optimization/43402
21921         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
21922         PHI chains of ssa names registered for update.
21923
21924 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
21925
21926         PR target/42427
21927         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
21928         non-offsettable and pre_modify update addressing.
21929         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
21930         and "2" alternatives "#".
21931         (*movdd_softfloat32): Make all alternatives "#";
21932         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
21933         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
21934         (*movdf_softfloat32): Make all alternatives "#";
21935         (movdi): Use the new DIFD mode iterator to create a common splitter
21936         for movdi, movdf and movdd patterns.
21937
21938 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
21939
21940         * common.opt (dumpdir): Remove redundant tab.
21941
21942 2010-03-17  Martin Jambor  <mjambor@suse.cz>
21943
21944         PR tree-optimization/43347
21945         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
21946         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
21947
21948 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
21949
21950         PR rtl-optimization/42216
21951         * regrename.c (create_new_chain): New function, broken out from...
21952         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
21953         appending a use to an empty chain.
21954         (build_def_use): Remove previous changes that convert OP_INOUT to
21955         OP_OUT operands; instead detect the case where an OP_INOUT operand
21956         uses a previously untracked register and create an empty chain for it.
21957
21958 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21959
21960         * doc/extend.texi (Function Attributes): Rewrite unfinished
21961         sentence in ms_abi documentation.
21962
21963 2010-03-17  Alan Modra  <amodra@gmail.com>
21964
21965         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
21966         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
21967         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
21968         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
21969
21970 2010-03-16  Richard Henderson  <rth@redhat.com>
21971
21972         PR middle-end/43365
21973         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
21974         (lower_try_finally): Save and restore eh_seq around the expansion
21975         of the try-finally.
21976
21977 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
21978
21979         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
21980         statements before splitting block.
21981
21982 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21983
21984         * doc/sourcebuild.texi (Testsuites): Fix markup.
21985         Use pathnames relative to gcc/testsuite.
21986         (Test Directives): Move description of how timeout is determined.
21987         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
21988         (C Tests): Correct gcc.misc-tests directory.
21989         Framework tests now live in gcc.test-framework.
21990
21991 2010-03-16  Richard Guenther  <rguenther@suse.de>
21992
21993         PR middle-end/43379
21994         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
21995         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
21996
21997 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
21998             Alexandre Oliva  <aoliva@redhat.com>
21999
22000         PR tree-optimization/42917
22001         * lambda-code.c (remove_iv): Skip debug statements.
22002         (lambda_loopnest_to_gcc_loopnest): Likewise.
22003         (not_interesting_stmt): Debug statements are not interesting.
22004
22005 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
22006
22007         PR debug/43051
22008         PR debug/43092
22009         * cselib.c (cselib_preserve_constants,
22010         cfa_base_preserved_val): New static variables.
22011         (preserve_only_constants): New function.
22012         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
22013         clear its REG_VALUES.  If cselib_preserve_constants, don't
22014         empty the whole hash table, but preserve there VALUEs with constants,
22015         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
22016         (cselib_preserve_cfa_base_value): New function.
22017         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
22018         (cselib_init): Change argument to int bitfield.  Set
22019         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
22020         is in it.
22021         (cselib_finish): Clear cselib_preserve_constants and
22022         cfa_base_preserved_val.
22023         * cselib.h (enum cselib_record_what): New enum.
22024         (cselib_init): Change argument to int.
22025         (cselib_preserve_cfa_base_value): New prototype.
22026         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
22027         * dse.c (dse_step1): Likewise.
22028         * cfgcleanup.c (thread_jump): Likewise.
22029         * sched-deps.c (sched_analyze): Likewise.
22030         * gcse.c (local_cprop_pass): Likewise.
22031         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
22032         If FN is non-NULL, call the callback always and whenever it returns
22033         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
22034         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
22035         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
22036         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
22037         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
22038         * var-tracking.c: Include recog.h.
22039         (bb_stack_adjust_offset): Remove.
22040         (vt_stack_adjustments): Don't call it, instead just gather the
22041         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
22042         (adjust_stack_reference): Remove.
22043         (compute_cfa_pointer): New function.
22044         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
22045         (struct adjust_mem_data): New type.
22046         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
22047         functions.
22048         (get_address_mode): New function.
22049         (replace_expr_with_values): Use it.
22050         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
22051         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
22052         (adjust_sets): Remove.
22053         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
22054         Use get_address_mode.
22055         (get_adjusted_src): Remove.
22056         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
22057         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
22058         (add_with_sets): Don't call adjust_sets.
22059         (fp_setter, vt_init_cfa_base): New functions.
22060         (vt_initialize): Change return type to bool.  Move most of pool etc.
22061         initialization to the beginning of the function from end.  Pass
22062         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
22063         If !frame_pointer_needed, call vt_stack_adjustment before mos
22064         vector is filled, call vt_init_cfa_base if argp/framep has been
22065         eliminated to sp.  If frame_pointer_needed and argp/framep has
22066         been eliminated to hard frame pointer, set
22067         hard_frame_pointer_adjustment and call vt_init_cfa_base after
22068         encountering fp setter in the prologue.  For MO_ADJUST, call
22069         log_op_type before pusing the op into mos vector, not afterwards.
22070         Call adjust_insn before cselib_process_insn/add_with_sets,
22071         call cancel_changes (0) afterwards.
22072         (variable_tracking_main_1): Adjust for vt_initialize calling
22073         vt_stack_adjustments and returning whether it succeeded or not.
22074
22075 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
22076
22077         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
22078         debug statements.
22079
22080 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
22081
22082         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
22083         has been set.
22084         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
22085         drap_reg has not been set.
22086
22087 2010-03-15  Michael Matz  <matz@suse.de>
22088
22089         PR middle-end/43300
22090         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
22091         use it to expand block copies.
22092         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
22093         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
22094         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
22095
22096 2010-03-15  Richard Guenther  <rguenther@suse.de>
22097
22098         PR tree-optimization/43367
22099         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
22100         elimination check.
22101
22102 2010-03-15  Richard Guenther  <rguenther@suse.de>
22103
22104         PR tree-optimization/43317
22105         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
22106
22107 2010-03-15  Martin Jambor  <mjambor@suse.cz>
22108
22109         PR tree-optimization/43141
22110         * tree-sra.c (create_abstract_origin): New function.
22111         (modify_function): Call create_abstract_origin.
22112
22113 2010-03-15  Chris Demetriou  <cgd@google.com>
22114
22115         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
22116         wasn't copied.
22117
22118 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22119
22120         PR middle-end/43354
22121         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
22122         call insert_out_of_ssa_copy for default definitions.
22123
22124 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22125
22126         * graphite-clast-to-gimple.c (my_long_long): Defined.
22127         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
22128         * graphite-sese-to-poly.c (my_long_long): Defined.
22129         (scop_ivs_can_be_represented): Use it.
22130
22131 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22132
22133         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
22134         graphite-max-bbs-per-function, and loop-block-tile-size.
22135         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
22136         with "maximum".
22137         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
22138
22139 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22140
22141         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
22142         forward declaration.
22143         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
22144         (add_upper_bounds_from_estimated_nit): New.
22145         (build_loop_iteration_domains): Use it.
22146
22147 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22148
22149         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
22150
22151 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22152
22153         PR middle-end/43306
22154         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
22155         should be an INTEGER_CST.  Also handle CASE_CONVERT.
22156
22157 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22158
22159         * graphite.c (graphite_initialize): To bound the number of bbs per
22160         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
22161         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
22162         * doc/invoke.texi: Document it.
22163
22164 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22165
22166         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
22167         * graphite-sese-to-poly.h (build_poly_scop): Same.
22168
22169 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
22170
22171         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
22172         the number of parameters in the scop.  Use as an upper bound
22173         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
22174         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
22175         * doc/invoke.texi: Document it.
22176
22177 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
22178
22179         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
22180         * doc/c-tree.texi: Remove.
22181         * doc/generic.texi: Merge c-tree.texi here.
22182         * doc/gccint.texi (Trees): Remove menu entry.
22183         (c-tree.texi): Remove @include.
22184         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
22185         * doc/languages.texi (Reading RTL): Ditto.
22186
22187 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
22188
22189         PR target/42869
22190         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
22191
22192 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
22193
22194         PR middle-end/42431
22195         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
22196         code added to work around reload clobbering CONST insns.
22197
22198 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
22199
22200         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
22201         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
22202         (cselib_preserve_only_values): Remove retain argument, don't
22203         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
22204         * cselib.h (cselib_preserve_only_values): Remove retain argument.
22205         * var-tracking.c (micro_operation): Move insn field before union.
22206         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
22207         (struct variable_tracking_info_def): Remove n_mos field, change
22208         mos into a vector of micro_operations.
22209         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
22210         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
22211         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
22212         changing into a vector.
22213         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
22214         come before all other uops generated by add_stores.
22215         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
22216         argument removal.
22217         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
22218         a vector.  Run just one pass over the bbs instead of separate counting
22219         and computation phase.
22220         (vt_finalize): Free VTI (bb)->mos vector instead of array.
22221
22222         PR debug/43329
22223         * tree-inline.c (remap_decls): Put old_var rather than origin_var
22224         into *nonlocalized_list vector.
22225         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
22226         even if origin is non-NULL.
22227         (gen_variable_die): Likewise.
22228         (process_scope_var): Don't change origin.
22229         (gen_decl_die): Likewise.
22230         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
22231         before adding new edges instead of after it, fix moving over
22232         debug stmts.
22233
22234 2010-03-11  David S. Miller  <davem@davemloft.net>
22235
22236         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
22237         of four.
22238         * configure: Rebuild.
22239
22240 2010-03-11  Martin Jambor  <mjambor@suse.cz>
22241
22242         PR tree-optimization/43257
22243         * tree.c (assign_assembler_name_if_neeeded): New function.
22244         (free_lang_data_in_cgraph): Assembler name assignment moved to the
22245         above new function.
22246         * tree.h (assign_assembler_name_if_neeeded): Declare.
22247         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
22248         the function if needed.
22249
22250 2010-03-11  Chris Demetriou  <cgd@google.com>
22251
22252         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
22253         include/stdint-gcc.h, and include/stdint.h world-readable.
22254
22255 2010-03-11  Richard Guenther  <rguenther@suse.de>
22256
22257         PR tree-optimization/43255
22258         * tree-vrp.c (process_assert_insertions_for): Do not insert
22259         asserts for trivial conditions.
22260
22261 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22262
22263         PR tree-optimization/43280
22264         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
22265         generation.  Move calculation of size out of the if branch.
22266         (find_bswap): Modify compare number generation.
22267
22268 2010-03-11  Richard Guenther  <rguenther@suse.de>
22269
22270         PR lto/43200
22271         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
22272         (input_gimple_stmt): Fixup handled component types during
22273         operand read.  Also fix up decls in ADDR_EXPRs.
22274
22275 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
22276
22277         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
22278         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
22279
22280 2010-03-10  Jan Hubicka  <jh@suse.cz>
22281
22282         PR c/43288
22283         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
22284         * varasm.c (get_variable_section): Don't do that here...
22285         (make_decl_rtl): ... and here.
22286         (do_assemble_alias): Produce decl RTL.
22287         (assemble_alias): Likewise.
22288
22289 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22290
22291         PR debug/43290
22292         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
22293         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
22294         of fde->vdrap_reg.
22295         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
22296         (based_loc_descr): Only express drap or vdrap regno based expressions
22297         using DW_OP_fbreg when not optimizing.
22298         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
22299         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
22300         REG_CFA_SET_VDRAP note.
22301
22302 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
22303
22304         PR tree-optimization/43236
22305         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
22306         error in calculation of base address in reverse iteration case.
22307         (generate_builtin): Take number of latch executions if the statement
22308         is in the latch.
22309
22310 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
22311
22312         PR middle-end/42859
22313         * tree-eh.c: Include pointer-set.h.
22314         (lower_eh_dispatch): Filter out duplicate case labels and
22315         remove the unneeded edge when the label is unused.  Return
22316         true when some edges are removed.
22317         (execute_lower_eh_dispatch): When any lowering resulted in
22318         removing an edge, also delete unreachable blocks.
22319
22320 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22321
22322         PR bootstrap/43287
22323         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22324         UNSPEC_MACHOPIC_OFFSET.
22325
22326 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
22327
22328         PR target/43294
22329         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
22330         (m68k_delegitimize_address): New function.
22331
22332 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
22333
22334         PR debug/43299
22335         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
22336
22337         PR debug/43299
22338         * var-tracking.c (adjust_sets): New function.
22339         (count_with_sets, add_with_sets): Use it.
22340         (get_adjusted_src): New inline function.
22341         (add_stores): Use it.
22342
22343         PR debug/43304
22344         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
22345         call cselib_dummy_expand_value_rtx_cb instead of
22346         cselib_expand_value_rtx_cb.
22347
22348         PR debug/43293
22349         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
22350         * config/i386/i386.c: Include debug.h and dwarf2out.h.
22351         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
22352         and .cfi_endproc around the pic thunks.
22353         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
22354         all queued unwind info register saves are saved before the call.
22355         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
22356         considered as sp-=4 for unwind info and the pop as sp+=4 which
22357         also clobbers dest, but doesn't actually restore it.
22358
22359         PR debug/43290
22360         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
22361         RTX_FRAME_RELATED_P.
22362
22363 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22364
22365         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
22366         whitespaces in output template.
22367
22368 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22369
22370         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
22371         out array boundary.
22372
22373 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22374
22375         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
22376         builtins.exp in a separate job.
22377
22378 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22379
22380         * graphite-sese-to-poly.c (add_param_constraints): Use
22381         lower_bound_in_type and upper_bound_in_type.
22382
22383 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22384
22385         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
22386         instead of unsigned_type_node.
22387
22388 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22389             Reza Yazdani  <reza.yazdani@amd.com>
22390
22391         PR middle-end/43065
22392         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
22393         on pointer type parameters.
22394
22395 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22396
22397         PR middle-end/42644
22398         PR middle-end/42130
22399         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
22400         handle conversions from pointer to integers.
22401         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
22402         induction variable, to be able to work with code generated by CLooG.
22403         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
22404         (build_poly_scop): Bail out if we cannot codegen a loop.
22405
22406 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22407
22408         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
22409         code generation with gloog_error.
22410
22411 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22412
22413         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
22414         Call fold_convert on all the returned values.
22415         (expand_scalar_variables_expr): Pass to
22416         expand_scalar_variables_ssa_name the type of the resulting expression.
22417
22418 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22419
22420         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
22421         ppl_min_for_le_pointset.
22422         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
22423         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
22424
22425 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22426
22427         * graphite-dependences.c (map_into_dep_poly): Removed.
22428         (dependence_polyhedron_1): Use combine_context_id_scat.
22429
22430 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22431
22432         * graphite-poly.h (struct poly_scattering): Add layout documentation.
22433         (struct poly_bb): Same.
22434         (combine_context_id_scat): New.
22435
22436 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22437
22438         PR middle-end/42326
22439         * sese.c (name_defined_in_loop_p): Return false for default
22440         definitions.
22441
22442 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22443
22444         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
22445         and clean up the logic.
22446
22447 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22448
22449         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
22450         early return.
22451
22452 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22453
22454         * var-tracking.c (remove_cselib_value_chains): Define only for
22455         ENABLE_CHECKING.
22456         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
22457         delete_slot_part, emit_notes_for_differences_1): Don't call
22458         remove_cselib_value_chains here.
22459         (set_slot_part, emit_notes_for_differences_2): Don't call
22460         add_cselib_value_chains here.
22461         (preserved_values): New vector.
22462         (preserve_value): New function.
22463         (add_uses, add_stores, vt_add_function_parameters): Use it
22464         instead of cselib_preserve_value.
22465         (changed_values_stack): New vector.
22466         (check_changed_vars_0): New function.
22467         (check_changed_vars_1, check_changed_vars_2): Use it.
22468         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
22469         changed_values_stack VALUEs.
22470         (vt_emit_notes): For all preserved_values call
22471         add_cselib_value_chains.  If ENABLE_CHECKING call
22472         remove_cselib_value_chains before verifying value_chains is empty.
22473         Initialize and free changed_values_stack.
22474         (vt_initialize): Initialize preserved_values.
22475         (vt_finalize): Free preserved_values.
22476
22477 2010-03-08  Richard Guenther  <rguenther@suse.de>
22478
22479         PR tree-optimization/43269
22480         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
22481         region detection.
22482
22483 2010-03-08  Martin Jambor  <mjambor@suse.cz>
22484
22485         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
22486         (ipa_is_param_called): Removed.
22487         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
22488         (ipa_print_node_params): Do not print the called flag.
22489         (ipa_write_node_info): Do not stream the called flag.
22490         (ipa_read_node_info): Likewise.
22491
22492 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
22493
22494         PR debug/43176
22495         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
22496         * cselib.c (struct expand_value_data): Add dummy field.
22497         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
22498         dummy to false.
22499         (cselib_dummy_expand_value_rtx_cb): New function.
22500         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
22501         any rtl.
22502         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
22503         * var-tracking.c: Include pointer-set.h.
22504         (variable): Change n_var_parts to char from int.  Add
22505         cur_loc_changed and in_changed_variables fields.
22506         (variable_canonicalize): Remove.
22507         (shared_var_p): New inline function.
22508         (unshare_variable): Maintain cur_loc_changed and
22509         in_changed_variables fields.  If var was in changed_variables,
22510         replace it there with new_var.  Just copy cur_loc instead of
22511         resetting it to something else.
22512         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
22513         (dataflow_set_union): Don't call variable_canonicalize.
22514         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
22515         of their DEBUG_EXPR_TREE_DECLs.
22516         (canonicalize_loc_order_check): Verify that cur_loc is NULL
22517         and in_changed_variables and cur_loc_changed is false.
22518         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
22519         and cur_loc_changed.  Don't update cur_loc here.
22520         (variable_merge_over_src): Don't call variable_canonicalize.
22521         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
22522         removing loc that is equal to cur_loc, clear cur_loc,
22523         set cur_loc_changed and ensure variable_was_changed is called.
22524         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
22525         compare pointers in cur_loc check, if it is equal to loc,
22526         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
22527         (variable_different_p): Remove compare_current_location argument,
22528         don't compare cur_loc.
22529         (dataflow_set_different_1): Adjust variable_different_p caller.
22530         (variable_was_changed): If dv had some var in changed_variables
22531         already, reset in_changed_variables flag for it and propagate
22532         cur_loc_changed over to the new variable.  On empty var
22533         always set cur_loc_changed.  Set in_changed_variables on whatever
22534         var is added to changed_variables.
22535         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
22536         Use shared_var_p.  When removing loc that is equal to cur_loc,
22537         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
22538         end, don't set it to something else, just call variable_was_changed.
22539         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
22540         loc being removed, clear cur_loc and set cur_loc_changed.
22541         Set cur_loc_changed if all locations have been removed.
22542         (struct expand_loc_callback_data): New type.
22543         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
22544         allocated.  Always create SUBREGs if simplify_subreg failed.
22545         Prefer to use cur_loc, when that fails and still in
22546         changed_variables (and seen first time) recompute it.  Set
22547         cur_loc_changed of variables which had to change cur_loc and
22548         compute elcd->cur_loc_changed if any of the subexpressions used
22549         had to change cur_loc.
22550         (vt_expand_loc): Adjust to pass arguments in
22551         expand_loc_callback_data structure.
22552         (vt_expand_loc_dummy): New function.
22553         (emitted_notes): New variable.
22554         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
22555         that weren't used for any other decl in current
22556         emit_notes_for_changes call call vt_expand_loc_dummy to update
22557         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
22558         first loc_chain location if NULL before.  Always use just
22559         cur_loc instead of first loc_chain location.  When cur_loc_changed
22560         is false, when not --enable-checking=rtl just don't emit any note.
22561         When rtl checking, compute the note and assert it is the same
22562         as previous note.  Clear cur_loc_changed and in_changed_variables
22563         at the end before removing from changed_variables.
22564         (check_changed_vars_3): New function.
22565         (emit_notes_for_changes): Traverse changed_vars to call
22566         check_changed_vars_3 on each changed var.
22567         (emit_notes_for_differences_1): Clear cur_loc_changed and
22568         in_changed_variables.  Recompute cur_loc of new_var.
22569         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
22570         (vt_emit_notes): Initialize and destroy emitted_notes.
22571
22572 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
22573
22574         PR rtl-optimization/42220
22575         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
22576         Use verify_reg_tracked to determine if we should use OP_OUT rather
22577         than OP_INOUT.
22578         (build_def_use): If we see an in-out operand for a register that we
22579         know nothing about, treat is an output if possible, fail the block if
22580         not.
22581
22582 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22583
22584         PR debug/42897
22585         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
22586         permanently.
22587
22588 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22589
22590         PR debug/42897
22591         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
22592         uses of relevant DEFs that are dead outside the loop too.
22593
22594 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22595
22596         * var-tracking.c (dataflow_set_merge): Swap src and src2.
22597         Reverted:
22598         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
22599         PR debug/41371
22600         * var-tracking.c (values_to_unmark): New variable.
22601         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22602         values_to_unmark vector.  Moved body to...
22603         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
22604         instead queue it into values_to_unmark vector.
22605         (vt_find_locations): Free values_to_unmark vector.
22606
22607 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
22608
22609         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
22610         (site.exp): Export them when plugins are enabled.
22611
22612 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
22613
22614         PR middle-end/42326
22615         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
22616         that contain scevs.
22617         (chrec_fold_multiply): Same.
22618
22619 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22620
22621         PR c/43248
22622         * c-decl.c (build_compound_literal): Return early if init is
22623         an error_mark_node.
22624
22625 2010-03-04  Martin Jambor  <mjambor@suse.cz>
22626
22627         PR tree-optimization/43164
22628         PR tree-optimization/43191
22629         * tree-sra.c (type_consists_of_records_p): Reject records with
22630         zero-size bit-fields at the end.
22631
22632 2010-03-04  Mike Stump  <mikestump@comcast.net>
22633
22634         * Makefile.in (TAGS): Remove *.y.
22635
22636 2010-03-04  Richard Guenther  <rguenther@suse.de>
22637
22638         PR tree-optimization/40761
22639         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
22640         in reverse order.
22641         (my_rev_post_order_compute): New function.
22642         (init_pre): Call it.
22643
22644 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
22645
22646         PR middle-end/43209
22647         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
22648         decrease the cost of an IV candidate when the cost is infinite.
22649
22650 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22651
22652         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
22653         Use '3DNow!' for the extension of that name, ensure normal space
22654         after the string.
22655         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
22656
22657 2010-03-03  Jeff Law  <law@redhat.com>
22658
22659         * PR middle-end/32693
22660         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
22661         than gen_rtx_SUBREG.
22662         (extract_bit_field_1): Likewise.
22663
22664 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
22665
22666         * doc/sourcebuild.texi (Test directives): Document that arguments
22667         include-opts and exclude-opts are now optional for dg-skip-if,
22668         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
22669
22670 2010-03-03  Jason Merrill  <jason@redhat.com>
22671
22672         PR c++/12909
22673         * cgraph.h (varpool_node): Add extra_name field.
22674         * varpool.c (varpool_extra_name_alias): New.
22675         (varpool_assemble_decl): Emit extra name aliases.
22676         (varpool_mark_needed_node): Look past an extra name alias.
22677         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
22678         * lto-streamer-in.c (lto_input_tree): Read it.
22679         * lto-streamer-out.c (output_unreferenced_globals): Write it.
22680
22681 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
22682
22683         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
22684         (sparc*-*-solaris2*): ...this.
22685
22686 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
22687
22688         PR debug/43229
22689         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
22690         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
22691         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
22692         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
22693
22694         PR debug/43237
22695         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
22696         fallthrough to default handling, just with want_address 0 instead of 2.
22697         For single element lists, add_AT_loc directly, otherwise create an
22698         artificial variable DIE and stick location list to it.
22699
22700         PR debug/43177
22701         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
22702         (VAL_EXPR_HAS_REVERSE): Define.
22703         (reverse_op): New function.
22704         (add_stores): For reversible operations add an extra MO_VAL_USE.
22705
22706 2010-03-02  Jason Merrill  <jason@redhat.com>
22707
22708         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
22709
22710 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
22711
22712         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
22713         (sparc64-*-linux*): Likewise.
22714         (sparc64-*-solaris2*): Include assembler files before linker ones.
22715         (sparc-*-solaris2*): Simplify and reorder to match previous case.
22716         * config/sparc/gas.h: Delete.
22717         * config/sparc/sol2-64.h: Add copyright notice.
22718         * config/sparc/sol2-gas-bi.h: Likewise.
22719         * config/sparc/sol2-gld.h: Likewise.
22720         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
22721         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
22722         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
22723         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
22724         (sparc_elf_asm_named_section): Rename into...
22725         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
22726
22727 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
22728
22729         * config/alpha/alpha.c (override_options): Fix -mtune error message.
22730
22731 2010-03-02  Jeff Law  <law@redhat.com>
22732
22733         PR middle-end/42431
22734         * reload1.c (rtx_p, substitute_stack): Declare.
22735         (substitute): Record addresses of changed rtxs.
22736         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
22737         Restore the original rtx when complete.
22738         (reload): Free subsitute_stack when complete.
22739
22740 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
22741
22742         * doc/gccint.texi (menu): Add Testsuites as a chapter.
22743         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
22744         new chapter.
22745         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
22746         LTO Testing, gcov Testing, profopt Testing, compat Testing,
22747         Torture Tests): Change from subsection to section.
22748
22749 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
22750             Steven Bosscher  <steven@gcc.gnu.org>
22751
22752         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
22753         instead of bb.
22754
22755 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
22756
22757         PR middle-end/42640
22758         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
22759         the assignment from the new induction variable to the assignment
22760         of the value from the original loop PHI function.
22761
22762 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
22763             Daniel Jacobowitz  <dan@codesourcery.com>
22764
22765         * doc/sourcebuild.texi (Test directives): Clarify options to
22766         dg-skip-if.
22767
22768 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22769
22770         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
22771         Disable cfi directives unless GCC and gas agree on using read-only
22772         .eh_frame sections for 64-bit.
22773         * configure: Regenerate.
22774
22775 2010-03-01  Richard Guenther  <rguenther@suse.de>
22776
22777         PR tree-optimization/43220
22778         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
22779         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
22780
22781 2010-03-01  Richard Guenther  <rguenther@suse.de>
22782             Martin Jambor  <mjambor@suse.cz>
22783
22784         PR middle-end/41250
22785         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
22786         gimplified parameters.
22787
22788 2010-03-01  Christian Bruel  <christian.bruel@st.com>
22789
22790         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
22791
22792 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
22793
22794         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
22795
22796 2010-03-01  Richard Guenther  <rguenther@suse.de>
22797
22798         PR middle-end/43213
22799         * expr.c (expand_assignment): Use the alias-oracle to tell
22800         if the rhs aliases the result decl.
22801
22802 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22803
22804         PR pch/14940
22805         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
22806         to sol_gt_pch_get_address.
22807         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
22808         64-bit, SPARC and x86.
22809         (sol_gt_pch_get_address): New function.
22810
22811 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
22812
22813         * toplev.h (inform_n, error_n): Declare.
22814         * diagnostic.c (inform_n, error_n): New function.
22815
22816 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
22817
22818         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
22819         has no rtl yet when processing local_decls, queue it and recheck
22820         if deferred stack allocation hasn't assigned it rtl.
22821
22822 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
22823
22824         * config/sh/sh.c (unspec_bbr_uid): New.
22825         (gen_block_redirect): Use it instead of INSN_UID.
22826         (gen_far_branch): Likewise.
22827
22828 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
22829
22830         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
22831         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
22832
22833 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22834
22835         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
22836         (Warning Options): -Wno-conversion-null is valid for
22837         Objective-C++ as well.
22838         * doc/tm.texi (Named Address Spaces): Likewise.
22839         * doc/plugins.texi (Plugins): Replace TABs with spaces.
22840         * doc/tree-ssa.texi (Tree SSA): Likewise.
22841
22842 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22843
22844         PR bootstrap/43202
22845         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
22846         by default.  Don't set the default arch for
22847         i[34567]86-*-darwin*|x86_64-*-darwin*.
22848
22849 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22850
22851         PR bootstrap/43202
22852         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
22853         default.  Set the default 32bit/64bit archs with $with_arch
22854         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
22855
22856 2010-02-27  Richard Guenther  <rguenther@suse.de>
22857
22858         PR tree-optimization/43186
22859         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
22860         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
22861         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
22862         unroller iterations.
22863
22864 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22865
22866         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
22867         required and i[34567]86-*-* targets don't support 64bit ISA.
22868
22869 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
22870
22871         PR ada/43096
22872         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22873         the same alias set.
22874
22875 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
22876
22877         * config.gcc: Set the default arch at least to Prescott for
22878         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
22879         if SSE math is enabled.
22880
22881 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22882
22883         * diagnostic.c (diagnostic_initialize): Update.
22884         (diagnostic_report_diagnostic): Test inhibit_notes_p for
22885         informative notes.
22886         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
22887         (diagnostic_inhibit_notes): New.
22888         * toplev.c (process_options): inhibit notes with -fcompare-debug.
22889
22890 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22891
22892         PR c/20631
22893         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
22894         * doc/standards.texi: Likewise.
22895         * doc/extend.texi: Likewise.
22896         * doc/trouble.texi: Likewise.
22897         * doc/cppopts.texi: Likewise.
22898         * doc/install.texi: Likewise.
22899         * c.opt (std=c90,std=gnu90): New options.
22900         * c-opts.c (c_common_handle_option): Handle them.
22901
22902 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22903
22904         PR c/24577
22905         * c-decl.c (undeclared_variable): Use an informative note.
22906
22907 2010-02-26  Richard Guenther  <rguenther@suse.de>
22908
22909         PR tree-optimization/43186
22910         * gimple.h (gimple_fold): Remove.
22911         * gimple.c (gimple_fold): Remove.  Inline into single user ...
22912         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
22913         Try harder for conditions.
22914
22915 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
22916
22917         PR debug/43190
22918         * function.c (used_types_insert): Don't skip through named pointer
22919         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
22920         and it is different from the main variant's type.
22921
22922 2010-02-26  Nick Clifton  <nickc@redhat.com>
22923
22924         * config/rx/rx.md (sminsi3): Remove bogus alternative.
22925
22926 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
22927
22928         * config.gcc: Support --with-fpmath=sse for x86.
22929
22930         * config/i386/ssemath.h: New.
22931
22932         * doc/install.texi (--with-fpmath=sse): Documented.
22933
22934 2010-02-26  Richard Guenther  <rguenther@suse.de>
22935
22936         PR tree-optimization/43188
22937         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
22938         vector types of over-aligned element type.
22939
22940 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
22941
22942         PR target/43175
22943         * config/i386/i386.c (expand_vec_perm_blend): Use correct
22944         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
22945
22946 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
22947
22948         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
22949
22950 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
22951
22952         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
22953         * var-tracking.c: Include diagnostic.h.
22954         (debug_dv): New function.
22955         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
22956
22957         PR debug/43160
22958         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
22959         (add_value_chain, add_value_chains, remove_value_chain,
22960         remove_value_chains): Handle DEBUG_EXPRs.
22961         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
22962
22963         PR debug/43161
22964         * regcprop.c (struct queued_debug_insn_change): New type.
22965         (struct value_data_entry): Add debug_insn_changes field.
22966         (struct value_data): Add n_debug_insn_changes field.
22967         (debug_insn_changes_pool): New variable.
22968         (free_debug_insn_changes, apply_debug_insn_changes,
22969         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
22970         (kill_value_one_regno): Call free_debug_insn_changes if needed.
22971         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
22972         fields.
22973         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
22974         changes for them.
22975         (copyprop_hardreg_forward_1): Don't call apply_change_group for
22976         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
22977         changes, call cprop_find_used_regs via note_stores.
22978         (copyprop_hardreg_forward): When copying vd from predecessor
22979         which has any queued DEBUG_INSN changes, make sure the pointers are
22980         cleared.  At the end call df_analyze and then if there are any
22981         DEBUG_INSN changes queued at the end of some basic block for still
22982         live registers, apply them.
22983         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
22984
22985 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
22986
22987         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
22988         (arm*-*-*): Ditto.
22989
22990 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
22991
22992         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
22993         targets.  Set the default with_cpu/with_arch from arch/cpu.
22994         Allow x86-64 and native for with_cpu/with_arch.
22995
22996 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
22997
22998         * ebitmap.c: Change calls to verify_popcount with calls to
22999         sbitmap_verify_popcount.
23000         (ebitmap_clear_bit): Fixed map->cacheindex test and
23001         map>cache update when bit clearing results in an empty
23002         element.
23003
23004 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
23005
23006         PR target/43154
23007         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
23008         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
23009         and support both V2DF and V2DI modes.
23010         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
23011         support both V2DF and V2DI modes.
23012         (general): Delete trailing whitespace from a few patterns.
23013
23014         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23015         V2DF/V2DI interleave high/low builtins.
23016
23017         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
23018         new VSX builtins.
23019
23020         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
23021         interleave high/low functions.
23022
23023 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
23024
23025         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
23026         #pragma extern_prefix.
23027
23028 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
23029
23030         PR debug/43166
23031         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
23032         BLKmode, assert op0 is a MEM and just adjust its mode.
23033
23034         PR debug/43165
23035         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
23036         if bitpos isn't multiple of mode's bitsize.
23037
23038 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23039
23040         * c.opt (-ftemplate-depth=): New.
23041         (-ftemplate-depth-): Deprecate.
23042         * optc-gen.awk: Handle -ftemplate-depth=.
23043         * opth-gen.awk: Likewise.
23044         * c-opts.c (c_common_handle_option): Likewise.
23045         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
23046
23047 2010-02-24  Jason Merrill  <jason@redhat.com>
23048
23049         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
23050
23051 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23052
23053         * cfg.c (alloc_aux_for_block): Remove inline.
23054         (alloc_aux_for_edge): Likewise.
23055
23056 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23057
23058         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
23059
23060 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23061
23062         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
23063         * config/i386/sol2-gas.h: New file.
23064         * config.gcc (i[34567]86-*-solaris2*): Use it.
23065
23066 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23067
23068         PR c/43128
23069         * c-typeck.c (ep_convert_and_check): New.
23070         (build_conditional_expr): Use it.
23071         (build_binary_op): Likewise.
23072
23073 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
23074
23075         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
23076
23077         PR debug/43150
23078         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
23079         bounds even for -O+.
23080         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
23081         expr needs to have DECL_NAME set.
23082
23083 2010-02-24  Nick Clifton  <nickc@redhat.com>
23084
23085         * config/mep/mep.c: Include gimple.h.
23086         (mep_function_uses_sp): Delete unused function.
23087         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
23088         parameters.  Use unsigned integers to count args.  Return a
23089         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
23090
23091 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23092
23093         PR target/43107
23094         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
23095         greater or equal to nelt instead of 2 * nelt.
23096         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
23097         with nelt - 1.
23098
23099 2010-02-23  Jason Merrill  <jason@redhat.com>
23100
23101         PR debug/42800
23102         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
23103         in cfun->local_decls even if they have register types.
23104
23105         PR c++/42837
23106         * stor-layout.c (place_field): Don't warn about unnecessary
23107         DECL_PACKED if the type is packed.
23108
23109 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
23110
23111         PR target/43139
23112         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
23113         GOTOFF relocs, even when the base reg isn't pic pointer.
23114
23115 2010-02-23  Michael Matz  <matz@suse.de>
23116
23117         PR debug/43077
23118         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
23119         (expand_gimple_basic_block): Generate and use debug temps if there
23120         are debug uses left after the last real use of TERed ssa names.
23121         Unlink debug immediate uses when they are expanded.
23122
23123 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23124
23125         PR 43123
23126         * config/i386/i386.c (override_options): Reorganise to provide
23127         better error messages.
23128
23129 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23130
23131         PR middle-end/43083
23132         * graphite-scop-detection.c (create_single_exit_edge): Move
23133         the call to find_single_exit_edge to....
23134         (create_sese_edges): ...here.  Don't handle multiple edges
23135         exiting the function.
23136         (build_graphite_scops): Don't handle multiple edges
23137         exiting the function.
23138
23139 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23140
23141         PR middle-end/43097
23142         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
23143         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
23144
23145 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
23146
23147         PR middle-end/43026
23148         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
23149
23150 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23151
23152         PR c++/43126
23153         * c-typeck.c (convert_arguments): Print declaration location.
23154         * c-common.c (validate_nargs): Rename as
23155         builtin_function_validate_nargs.
23156         (check_builtin_function_arguments): Update.
23157
23158 2010-02-22  Richard Guenther  <rguenther@suse.de>
23159
23160         PR lto/43045
23161         * tree-inline.c (declare_return_variable): Use the type of
23162         the call stmt lhs if available.
23163
23164 2010-02-22  Duncan Sands  <baldrick@free.fr>
23165
23166         * passes.c (register_pass): Always consider all pass lists when
23167         ref_pass_instance_number is zero.
23168
23169 2010-02-22  Richard Guenther  <rguenther@suse.de>
23170
23171         PR tree-optimization/42749
23172         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
23173         parameter.  Do arithmetic in the original type.
23174         (update_accumulator_with_ops): Likewise.
23175         (adjust_accumulator_values): Adjust.
23176
23177 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23178
23179         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
23180         (QI to BLKmode splitter): New splitter.
23181
23182 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
23183
23184         * config/i386/i386.c (initial_ix86_tune_features): Turn on
23185         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
23186
23187 2010-02-22  Richard Guenther  <rguenther@suse.de>
23188
23189         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
23190
23191 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
23192
23193         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
23194         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
23195         ($(T)crti.o, $(T)crtn.o): Remove rules.
23196
23197 2010-02-21  Tobias Burnus  <burnus@net-b.de>
23198
23199         PR fortran/35259
23200         * doc/invoke.texi (-fassociative-math): Document that this
23201         option is automatically enabled for Fortran.
23202
23203 2010-02-20  David S. Miller  <davem@davemloft.net>
23204
23205         * configure.ac: Test if linker and assembler properly support
23206         GOTDATA_OP relocations.
23207         * configure: Rebuild.
23208         * config.in: Likewise.
23209         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
23210         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
23211         (movsi_high_pic): Likewise.
23212         (movdi_lo_sum_pic): Likewise.
23213         (movdi_high_pic): Likewise.
23214         (movsi_pic_gotdata_op): New pattern.
23215         (movdi_pic_gotdata_op): Likewise.
23216         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
23217         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
23218
23219 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
23220
23221         PR target/43067
23222         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
23223         attribute to ssemul.
23224         (xop_mulv2div2di3_high): Ditto.
23225
23226 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23227
23228         PR c++/35669
23229         * c.opt (Wconversion-null): New option.
23230         * doc/invoke.texi (Wconversion-null): Document.
23231
23232 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23233
23234         * common.opt (Wlarger-than-): Add Undocumented.
23235
23236 2010-02-19  Mike Stump  <mikestump@comcast.net>
23237
23238         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
23239
23240 2010-02-19  Jason Merrill  <jason@redhat.com>
23241
23242         PR target/40332
23243         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
23244         * configure: Likewise.
23245
23246 2010-02-20  Alan Modra  <amodra@gmail.com>
23247
23248         PR middle-end/42344
23249         * cgraph.h (cgraph_make_decl_local): Declare.
23250         * cgraph.c (cgraph_make_decl_local): New function.
23251         (cgraph_make_node_local): Use it.
23252         * cgraphunit.c (cgraph_function_versioning): Likewise.
23253         * ipa.c (function_and_variable_visibility): Likewise.
23254
23255 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23256
23257         PR bootstrap/43121
23258         * except.c (sjlj_emit_function_enter): Don't call
23259         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
23260         directly.
23261         * rtl.h (add_reg_br_prob_note): Remove prototype.
23262
23263 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23264
23265         PR 41779
23266         * c-common.c (conversion_warning): Remove widening conversions
23267         before checking the conversion of integers to reals.
23268
23269 2010-02-19  Mike Stump  <mikestump@comcast.net>
23270
23271         PR middle-end/43125
23272         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
23273
23274         PR objc/43061
23275         * cgraphunit.c (process_function_and_variable_attributes): Check
23276         DECL_PRESERVE_P instead of looking up attribute "used".
23277         * ipa-pure-const.c (check_decl): Likewise.
23278         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
23279         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
23280         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
23281         instead of attribute "used".
23282         * config/sol2-c.c (solaris_pragma_init): Likewise.
23283         (solaris_pragma_fini): Likewise.
23284
23285 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23286
23287         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
23288         Use XCNEW instead of xcalloc.
23289         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
23290         XNEW instead of xmalloc.
23291         (get_fields): Use XNEWVEC instead of xmalloc.
23292
23293         PR debug/43084
23294         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
23295         populate vars array.
23296         (create_new_general_access): For debug stmts just reset value.
23297         (get_stmt_accesses): For accesses within debug stmts just record them
23298         using add_access_to_acc_sites instead of preventing the peeling or
23299         counting them as accesses.
23300
23301         PR middle-end/42233
23302         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
23303
23304 2010-02-19  Richard Guenther  <rguenther@suse.de>
23305
23306         PR tree-optimization/42916
23307         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
23308         instructions.
23309
23310 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
23311
23312         * configure.ac: Replace all uses of changequote in macro arguments
23313         with proper quoting.
23314
23315 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23316
23317         PR middle-end/42233
23318         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
23319
23320 2010-02-19  Richard Guenther  <rguenther@suse.de>
23321
23322         PR tree-optimization/42944
23323         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
23324         test for aliasing with errno.
23325
23326 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23327
23328         PR middle-end/42233
23329         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
23330         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
23331         * dojump.c: Include output.h.
23332         (inv): New inline function.
23333         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
23334         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
23335         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
23336         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
23337         argument, pass it down to other calls.
23338         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
23339         add REG_BR_PROB note to the conditional jump.
23340         * cfgexpand.c (add_reg_br_prob_note): Removed.
23341         (expand_gimple_cond): Don't call it, add the probability
23342         as last argument to jumpif_1/jumpifnot_1.
23343         * Makefile.in (dojump.o): Depend on output.h.
23344         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
23345         callers.
23346         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
23347         * stmt.c (do_jump_if_equal): Likewise.
23348         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
23349         * loop-unswitch.c (compare_and_jump_seq): Likewise.
23350         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
23351         Likewise.
23352         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
23353         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
23354         jumpifnot_1 callers.
23355         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
23356         callers.
23357         (store_expr): Adjust jumpifnot caller.
23358         (store_constructor): Adjust jumpif caller.
23359
23360         PR middle-end/42233
23361         * gimplify.c (gimple_boolify): For __builtin_expect call
23362         gimple_boolify also on its first argument.
23363
23364 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
23365
23366         * configure.ac (gnu-unique-object): Wrap regexps using [] in
23367         changequote block.
23368         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
23369         * configure: Regenerated.
23370
23371 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23372
23373         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
23374         lang_hooks.types_compatible_p instead of comptypes.
23375
23376 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23377
23378         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
23379         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
23380         if __prefer_thumb__ is defined.
23381
23382 2010-02-18  Martin Jambor  <mjambor@suse.cz>
23383
23384         PR tree-optimization/43066
23385         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
23386         array with zero-sized element type.
23387
23388 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
23389
23390         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
23391         rtx, allocate struct var_loc_node here and return it to the
23392         caller, and only if it is actually needed.
23393         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
23394         move it earlier and return immediately if it returns NULL.
23395
23396 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
23397
23398         * config/sparc/gas.h: New file.  Restore
23399         TARGET_ASM_NAMED_SECTION to its ELF default.
23400         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
23401         check !HAVE_GNU_AS.
23402         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23403         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
23404         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
23405         after sparc/sysv4.h.
23406
23407 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
23408
23409         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
23410
23411 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
23412
23413         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
23414         patterns from predicated pattern.
23415
23416 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
23417
23418         PR target/43103
23419         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
23420         for insn mnemonic suffix.
23421
23422 2010-02-17  Richard Guenther  <rguenther@suse.de>
23423
23424         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
23425         to loop PHI nodes.
23426
23427 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
23428
23429         PR debug/42918
23430         * caller-save.c (save_call_clobbered_regs): If BB ends with
23431         a DEBUG_INSN, move any notes in between last real insn and the last
23432         DEBUG_INSN after the last DEBUG_INSN.
23433
23434 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23435
23436         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
23437         Fix return type.  Fix argument type.  Explain meaning of return value.
23438
23439 2010-02-16  Richard Guenther  <rguenther@suse.de>
23440
23441         PR tree-optimization/41043
23442         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
23443         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
23444         statements ...
23445         (vrp_visit_phi_node): ... but only for loop PHI nodes.
23446
23447 2010-02-16  Ira Rosen  <irar@il.ibm.com>
23448
23449         PR tree-optimization/43074
23450         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
23451         * tree-vect-loop.c (vect_analyze_loop_operations): Add
23452         vectorizable cycles in hybrid SLP check.
23453         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
23454
23455 2010-02-16  Richard Guenther  <rguenther@suse.de>
23456
23457         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
23458         (true_dependence): If memrefs_conflict_p computes must-alias
23459         trust it.  Move TBAA check after offset-based disambiguation.
23460         (canon_true_dependence): Likewise.
23461
23462 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
23463
23464         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
23465         * doc/invoke.texi: Document it.
23466         * var-tracking.c: Include toplev.h and params.h.
23467         (vt_find_locations): Return bool indicating success.  Compute
23468         hash sizes unconditionally.  Check new parameter, report.
23469         (variable_tracking_main_1): Check vt_find_locations results and
23470         retry.  Renamed from...
23471         (variable_tracking_main): ... this.  New wrapper to preserve
23472         flag_var_tracking_assignments.
23473         * Makefile.in (var-tracking.o): Adjust dependencies.
23474
23475 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
23476             Jakub Jelinek  <jakub@redhat.com>
23477
23478         PR target/42854
23479         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
23480         if weak_import attribute is present.
23481         * config/darwin.c (machopic_select_section): Likewise.
23482
23483 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
23484
23485         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
23486         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
23487         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
23488         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
23489
23490         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
23491         types.
23492
23493         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
23494         Fix argument types.
23495
23496         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
23497         Rewrite text to refer to the names.
23498
23499 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
23500
23501         * config/i386/i386-builtin-types.def
23502         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
23503         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
23504         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
23505         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
23506         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
23507         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
23508         IX86_BUILTIN_VPERMIL2PS256.
23509         (MULTI_ARG_4_DF2_DI_I): Defined.
23510         (MULTI_ARG_4_DF2_DI_I1): Defined.
23511         (MULTI_ARG_4_SF2_SI_I): Defined.
23512         (MULTI_ARG_4_SF2_SI_I1): Defined.
23513         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
23514         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
23515         __builtin_ia32_vpermil2ps256.
23516         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23517         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23518         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
23519         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23520         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23521         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
23522         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
23523         CODE_FOR_xop_vpermil2v8sf3.
23524         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
23525         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
23526         * config/i386/xopintrin.h (_mm_permute2_pd): New.
23527         (_mm256_permute2_pd): New.
23528         (_mm_permute2_ps): New.
23529         (_mm256_permute2_ps): New.
23530
23531 2010-02-15  Nick Clifton  <nickc@redhat.com>
23532
23533         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
23534         boolean parameters.  Use emit_jump_insn when emitting a pop
23535         instruction containing a return insn.
23536         (push): Use 'true' rather than '1' as second parameter to F.
23537         (h8300_expand_prologue): Likewise.
23538         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
23539         (h8300_expand_epilogue): Likewise.
23540
23541 2010-02-15  Richard Guenther  <rguenther@suse.de>
23542
23543         PR middle-end/43068
23544         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
23545         if that is zero.
23546
23547 2010-02-15  Nick Clifton  <nickc@redhat.com>
23548
23549         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
23550         delta.
23551
23552 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
23553
23554         * intl.c (fake_ngettext): New function.
23555         * intl.h (fake_ngettext): Declare.
23556         (ngettext): Define macro.
23557         * collect2.c (notice_translated): New function.
23558         (main): Use notice_translated and ngettext.
23559         * collect2.h (notice_translated): Declare.
23560
23561 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
23562
23563         * reorg.c (delete_computation): Comment fixes.
23564         * caller-save.c (setup_save_areas): Idem.
23565         * sel-sched-dump.c (dump_lv_set): Idem.
23566         * rtl.def: Idem.
23567
23568 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23569
23570         * config/s390/s390.c (s390_sched_init): New function.
23571         (TARGET_SCHED_INIT): Target hook defined.
23572
23573 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
23574             Jack Howarth  <howarth@bromo.med.uc.edu>
23575             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
23576
23577         PR target/42982
23578         Partial revert of unintended change in fix for PR41605.
23579         * config/darwin.h: Fix typo.
23580         * config/darwin9.h: Same.
23581
23582 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23583
23584         * c-pch.c (pch_init): Clear v.
23585
23586 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23587
23588         PR middle-end/42930
23589         * graphite-scop-detection.c (graphite_can_represent_scev): Call
23590         graphite_can_represent_init for MULT_EXPR.
23591
23592 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23593
23594         PR middle-end/42914
23595         PR middle-end/42530
23596         * graphite-sese-to-poly.c (remove_phi): New.
23597         (translate_scalar_reduction_to_array): Call remove_phi.
23598
23599 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23600
23601         PR middle-end/42771
23602         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
23603         * graphite-clast-to-gimple.h (gloog): Update declaration.
23604         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
23605         * graphite-poly.h (struct poly_bb): Add missing comments.
23606         (struct scop): Add poly_scop_p field.
23607         (POLY_SCOP_P): New.
23608         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
23609         * graphite.c (graphite_transform_loops): Build the polyhedral
23610         representation for each scop before code generation.
23611         * sese.c (rename_variables_in_operand): Removed.
23612         (rename_variables_in_expr): Return the renamed expression.
23613         (rename_sese_parameters): New.
23614         * sese.h (rename_sese_parameters): Declared.
23615
23616 2010-02-11  Richard Guenther  <rguenther@suse.de>
23617
23618         PR tree-optimization/42998
23619         * tree-ssa-pre.c (create_expression_by_pieces): Treat
23620         POINTER_PLUS_EXPR properly.
23621
23622 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23623             Changpeng Fang  <changpeng.fang@amd.com>
23624
23625         PR middle-end/40886
23626         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
23627         the cost of an IV candidate when the IV is used in a test against zero.
23628
23629         * gcc.dg/tree-ssa/ivopts-3.c: New.
23630
23631 2010-02-11  Richard Guenther  <rguenther@suse.de>
23632
23633         PR lto/41664
23634         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
23635         pointer-vs-decl case by swapping refs.  Handle some cases
23636         of pointer-vs-decl disambiguations more conservatively.
23637         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
23638         to false after expanding.
23639
23640 2010-02-11  Richard Guenther  <rguenther@suse.de>
23641
23642         PR driver/43021
23643         * gcc.c (process_command): Handle LTO file@offset case more
23644         appropriately.
23645
23646 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23647
23648         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
23649         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
23650         of DEBUG_INSNs.
23651         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
23652
23653         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
23654         if MEM's mode size isn't DWARF2_ADDR_SIZE.
23655         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
23656         Optimize eq/ne comparisons when both arguments are known to be
23657         zero-extended.
23658         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
23659         Don't mask operands unnecessarily if they are known to be already
23660         zero-extended.
23661
23662 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
23663
23664         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
23665         instead of loop.
23666
23667 2010-02-10  Richard Guenther  <rguenther@suse.de>
23668
23669         PR tree-optimization/43017
23670         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
23671         for wrapping signed arithmetic.
23672
23673 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
23674
23675         PR debug/43010
23676         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
23677         if no debug info should be emitted for it.
23678
23679 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
23680
23681         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
23682         note when flag_exceptions is set.
23683
23684 2010-02-10  Duncan Sands  <baldrick@free.fr>
23685
23686         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
23687
23688 2010-02-10  Richard Guenther  <rguenther@suse.de>
23689
23690         PR c/43007
23691         * tree.c (get_unwidened): Handle constants.
23692         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
23693
23694 2010-02-10  Martin Jambor  <mjambor@suse.cz>
23695
23696         PR lto/42985
23697         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
23698         check for variable argument counts independently.
23699
23700 2010-02-10  Christian Bruel  <christian.bruel@st.com>
23701
23702         PR target/42841
23703         * config/sh/sh.c (find_barrier): Increase length for non delayed
23704         conditional branches.
23705
23706 2010-02-10  Christian Bruel  <christian.bruel@st.com>
23707
23708         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
23709
23710 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
23711
23712         * builtins.c (set_builtin_user_assembler_name): Also handle
23713         ffs if int is smaller than word.
23714
23715 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
23716
23717         PR middle-end/42973
23718         * ira-conflicts.c (get_dup): Remove.
23719         (process_reg_shuffles): Add new parameter.  Use it as an
23720         additional guard for copy generation.
23721         (add_insn_allocno_copies): Rewrite.
23722
23723 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
23724
23725         * common.opt (fsched2-use-traces): Preserved for backward
23726         compatibility.
23727         * doc/invoke.texi: Remove the documentation about option
23728         -fsched2-use-traces.
23729         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
23730         flag_sched2_use_traces.
23731         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
23732         the backward compatibility flag section.
23733
23734 2010-02-09  Richard Guenther  <rguenther@suse.de>
23735
23736         PR tree-optimization/43008
23737         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
23738         make HEAP variables initialized from global memory if they
23739         are not known builtin functions.
23740         (find_func_aliases): Adjust.
23741
23742 2010-02-09  Richard Guenther  <rguenther@suse.de>
23743
23744         PR tree-optimization/43000
23745         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
23746         arithmetic manually.
23747
23748 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
23749
23750         PR tree-optimization/42931
23751         * tree-loop-linear.c (try_interchange_loops): Don't call
23752         double_int_mul if estimated_loop_iterations failed.
23753
23754 2010-02-08  Martin Jambor  <mjambor@suse.cz>
23755
23756         PR middle-end/42898
23757         * tree-sra.c (build_accesses_from_assign): Do not mark in
23758         should_scalarize_away_bitmap if stmt has volatile ops.
23759         (sra_modify_assign): Do not process assigns piecemeal if if stmt
23760         has volatile ops.
23761
23762 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
23763
23764         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
23765
23766 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
23767
23768         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
23769         before the pattern.
23770
23771 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
23772
23773         PR middle-end/42946
23774         * df-core.c (df_finish_pass): Change type of saved_flags to int.
23775
23776 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
23777
23778         PR middle-end/42988
23779         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
23780         to unknown_dependence.
23781         (graphite_legal_transform_dr): Handle the unknown_dependence.
23782         (graphite_carried_dependence_level_k): Same.
23783
23784 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
23785
23786         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
23787
23788 2010-02-07  Richard Guenther  <rguenther@suse.de>
23789
23790         PR middle-end/42991
23791         * expr.c (get_inner_reference): Always initialize *pbitsize.
23792
23793 2010-02-07  Richard Guenther  <rguenther@suse.de>
23794
23795         PR middle-end/42956
23796         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
23797         new ARRAY_REFs on variable size element or minimal index arrays.
23798         Complete.
23799         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
23800         gimple_fold_indirect_ref.
23801
23802 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
23803
23804         PR target/42957
23805         * arm.c (arm_override_options): Just return if the user has specified
23806         an invalid fpu name.
23807
23808 2010-02-03  Jason Merrill  <jason@redhat.com>
23809
23810         PR c++/42870
23811         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
23812         i386_pe_maybe_record_exported_symbol.
23813
23814 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
23815
23816         PR target/42924
23817         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
23818         (pa_delegitimize_address): New function.
23819
23820 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
23821
23822         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
23823         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
23824
23825 2010-02-05  Richard Guenther  <rguenther@suse.de>
23826
23827         PR lto/42762
23828         * lto-streamer-in.c (get_resolution): Deal with references
23829         to undefined functions.
23830
23831 2010-02-05  Richard Guenther  <rguenther@suse.de>
23832
23833         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
23834         (fold_const_aggregate_ref): Likewise.
23835         (ccp_fold_stmt): Substitute loads.
23836         (maybe_fold_reference): Verify types before substituting.
23837         Unshare properly.
23838         (fold_gimple_assign): Unshare properly.
23839         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
23840
23841 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
23842
23843         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
23844         for rs6000_gen_cell_microcode.
23845
23846 2010-02-04  Richard Guenther  <rguenther@suse.de>
23847
23848         PR rtl-optimization/42952
23849         * dse.c (const_or_frame_p): Remove MEM handling.
23850
23851 2010-02-04  Nick Clifton  <nickc@redhat.com>
23852
23853         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23854         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23855         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
23856         (mn10300_asm_output_mi_thunk): New function.
23857         (mn10300_can_output_mu_thunk): New function.
23858         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
23859         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
23860         (FUNCTION_ARG): Delete incorrect comment.
23861
23862 2010-02-03  Jason Merrill  <jason@redhat.com>
23863
23864         PR c++/40138
23865         * fold-const.c (operand_equal_p): Handle erroneous types.
23866
23867 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23868
23869         * config/h8300/h8300.md (can_delay): Fix attibute condition.
23870
23871 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
23872
23873         PR rtl-optimization/42941
23874         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
23875         of xmalloc.
23876
23877 2010-02-03  Jason Merrill  <jason@redhat.com>
23878
23879         PR c++/35652
23880         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
23881
23882 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
23883
23884         PR debug/42896
23885         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
23886         (cselib_reset_table): Renamed from...
23887         (cselib_reset_table_with_next_value): ... this.
23888         (cselib_get_next_uid): Renamed from...
23889         (cselib_get_next_unknown_value): ... this.
23890         * cselib.c (next_uid): Renamed from...
23891         (next_unknown_value): ... this.
23892         (cselib_clear_table): Adjust.
23893         (cselib_reset_table): Adjust.  Renamed from...
23894         (cselib_reset_table_with_next_value): ... this.
23895         (cselib_get_next_uid): Adjust.  Renamed from...
23896         (cselib_get_next_unknown_value): ... this.
23897         (get_value_hash): Use hash.
23898         (cselib_hash_rtx): Likewise.
23899         (new_cselib_val): Adjust.  Set and dump uid.
23900         (cselib_lookup_mem): Pass next_uid as hash.
23901         (cselib_subst_to_values): Likewise.
23902         (cselib_log_lookup): Dump uid.
23903         (cselib_lookup): Pass next_uid as hash.  Adjust.
23904         (cselib_process_insn): Adjust.
23905         (cselib_init): Initialize next_uid.
23906         (cselib_finish): Adjust.
23907         (dump_cselib_table): Likewise.
23908         * dse.c (canon_address): Dump value uid.
23909         * print-rtl.c (print_rtx): Print value uid.
23910         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
23911         (dvuid): New type.
23912         (dv_uid): New function, sort of renamed from...
23913         (dv_htab_hash): ... this, reimplemented in terms of it and...
23914         (dv_uid2hash): ... this.  New.
23915         (variable_htab_eq): Drop excess assertions.
23916         (tie_break_pointers): Removed.
23917         (canon_value_cmp): Compare uids.
23918         (variable_post_merge_New_vals): Print uids.
23919         (vt_add_function_parameters): Adjust.
23920         (vt_initialize): Reset table.  Adjust.
23921
23922 2010-02-03  Richard Guenther  <rguenther@suse.de>
23923
23924         PR tree-optimization/42944
23925         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
23926         (call_may_clobber_ref_p_1): Likewise.  Properly handle
23927         malloc and calloc clobbering errno.
23928
23929 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
23930
23931         * doc/invoke.texi: Fix name of sched1 dump.
23932
23933         * opts.c (decode_options): Set flag_tree_switch_conversion
23934         only conditionally on optimize >= 2.
23935
23936         * gcse.c: Assorted comment fixes in pass description.
23937
23938 2010-02-03  Anthony Green  <green@moxielogic.com>
23939
23940         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
23941         nop padding in order to maintain alignment of storage location of
23942         target function address.
23943         (moxie_trampoline_init): Store target function address at newly
23944         aligned location.
23945         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
23946         to 32.
23947         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
23948
23949 2010-02-03  Richard Guenther  <rguenther@suse.de>
23950
23951         PR middle-end/42927
23952         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
23953
23954 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23955
23956         * config.gcc: Reenable check for obsolete targets.
23957         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
23958         mips-sgi-irix6.[0-4]*.
23959
23960 2010-02-02  Nick Clifton  <nickc@redhat.com>
23961
23962         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
23963         constant size of 4 as being the same as 0.
23964         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
23965         can take values in the range 0..4.
23966
23967 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
23968
23969         PR java/41991
23970         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
23971         as _darwin10_Unwind_FindEnclosingFunction().
23972         * libgcc-libsystem.ver: New.
23973
23974 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
23975
23976         PR target/41399
23977         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
23978         implicitly set registers.
23979
23980 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
23981
23982         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
23983         (arm_override_options): Allow automatic selection of the thread
23984         pointer register if thumb2.
23985         (legitimize_pic_address): Improve code sequences for Thumb2.
23986         (arm_call_tls_get_addr): Likewise.
23987         (legitimize_tls_address): Likewise.
23988         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
23989         (pic_load_addr_32bit): ... this.  New named pattern.
23990         * thumb2.md (pic_load_addr_thumb2): Delete.
23991         (pic_load_dot_plus_four): Delete.
23992         (tls_load_dot_plus_four): New named pattern.
23993
23994 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23995
23996         PR libgomp/29986
23997         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
23998         Document fix for TLS bug.
23999
24000 2010-01-31  Richard Guenther  <rguenther@suse.de>
24001
24002         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
24003         conservatively correct.
24004
24005 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24006
24007         PR target/42850
24008         Revert:
24009         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24010
24011         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24012
24013 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24014
24015         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
24016
24017 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
24018
24019         * config.gcc: Adjust order of makefile fragments for mingw targets.
24020
24021 2010-01-31  Richard Guenther  <rguenther@suse.de>
24022
24023         PR middle-end/42898
24024         * gimplify.c (gimplify_init_constructor): For volatile LHS
24025         initialize a temporary.
24026
24027 2010-01-31  Matthias Klose  <doko@ubuntu.com>
24028
24029         * configure.ac: Fix __stack_chk_fail check for cross builds configured
24030         --with-headers
24031         * configure: Regenerate.
24032
24033 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
24034
24035         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
24036         the same alias set and their sizes different constantness.
24037         (aliasing_component_refs_p): Revert 2009-10-24 change.
24038
24039 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24040
24041         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
24042         unused.
24043
24044 2010-01-29  Richard Guenther  <rguenther@suse.de>
24045
24046         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
24047         Assert we successfully updated the call.
24048
24049 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
24050
24051         PR rtl-optimization/42889
24052         * df.h (df_set_bb_dirty_nonlr): New prototype.
24053         * df-core.c (df_set_bb_dirty_nonlr): New function.
24054         * df-scan.c (df_insn_rescan): Call it instead of
24055         df_set_bb_dirty for DEBUG_INSNs.
24056
24057 2010-01-29  Richard Guenther  <rguenther@suse.de>
24058
24059         PR middle-end/37448
24060         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
24061         quadratic behavior in most cases.
24062
24063 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
24064
24065         PR target/42891
24066         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
24067         in the call to gen_x86_movsicc_0_m1.
24068
24069 2010-01-28  Richard Guenther  <rguenther@suse.de>
24070
24071         PR tree-optimization/42871
24072         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
24073
24074 2010-01-28  Richard Guenther  <rguenther@suse.de>
24075
24076         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
24077         into call arguments.
24078
24079 2010-01-28  Richard Guenther  <rguenther@suse.de>
24080
24081         PR middle-end/42883
24082         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
24083         the forwarder if the destination is an EH landing pad.
24084
24085 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
24086
24087         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
24088         block list passed to gimple_duplicate_sese_tail.
24089         (parallelize_loops): Avoid parallelization when the function
24090         has_nonlocal_label.
24091         Avoid parallelization when the preheader is IRREDUCIBLE.
24092         Try to optimize when estimated_loop_iterations_int is unresolved.
24093         Add the loop's location to the dump file.
24094         * tree-cfg.c (add_phi_args_after_redirect): Remove.
24095         (gimple_duplicate_sese_tail): Remove the check for the latch.
24096         Redirect nexits to the exit block.
24097         Remove handling of the incoming edges to the latch.
24098         Redirect the backedge from the copied latch to the exit bb.
24099
24100 2010-01-28  Michael Matz  <matz@suse.de>
24101
24102         PR target/42881
24103         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
24104         Wrap force_reg into a sequence, emit it before user.
24105
24106 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
24107
24108         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
24109         (arm_rev): New.
24110         (arm_legacy_rev): Likewise.
24111         (thumb_legacy_rev): Likewise.
24112
24113 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24114
24115         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
24116         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
24117         on MEM's address failed, try avoid_constant_pool_reference and
24118         recurse if it returned something different.
24119         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
24120         address, try avoid_constant_pool_reference and recurse if it
24121         returned something different.
24122         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
24123         address and avoid_constant_pool_reference returned something
24124         different, don't set have_address.
24125
24126 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
24127
24128         PR debug/42861
24129         * var-tracking.c (val_store): Add modified argument, obey it.
24130         Adjust callers.
24131         (count_uses): Move down logging of main.
24132         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
24133         don't need resolution.
24134         (emit_notes_in_bb): Likewise.
24135
24136 2010-01-27  Richard Guenther  <rguenther@suse.de>
24137
24138         PR middle-end/42878
24139         * tree-inline.c (remap_decl): Delay remapping of SSA name
24140         default definitions until we need them.
24141
24142 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
24143
24144         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24145         (rs6000_delegitimize_address): New function.
24146
24147         * config/s390/s390.c (s390_delegitimize_address): Call
24148         delegitimize_mem_from_attrs.
24149
24150         PR middle-end/42874
24151         * tree-inline.c (cannot_copy_type_1): Removed.
24152         (copy_forbidden): Don't forbid copying of functions containing
24153         records/unions with variable length fields.
24154
24155 2010-01-27  Christian Bruel  <christian.bruel@st.com>
24156
24157         Revert:
24158         PR target/42841
24159         * config/sh/sh.c (find_barrier): Increase length for non delayed
24160         conditional branches.
24161
24162 2010-01-27  Matthias Klose  <doko@ubuntu.com>
24163
24164         * configure.ac (gnu-unique-object): Fix ldd version check.
24165         * configure: Regenerate.
24166
24167 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24168
24169         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
24170         HAVE_GNU_AS value.
24171         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
24172         Test for HAVE_GNU_AS value.
24173
24174 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24175
24176         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
24177         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
24178         INT64_TYPE): Define.
24179         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
24180         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24181         INT_LEAST64_TYPE): Define.
24182         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
24183         UINT_LEAST64_TYPE): Define.
24184         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
24185         INT_FAST64_TYPE): Define.
24186         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24187         UINT_FAST64_TYPE): Define.
24188         (INTMAX_TYPE, UINTMAX_TYPE): Define.
24189         (INTPTR_TYPE, UINTPTR_TYPE): Define.
24190         (SIG_ATOMIC_TYPE): Define.
24191
24192 2010-01-26  Richard Guenther  <rguenther@suse.de>
24193
24194         * df-scan.c (df_scan_set_bb_info): Remove assert.
24195         (df_insn_rescan_debug_internal): Merge asserts.
24196         (df_install_ref): Likewise.
24197         (df_mark_reg): Use bitmap_set_range.
24198         (df_hard_reg_used_p): Remove assert.
24199         (df_hard_reg_used_count): Likewise.
24200
24201 2010-01-26  Richard Guenther  <rguenther@suse.de>
24202
24203         PR rtl-optimization/42685
24204         * web.c (web_main): Ignore DEBUG_INSNs.
24205
24206 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
24207
24208         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
24209
24210         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
24211         Fix types of fndecl and arglist parameters.
24212
24213 2010-01-26  Richard Guenther  <rguenther@suse.de>
24214
24215         PR middle-end/42806
24216         * tree-eh.c (unsplit_eh): Skip debug insns.
24217
24218 2010-01-26  Richard Guenther  <rguenther@suse.de>
24219
24220         PR tree-optimization/42250
24221         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
24222
24223 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
24224
24225         PR fortran/42866
24226         * omp-low.c (expand_omp_sections): Only use single_pred if
24227         l2_bb is single_pred_p.
24228
24229 2010-01-25  Christian Bruel  <christian.bruel@st.com>
24230
24231         PR target/42841
24232         * config/sh/sh.c (find_barrier): Increase length for non delayed
24233         conditional branches.
24234         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
24235
24236 2010-01-24  David S. Miller  <davem@davemloft.net>
24237
24238         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
24239         define if not using GAS.
24240         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24241         Likewise.  Delete SECTION_MERGE code, which is only applicable
24242         when using GAS.
24243
24244 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
24245
24246         PR c++/42748
24247         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
24248         mangling of va_list in system headers.
24249
24250 2010-01-23  Toon Moene  <toon@moene.org>
24251
24252         * tree-predcom.c (combine_chains): Return NULL, not false.
24253
24254 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
24255
24256         * tree-loop-distribution.c (distribute_loop): Fix declaration and
24257         initialization of variable res to agree with return type.
24258
24259 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
24260
24261         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
24262         * tree-sra.c: Add include of expr.h.
24263
24264 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
24265
24266         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
24267         insert the debug stmt on the single non-EH edge from the stmt.
24268
24269 2010-01-22  Richard Henderson  <rth@redhat.com>
24270
24271         PR tree-opt/42833
24272         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
24273         the RHS until after generate_subtree_copies has insertted its
24274         code before the current statement.
24275
24276 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
24277
24278         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
24279
24280         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
24281
24282 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24283
24284         PR tree-optimization/42585
24285         * tree-sra.c (struct access): New field grp_total_scalarization.
24286         (dump_access): Dump the new field.
24287         (should_scalarize_away_bitmap): New variable.
24288         (cannot_scalarize_away_bitmap): Likewise.
24289         (sra_initialize): Allocate new bitmaps.
24290         (sra_deinitialize): Free new bitmaps.
24291         (create_access_1): New function.
24292         (create_access): Parts moved to create_access_1.
24293         (type_consists_of_records_p): New function.
24294         (completely_scalarize_record): Likewise.
24295         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
24296         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
24297         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
24298         access.
24299         (analyze_all_variable_accesses): Completely scalarize small eligible
24300         records.
24301
24302 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24303
24304         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
24305
24306 2010-01-21  Andrew Haley  <aph@redhat.com>
24307
24308         * gcc.c (process_command): Move lang_specific_driver before
24309         setting cc_libexec_prefix.
24310
24311 2010-01-21  Richard Guenther  <rguenther@suse.de>
24312
24313         PR middle-end/19988
24314         * fold-const.c (negate_expr_p): Pretend only negative
24315         real constants are easily negatable.
24316
24317 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
24318             Jason Merrill  <jason@redhat.com>
24319
24320         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
24321         (TYPE_TRANSPARENT_AGGR): this, for union and record.
24322         * calls.c (initialize argument_information): Handle it.
24323         * c-common.c (handle_transparent_union_attribute): Use new name.
24324         * c-decl.c (finish_struct): Ditto.
24325         * c-typeck.c (type_lists_compatible_p): Ditto.
24326         (convert_for_assignment): Use new name and also handle record.
24327         * function.c (aggregate_value_p): Handle it.
24328         (pass_by_reference): Ditto.
24329         (assign_parm_data_types): Ditto.
24330         * print-tree.c (print_node): Ditto.
24331         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
24332         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
24333         * tree.c (first_field): New fn.
24334
24335 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
24336
24337         PR target/42818
24338         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
24339         even when linking statically, for now.
24340
24341 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24342
24343         PR debug/42715
24344         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
24345         without a cselib val.
24346         (count_uses): Accept MO_VAL_SET with no val on stores.
24347         (add_stores): Likewise.
24348
24349 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24350
24351         * var-tracking.c (check_value_val): Add a compile time assertion.
24352         (dv_is_decl_p): Simplify.
24353         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
24354         gcc_assert if ENABLE_CHECKING.
24355
24356 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24357
24358         PR debug/42782
24359         * var-tracking.c: Include tree-flow.h.
24360         (mem_dies_at_call): New.
24361         (dataflow_set_preserve_mem_locs): Use it.
24362         (dataflow_set_remove_mem_locs): Likewise.
24363         (dump_var): Renamed from dump_variable.  Adjust all callers.
24364         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
24365         * Makefile.in (var-tracking.o): Adjust deps.
24366
24367 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
24368
24369         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
24370
24371 2010-01-20  Richard Guenther  <rguenther@suse.de>
24372
24373         PR tree-optimization/42717
24374         * tree-ssa-dce.c (get_live_post_dom): Remove.
24375         (forward_edge_to_pdom): Take an arbitrary edge to copy
24376         degenerate PHI args from.
24377         (remove_dead_stmt): Use the first post-dominator even if it
24378         does not contain live statements as redirection destination.
24379
24380 2010-01-20  Richard Guenther  <rguenther@suse.de>
24381
24382         * tree-inline.c (estimate_num_insns): Handle EH builtins.
24383
24384 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24385
24386         * sel-sched.c (create_speculation_check): Remove set but not used
24387         variable twin.
24388         (try_transformation_cache): Remove set but not used variable ds.
24389         (calculate_privileged_insns): Remove set but not used variables
24390         cur_insn and min_spec_insn.
24391         (find_best_expr): Remove set but not used variable avail_n.
24392         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
24393         variable e.
24394         * cgraphunit.c (assemble_thunk): Remove set but not used variable
24395         false_label.
24396         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
24397         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
24398         new_scop_exit_edge.
24399
24400 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
24401
24402         PR bootstrap/42786
24403         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
24404         cpu types.  Add support for *-sse3 cpu types.
24405         (x86_64-*-*): Ditto.
24406
24407 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24408
24409         PR middle-end/42803
24410         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
24411         argument, call initializer_constant_valid_p_1 instead of
24412         initializer_constant_valid_p, pass CACHE to it, return NULL
24413         immediately if first call returns NULL.
24414         (initializer_constant_valid_p_1): New function.
24415         (initializer_constant_valid_p): Use it.
24416
24417 2010-01-20  Thomas Quinot  <quinot@adacore.com>
24418
24419         * tree.def (PLACEHOLDER_EXPR): Fix comment.
24420
24421 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24422
24423         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
24424         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
24425         (loc_list_from_tree): Don't handle unsigned division.  Handle
24426         signed modulo using DW_OP_{over,over,div,mul,minus}.
24427         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
24428         modulo instead of signed.
24429
24430 2010-01-20  DJ Delorie  <dj@redhat.com>
24431
24432         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
24433         (Fpa): Pass it
24434         (h8300_emit_stack_adjustment): Propogate it.
24435         (push): Pass it.
24436         (h8300_expand_prologue): Likewise.
24437         (h8300_expand_epilogue): Likewise.
24438
24439 2010-01-19  Michael Matz  <matz@suse.de>
24440
24441         PR tree-optimization/41783
24442         * tree-data-ref.c (toplevel): Include flags.h.
24443         (dump_data_dependence_relation):  Also dump the inputs if the
24444         result will be unknown.
24445         (split_constant_offset_1): Look through some conversions.
24446         * tree-predcom.c (determine_roots_comp): Restart a new chain if
24447         the offset from last element is too large.
24448         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
24449         (reassociate_to_the_same_stmt): Handle vector registers.
24450         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
24451         (e.g. conversions).
24452         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
24453         wide_prolog_niters argument, emit widening instructions.
24454         (vect_do_peeling_for_alignment): Adjust caller, use widened
24455         variant of the iteration cound.
24456         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
24457
24458 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24459
24460         PR target/38697
24461         * config/arm/neon-testgen.m (emit_automatics): New parameter
24462         features. Adjust for Fixed_return_reg feature.
24463         (test_intrinsic): Call emit_automatics with new feature.
24464         * config/arm/neon.ml: Update copyright years.
24465         (features): New Fixed_return_reg feature.
24466         (ops): Update feature for Vget_low.
24467
24468 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
24469
24470         PR tree-optimization/42719
24471         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
24472         stmt uses.
24473
24474         PR debug/42728
24475         * fwprop.c (all_uses_available_at): Return false if def_set dest
24476         is a REG that is used in def_insn.
24477
24478 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
24479
24480         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
24481
24482         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
24483         Add argument names.
24484
24485         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
24486
24487         * target.h (struct gcc_target) <secondary_reload>: Change type
24488         of last argument to secondary_reload_info *.
24489
24490 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
24491
24492         PR target/42774
24493         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
24494         memory references with unaligned offsets.  Remove CQImode handling.
24495         (unaligned_memory_operand): Return 1 for memory references with
24496         unaligned offsets.  Remove CQImode handling.
24497
24498 2010-01-18  Richard Guenther  <rguenther@suse.de>
24499
24500         PR middle-end/39954
24501         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
24502         builtin calls.
24503
24504 2010-01-18  Richard Guenther  <rguenther@suse.de>
24505
24506         PR tree-optimization/42781
24507         * tree-ssa-structalias.c (find_what_var_points_to): Skip
24508         restrict processing only if the original variable was artificial.
24509
24510 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
24511
24512         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
24513         find number of popped argument bytes.
24514
24515         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
24516         Fix the text that describes the return value for invalid insns.
24517
24518         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
24519
24520         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
24521         Clarify what 'cost of the -dependence' is.  Fix quoting.
24522
24523         * toplev.c (default_get_pch_validity): Rename argument to "sz".
24524         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
24525
24526 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
24527
24528         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24529         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
24530
24531 2010-01-17  Richard Guenther  <rguenther@suse.de>
24532
24533         PR middle-end/42248
24534         * function.c (split_complex_args): Take a VEC to modify.
24535         (assign_parms_augmented_arg_list): Build a VEC instead of
24536         a chain of PARM_DECLs.
24537         (assign_parms_unsplit_complex): Take a VEC of arguments.
24538         Do not fixup unmodified parms.
24539         (assign_parms): Deal with the VEC.
24540         (gimplify_parameters): Likewise.
24541
24542 2010-01-17  Richard Guenther  <rguenther@suse.de>
24543
24544         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
24545         node existence check.
24546         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
24547         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
24548         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
24549         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
24550         (gimple_execute_on_growing_pred): Likewise.
24551
24552 2010-01-17  Richard Guenther  <rguenther@suse.de>
24553
24554         PR tree-optimization/42773
24555         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
24556         (compute_antic_aux): Likewise.
24557         (compute_partial_antic_aux): Likewise.
24558
24559 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
24560
24561         PR debug/42767
24562         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
24563         and US_TRUNCATE.
24564
24565 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
24566
24567         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
24568         appearance.
24569
24570         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
24571         Fix markup for strict argument.
24572
24573         (TARGET_SCHED_REORDER2): Fix argument types.
24574
24575         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
24576         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
24577
24578         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
24579         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
24580
24581         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
24582         Add argument name.
24583
24584         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
24585         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
24586         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
24587         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
24588         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
24589
24590         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
24591
24592         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
24593
24594         (TARGET_ASM_RELOC_RW_MASK): Add return type.
24595         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
24596
24597         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
24598
24599         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
24600         Use prototype.
24601
24602         (TARGET_ASM_NAMED_SECTION): Fix argument list.
24603
24604         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
24605         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
24606
24607         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
24608
24609         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
24610
24611         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
24612         referring to it.  Fix language.
24613
24614         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
24615
24616         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
24617
24618         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
24619
24620         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
24621
24622         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
24623         '@var{stream}.  Remove stray 'and'.
24624
24625         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
24626
24627         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
24628
24629         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
24630
24631         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
24632         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
24633
24634         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
24635         Fix description of return value.
24636         Rename argument "sz" to "len."
24637
24638         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
24639         Clarify meaning of 'true' return value.
24640
24641         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
24642
24643         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
24644         rep_mode versus mode_rep.
24645
24646         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
24647
24648         (TARGET_BUILTIN_DECL): Fix name.
24649
24650         (TARGET_COMMUTATIVE_P): Fix type of first argument.
24651
24652         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
24653
24654         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
24655
24656         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
24657
24658         (TARGET_RELAXED_ORDERING): Use @deftypevr.
24659
24660         (TARGET_GET_DRAP_RTX): Note that this is a hook.
24661         Clarify language.
24662
24663         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
24664         Rename argument tm_fn to md_fn.
24665
24666         (TARGET_OPTION_PRINT): Fix argument list.
24667
24668 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
24669
24670         PR target/42664
24671         * config/i386/i386.c (ix86_fixup_binary_operands):
24672         Revert FMA4 fixup of operands.
24673
24674 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24675
24676         PR gcc/42525
24677         * Makefile.in (write_entries_to_file, install-plugin):
24678         Use \012 instead of \n with tr.
24679
24680 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
24681
24682         * configure.ac (HAVE_AS_REF): New C macro.
24683         * configure: Regenerate.
24684         * config.in: Likewise.
24685         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
24686         if HAVE_AS_REF.
24687         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
24688         if HAVE_AS_REF.
24689
24690 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
24691
24692         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
24693
24694         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
24695
24696         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
24697
24698         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
24699
24700         (TARGET_IN_SMALL_DATA_P): Fix argument type.
24701
24702         (TARGET_BINDS_LOCAL_P): Fix argument type.
24703
24704         (TARGET_ASM_FILE_END): Use prototype.
24705
24706         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
24707
24708         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
24709
24710         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
24711
24712         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
24713
24714         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
24715         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
24716
24717         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
24718         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
24719
24720         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
24721         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
24722         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
24723         (TARGET_ADDR_SPACE_CONVERT): Likewise.
24724
24725         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
24726
24727         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
24728
24729         (TARGET_INIT_BUILTINS): Use prototype.
24730
24731         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
24732         Put 'const char *' in braces.  Fix parameter types.
24733         (TARGET_INVALID_CONVERSION): Fix parameter types.
24734         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
24735         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
24736
24737         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
24738         Fix argument type.
24739
24740         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
24741
24742         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
24743
24744 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
24745
24746         * doc/tm.texi (TARGET_HELP): Fix return type.
24747
24748         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
24749         in braces.  Fix argument types.
24750
24751         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
24752
24753         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
24754
24755         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
24756
24757         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
24758         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
24759
24760         (TARGET_MANGLE_TYPE): Fix argument types.
24761
24762         (TARGET_IRA_COVER_CLASSES): Use prototype.
24763
24764         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
24765
24766         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
24767
24768         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
24769
24770         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
24771
24772         (TARGET_CALLEE_COPIES): Fix argument types.
24773
24774         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
24775
24776         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
24777
24778         (TARGET_FUNCTION_VALUE): Fix argument types.
24779
24780         (TARGET_RETURN_IN_MSB): Fix argument type.
24781
24782         (TARGET_RETURN_IN_MEMORY): Fix argument types.
24783
24784         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
24785
24786         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
24787
24788         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
24789         agree with return type.
24790
24791         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
24792
24793 2010-01-15  Jing Yu  <jingyu@google.com>
24794
24795         PR rtl-optimization/42691
24796         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
24797         a pseudo to a constant and are merged, and adjust comments.
24798
24799 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
24800
24801         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
24802
24803 2010-01-15  Richard Guenther  <rguenther@suse.de>
24804
24805         PR middle-end/42739
24806         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
24807         labels of computed or non-local gotos to the destination.
24808         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
24809         landing pad label is the first label.
24810
24811 2010-01-15  Richard Guenther  <rguenther@suse.de>
24812
24813         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
24814
24815 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24816
24817         PR target/42747
24818         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
24819         to allow generation of the xssqrtdp instruction on power7.
24820         (sqrtdf2_fpr): Ditto.
24821
24822 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
24823
24824         PR middle-end/42674
24825         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
24826         functions with noreturn attribute.
24827
24828         PR c++/42608
24829         * varasm.c (declare_weak): Add weak attribute to decl if it
24830         doesn't have one already.
24831         (assemble_external): Only add decls to weak_decls if they also
24832         have weak attribute.
24833
24834 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
24835
24836         * var-tracking.c (var_reg_delete): Don't delete the association
24837         between REGs and values or one-part variables if the register
24838         isn't clobbered.
24839
24840 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
24841
24842         PR debug/42657
24843         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
24844         because its first operand is a non-localized variable.
24845
24846 2010-01-14  Martin Jambor  <mjambor@suse.cz>
24847
24848         PR tree-optimization/42706
24849         * tree-sra.c (encountered_recursive_call): New variable.
24850         (encountered_unchangable_recursive_call): Likewise.
24851         (sra_initialize): Initialize both new variables.
24852         (callsite_has_enough_arguments_p): New function.
24853         (scan_function): Call decl and flags check only for IPA-SRA, check
24854         whether there is a recursive call and whether it has enough arguments.
24855         (all_callers_have_enough_arguments_p): New function.
24856         (convert_callers): Look for recursive calls only when
24857         encountered_recursive_call is set.
24858         (ipa_early_sra): Bail out either if
24859         !all_callers_have_enough_arguments_p or
24860         encountered_unchangable_recursive_call.
24861
24862 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24863
24864         * sel-sched.c: Add 2010 to copyright years.
24865         * sel-sched-ir.c: Likewise.
24866         * sel-sched-ir.h: Likewise.
24867
24868 2010-01-14  Martin Jambor  <mjambor@suse.cz>
24869
24870         PR tree-optimization/42714
24871         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
24872         constructors specially.
24873
24874 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24875
24876         * config/i386/drivers-i386.c (detect_caches_intel):
24877         Add l2sizekb parameter and fill in.
24878         (host_detect_local_cpu): Add l2sizekb, fill in.
24879         Add Atom small cache heuristic.
24880
24881 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24882
24883         * config/i386/drivers-i386.c (detect_caches_cpuid4):
24884         Add level3 parameter and fill in.
24885         (detect_caches_intel): Handle level3 cache.
24886
24887 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24888
24889         * config/i386/drivers-i386.c (host_detect_local_cpu):
24890         Fix core duo detection.
24891
24892 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24893
24894         * config/i386/drivers-i386.c (host_detect_local_cpu):
24895         Fix Atom detection.
24896
24897 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24898
24899         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
24900         (rs6000_variable_issue_1): this.  Use...
24901         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
24902
24903 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24904
24905         * sel-sched-ir.c (sel_restore_other_notes): Rename to
24906         sel_restore_notes.  Update all callers.  Call reemit_notes
24907         for all insns.
24908
24909 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24910
24911         PR rtl-optimization/42246
24912         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
24913         loops.
24914
24915 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24916
24917         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
24918         all successors is the same as number of successors in current region.
24919
24920 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24921
24922         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
24923         to rename is not separable.  Otherwise check that its LHS is not NULL.
24924
24925 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24926
24927         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
24928
24929 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24930
24931         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
24932         available registers when failed to discover LHS register class.
24933         Fix indentation.  Update comment.
24934
24935 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24936             Alexander Monakov  <amonakov@ispras.ru>
24937
24938         PR rtl-optimization/42389
24939         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
24940         to can_issue_more.
24941         (advance_state_on_fence): Likewise.
24942         (sel_target_adjust_priority): Print debug output only when
24943         sched_verbose >= 4, not 2.
24944         (get_expr_cost): Do not issue all unique insns on the next cycle.
24945         (fill_insns): Initialize can_issue_more from the value saved
24946         with the fence.
24947         * sel-sched-ir.c (flist_add): New parameter issue_more.
24948         Init FENCE_ISSUE_MORE with it.
24949         (merge_fences): Likewise.
24950         (init_fences): Update call to flist_add.
24951         (add_to_fences, add_clean_fence_to_fences)
24952         (add_dirty_fence_to_fences): Likewise.
24953         (move_fence_to_fences): Update call to merge_fences.
24954         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
24955         sched groups.
24956         * sel-sched-ir.h (struct _fence): New field issue_more.
24957         (FENCE_ISSUE_MORE): New accessor macro.
24958
24959 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24960
24961         PR rtl-optimization/42388
24962         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
24963         that have no predecessors nor successors.  Do not call move_bb_info
24964         for empty blocks outside of current region.
24965
24966 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24967
24968         PR rtl-optimization/42294
24969         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
24970         * sel-sched.c (move_exprs_to_boundary): Transitively add all
24971         originators' originators.
24972
24973 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24974
24975         PR rtl-optimization/39453
24976         PR rtl-optimization/42246
24977         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
24978         for pipelining_p.
24979         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
24980
24981 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24982             Alexander Monakov  <amonakov@ispras.ru>
24983
24984         PR middle-end/42245
24985         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
24986         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
24987         argument.  Update all callers.
24988         (tidy_control_flow): ... and here.  Recompute topological order
24989         of basic blocks in region if necessary.
24990         (sel_redirect_edge_and_branch): Change return type.  Return true
24991         if topological order might have been invalidated.
24992         (purge_empty_blocks): Export and move from...
24993         * sel-sched.c (purge_empty_blocks): ... here.
24994         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
24995         (maybe_tidy_empty_bb): Delete prototype.
24996         (purge_empty_blocks): Declare.
24997
24998 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24999
25000         PR rtl-optimization/42249
25001         * sel-sched.c (try_replace_dest_reg): When chosen register
25002         and original register is the same, do not bail out early, but
25003         still check all original insns for validity of replacing destination
25004         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
25005         in this case.
25006
25007 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25008
25009         PR c/42721
25010         Port from no-undefined-overflow branch:
25011         2009-03-09  Richard Guenther  <rguenther@suse.de>
25012
25013         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
25014
25015 2010-01-14  Richard Guenther  <rguenther@suse.de>
25016
25017         PR lto/42665
25018         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
25019
25020 2010-01-14  Ira Rosen  <irar@il.ibm.com>
25021
25022         PR tree-optimization/42709
25023         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
25024         as scalar type in creation of constant vector operand.
25025
25026 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25027
25028         PR testsuite/42414
25029         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
25030         (check-parallel-%): Match `testsuite' directory component only
25031         at the end.
25032
25033 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
25034
25035         PR translation/39521
25036         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
25037         strings with _().
25038
25039 2010-01-13  Richard Guenther  <rguenther@suse.de>
25040
25041         PR tree-optimization/42730
25042         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
25043         offset zero.
25044
25045 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
25046
25047         PR target/pr42542
25048         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
25049         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
25050         them signed.
25051
25052 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
25053
25054         * config/bfin/libgcc-bfin.ver: Regenerate based on current
25055         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
25056         ___umulsi3_highpart.
25057
25058         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
25059         rather than schedule_insns if the pass is enabled.
25060
25061 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25062
25063         PR tree-optimization/42704
25064         * tree-sra.c (sra_modify_assign): Do not delete assignments to
25065         SSA_NAMEs.
25066
25067 2010-01-13  Martin Jambor  <mjambor@suse.cz>
25068
25069         PR tree-optimization/42703
25070         * tree-sra.c (analyze_access_subtree): Check that we can build a
25071         reference to the original data within the aggregate.
25072
25073 2010-01-13  Richard Guenther  <rguenther@suse.de>
25074
25075         PR tree-optimization/42705
25076         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
25077
25078 2010-01-13  Richard Guenther  <rguenther@suse.de>
25079
25080         PR middle-end/42716
25081         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
25082
25083 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
25084
25085         PR debug/41371
25086         * var-tracking.c (values_to_unmark): New variable.
25087         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
25088         values_to_unmark vector.  Moved body to...
25089         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
25090         instead queue it into values_to_unmark vector.
25091         (vt_find_locations): Free values_to_unmark vector.
25092
25093 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
25094
25095         * config/s390/s390.c (override_options): Set
25096         default of max-pending-list-length to 256
25097
25098 2010-01-13  Richard Guenther  <rguenther@suse.de>
25099
25100         PR lto/42678
25101         * tree-pass.h (PROP_gimple_lcx): New.
25102         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
25103         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
25104         before the final cleanup_eh.
25105         (dump_properties): Dump PROP_gimple_lcx.
25106         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
25107         (tree_lower_complex_O0): Remove.
25108         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
25109         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
25110         tree_lower_complex, schedule TODO_update_ssa.
25111         * lto-streamer-out.c (output_function): Stream the functions
25112         properties.
25113         * lto-streamer-in.c (input_function): Likewise.
25114         (lto_read_body): Do not override them here.
25115
25116 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
25117
25118         PR c/42708
25119         * c-typeck.c (build_c_cast): Fold value cast to union type before
25120         wrapping it in a CONSTRUCTOR.
25121
25122 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25123
25124         PR rtl-optimization/42699
25125         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
25126         involved.
25127
25128 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25129
25130         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25131         SUBTARGET_WARN_UNUSED_SPEC): Move ...
25132         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
25133         SUBTARGET_WARN_UNUSED_SPEC): ... here
25134         * config/mips/iris5.h (LIBGCC_SPEC): Define.
25135
25136 2010-01-12  Julian Brown  <julian@codesourcery.com>
25137
25138         * config/arm/neon-schedgen.ml (Utils): Don't try to
25139         open missing module.
25140         (find_with_result): New.
25141
25142 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
25143
25144         PR debug/42662
25145         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
25146         sharing when canonicalizing ({lt,ge}u (plus a b) b).
25147
25148         PR tree-optimization/42645
25149         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
25150         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
25151         decl_map, set processing_debug_stmt to -1 and return name without
25152         any remapping.
25153
25154 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
25155
25156         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
25157         binutils version, and reword target configuration description.
25158
25159 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25160
25161         * config/avr/avr.h (LINKER_NAME): Remove.
25162
25163 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
25164
25165         PR target/42416
25166         * config/rs6000/rs6000.c (rs6000_override_options): On targets
25167         that support VSX, warn for -mno-altivec if vsx is not disabled,
25168         and disable vsx.
25169
25170 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
25171             Shujing Zhao  <pearly.zhao@oracle.com>
25172
25173         PR translation/42469
25174         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
25175         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
25176         character between option name and help text.
25177         * c.opt (imultilib): Likewise.
25178
25179 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
25180
25181         * lto-streamer-out.c (output_unreferenced_globals): Output static
25182         variables.
25183
25184 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
25185
25186         PR rtl-optimization/42621
25187         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
25188         optimizing for size.
25189         (duplicate_computed_gotos): Remove now-redundant check.
25190
25191 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
25192
25193         PR target/37454
25194         * configure.ac: Save and restore LDFLAGS and LIBS
25195         * configure: Regenerate.
25196
25197 2010-01-10  Richard Guenther  <rguenther@suse.de>
25198
25199         PR middle-end/42667
25200         * builtins.c (fold_builtin_strlen): Add type argument and
25201         convert the resulting length to it.
25202         (fold_builtin_1): Adjust.
25203
25204 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25205
25206         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
25207         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
25208         1 insn.
25209         (num_insns_constant_wide): Adjust for that change.
25210
25211 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25212
25213         PR debug/42631
25214         * web.c (union_defs): Add used argument, to combine uses of
25215         uninitialized regs.
25216         (entry_register): Adjust type and tests of used argument.
25217         (web_main): Widen used for new use.  Pass it to union_defs.
25218         * df.h (union_defs): Adjust prototype.
25219
25220 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25221
25222         PR debug/42630
25223         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
25224         uses in new incoming argument.  Free body.
25225         (reset_debug_uses_in_loop): New.
25226         (analyze_insn_to_expand_var): Call the latter if the former found
25227         anything.  Fix whitespace.  Reject invalid dest overlaps before
25228         going through all insns in the loop.
25229
25230 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25231
25232         PR debug/42629
25233         * haifa-sched.c (dying_use_p): Debug insns don't count.
25234
25235 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25236
25237         PR middle-end/42363
25238         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
25239         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
25240         (verify_gimple_call): Reject LHS in noreturn calls.
25241
25242 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25243
25244         PR debug/42604
25245         PR debug/42395
25246         * tree-vect-loop-manip.c (adjust_info): New type.
25247         (adjust_vec): New pointer to vector.
25248         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
25249         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
25250         (slpeel_update_phis_for_duplicate_loop): Use them.
25251         (slpeel_update_phi_nodes_for_guard1): Likewise.
25252         (slpeel_update_phi_nodes_for_guard2): Likewise.
25253         (slpeel_tree_peel_loop_to_edge): Likewise.
25254         (vect_update_ivs_after_vectorizer): Likewise.
25255
25256 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25257
25258         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
25259         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
25260
25261 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25262
25263         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
25264         bogus uninitialized warning.
25265
25266 2010-01-09  Richard Guenther  <rguenther@suse.de>
25267
25268         PR middle-end/42512
25269         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
25270         the evolution is compatible with the initial condition.
25271
25272 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25273
25274         * gcc.c (process_command): Update copyright notice dates.
25275         * gcov.c (print_version): Likewise.
25276         * gcov-dump.c (print_version): Likewise.
25277         * mips-tfile.c (main): Likewise.
25278         * mips-tdump.c (main): Likewise.
25279
25280 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25281
25282         PR target/41885
25283         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
25284         (rotlhi3): Delete.
25285         (rotlhi3_8): Delete.
25286         (rotlsi3): Delete.
25287         (rotlsi3_8): Delete.
25288         (rotlsi3_16): Delete.
25289         (rotlsi3_24): Delete.
25290         (rotl<mode>3): New.
25291         (*rotw<mode>3): New.
25292         (*rotb<mode>3): New.
25293         * config/avr/avr.c (avr_rotate_bytes): New function.
25294         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
25295
25296 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
25297
25298         PR target/37454
25299         * configure.ac: Modify -rdynamic check.
25300         * configure: Regenerate.
25301
25302 2010-01-08  DJ Delorie  <dj@redhat.com>
25303
25304         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
25305         register popping order.
25306
25307 2010-01-08  Richard Guenther  <rguenther@suse.de>
25308
25309         PR lto/42528
25310         * c.opt (fsigned-char): Also let LTO handle this option.
25311         (funsigned-char): Likewise.
25312
25313 2010-01-07  Richard Guenther  <rguenther@suse.de>
25314
25315         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
25316         (gimple_op): Likewise.
25317         (gimple_op_ptr): Likewise.
25318         (gimple_assign_set_lhs): Remove gcc_assert.
25319         (gimple_assign_set_rhs1): Likewise.
25320         (gimple_assign_set_rhs2): Likewise.
25321         (gimple_call_set_lhs): Likewise.
25322         (gimple_call_set_fn): Likewise.
25323         (gimple_call_set_fndecl): Likewise.
25324         (gimple_call_fndecl): Likewise.
25325         (gimple_call_return_type): Likewise.
25326         (gimple_call_set_chain): Likewise.
25327         (gimple_call_num_args): Likewise.
25328         (gimple_call_set_arg): Likewise.
25329         (gimple_cond_set_code): Likewise.
25330         (gimple_cond_set_lhs): Likewise.
25331         (gimple_cond_set_rhs): Likewise.
25332         (gimple_cond_set_true_label): Likewise.
25333         (gimple_cond_set_false_label): Likewise.
25334         (gimple_label_set_label): Likewise.
25335         (gimple_goto_set_dest): Likewise.
25336         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
25337         (gimple_debug_bind_get_value): Likewise.
25338         (gimple_debug_bind_get_value_ptr): Likewise.
25339         (gimple_debug_bind_set_var): Likewise.
25340         (gimple_debug_bind_set_value): Likewise.
25341         (gimple_debug_bind_reset_value): Likewise.
25342         (gimple_debug_bind_has_value_p): Likewise.
25343         (gimple_return_retval_ptr): Remove gcc_assert.
25344         (gimple_return_retval): Likewise.
25345         (gimple_return_set_retval): Likewise.
25346         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
25347         (safe_referenced_var_iterator): Remove.
25348         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
25349         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
25350         (fill_referenced_var_vec): Remove.
25351         (first_readonly_imm_use): Remove redundant gcc_assert.
25352         (phi_arg_index_from_use): Combine gcc_asserts.
25353         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
25354         (first_imm_use_stmt): Remove redundant gcc_assert.
25355         * tree-cfg.c (verify_gimple_call): Verify function and chain
25356         operands.  Verify arguments.
25357         (verify_types_in_gimple_stmt): Verify condition code and labels.
25358
25359 2010-01-07  Richard Guenther  <rguenther@suse.de>
25360
25361         PR tree-optimization/42641
25362         * sese.c (rename_map_elt_info): Use the SSA name version, do
25363         not hash pointers.
25364
25365 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
25366
25367         PR tree-optimization/42625
25368         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
25369         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
25370
25371 2010-01-07  Duncan Sands  <baldrick@free.fr>
25372
25373         * Makefile.in (PLUGIN_HEADERS): Add version.h.
25374
25375 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
25376
25377         PR target/42511
25378         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
25379         note itself is not function_invariant_p.
25380
25381 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
25382
25383         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
25384         Do not add the DF_NOTE problem.
25385         * store-motion.c (execute_rtl_store_motion): Likewise.
25386
25387 2010-01-07  Martin Jambor  <mjambor@suse.cz>
25388
25389         PR tree-optimization/42157
25390         * tree-sra.c (compare_access_positions): Stabilize sort if both
25391         accesses have integer types, return zero immediately if they are the
25392         same.
25393
25394 2010-01-06  Richard Henderson  <rth@redhat.com>
25395
25396         PR middle-end/41883
25397         * haifa-sched.c (add_to_note_list): Merge into ...
25398         (concat_note_lists): ... here, and ...
25399         (unlink_other_notes, rm_other_notes): Merge into...
25400         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
25401         NOTE_INSN_EPILOGUE_BEG.
25402
25403 2010-01-06  Richard Guenther  <rguenther@suse.de>
25404
25405         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
25406         not inline regular functions into always-inline functions.
25407
25408 2010-01-06  Nick Clifton  <nickc@redhat.com>
25409
25410         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
25411         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
25412         used together.
25413         (OVERRIDE_OPTIONS): Delete.
25414         (OPTIMIZATION_OPTIONS): Define.
25415         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
25416         * config/rx/rx.c (rx_handle_option): Issue an error message if
25417         -mcpu=rx200 and -fpu are used together.
25418         (rx_set_optimization_options): New function.  Issue an error
25419         message if an optimization attribute attempts to reset the FPU/
25420         math optimization pairing.
25421         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
25422         * config/rx/rx.opt: Set the default to 32-bit doubles.
25423         * config/rx/t-rx: Add multilibs for -nofpu option.
25424         * doc/invoke.texi: Update documentation of RX options.
25425
25426 2010-01-06  Richard Guenther  <rguenther@suse.de>
25427
25428         * tree-ssa-pre.c (name_to_id): New global.
25429         (alloc_expression_id): Simplify SSA name handling.
25430         (lookup_expression_id): Likewise.
25431         (init_pre): Zero name_to_id.
25432         (fini_pre): Free it.
25433
25434 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
25435
25436         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
25437
25438 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25439
25440         PR target/42542
25441         * config/i386/sse.md (smaxv2di3): New.
25442         (umaxv2di3): Likewise.
25443         (sminv2di3): Likewise.
25444         (uminv2di3): Likewise.
25445
25446 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25447
25448         PR target/42564
25449         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
25450         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
25451         (legitimize_tls_address): Likewise.
25452         (sparc_tls_referenced_p): Likewise.
25453         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
25454         and adjust calls to legitimize_pic_address.
25455         (legitimate_constant_p) Use sparc_tls_referenced_p.
25456         (legitimate_pic_operand_p): Likewise.
25457         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
25458         (sparc_tls_symbol_ref_1): Delete.
25459         (sparc_tls_referenced_p): Make static, recognize specific patterns.
25460         (legitimize_tls_address): Make static, handle CONST patterns.
25461         (legitimize_pic_address): Make static, remove unused parameter and
25462         adjust recursive calls.
25463         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
25464         and adjust call to legitimize_pic_address.
25465         (sparc_output_mi_thunk): Likewise.
25466
25467 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
25468             H.J. Lu  <hongjiu.lu@intel.com>
25469
25470         PR target/42542
25471         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
25472         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
25473         operands to make them signed.
25474
25475         Revert:
25476         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25477
25478         PR target/42542
25479         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25480         GTU to GT for V4SI and V2DI.
25481
25482         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25483         (umin<mode>3): Removed.
25484         (uminv8hi3): New.
25485         (uminv4si3): Likewise.
25486
25487 2010-01-05  Martin Jambor  <mjambor@suse.cz>
25488
25489         PR tree-optimization/42462
25490         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
25491         current_function_decl to helper functions and macros.
25492
25493 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25494
25495         PR bootstrap/41771
25496         * flags.h: Don't include real.h.
25497         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
25498         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
25499         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
25500         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
25501         * dominance.c: Update copyright.
25502         * gimple.c (walk_gimple_op): Remove inline.
25503         * tree-ssa-reassoc.c: Include real.h.
25504         * Makefile.in (FLAGS_H): Remove $(REAL_H).
25505         (tree-ssa-reassoc.o): Depend on $(REAL_H).
25506
25507 2010-01-05  Nick Clifton  <nickc@redhat.com>
25508
25509         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
25510         register to push into the stack frame when the accumulator has to
25511         be saved during interrupts.
25512
25513 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
25514
25515         * doc/invoke.texi: Remove the documentation about option
25516         -Wunreachable-code.
25517         * common.opt (Wunreachable-code):  Preserved for backward
25518         compatibility.
25519         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
25520         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
25521         the backward compatibility flag section.
25522
25523 2010-01-05  Richard Guenther  <rguenther@suse.de>
25524
25525         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
25526
25527 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
25528
25529         PR other/42611
25530         * cfgexpand.c (expand_one_var): Diagnose too large variables.
25531
25532         PR tree-optimization/42508
25533         * tree-sra.c (convert_callers): Check for recursive call
25534         by comparing cgraph nodes instead of decls.
25535         (modify_function): Call ipa_modify_formal_parameters also
25536         on all same_body aliases.
25537
25538         * cgraphunit.c (cgraph_materialize_all_clones): Compare
25539         cgraph nodes when checking for same_body aliases.
25540
25541 2010-01-05  Richard Guenther  <rguenther@suse.de>
25542
25543         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
25544         allocation and lookup.
25545         (get_or_alloc_expr_for_constant): Likewise.
25546         (phi_translate): Sink allocation.
25547
25548 2010-01-04  Richard Guenther  <rguenther@suse.de>
25549
25550         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
25551         a new entry only if needed.
25552         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
25553         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
25554         hashtable lookup.
25555         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
25556         the result array.
25557         (phi_translate): Handle CONSTANTs early.
25558
25559 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25560
25561         PR tree-optimization/42398
25562         * tree-sra.c (struct access): Removed flag grp_different_types.
25563         (dump_access): Do not dump the removed flag.
25564         (sort_and_splice_var_accesses): Do not set the removed flag.
25565         (sra_modify_expr): Check for type compatibility directly.
25566
25567 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25568
25569         PR tree-optimization/42366
25570         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
25571         edges with variable number of parameters.
25572         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
25573         flag instead of asserting it.
25574         (ipa_read_node_info): Read uses_analysis_done flag.
25575
25576 2010-01-04  Richard Guenther  <rguenther@suse.de>
25577
25578         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
25579         iterative_hash_* as intended.
25580         (vn_reference_compute_hash): Likewise.  Simplify hashing
25581         SSA names.
25582         (vn_reference_lookup_2): Likewise.
25583         (vn_nary_op_compute_hash): Likewise.
25584         (vn_phi_compute_hash): Likewise.
25585         (expressions_equal_p): Remove strange code.
25586         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
25587         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
25588         (bitmap_insert_into_set_1): Take value-id as parameter.
25589         (add_to_value): Pass it.
25590         (bitmap_insert_into_set): Likewise.
25591         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
25592
25593 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
25594
25595         PR driver/42442
25596         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
25597         (do_self_spec): For switches with SWITCH_IGNORE set set also
25598         SWITCH_IGNORE_PERMANENTLY.
25599         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
25600         of SWITCH_IGNORE.
25601
25602 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
25603
25604         * lto-streamer-out.c (output_unreferenced_globals): Output the full
25605         tree of an unreferenced global var.
25606
25607 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25608
25609         PR target/42542
25610         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25611         GTU to GT for V4SI and V2DI.
25612
25613         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25614         (umin<mode>3): Removed.
25615         (uminv8hi3): New.
25616         (uminv4si3): Likewise.
25617
25618 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25619
25620         PR lto/42581
25621         * collect2.c (main): Turn on trace in collect2 if -v is passed
25622         to gcc with LTO.
25623
25624 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
25625
25626         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
25627         description of expression operand.
25628
25629 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
25630
25631         * configure.ac: Add install-html to target_list for Make-hooks.
25632         * configure: Regenerate.
25633         * fortran/Make-lang.in (F95_HTMLFILES): New.
25634         (fortran.html): Use it.
25635         (fortran.install-html): New.
25636         * Makefile.in (install-html): Add lang.install-html.
25637         * java/Make-lang.in (JAVA_HTMLFILES): New.
25638         (java.html): Use it.
25639         (java.install-html): New.
25640         * objc/Make-lang.in (objc.install-html): New.
25641         * objcp/Make-lang.in (obj-c++.install-html): New.
25642         * cp/Make-lang.in (c++.install-html): New.
25643         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
25644         * lto/Make-lang.in (lto.install-html): New.
25645
25646 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25647
25648         PR lto/42520
25649         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
25650
25651 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
25652
25653         PR rtl-optimization/41862
25654         * store-motion.c (store_killed_in_insn, compute_store_table,
25655         remove_reachable_equiv_notes, replace_store_insn,
25656         build_store_vectors): Ignore all DEBUG_INSNs.
25657
25658 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25659
25660         PR lto/41564
25661         * common.opt: Add dumpdir.
25662
25663         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
25664         isn't specified.
25665         (option_map): Add --dumpdir.
25666
25667         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
25668
25669         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
25670
25671         * opts.c (decode_options): Try dump_dir_name first if
25672         dump_base_name isn't an absolute path.
25673         (common_handle_option): Handle OPT_dumpdir.
25674
25675         * toplev.c (dump_dir_name): New.
25676         (print_switch_values): Also ignore -dumpdir.
25677
25678         * toplev.h (dump_dir_name): New.
25679
25680 2010-01-03  Richard Guenther  <rguenther@suse.de>
25681
25682         PR tree-optimization/42589
25683         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
25684         double-word expansion of bswap32.
25685
25686 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
25687
25688         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
25689         with BLOCK_FOR_INSN.
25690         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
25691         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
25692         noce_process_if_block): Likewise.
25693         * gcse.c (compute_local_properties, insert_expr_in_table,
25694         insert_set_in_table, canon_list_insert, find_avail_set,
25695         pre_insert_copy_insn): Likewise.
25696
25697         * basic-block.h (BLOCK_NUM): Move from here...
25698         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
25699
25700 2010-01-03  Richard Guenther  <rguenther@suse.de>
25701
25702         PR tree-optimization/42438
25703         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
25704         contains_may_not_return_call flag.
25705         (BB_MAY_NOTRETURN): New.
25706         (valid_in_sets): Trapping nary operations are not valid
25707         in blocks that may not return.
25708         (insert_into_preds_of_block): Remove check for trapping expressions.
25709         (compute_avail): Compute also BB_MAY_NOTRETURN.
25710
25711 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
25712
25713         * doc/invoke.texi: Add 2010 to copyright years.
25714
25715 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
25716
25717         * config/sparc/sparc.c: Fix formatting nits.
25718
25719 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
25720             Alexander Monakov  <amonakov@ispras.ru>
25721
25722         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
25723
25724 2010-01-02  Richard Guenther  <rguenther@suse.de>
25725
25726         PR middle-end/42577
25727         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
25728         (simplify_switch_using_ranges): Mark to be removed edges
25729         as non-executable.
25730
25731 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25732
25733         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
25734
25735         * collect2.c (scan_libraries): Add missing argument in call to
25736         scan_prog_file.
25737
25738 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
25739
25740         PR target/42448
25741         * config/alpha/predicates.md (aligned_memory_operand): Return false
25742         for CQImode.
25743         (unaligned_memory_operand): Return true for CQImode.
25744         * config/alpha/alpha.c (get_aligned_mem): Assert that location
25745         doesn not cross aligned SImode word boundary.
25746
25747 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
25748
25749         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
25750         Remove.
25751         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
25752         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
25753
25754 2010-01-02  Richard Guenther  <rguenther@suse.de>
25755
25756         PR lto/41597
25757         * toplev.c (compile_file): Emit LTO marker properly.  Change
25758         it to __gnu_lto_v1.
25759         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
25760
25761 2010-01-01  Richard Guenther  <rguenther@suse.de>
25762
25763         PR debug/42455
25764         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
25765
25766 2010-01-01  Richard Guenther  <rguenther@suse.de>
25767
25768         PR c/42570
25769         * c-decl.c (grokdeclarator): For zero-size arrays force
25770         structural equality checks as layout_type does.
25771
25772 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
25773
25774         * builtins.c: Update copyright to 2010.
25775
25776 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
25777
25778         PR lto/42531
25779         * lto-streamer-out.c (produce_asm): Revert the last change.
25780         (copy_function): Likewise.
25781
25782         * lto-streamer.c (lto_get_section_name): Skip any leading
25783         asterisk in name.
25784
25785 2010-01-01  Richard Guenther  <rguenther@suse.de>
25786
25787         PR middle-end/42559
25788         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
25789         for LABEL_DECLs.
25790
25791 \f
25792 Copyright (C) 2010 Free Software Foundation, Inc.
25793
25794 Copying and distribution of this file, with or without modification,
25795 are permitted in any medium without royalty provided the copyright
25796 notice and this notice are preserved.