2010-09-04 Paolo Bonzini <bonzini@gnu.org>
[official-gcc.git] / gcc / ChangeLog
blob34ef13924aff2d5732be3846db96e2bfe23c91da
1 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
3         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
4         (struct df_extract_ref): Remove.
5         (union df_ref_d): Remove extract_ref member.
6         (df_ref_create): Remove last three arguments.
7         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8         * df-scan.c (df_ref_record): Remove last three arguments, do not
9         pass them to df_ref_create_structure.
10         (df_uses_record): Remove first and last three arguments.  Replace
11         first argument with DF_REF_REGULAR, adjust calls to remove the
12         width, offset and mode.  Always call recursively on the second
13         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
14         (df_ref_create_structure): Remove first argument.
15         (struct df_scan_problem_data): Remove ref_extract_pool.
16         (df_scan_free_internal): Do not free it.
17         (df_scan_alloc): Do not allocate it.
18         (df_ref_create): Remove last three arguments, do not pass them to
19         df_ref_create_structure.
20         (df_free_ref): Remove DF_REF_EXTRACT case.
21         (df_notes_rescan): Adjust call to df_uses_record.
22         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
23         Remove DF_REF_EXTRACT case.
24         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
25         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
26         and SUBREG definitions.
27         (df_get_conditional_uses): Remove references to width/offset/mode,
28         adjust call to df_ref_create_structure.
29         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
30         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
31         calls to df_uses_record and df_ref_record.
32         * fwprop.c (update_df): Remove references to width/offset/mode,
33         adjust call to df_ref_create.
35 2010-09-03  Jan Hubicka  <jh@suse.cz>
37         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
38         (build_cdtor_fns): Update use of build_cdtor.
40 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
42         * doc/options.texi (SeparateAlias): Document.
43         * opt-functions.awk (switch_flags): Handle SeparateAlias.
44         * opth-gen.awk: Generate enumeration names for options marked
45         SeparateAlias, but not for those marked Ignore.
46         * opts-common.c (generate_canonical_option): Don't output separate
47         argument for options marked CL_SEPARATE_ALIAS.
48         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
49         * opts.h (CL_SEPARATE_ALIAS): New.
50         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
51         CL_COMMON): Adjust definitions.
52         * config/i386/darwin.opt, config/mips/sde.opt: New.
53         * common.opt (fdump-final-insns): New.
54         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
55         i386/darwin.opt.
56         (mips*-sde-elf*): Add mips/sde.opt.
57         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
58         -mno-data-in-code and -mcode-xonly here.
59         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
60         * gcc.c (option_map): Add "j" to --dump entry.
61         (translate_options): Don't translate -d to -foutput-class-dir=
62         here.
64 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
66         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
67         DR_IS_WRITE.
68         (compute_all_dependences): Same.
69         (create_rdg_edge_for_ddr): Same.
70         * tree-data-ref.h (DR_IS_WRITE): New.
71         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
72         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
73         (write_memrefs_written_at_least_once): Same.
74         * tree-predcom.c (suitable_component_p): Same.
75         (determine_roots_comp): Same.
76         (execute_load_motion): Same.
77         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
78         (vect_enhance_data_refs_alignment): Same.
79         (vect_analyze_group_access): Same.
81 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
83         PR testsuite/42843
84         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
85         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
87 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
89         * dwarf2out.c (file scope): Remove #if0'd code.
90         (gen_subprogram_die): Same.
92 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
94         PR middle-end/45484
95         * dwarf2out.c (flush_queued_reg_saves): Rename to...
96         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
97         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
98         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
99         * config/i386/i386.c (output_set_got): Call it.
101 2010-09-03  Michael Matz  <matz@suse.de>
103         PR middle-end/45415
104         * tree-sra.c (sra_modify_assign): If we modify the statement,
105         say so.
107         * tree-ssa.c (verify_ssa): Check number of operands and links
108         per statement to agree.
110 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
111             Iain Sandoe  <iains@gcc.gnu.org>
113         PR target/45476
114         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
115         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
116         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
118 2010-09-03  Richard Guenther  <rguenther@suse.de>
120         * lto-streamer-out.c (output_function): Output function
121         start and end loci.
122         * lto-streamer-in.c (input_function): Input function start
123         and end loci.
125 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
127         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
128         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
129         * configure: Regenerate.
130         * aclocal.m4: Regenerate.
132 2010-09-03  Jan Hubicka  <jh@suse.cz>
134         PR lto/44812
135         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
136         on functions/variables in other partition.
138 2010-09-03  Jan Hubicka  <jh@suse.cz>
140         * cgraph.h (struct varpool_node): Add const_value_known.
141         (varpool_decide_const_value_known): Declare.
142         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
143         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
144         (input_varpool_node): Restore const_value_known.
145         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
146         initializer folding.
147         * ipa.c (ipa_discover_readonly_nonaddressable_var,
148         function_and_variable_visibility): Compute const_value_known.
149         * gimple-fold.c (get_symbol_constant_value): Use varpool for
150         initializer folding.
151         * varpool.c (varpool_decide_const_value_known): New function.
153 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
155         * config/i386/i386.md: Remove empty preparation statements
156         from splitters.
158 2010-09-03  Jan Hubicka  <jh@suse.cz>
160         * passes.c (rest_of_decl_compilation): Do not add local vars into
161         varpool.
162         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
163         static or extern vars are in varpool.
164         (varpool_finalize_decl): Sanity check that only static vars are
165         finalized.
167 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
169         PR debug/45500
170         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
171         not just generic vectors with BLKmode.
173 2010-09-03  Richard Guenther  <rguenther@suse.de>
175         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
176         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
177         * tree.h (TMR_SYMBOL): Remove.
178         (TMR_BASE, TMR_OFFSET): Adjust.
179         (TMR_INDEX2): New.
180         * alias.c (ao_ref_from_mem): Use TMR_BASE.
181         * builtins.c (get_object_alignment): Merge TMR_BASE and
182         TMR_SYMBOL handling.
183         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
184         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
185         handling.  Also allow TARGET_MEM_REF as base address.
186         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
187         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
188         base.  Gimplify TMR_INDEX2.
189         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
190         * tree-dfa.c (get_ref_base_and_extent): Likewise.
191         (get_addr_base_and_unit_offset): Likewise.
192         * tree-eh.c (tree_could_trap_p): Likewise.
193         * tree-pretty-print.c (dump_generic_node): Likewise.
194         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
195         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
196         base to index2.
197         (get_address_description): Reconstruct addres description
198         from merged TMR_BASE and TMR_INDEX2.
199         (maybe_fold_tmr): Fold propagated addresses.
200         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
201         MEM_REF and TARGET_MEM_REF paths.
202         (indirect_refs_may_alias_p): Likewise.
203         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
204         instead of TMR_SYMBOL.
205         * tree-ssa-operands.c (get_tmr_operands): Simplify.
206         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
207         according to changes ...
208         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
209         Split TARGET_MEM_REF into two fields plus the base.
210         * tree.c (mem_ref_offset): Simplify.
211         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
212         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
213         Strip NOPs when folding MEM_REF addresses.
214         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
215         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
216         (fold_gimple_assign): ... not here.
218 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
220         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
221         * config/mips/mips.c (mips_shift_truncation_mask): New function.
222         (TARGET_SHIFT_TRUNCATION_MASK): Define.
224 2010-09-02  Richard Henderson  <rth@redhat.com>
226         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
227         instead of readelf in the test.
228         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
229         in the .debug_frame section for coff targets.
230         * configure: Rebuild.
232 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
234         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
235         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
236         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
237         (m32c_class_likely_spilled_p): Make static. Change argument type to
238         reg_class_t. Change result type to bool.
240 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
242         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
243         to convert (double)(long) into a single FRIZ instruction or not
244         when -ffast-math is used.
246         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
247         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
248         or FRIZ instruction if -ffast-math.
249         * config/rs6000/rs6000.md (friz): Ditto.
251         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
253 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
255         * opth-gen.awk (quote, comma): Remove unused variables.
257 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
259         * arm.c (arm_override_options): Correct fall-back code to use
260         SUBTARGET_CPU_DEFAULT.
262 2010-09-02  Julian Brown  <julian@codesourcery.com>
264         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
265         unspecs.
266         (vcond<mode>, vcondu<mode>): New expanders.
267         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
268         comparisons with zero.
269         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
270         * config/arm/constraints.md (Dz): New constraint.
272 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
274         * target.def (class_likely_spilled_p): New hook.
275         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
276         * doc/tm.texi: Regenerate.
277         * targhooks.c (default_class_likely_spilled_p): New function.
278         * targhooks.h (default_class_likely_spilled_p): Declare.
279         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
280         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
281         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
282         Use fixed_reg_set instead of fixed_regs.
283         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
284         * calls.c (avoid_likely_spilled_reg): Ditto.
285         * ira-conflicts.c (ira_build_conflicts): Ditto.
286         * ira.c (update_equiv_regs): Ditto.
287         * mode-switching.c (create_pre_exit): Ditto.
288         * regmove.c (find_matches): Ditto.
289         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
290         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
291         (small_register_class_p): New inline function.
292         (push_secondary_reload, find_reusable_reload, find_reloads): Use
293         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
295         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
296         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
297         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
299 2010-09-02  Richard Guenther  <rguenther@suse.de>
301         PR tree-optimization/44937
302         PR tree-optimization/45412
303         * ipa-split.c (split_function): Properly remove PHI nodes.
305 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
307         * opts.h (struct cl_option): Add warn_message field.
308         (struct cl_decoded_option): Add warn_message field.
309         * doc/options.texi (Ignore, Warn): Document.
310         * opt-functions.awk (needs_state_p): Don't consider aliases or
311         ignored options to need state saved.
312         * optc-gen.awk: Handle Warn and Ignore.
313         * opth-gen.awk: Output OPT_SPECIAL_ignore.
314         * opts-common.c (decode_cmdline_option): Set warn_message field.
315         Handle ignored options.
316         (decode_cmdline_options_to_array, generate_option,
317         generate_option_input_file): Set warn_message field.
318         (read_cmdline_option): Generate warnings from warn_message field.
319         Handle ignored options.
320         * common.opt (Wunreachable-code, fargument-alias,
321         fargument-noalias, fargument-noalias-global,
322         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
323         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
324         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
325         ftree-salias): Mark Ignore.
326         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
327         -mintel-syntax and -mno-intel-syntax here.
328         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
329         using Warn.
330         * opts.c (common_handle_option): Don't handle options marked as
331         ignored.
332         (enable_warning_as_error): Handle ignored options.
334 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
336         PR driver/44076
337         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
338         alias_target fields.
339         * opt-functions.awk (opt_sanitized_name): Don't handle
340         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
341         * optc-gen.awk: Generate alias fields.
342         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
343         Don't generate such constants for aliases.
344         * opts-common.c (generate_canonical_option): New.
345         (decode_cmdline_option): Handle aliases.  Use
346         generate_canonical_option for known options instead of copying the
347         input option text.
348         * doc/options.texi (Alias): Document.
349         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
350         fstack-check, specs): Mark as aliases.
351         * gcc.c (driver_handle_option): Canonicalize -L options to joined
352         arguments.
353         (driver_handle_option): Don't handle OPT_specs.
354         * opts.c (common_handle_option): Don't handle options marked as
355         aliases.
356         (enable_warning_as_error): Handle aliases.
357         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
358         OPT_Wlarger_than_eq.
359         * tree-optimize.c (tree_rest_of_compilation): Use
360         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
362 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
364         * config/i386/i386.md (nonmemory_operand): New mode attribute.
365         (push memory peephole2): Macroize peepholes using SWI mode iterator.
366         (move immediate to memory peephole2): Macroize peepholes using
367         SWI124 mode iterator.
368         (non-pairable NOT peephole2): Macroize peepholes using SWI124
369         mode iterator.
370         (simple lea add peephole2): Macroize peepholes using SWI48
371         mode iterator.
372         (simple lea mult peephole2): Ditto.
373         (imul by 3,5,9 to lea peephole2): Ditto.
374         (mov $-1, reg peephole2): Macroize peepholes using SWI248
375         mode iterator.
376         (imul $32bit_imm,mem,reg peephole2): Ditto.
377         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
379 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
381         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
383 2010-09-02  Olivier Hainque  <hainque@adacore.com>
385         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
386         (allocno_priority_compare_func): Use it instead of a straight
387         difference computation over priorities.
389 2010-09-02  Andi Kleen  <ak@linux.intel.com>
391         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
393 2010-09-02  Ira Rosen  <irar@il.ibm.com>
395         * tree-vectorizer.h (get_later_stmt): New function.
396         (vect_analyze_data_ref_dependences): Add argument.
397         * tree-vect-loop.c (vect_analyze_loop): Update call to
398         vect_analyze_data_ref_dependences.
399         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
400         New function.
401         (vect_analyze_data_ref_dependence): Add argument for basic block
402         dependencies. Check dependencies in basic block vectorization.
403         (vect_analyze_data_ref_dependences): Add argument and update call to
404         vect_analyze_data_ref_dependences.
405         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
406         (vect_bb_vectorizable_with_dependencies): New.
407         (vect_slp_analyze_bb): Check dependencies in basic block.
408         (vect_schedule_slp_instance): Insert stores before the last store in
409         SLP instance.
411 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
413         PR target/45476
414         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
415         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
417 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
419         PR middle-end/45458
420         * bb-reorder.c (add_labels_and_missing_jumps): Treat
421         bbs ending with throwing insns like blocks ending with a call.
422         (fix_up_fall_thru_edges): Likewise.
424 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
426         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
427         (m32c_function_arg_advance): Delete.
428         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
429         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
430         comments.  Take a const_tree and a bool.  Declare.
431         (m32c_function_arg_advance): Likewise.
432         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
434 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
436         PR target/45476
437         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
438         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
439         * config/i386/mingw32.h: ... here.
441 2010-09-01  Andi Kleen  <ak@linux.intel.com>
443         PR lto/45475
444         * lto-streamer-in.c (lto_input_ts_target_option): Add.
445         (lto_input_tree_pointers): Call lto_input_ts_target_option.
446         * lto-streamer-out (lto_output_ts_target_option): Add.
447         (lto_output_tree_pointers): Call lto_output_ts_target_option.
449 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
451         PR/target 45452
452         * config/i386/cygwin.h: Change order of specified import libraries.
453         * config/i386/mingw32.h: Likewise.
454         * config/i386/t-cygwin: Likewise.
455         * config/i386/t-mingw32: Likewise.
456         * config/i386/t-mingw-w32: Likewise.
457         * config/i386/t-mingw-w64: Likewise.
459 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
461         * config/arm/neon-schedgen.ml (core): New type.
462         (allCores): List of supported cores.
463         (availability_table): Add supported cores.
464         (collate_bypasses): Accept core as a parameter.
465         (worst_case_latencies_and_bypasses): Accept core as a parameter.
466         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
467         and coreStr to get tune attribute and prefix for functional units.
468         (emit_bypasses): Accept core name and use it.
469         (calculate_per_core_availability_table): New.
470         (filter_core): New.
471         (calculate_core_availability_table): New.
472         (main): Use calculate_core_availablity_table.
473         * config/arm/cortex-a8-neon.md: Update copyright year.
474         Regenerated from ml file and merged in.
475         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
476         cortex_a8_neon_mrc.
478 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
480         * Makefile.in (tree-switch-conversion.o): Update dependencies.
482 2010-09-01  Richard Guenther  <rguenther@suse.de>
484         * alias.c (ao_ref_from_mem): Adjust.
485         * builtins.c (get_object_alignment): Likewise.
486         * cfgexpand.c (expand_debug_expr): Likewise.
487         * gimple.c (get_base_address): Likewise.
488         * tree-dfa.c (get_ref_base_and_extent): Likewise.
489         (get_addr_base_and_unit_offset): Likewise.  Fix for
490         both TMR_SYMBOL and TMR_BASE being set.
491         * tree-eh.c (tree_could_trap_p): Likewise.
492         * gimplify.c (gimplify_expr): Do not attempt to gimplify
493         TMR_SYMBOL.  Always gimplify TMR_BASE.
494         * tree-cfg.c (verify_types_in_gimple_reference): Verify
495         TMR_BASE if there is a TMR_SYMBOL.
496         * tree-pretty-print.c (dump_generic_node): Adjust.
497         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
498         (tree_mem_ref_addr): Likewise.
499         (create_mem_ref_raw): Likewise.
500         (move_fixed_address_to_symbol): Likewise.
501         (create_mem_ref): Likewise.
502         (dump_mem_address): Likewise.
503         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
504         Fix for both TMR_SYMBOL and TMR_BASE being set.
505         (indirect_refs_may_alias_p): Likewise.
506         * tree-ssa-operands.c (get_tmr_operands): Adjust.
507         * tree.def (TARGET_MEM_REF): Adjust documentation.
509 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
511         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
512         Rename from X86_TUNE_ADD_ESP_4.
513         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
514         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
515         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
516         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
517         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
518         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
519         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
520         * config/i386/i386.c (initial_ix86_tune_features)
521         <X86_TUNE_SINGLE_POP>: Invert members.
522         <X86_TUNE_DOUBLE_POP>: Ditto.
523         <X86_TUNE_SINGLE_PUSH>: Ditto.
524         <X86_TUNE_DOUBLE_PUSH>: Ditto.
525         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
526         No longer exported.
527         (push peephole2 patterns): Macroize peepholes using P mode iterator.
528         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
529         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
530         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
532 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
534         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
535         a volatile LHS if the constructor has only one element.
537 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
539         PR bootstrap/45321
540         * tree.c (stdarg_p): Make fntype parameter const.
541         * tree.h (stdarg_p): Likewise.
542         (function_args_iterator): Remove unused fntype field.
543         (function_args_iter_init): Do not initialize fntype
544         field.  Make fntype parameter const.
546 2010-09-01  Richard Guenther  <rguenther@suse.de>
548         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
549         estimate.
550         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
551         (execute_vrp): Compute number of iteration estimates.
552         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
553         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
554         * tree-data-ref.c (estimated_loop_iterations): Adjust.
555         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
556         Infer loop bounds from undefined behavior based on a new parameter.
557         (estimate_numbers_of_iterations): Likewise.
558         (scev_probably_wraps_p): Adjust.
559         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
561 2010-09-01  Nick Clifton  <nickc@redhat.com>
563         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
564         where appropriate.
565         (xstormy16_legitimate_address_p): Use true and false instead of 1
566         and 0.
567         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
568         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
569         magic constant 2.
570         (xstormy16_expand_call): Fix comment at start of function.
572 2010-09-01  Nick Clifton  <nickc@redhat.com>
574         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
575         when pushing accumulator register.
576         (rx_get_stack_layout): Always save call clobbered registers inside
577         interrupt handlers.
578         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
580 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
582         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
583         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
585         * libgcc-std.ver (GCC_4.6.0): Define version.
587 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
589         * tree-nested.c (convert_all_function_calls): Iterate until after the
590         sum of static chains in the nest doesn't change.
592 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
594         * config/m32c/m32c.c (classes_intersect): Remove.
595         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
596         reg_classes_intersect_p instead of classes_intersect.
597         (class_can_hold_mode): Change arguments type from enum reg_class to
598         reg_class_t.  Use reg_class_contents instead of class_contents.
599         (m32c_register_move_cost): Make static. Change arguments type from
600         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
601         classes_intersect. Use reg_class_contents instead of class_contents.
602         (m32c_memory_move_cost): Make static. Change arguments type from
603         enum reg_class to reg_class_t.
604         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
605         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
606         * config/m32c/m32c-protos.h (m32c_register_move_cost,
607         m32c_memory_move_cost): Remove.
609 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
611         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
612         (arm_function_arg): Delete.
613         (arm_needs_doubleword_align): Take a const_tree.
614         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
615         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
616         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
617         (arm_function_arg): Make static.  Take a const_tree and a bool.
618         (arm_function_arg_advance): Likewise.
619         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
621 2010-08-31  Andi Kleen  <ak@linux.intel.com>
623         * common.opt (fwhopr=): Update for -fwhopr=jobserver
624         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
625         * lto-wrapper.c (run_gcc): Add jobserver mode.
626         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
627         argument.
629 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
631         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
632         (popsi1): Ditto.
633         (*popdi1_epilogue): Ditto.
634         (*popsi1_epilogue): Ditto.
635         (popsi, popdi peephole2 patterns): Update peepholes for changed
636         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
638         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
639         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
641         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
642         (override_options): Do not initialize removed ix86_gen_pop1.
643         (gen_pop): New static function.
644         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
645         (release_scratch_register_on_entry): Ditto.
646         (ix86_restore_reg_using_pop): Ditto.
647         (ix86_expand_epilogue): Ditto.
649 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
651         PR middle-end/45461
652         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
654 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
656         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
657         semicolons.
659 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
661         * doc/extend.texi: Fix documentation of the return value of
662         __builtin_choose_expr.
664 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
666         * config/v850/v850-protos.h (function_arg): Delete.
667         * config/v850/v850.h (FUNCTION_ARG): Delete.
668         (FUNCTION_ARG_ADVANCE): Move code to...
669         * config/v850/v850.c (v850_function_arg_advance): ...here.
670         (v850_function_arg): Make static.  Take a const_tree and a bool.
671         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
673 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
675         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
676         these...
677         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
678         ...and these...
679         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
680         ..to here..
681         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
682         ...and here.
683         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
685 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
687         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
688         Delete.
689         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
690         * config/rx/rx.c (rx_function_arg_size): Make static.
691         (rx_function_arg): Likewise.
692         (rx_function_arg_advance): New function.
693         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
695 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
697         * config/arm/arm.c (arm_override_options): Remove superfluous test.
698         Fix indentation.
700 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
702         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
703         (dwarf2out_decl) <CONST_DECL>: Likewise.
705 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
707         Stack usage support
708         * common.opt (-fstack-usage): New option.
709         * doc/invoke.texi (Debugging options): Document it.
710         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
711         allocate_dynamic_stack_space.
712         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
713         and propagate it to allocate_dynamic_stack_space.
714         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
715         * calls.c (initialize_argument_information): Pass TRUE as 4th
716         argument to allocate_dynamic_stack_space.
717         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
718         to 1 when pushing a variable-sized argument onto the stack.  Pass
719         TRUE as 4th argument to allocate_dynamic_stack_space.
720         Update current_function_pushed_stack_size.
721         (emit_library_call_value_1): Likewise.
722         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
723         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
724         attempt to find an upper bound.  Remove redundant code for the
725         SETJMP_VIA_SAVE_AREA case.
726         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
727         * function.h (struct stack_usage): New structure.
728         (current_function_static_stack_size): New macro.
729         (current_function_dynamic_stack_size): Likewise.
730         (current_function_pushed_stack_size): Likewise.
731         (current_function_dynamic_alloc_count): Likewise.
732         (current_function_has_unbounded_dynamic_stack_size): Likewise.
733         (current_function_allocates_dynamic_stack_space): Likewise.
734         (struct function): Add new field 'su'.
735         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
736         add the value of the dynamic offset to the dynamic stack usage.
737         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
738         for variable-sized objects.
739         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
740         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
741         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
742         BUILT_IN_ALLOCA for variable-sized objects.
743         * output.h (output_stack_usage): Declare.
744         * toplev.c (stack_usage_file): New file pointer.
745         (output_stack_usage): New function.
746         (open_auxiliary_file): Likewise.
747         (lang_dependent_init): Open file if flag_stack_usage is set.
748         (finalize): Close file if stack_usage_file is not null.
749         * tree.h (ALLOCA_FOR_VAR_P): New macro.
750         * config/alpha/alpha.c (compute_frame_size): New function.
751         (alpha_expand_prologue): Use it.
752         (alpha_start_function): Likewise.
753         (alpha_expand_epilogue): Likewise.  Set stack usage info.
754         * config/i386/i386.c (ix86_expand_prologue): Likewise.
755         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
756         * config/mips/mips.c (mips_expand_prologue): Likewise.
757         * config/pa/pa.c (hppa_expand_prologue): Likewise.
758         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
759         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
761 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
763         PR tree-optimization/45427
764         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
765         Handle the case that the exit is never taken correctly.
766         (number_of_iterations_ne): Pass exit_must_be_taken to
767         number_of_iterations_ne_max.
769 2010-08-30  Catherine Moore  <clm@codesourcery.com>
771         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
772         Infer -mdspr2 for the the 74K.
774 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
776         PR debug/45419
777         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
779         PR middle-end/45423
780         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
781         and TRUTH_{AND,OR,XOR}_EXPR.
782         * c-parser.c (c_parser_omp_atomic): Handle boolean
783         {PRE,POST}_{INC,DEC}REMENT.
785 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
787         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
788         (function_arg): Delete.
789         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
790         (FUNCTION_INCOMING_ARG): Delete.
791         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
792         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
793         and a bool.
794         (function_arg): Rename to...
795         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
796         a bool.
797         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
798         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
799         (TARGET_FUNCTION_INCOMING_ARG): Define.
801 2010-08-30  Richard Guenther  <rguenther@suse.de>
803         PR tree-optimization/21602
804         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
805         using points-to information.
807 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
809         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
811 2010-08-30  Richard Guenther  <rguenther@suse.de>
813         PR tree-optimization/45449
814         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
815         variables.
817 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
819         * opts.h (CL_ERR_NEGATIVE): Define.
820         * opts.c (unknown_option_callback): Don't postpone warnings for
821         options marked with CL_ERR_NEGATIVE.
822         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
823         for negative versions of CL_REJECT_NEGATIVE options.
825 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
827         * config/i386/i386.md (zero_extendsidi2_1): Rename from
828         zero_extendsidi2_32.
829         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
830         using SWI12 mode iterator.
831         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
832         to define_insn_and_split pattern.
833         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
834         using SWI24 mode iterator.
835         (*zero_extendqi<mode>2_and): Macroize insn from
836         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
837         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
838         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
839         SWI24 mode iterator.
840         (*zero_extendqi<mode>2_movzbl): Ditto from
841         *zero_extendqi{hi,si}2_movzbl.
842         (extendsidi2_1): Rename from extendsidi2_32.
843         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
844         SWI12 mode iterator.
846 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
848         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
849         general purpose registers.
850         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
851         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
852         with general purpose registers and memory operands.  Add associated
853         CCImode post-reload splitter.
854         * config/ia64/div.md: Change BImode to CCImode throughout.
856 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
858         * config/ia64/ia64.md (cstorebi4): Fix thinko.
860 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
862         * config/picochip/picochip.c (reorder_var_tracking_notes): This
863         function was dropping debug insns which caused PR45299.
865 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
867         * config/i386/sse.md (extsuffix): New code attribute.
868         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
869         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
870         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
871         and sse4_1_zero_extendv4qiv4si2.
872         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
873         and sse4_1_zero_extendv2qiv2di2.
874         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
875         and sse4_1_zero_extendv4hiv4si2.
876         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
877         and sse4_1_zero_extendv2hiv2di2.
878         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
879         and sse4_1_zero_extendv2siv2di2
881         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
882         using any_extend code iterator.
883         (*avx_<s>mulv8hi3_highpart): Macroize insn from
884         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
885         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
887         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
888         gen_sse4_1_sign_extend* functions.
889         (struct builtin_description bdesc_args): Ditto.
891 2010-08-27  Xinliang David Li  <davidxl@google.com>
893         PR/45422
894         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
895         (iv_ca_set_no_cp): Update used inv expr count.
896         (iv_ca_set_cp): Ditto.
897         (iv_ca_new): Initialize new member.
898         (iv_ca_free): Free memory.
900 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
902         * config/sh/sh-protos.h (sh_function_arg): Delete.
903         (sh_function_arg_advance): Delete.
904         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
905         (PASS_IN_REG_P): Eliminate cast.
906         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
907         const_tree and a bool.
908         (sh_function_arg): Likewise.
909         (sh_output_mi_thunk): Call sh_function_arg_advance) and
910         sh_function_arg.
911         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
913 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
914             Kaz Kojima  <kkojima@gcc.gnu.org>
916         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
917         when possible.
918         (sh_expand_epilogue): Likewise.
919         * config/sh/sh.md (movml_push_banked): New insn.
920         (movml_pop_banked): Likewise.
922 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
924         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
925         gen_regexp_oneof, gen_regexp_sequence): Use the string found
926         in vector element 0 rather than the original string when there's
927         only one element.
928         (gen_regexp): Remove extra semicolon.
930         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
931         thumb2_movsf_vfp): Set attribute "insn".
932         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
933         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
934         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
935         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
936         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
937         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
938         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
939         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
940         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
941         if_not_arith, if_arith_not, cond_move_not): Likewise.
943 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
945         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
946         New declaration.
947         (rs6000_allocate_stack_temp): Ditto.
948         (rs6000_expand_convert_si_to_sfdf): Ditto.
950         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
951         line.  Update the options set if power6 or power7 server/embedded
952         type options are used.  If we give a warning for no vsx under
953         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
954         (rs6000_allocate_stack_temp): New function to allocate a stack
955         tempoary and adjust the address so it meets either REG+OFFSET or
956         REG+REG addressing requirements.
957         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
958         that they can be used with the LFIWAX/LFIWZX instrucitons.
959         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
960         converting signed/unsigned SImode to either SFmode/DFmode.
962         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
963         whether certain instructions can be generated.
964         (TARGET_FCTIDZ): Ditto.
965         (TARGET_STFIWX): Ditto.
966         (TARGET_LFIWAX): Ditto.
967         (TARGET_LFIWZX): Ditto.
968         (TARGET_FCFIDS): Ditto.
969         (TARGET_FCFIDU): Ditto.
970         (TARGET_FCFIDUS): Ditto.
971         (TARGET_FCTIDUZ): Ditto.
972         (TARGET_FCTIWUZ): Ditto.
974         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
975         (UNSPEC_FCTID): Ditto.
976         (UNSPEC_LFIWAX): Ditto.
977         (UNSPEC_LFIWZX): Ditto.
978         (UNSPEC_FCTIWUZ): Ditto.
979         (rreg): Use correct constraints.
980         (SI_CONVERT_FP): New mode attribute for floating point conversion
981         tests.
982         (E500_CONVERT): Ditto.
983         (lfiwax): New insns for converting from integer to floating point
984         utilizing newer instructions.  Attempt to optimize conversions
985         that come from memory so that we don't load the value into a GPR,
986         spill it to the stack and reload it into a FPR.
987         (floatsi<mode>2_lfiwax): Ditto.
988         (floatsi<mode>2_lfiwax_mem): Ditto.
989         (floatsi<mode>2_lfiwax_mem2): Ditto.
990         (lfiwzx): Ditto.
991         (floatunssi<mode>2_lfiwzx): Ditto.
992         (floatunssi<mode>2_lfiwzx_mem): Ditto.
993         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
994         (floatdidf2_mem): Ditto.
995         (floatunsdidf2_fcfidu): Ditto.
996         (floatunsdidf2_mem): Ditto.
997         (floatunsdisf2): Ditto.
998         (floatunsdisf2_fcfidus): Ditto.
999         (floatunsdisf2_mem): Ditto.
1000         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
1001         Use FCFID on 32-bit hosts that support it.
1002         (floatsidf2_internal): Ditto.
1003         (floatunssisf2): Ditto.
1004         (floatunssidf2): Ditto.
1005         (floatunssidf2_internal): Ditto.
1006         (floatsisf2): Ditto.
1007         (floatdidf2): Ditto.
1008         (floatdidf2_fpr): Ditto.
1009         (floatunsdidf2): Ditto.
1010         (floatdisf2): Ditto.
1011         (floatdisf2_fcfids): Ditto.
1012         (floatdisf2_internal1): Ditto.
1013         (fixuns_truncsfsi2): Delete, merge into common pattern for both
1014         SF/DF.  Add power7 support.
1015         (fix_truncsfsi2): Ditto.
1016         (fixuns_truncdfsi2): Ditto.
1017         (fixuns_truncdfdi2): Ditto.
1018         (fix_truncdfsi2): Ditto.
1019         (fix_truncdfsi2_internal): Ditto.
1020         (fix_truncdfsi2_internal_gfxopt): Ditto.
1021         (fix_truncdfsi2_mfpgpr): Ditto.
1022         (fctiwz): Ditto.
1023         (btruncdf2): Ditto.
1024         (btruncdf2_fpr): Ditto.
1025         (btructsf2): Ditto.
1026         (ceildf2): Ditto.
1027         (ceildf2_fpr): Ditto.
1028         (ceilsf2): Ditto.
1029         (floordf2): Ditto.
1030         (floordf2_fpr): Ditto.
1031         (floorsf2): Ditto.
1032         (rounddf2): Ditto.
1033         (rounddf2_fpr): Ditto.
1034         (roundsf2): Ditto.
1035         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
1036         (fix_trunc<mode>di2): Ditto.
1037         (fixuns_trunc<mode>si2): Ditto.
1038         (fixuns_trunc<mode>di2): Ditto.
1039         (fctiwz_<mode>): Ditto.
1040         (btrunc<mode>2): Ditto.
1041         (btrunc<mode>2_fpr): Ditto.
1042         (ceil<mode>2): Ditto.
1043         (ceil<mode>2_fpr): Ditto.
1044         (floor<mode>2): Ditto.
1045         (float<mode>2_fpr): Ditto.
1046         (round<mode>2): Ditto.
1047         (round<mode>2_fpr): Ditto.
1048         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
1049         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1050         (fix_truncdfsi2_internal): Ditto.
1051         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
1052         converted value on stack, loaded into GPR, and then stored into
1053         the final destination.
1054         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
1055         FCTIDZ.
1056         (lrint<mode>di2): New insn, provide the lrint builtin functions.
1057         (ftruncdf2): Delete, unused.
1058         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
1060         * config/rs6000/vsx.md (toplevel): Update copyright year.
1061         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
1062         (VSr3): Ditto.
1064 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
1065             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1067         * gengtype.c (output_type_enum): Test the right union member.
1069 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
1071         PR target/41484
1072         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
1073         operands for operand 1.
1074         (sse4_1_extendv4qiv4si2): Ditto.
1075         (sse4_1_extendv2qiv2di2): Ditto.
1076         (sse4_1_extendv4hiv4si2): Ditto.
1077         (sse4_1_extendv2hiv2di2): Ditto.
1078         (sse4_1_extendv2siv2di2): Ditto.
1079         (sse4_1_zero_extendv8qiv8hi2): Ditto.
1080         (sse4_1_zero_extendv4qiv4si2): Ditto.
1081         (sse4_1_zero_extendv2qiv2di2): Ditto.
1082         (sse4_1_zero_extendv4hiv4si2): Ditto.
1083         (sse4_1_zero_extendv2hiv2di2): Ditto.
1084         (sse4_1_zero_extendv2siv2di2): Ditto.
1085         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
1086         (*sse4_1_extendv4qiv4si2): Ditto.
1087         (*sse4_1_extendv2qiv2di2): Ditto.
1088         (*sse4_1_extendv4hiv4si2): Ditto.
1089         (*sse4_1_extendv2hiv2di2): Ditto.
1090         (*sse4_1_extendv2siv2di2): Ditto.
1091         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
1092         (*sse4_1_zero_extendv4qiv4si2): Ditto.
1093         (*sse4_1_zero_extendv2qiv2di2): Ditto.
1094         (*sse4_1_zero_extendv4hiv4si2): Ditto.
1095         (*sse4_1_zero_extendv2hiv2di2): Ditto.
1096         (*sse4_1_zero_extendv2siv2di2): Ditto.
1098 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1100         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
1101         (mips_function_arg): Delete.
1102         (mips_function_arg_boundary): Take a const_tree.
1103         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
1104         (mips_arg_info): Likewise.
1105         (mips_setup_incoming_varargs): Call mips_function_arg_advance
1106         instead of FUNCTION_ARG_ADVANCE.
1107         (mips_function_arg_advance): Adjust prototype.  Make static.
1108         (mips_function_arg): Likewise.
1109         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1110         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
1112 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
1114         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1115         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
1116         (function_arg): Delete.
1117         (function_arg_boundary): Take a const_tree.
1118         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
1119         (rs6000_spe_function_arg): Likewise.
1120         (rs6000_parm_start): Likewise.
1121         (rs6000_arg_size): Likewise.
1122         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
1123         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
1124         (rs6000_mixed_function_arg): Likewise.
1125         (function_arg): Rename to...
1126         (rs6000_function_arg): ...this.
1127         (function_arg_advance): Rename to...
1128         (rs6000_function_arg_advance_1): ...this
1129         (rs6000_function_arg_advance): New function.  Call it.
1130         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
1131         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
1132         (rs6000_function_value): Likewise.
1133         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1135 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1137         * config/arm/arm.md (enabled): Test the value of arch_enabled
1138         rather than just using it.
1140 2010-08-27  Olivier Hainque  <hainque@adacore.com>
1141             Eric Botcazou  <ebotcazou@adacore.com>
1143         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
1144         cover all the possible offsets from this base.
1145         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
1147 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
1149         PR tree-optimization/44485
1150         * calls.c (flags_from_decl_or_type): For const or pure
1151         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
1152         together with ECF_CONST resp. ECF_PURE.
1153         * builtins.c (expand_builtin): Use flags_from_decl_or_type
1154         instead of querying flags directly.
1155         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
1156         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
1158 2010-08-26  Richard Guenther  <rguenther@suse.de>
1160         PR tree-optimization/45255
1161         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
1162         and externals are also invariant.
1164 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1166         PR rtl-optimization/44858
1167         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
1168         newi2pat, make sure they don't affect newpat.
1170         PR rtl-optimization/45400
1171         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
1172         SUBREG_REG if both modes are of MODE_INT class.
1174 2010-08-25  Julian Brown  <julian@codesourcery.com>
1176         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
1177         * config/arm/arm.md (generic_sched): No for Cortex-A5.
1178         (generic_vfp): Likewise.
1179         (cortex-a5.md): Include.
1180         * config/arm/cortex-a5.md: New.
1182 2010-08-25  Richard Guenther  <rguenther@suse.de>
1184         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
1185         * gimple.c (gimple_get_alias_set): Remove special handling
1186         for pointers.
1188 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
1190         PR middle-end/45355
1191         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
1192         dead_or_set_p when computing i0_feeds_i2_n.
1194         * combine.c (find_split_point): Undo canonicalization of multiply-add
1195         to (minus x (mult)) when it seems likely that this will increase the
1196         chances of a split.
1198 2010-08-25  Richard Guenther  <rguenther@suse.de>
1200         PR lto/44562
1201         * lto-streamer.c (lto_record_common_node): Do not mess with
1202         TYPE_CANONICAL when not in lto.
1203         * gimple.c (gimple_register_type): Likewise.
1205 2010-08-25  Richard Guenther  <rguenther@suse.de>
1207         PR tree-optimization/45316
1208         * tree-ssa-pre.c (eliminate): Properly clean EH info.
1210 2010-08-25  Richard Guenther  <rguenther@suse.de>
1212         PR tree-optimization/45393
1213         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
1214         and clean EH info.  Avoid SSA update.
1215         (execute_cse_sincos): Cleanup the CFG if it has changed.
1217 2010-08-25  Richard Guenther  <rguenther@suse.de>
1219         PR middle-end/45379
1220         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
1221         TARGET_MEM_REF in alignment computation.
1223 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
1225         PR tree-optimization/45059
1226         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
1227         type conversions from newop{1,2}.  Assert t is a comparison and
1228         newop{1,2} after the stripping are gimple vals.
1230 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
1232         * config/arm/iterators.md (VU, SE, V_widen_l): New.
1233         (V_unpack, US): New.
1234         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
1235         (vec_unpack<US>_lo_<mode>): Likewise.
1236         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
1237         (neon_vec_unpack<US>_lo_<mode>): Likewise.
1238         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
1239         (vec_widen_<US>mult_hi_<mode>): Likewise.
1240         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
1241         (neon_vec_<US>mult_hi_<mode>"): Likewise.
1242         (neon_unpack<US>_<mode>): Widening move intermediate step for
1243         vectorizing without -mvectorize-with-neon-quad.
1244         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
1245         for vectorizing without -mvectorize-with-neon-quad.
1246         * config/arm/predicates.md (vect_par_constant_high): Check for
1247         high-half lanes of a vector.
1248         (vect_par_constant_low): Check for low-half lanes of a vector.
1250 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1252         * tree-if-conv.c (struct ifc_dr): New.
1253         (IFC_DR): New.
1254         (DR_WRITTEN_AT_LEAST_ONCE): New.
1255         (DR_RW_UNCONDITIONALLY): New.
1256         (memref_read_or_written_unconditionally): Use the cached values
1257         when possible.
1258         (write_memref_written_at_least_once): Same.
1259         (if_convertible_loop_p): Initialize and free DR->aux fields.
1261 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1263         * gimple.c (gimple_could_trap_p_1): Not static anymore.
1264         Pass an extra bool parameter include_mem.
1265         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
1266         (gimple_assign_rhs_could_trap_p): Same.
1267         * gimple.h (gimple_could_trap_p_1): Declared.
1268         * tree-data-ref.h (same_data_refs_base_objects): New.
1269         (same_data_refs): New.
1270         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
1271         (write_memrefs_written_at_least_once): New.
1272         (ifcvt_memrefs_wont_trap): New.
1273         (operations_could_trap): New.
1274         (ifcvt_could_trap_p): New.
1275         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
1276         Gets a vector of data refs.
1277         (if_convertible_stmt_p): Same.
1278         (if_convertible_loop_p_1): New.
1279         (if_convertible_loop_p): Call if_convertible_loop_p_1.
1281 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
1283         * common.opt (ftree-loop-if-convert-stores): New flag.
1284         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
1285         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
1286         the created statement before GSI.
1287         (if_convertible_phi_p): Allow virtual phi nodes when
1288         flag_loop_if_convert_stores is set.
1289         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
1290         Do not handle types that do not match is_gimple_reg_type.
1291         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
1292         when flag_loop_if_convert_stores is set, as LHS can contain
1293         memory refs.
1294         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
1295         to if_convertible_gimple_assign_stmt_p.
1296         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
1297         (replace_phi_with_cond_gimple_assign_stmt): Renamed
1298         predicate_scalar_phi.  Do not handle virtual phi nodes.
1299         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
1300         Call predicate_scalar_phi.
1301         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
1302         just after the labels for flag_loop_if_convert_stores, otherwise
1303         insert the predicate in the end of the BB.
1304         (predicate_mem_writes): New.
1305         (combine_blocks): Call predicate_all_scalar_phis.  When
1306         flag_loop_if_convert_stores is set, call predicate_mem_writes.
1307         (tree_if_conversion): Call mark_sym_for_renaming when
1308         flag_loop_if_convert_stores is set.
1309         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
1310         flag_loop_if_convert_stores is set.
1312 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
1314         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
1315         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
1316         (pa_function_value): Make static.
1317         (override_options): Rename to...
1318         (pa_option_override): ...this. Make static.
1319         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
1320         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
1321         TARGET_OPTION_OVERRIDE): Define.
1322         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
1323         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
1324         Remove.
1325         * config/pa/pa-protos.h (override_options): Remove.
1327 2010-08-24  Richard Guenther  <rguenther@suse.de>
1329         PR middle-end/45379
1330         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
1331         if addr->index is NULL or zero.
1332         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
1333         TARGET_MEM_REF more properly.
1334         (indirect_ref_may_alias_decl_p): Likewise.
1335         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
1336         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
1338 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
1340         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
1341         (m32c_override_options): Rename to...
1342         (m32c_option_override): ...this. Make static.
1343         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
1344         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
1345         Remove.
1346         * config/m32c/m32c-protos.h (m32c_override_options,
1347         m32c_function_value_regno_p): Remove.
1349 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1351         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
1352         Fix a typo in a previous commit.
1354 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
1356         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
1357         Pre-initialize innerloop_iters to one.
1359 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
1361         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
1362         existing static function global.
1364         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
1365         is changed to global.
1367         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
1368         may_be_nonaddressable_p on base, and don't collect this reference
1369         if the address of the base could not be taken.
1371 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
1373         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
1374         enable the compiler to autovectorize mathmetical functions for
1375         power7 using the Mathematical Acceleration Subsystem library.
1377         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
1378         handle which vector math library we have.
1379         (rs6000_override_options): Add -mveclibabi=mass support.
1380         (rs6000_builtin_vectorized_libmass): New function to handle auto
1381         vectorizing math functions that are in the MASS library.
1382         (rs6000_builtin_vectorized_function): Call it.
1384         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1385         -mveclibabi=mass.
1387 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1389         PR boehm-gc/34544
1390         * gthr-posix.h (__gthread_active_init): Delete.
1391         (__gthread_active_p): Do activity check here.
1392         Don't include errno.h on hppa-hpux.  Update comment.
1393         * gthr-posix95.h (__gthread_active_init): Delete.
1394         (__gthread_active_p): Do activity check here.
1395         Don't include errno.h on hppa-hpux.  Update comment.
1396         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
1397         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
1398         add -lpthread when -mt or -pthread is specified.
1399         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
1400         (LINK_GCC_C_SEQUENCE_SPEC): Define.
1401         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
1402         (stublib.c, pthread_default_stacksize_np-stub.o,
1403         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
1404         $(T)libgcc_stub.a): Add methods.
1405         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
1406         (stublib.c, pthread_default_stacksize_np-stub.o,
1407         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
1408         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1409         pthread_mutex_unlock): New stubs.
1411 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
1413         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
1414         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
1415         options.
1416         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
1417         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
1418         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
1419         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
1420         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
1421         "-l".
1422         * cppspec.c: Include opts.h.
1423         (lang_specific_driver): Use cl_decoded_option structures.
1424         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
1425         * doc/tm.texi: Regenerate.
1426         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
1427         (driver_handle_option): Allow driver options needing no special
1428         processing.
1429         (process_command): Decode options before call to
1430         lang_specific_driver.  Pass decoded options to
1431         lang_specific_driver.
1432         * gcc.h (lang_specific_driver): Update prototype.
1433         * gccspec.c: Include opts.h.
1434         (lang_specific_driver): Use cl_decoded_option structures.
1435         * opts-common.c (option_ok_for_language, generate_option,
1436         generate_option_input_file): New.
1437         (decode_cmdline_option): Use option_ok_for_language.
1438         (decode_cmdline_options_to_array): Use generate_option_input_file.
1439         (handle_generated_option): Use generate_option.
1440         * opts.h (generate_option, generate_option_input_file): Declare.
1442 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
1444         * config/mips/mips.c (mips_override_options): Rename to...
1445         (mips_option_override): ...this. Make static.
1446         (TARGET_OPTION_OVERRIDE): Define.
1447         (mips_in_small_data_p): Update comment.
1448         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
1449         (FIXED_REGISTERS): Update comment.
1450         * config/mips/mips-protos.h (mips_override_options): Remove.
1452 2010-08-21  Olivier Hainque  <hainque@adacore.com>
1454         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
1456 2010-08-21  Olivier Hainque  <hainque@adacore.com>
1458         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
1459         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
1461 2010-08-20  Jan Hubicka  <jh@suse.cz>
1463         * tree-pass.h (pass_ipa_cdtor_merge): New function.
1464         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
1465         heap allocated.
1466         (record_cdtor_fn): Move to ipa.c; do not test for
1467         have_ctors_dtors.
1468         (build_cdtor): Move to ipa.c; add code avoiding construction
1469         when target have ctors/dtors and there is only one ctor/dtor at given
1470         priority.
1471         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
1472         sort; reverse order of constructors.
1473         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
1474         (cgraph_finalize_function): Do not call record_cdtor_fn.
1475         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
1476         (cgraph_build_static_cdtor): Move to ipa.c.
1477         * ipa.c: Include target.h and tree-iterator.h.
1478         (cgraph_build_static_cdtor, static_ctors, static_dtors,
1479         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
1480         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
1481         pass_ipa_cdtor_merge): New.
1482         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
1483         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
1484         bounds access.
1486 2010-08-20  Jan Hubicka  <jh@suse.cz>
1488         PR c++/45307
1489         PR c++/17736
1490         * cgraph.h (cgraph_only_called_directly_p,
1491         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
1492         static cdtors.
1493         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
1494         are not needed.
1495         (cgraph_finalize_function): Static cdtors are reachable.
1496         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
1498 2010-08-20  Jan Hubicka  <jh@suse.cz>
1500         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
1501         flag_wpa.
1502         * lto-streamer-out.c (lto_output): Likewise.
1503         * passes.c (ipa_write_optimization_summaries): Initialize statement
1504         uids.
1506 2010-08-20  Olivier Hainque  <hainque@adacore.com>
1508         * tree.h (alias_diag_flags): New enum.
1509         (alias_pair): Add an 'emitted_diags' field.
1510         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
1511         (assemble_alias): Initialize emitted_diags of new pairs.
1513 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
1515         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1516         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1517         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1518         (STACK_CHECK_PROTECT): Define.
1519         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
1520         (output_probe_stack_range): Likewise.
1521         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
1522         builtin stack checking is enabled.
1523         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
1524         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1525         (probe_stack_range): New insn.
1527 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
1529         PR target/45336
1530         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
1531         short first.
1533         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
1534         char first.
1536 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1538         PR target/45336
1539         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
1540         to cover zero extension into 64-bit register.
1541         (*sse2_pextrw): Likewise.
1542         (*sse4_1_pextrd_zext): New insn.
1544 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
1546         revert r163410, partially revert r163267.
1547         * config/rs6000/darwin.h (LIB_SPEC): Remove.
1548         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
1549         Darwin versions.
1551 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1553         PR middle-end/44974
1554         * builtins.c (expand_builtin): Don't optimize away
1555         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
1557 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
1559         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
1560         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
1561         alternative 1 of operand 2.
1563 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1564             Paolo Bonzini  <bonzini@gnu.org>
1566         * simplify-rtx.c (simplify_unary_operation_1): Optimize
1567         (sign_extend (zero_extend (...)) and
1568         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
1570 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1572         PR rtl-optimization/45353
1573         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
1574         after bb_note is a BARRIER.
1576 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
1578         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
1579         linking libgcc.a.
1581 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
1582             Michael Matz  <matz@suse.de>
1584         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
1586 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
1588         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
1589         (ggc_mark_roots): ...here.
1591 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
1593         * vec.h (FOR_EACH_VEC_ELT): Define.
1594         * c-decl.c: Use it.
1595         * cfgloop.c: Likewise.
1596         * cfgloopmanip.c: Likewise.
1597         * cgraph.c: Likewise.
1598         * cgraphunit.c: Likewise.
1599         * combine.c: Likewise.
1600         * config/bfin/bfin.c: Likewise.
1601         * config/mips/mips.c: Likewise.
1602         * config/rs6000/rs6000.c: Likewise.
1603         * dbxout.c: Likewise.
1604         * df-scan.c: Likewise.
1605         * dominance.c: Likewise.
1606         * dse.c: Likewise.
1607         * dwarf2out.c: Likewise.
1608         * except.c: Likewise.
1609         * expr.c: Likewise.
1610         * function.c: Likewise.
1611         * gcse.c: Likewise.
1612         * genattr.c: Likewise.
1613         * ggc-common.c: Likewise.
1614         * gimplify.c: Likewise.
1615         * graphite-blocking.c: Likewise.
1616         * graphite-clast-to-gimple.c: Likewise.
1617         * graphite-dependences.c: Likewise.
1618         * graphite-interchange.c: Likewise.
1619         * graphite-poly.c: Likewise.
1620         * graphite-scop-detection.c: Likewise.
1621         * graphite-sese-to-poly.c: Likewise.
1622         * graphite.c: Likewise.
1623         * haifa-sched.c: Likewise.
1624         * ifcvt.c: Likewise.
1625         * implicit-zee.c: Likewise.
1626         * ipa-prop.c: Likewise.
1627         * ipa-struct-reorg.c: Likewise.
1628         * ipa.c: Likewise.
1629         * ira-build.c: Likewise.
1630         * ira-color.c: Likewise.
1631         * ira-emit.c: Likewise.
1632         * lambda-code.c: Likewise.
1633         * loop-invariant.c: Likewise.
1634         * loop-unroll.c: Likewise.
1635         * lower-subreg.c: Likewise.
1636         * lto-cgraph.c: Likewise.
1637         * lto-opts.c: Likewise.
1638         * lto-streamer-in.c: Likewise.
1639         * lto-streamer-out.c: Likewise.
1640         * lto-streamer.c: Likewise.
1641         * lto-symtab.c: Likewise.
1642         * matrix-reorg.c: Likewise.
1643         * opts.c: Likewise.
1644         * predict.c: Likewise.
1645         * print-tree.c: Likewise.
1646         * sdbout.c: Likewise.
1647         * sel-sched-dump.c: Likewise.
1648         * sel-sched-ir.c: Likewise.
1649         * sel-sched.c: Likewise.
1650         * sese.c: Likewise.
1651         * stor-layout.c: Likewise.
1652         * tree-cfg.c: Likewise.
1653         * tree-cfgcleanup.c: Likewise.
1654         * tree-chrec.c: Likewise.
1655         * tree-data-ref.c: Likewise.
1656         * tree-emutls.c: Likewise.
1657         * tree-inline.c: Likewise.
1658         * tree-into-ssa.c: Likewise.
1659         * tree-loop-distribution.c: Likewise.
1660         * tree-loop-linear.c: Likewise.
1661         * tree-mudflap.c: Likewise.
1662         * tree-outof-ssa.c: Likewise.
1663         * tree-parloops.c: Likewise.
1664         * tree-predcom.c: Likewise.
1665         * tree-pretty-print.c: Likewise.
1666         * tree-scalar-evolution.c: Likewise.
1667         * tree-ssa-live.c: Likewise.
1668         * tree-ssa-loop-im.c: Likewise.
1669         * tree-ssa-loop-ivcanon.c: Likewise.
1670         * tree-ssa-loop-ivopts.c: Likewise.
1671         * tree-ssa-loop-manip.c: Likewise.
1672         * tree-ssa-loop-niter.c: Likewise.
1673         * tree-ssa-loop-prefetch.c: Likewise.
1674         * tree-ssa-phiprop.c: Likewise.
1675         * tree-ssa-pre.c: Likewise.
1676         * tree-ssa-reassoc.c: Likewise.
1677         * tree-ssa-sccvn.c: Likewise.
1678         * tree-ssa-structalias.c: Likewise.
1679         * tree-ssa.c: Likewise.
1680         * tree-vect-data-refs.c: Likewise.
1681         * tree-vect-loop-manip.c: Likewise.
1682         * tree-vect-loop.c: Likewise.
1683         * tree-vect-patterns.c: Likewise.
1684         * tree-vect-slp.c: Likewise.
1685         * tree-vect-stmts.c: Likewise.
1686         * tree-vrp.c: Likewise.
1687         * tree.c: Likewise.
1688         * value-prof.c: Likewise.
1689         * var-tracking.c: Likewise.
1690         * varasm.c: Likewise.
1691         * vmsdbgout.c: Likewise.
1693 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
1694             Richard Guenther  <richard.guenther@gmail.com>
1696         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
1697         copy the src value and return a copy.
1698         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
1699         (C++ Volatiles): Adjust to describe C++ semantics only.
1701 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
1703         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
1704         be zero or nonzero.
1705         * doc/tm.texi: Regenerate.
1706         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
1707         * df-scan.c (df_get_exit_block_use_set), reginfo.c
1708         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
1709         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
1710         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
1711         to 1.
1713 2010-08-20  Olivier Hainque  <hainque@adacore.com>
1715         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
1716         an extra nop past a sibling call at the very end.
1718 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
1720         PR bootstrap/45350
1721         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
1722         a comment.
1724 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
1726         * target.def (function_arg, function_incoming_arg): Remove const
1727         qualifier on CUMULATIVE_ARGS parameter.
1728         * targhooks.h (default_function_arg, default_function_incoming_arg):
1729         Likewise.
1730         * targhooks.c (default_function_arg, default_function_incoming_arg):
1731         Likewise.
1732         * config/i386/i386.c (ix86_function_arg): Likewise.
1734 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
1736         PR target/45336
1737         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
1738         SIGN_EXTENDs or ZERO_EXTENDs.
1740 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
1742         PR target/42172
1743         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
1744         Take its cost into account if nonnull.
1745         (insn_a_feeds_b): New static function.
1746         (combine_instructions): Look for four-insn combinations.
1747         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
1748         them into account when computing all_adjacent and looking for other
1749         uses.
1750         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
1751         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
1752         (try_combine): New arg I0.  Handle four-insn combinations.
1753         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
1754         like ELIM_I1.
1756 2010-08-19  Jason Merrill  <jason@redhat.com>
1758         PR c++/45307
1759         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
1760         if ctor is empty.
1761         (gimplify_modify_expr_rhs): Adjust.
1763 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
1765         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
1766         bitmap_bit_p.
1767         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
1768         * dominance.c (iterate_fix_dominators): Likewise.
1769         * dse.c (set_usage_bits): Likewise.
1770         (set_position_unneeded, record_store): Likewise.
1771         * gimple-fold.c (get_maxval_strlen): Likewise.
1772         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
1773         * ipa-inline.c (update_caller_keys): Likewise.
1774         * ipa-split.c (verify_non_ssa_vars): Likewise.
1775         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
1776         (close_type_exposed_parameter, close_type_full_escape): Likewise.
1777         (close_addressof_down): Likewise.
1778         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
1779         (setup_allocno_left_conflicts_size): Likewise.
1780         (ira_reassign_conflict_allocnos): Likewise.
1781         (ira_reassign_pseudos): Likewise.
1782         * ira-emit.c (change_loop): Likewise.
1783         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
1784         * lto-streamer-out.c (write_symbol): Likewise.
1785         * predict.c (expr_expected_value_1): Likewise.
1786         * regstat.c (regstat_bb_compute_ri): Likewise.
1787         * sel-sched.c (create_block_for_bookkeeping): Likewise.
1788         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
1789         * stmt.c (expand_case): Likewise.
1790         * tree-eh.c (emit_eh_dispatch): Likewise.
1791         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
1792         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
1793         Likewise.
1794         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
1795         (rdg_build_components): Likewise.
1796         * tree-object-size.c (collect_object_sizes_for): Likewise.
1797         * tree-sra.c (convert_callers): Likewise.
1798         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
1799         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
1800         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
1802 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
1804         * config/i386/i386.md (*lea_1): Use P mode iterator.
1805         (lea add splitter): Also handle DImode operands.
1806         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
1807         predicate.  Do not use ix86_lea_for_add_ok.
1808         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
1809         (lea ashift splitter): Also handle DImode operands.
1810         (DImode lea ashift splitter): Remove splitter.
1812 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
1814         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
1815         ix86_binary_operator_ok.
1817 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
1819         PR rtl-optimization/44691
1820         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
1821         is not a register.
1823 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
1825         PR target/45070
1826         * config/arm/arm.c (arm_output_epilogue): Ensure that return
1827          value of size 1-3 is handled correctly.
1829 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
1831         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
1832         type for the conditional has wide enough range.
1834 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
1836         PR target/45327
1837         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
1838         ix86_binary_operator_ok.
1840 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
1842         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
1843         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
1844         code to output insn mnemonic.  Fix comment.
1845         (*addsi_1_zext): Add r-r-0 alternative 1.
1846         <TYPE_LEA>: Split insn to lea.
1847         <default>: Handle alternative 1.
1848         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
1849         multi-level if_then_else RTX to set "type" attribute.
1850         <default>: Handle alternative 2.
1851         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
1852         Use cond RTX instead of multi-level if_then_else RTX to set
1853         "type" attribute.
1854         <default>: Handle alternatives 2 and 4.
1855         (lea splitters): Update calls to ix86_lea_for_add_ok.
1857         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
1858         argument.
1859         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
1861 2010-08-18  Richard Guenther  <rguenther@suse.de>
1863         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
1864         use operand helpers.
1866 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
1868         PR middle-end/45292
1869         * optabs.c (expand_bool_compare_and_swap): Expand pending
1870         pops before trying the optab.
1872 2010-08-18  Yao Qi  <yao@codesourcery.com>
1874         PR target/45094
1875         * config/arm/arm.c (output_move_double): Fix typo generating
1876         instructions ('ldr'->'str').
1878 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
1880         PR rtl-optimization/42575
1881         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
1882         live ranges.
1884 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1886         * config/arm/arm-protos.h (arm_expand_sync): New.
1887         (arm_output_memory_barrier, arm_output_sync_insn): New.
1888         (arm_sync_loop_insns): New.
1889         * config/arm/arm.c (FL_ARCH7): New.
1890         (FL_FOR_ARCH7): Include FL_ARCH7.
1891         (arm_arch7): New.
1892         (arm_print_operand): Support %C markup.
1893         (arm_legitimize_sync_memory): New.
1894         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
1895         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
1896         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
1897         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
1898         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
1899         (arm_process_output_sync_insn, arm_output_sync_insn): New.
1900         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
1901         * config/arm/arm.h (struct arm_sync_generator): New.
1902         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
1903         (TARGET_HAVE_MEMORY_BARRIER): New.
1904         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
1905         * config/arm/arm.md: Include sync.md.
1906         (UNSPEC_MEMORY_BARRIER): New.
1907         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
1908         (VUNSPEC_SYNC_OP):New.
1909         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
1910         (sync_result, sync_memory, sync_required_value): New attributes.
1911         (sync_new_value, sync_t1, sync_t2): Likewise.
1912         (sync_release_barrier, sync_op): Likewise.
1913         (length): Add logic to length attribute defintion to call
1914         arm_sync_loop_insns when appropriate.
1915         * config/arm/sync.md: New file.
1917 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
1919         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
1920         ENABLE_TREE_CHECKING.
1921         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
1922         and GCC >= 4.3.
1924 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
1926         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
1927         or optimizing for size, always avoid lea if possible.
1929         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
1931 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
1933         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
1934         Dunmmy function with NULL return unless the target is
1935         OSX >= 10.6 (Darwin10).
1937 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
1939         * gcc.c (spec_function): Add remove-outfile.
1940         (remove_outfile_spec_function): New function.
1941         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
1942         * invoke.texi (replace-outfile): Document.
1944 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
1946         PR target/45296
1947         * reginfo.c (globalize_reg): Reject stack registers.
1949 2010-08-17  Richard Guenther  <rguenther@suse.de>
1951         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
1952         list of conditional equivalences.
1953         (free_all_edge_infos): Adjust.
1954         (record_equivalences_from_incoming_edge): Likewise.
1955         (record_cond): Likewise.
1956         (build_and_record_new_cond): Likewise.
1957         (record_conditions): Likewise.
1958         (dom_opt_leave_block): Likewise.
1960 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
1962         * doc/invoke.texi (ms-extension): Add documentation.
1964 2010-08-17  Richard Guenther  <rguenther@suse.de>
1966         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
1968 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
1970         PR c/40563
1971         * c-decl.c (diagnose_uninitialized_cst_member): New function.
1972         (finish_decl): Use it to issue a -Wc++-compat warning about
1973         uninitialized const field in struct or union.
1975         (finish_struct): Use strip_array_types.
1977 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
1979         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
1980         functions.
1981         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
1982         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
1983         call block_nreverse here.
1984         (blocks_nreverse): Rename decl temporary to block.
1986 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
1988         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
1989         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
1990         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
1991         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
1992         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
1993         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
1994         thumb2_iorsi3): Delete.
1995         (orsi_notsi_si): No longer a named pattern.
1996         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
1997         * config/arm/predicates.md (shift_amount_operand): New.
1998         (mult_operator): New.
1999         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
2000         attr enabled): New.
2001         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
2002         arch matches t2.
2003         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
2004         (not_shiftsi_compare0): Likewise, renamed from
2005         arm_notsi_shiftsi_compare0.
2006         (not_shiftsi_compare0_scratch): Likweise, renamed from
2007         arm_notsi_shiftsi_compare0_scratch.
2008         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
2009         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
2010         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
2011         so that the register alternative is disabled when the shift_operator
2012         is MULT.  Use "M" as the constraint for constants.
2013         (arith_shiftsi splitter): Enable for TARGET_32BIT.
2014         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
2015         constraint for constants.
2016         (arith_shiftsi_compare0_scratch): Likewise.
2017         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
2018         Handle Thumb2 alternative.
2020 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2022         * doc/options.texi (NoDriverArg): Document.
2023         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
2024         -MDX and -MMDX.
2025         * opt-functions.awk (switch_flags): Handle NoDriverArg.
2026         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
2027         marking for CL_NO_DRIVER_ARG options when in the driver.
2028         * opts.h (CL_NO_DRIVER_ARG): Define.
2029         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
2030         CL_COMMON): Update values.
2032 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
2034         * common.opt: Add driver options.
2035         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
2036         * doc/options.texi (Driver, RejectDriver): Document.
2037         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
2038         print_prog_name, print_multi_directory, print_sysroot,
2039         print_multi_os_directory, print_multi_lib,
2040         print_sysroot_headers_suffix, report_times, combine_flag,
2041         use_pipes, wrapper_string): Remove.
2042         (save_switch, driver_unknown_option_callback,
2043         driver_wrong_lang_callback, driver_post_handling_callback,
2044         driver_handle_option): New.
2045         (spec_lang, last_language_n_infiles): Make file-scope static
2046         instead of local to process_command.
2047         (process_command): Use decode_cmdline_options_to_array and
2048         read_cmdline_option for option processing.  Compute have_c in
2049         prescan of decoded options.
2050         * opt-functions.awk (switch_flags): Handle Driver and
2051         RejectDriver.
2052         (var_type, var_type_struct): Handle Separate options as generating
2053         const char * variables.
2054         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
2055         CL_TARGET to be passed by caller if required.
2056         (decode_cmdline_options_to_array): Update comment.
2057         * opts.c (complain_wrong_lang): Handle options only valid for the
2058         driver.
2059         (decode_options): Update call to decode_cmdline_options_to_array.
2060         (print_filtered_help): Ignore driver-only options.
2061         (print_specific_help): Ignore CL_DRIVER.
2062         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
2063         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
2064         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
2065         Update values.
2067 2010-08-16  Richard Guenther  <rguenther@suse.de>
2069         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2070         TARGET_MEM_REF a bit.
2071         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
2072         (create_mem_ref_raw): Always create TMR_OFFSET, store the
2073         alias pointer type via it.
2074         (copy_mem_ref_info): Adjust.
2075         (maybe_fold_tmr): Likewise.
2076         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
2077         (reference_alias_ptr_type): Likewise.
2078         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
2079         adjust documentation of TMR_OFFSET operand.
2080         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
2081         use the alias pointer type.
2082         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
2083         initialize mem attrs but the TMR itself.
2084         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
2085         similar to MEM_REF.
2086         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
2087         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
2088         (unshare_and_remove_ssa_names): Likewise.
2089         (copy_ref_info): Adjust.
2090         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
2091         TARGET_MEM_REF case.
2092         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
2093         at TMR_ORIGINAL.
2094         * tree.h (TMR_ORIGINAL): Remove.
2095         * gimple.c (get_base_address): For TARGET_MEM_REF with a
2096         symbol return that.
2097         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
2098         with a symbol.
2099         (get_addr_base_and_unit_offset): Likewise.
2100         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
2101         TARGET_MEM_REFs.
2102         (indirect_ref_may_alias_decl_p): Likewise.
2103         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
2105 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
2107         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
2108         with GCC version 4.6, the default setting (when not optimizing
2109         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
2110         been changed to -fomit-frame-pointer.
2112 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
2114         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
2115         Darwin10.  Do not link libgcc.a for Darwin >= 9.
2117 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
2119         * doc/invoke.texi (Warning Options): Fix terminology and markup
2120         in the description of how unknown warning options are handled.
2122 2010-08-15  Ira Rosen  <irar@il.ibm.com>
2124         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
2125         in basic blocks.
2126         (vect_supportable_dr_alignment): Check alignment for basic blocks.
2127         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
2128         data references.
2129         (vect_bb_vectorization_profitable_p): New function.
2130         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
2131         check if it's worthwhile to vectorize the basic block.
2133 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
2135         * reload.h (register_move_cost, memory_move_secondary_cost,
2136         secondary_reload_class): Adjust prototype.
2137         * rtl.h (reg_class_subset_p): Adjust prototype.
2138         * reload.c (secondary_reload_class): Change arguments type from
2139         enum reg_class to reg_class_t. Change result type to reg_class_t.
2140         * reginfo.c (register_move_cost, reg_class_subset_p): Change
2141         arguments type from enum reg_class to reg_class_t.
2142         (memory_move_secondary_cost): Change arguments type from
2143         enum reg_class to reg_class_t. Change type of saved_flags to
2144         reg_class_t.
2146         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
2147         Remove macros.
2148         (mips_cost): Remove.
2149         (struct mips_rtx_cost_data): Moved to mips.c.
2150         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
2151         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
2152         (mips_cost): Make static.
2153         (mips_canonicalize_move_class): Change argument type to reg_class_t.
2154         Change result type to reg_class_t.
2155         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
2156         type from enum reg_class to reg_class_t.
2157         (mips_register_move_cost): Make static. Change arguments
2158         type from enum reg_class to reg_class_t.
2159         (mips_memory_move_cost): New function.
2160         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2162 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
2164         PR rtl-optimization/43358
2165         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
2166         of a single hard register, using simplify_subreg_regno to decide
2167         what that register should be.
2169 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
2171         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
2172         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
2173         (loongson_pmull<V_suffix>): Rename to...
2174         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
2176 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
2178         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
2179         which support dwarf2.
2180         * config/i386/i386.c (override_options): Same.
2182 2010-08-13  Jie Zhang  <jie@codesourcery.com>
2184         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
2186 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
2188         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
2189         -MMD.
2191 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
2193         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
2194         up dot_prod pattern searching if a stmt is outside the loop.
2196 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
2197             Uros Bizjak  <ubizjak@gmail.com>
2199         * config.gcc: Handle --enable-frame-pointer.
2201         * configure.ac: Add --enable-frame-pointer.
2202         * configure: Regenerated.
2204         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
2205         (override_options): If not configured with --enable-frame-pointer,
2206         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
2207         optimizing for size), -fasynchronous-unwind-tables and
2208         -maccumulate-outgoing-args by default.
2210 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2212         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
2214         PR middle-end/45262
2215         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
2216         -a overflows.  Normalize the range.
2218 2010-08-12  Richard Guenther  <rguenther@suse.de>
2220         PR tree-optimization/45232
2221         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
2222         for types with undefined overflow.
2223         (reassociate_bb): Allow re-associating of bit and min/max
2224         operations for types with undefined overflow.
2225         * tree-ssa-forwprop.c (associate_plusminus): New function.
2226         (tree_ssa_forward_propagate_single_use_vars): Call it.
2228 2010-08-12  Richard Guenther  <rguenther@suse.de>
2230         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
2231         * tree-ssa-alias.c (get_ptr_info): Move ...
2232         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
2233         align and misalign fields conservatively.
2234         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
2235         derive alignment information.
2236         (evaluate_stmt): Derive alignment information from memory
2237         allocation functions.
2238         * tree.h (get_pointer_alignment): Make unsigned.
2239         * builtins.c (get_object_alignment): Use alignment information we
2240         have computed for pointers.
2241         (get_pointer_alignment): Likewise.  Make conservative, return
2242         and unsigned value.
2243         (expand_builtin_strlen): Adjust.
2244         (expand_builtin_memcmp): Likewise.
2245         (expand_builtin_strcmp): Likewise.
2246         (expand_builtin_strncmp): Likewise.
2247         (get_builtin_sync_mem): Use at least mode alignment.
2248         (fold_builtin_memset): Adjust.
2249         (fold_builtin_memory_op): Likewise.
2250         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
2251         information also dump pointer alignment knowledge.
2252         (dump_gimple_stmt): Likewise.
2254 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
2256         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
2257         (EMPTY_FIELD_BOUNDARY): Remove.
2258         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
2260 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
2262         PR debug/45259
2263         * caller-save.c (save_call_clobbered_regs): Only swap notes with
2264         DEBUG_INSNs if n_regs_saved.
2266 2010-08-12  Wei Guozhi  <carrot@google.com>
2268         PR target/44999
2269         * config/arm/arm.md (andsi3): Change to zero extension if possible.
2270         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
2272 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
2274         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
2276         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
2278 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2280         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
2281         the case removed in the previous patch, when the only phi argument
2282         is defined in the same loop as the phi node itself.  Handle it
2283         separately from the invariant case by both propagating it outside
2284         the region and replacing the phi node with an assign.
2286 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2288         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
2289         constant phi nodes with one argument are is_gimple_min_invariant
2290         and SSA_NAME_IS_DEFAULT_DEF.
2292 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2294         * graphite-cloog-util.c (oppose_constraint):
2295         Extend loop counter's value range (CLOOG_ORG).
2296         (cloog_matrix_to_ppl_constraint): Same.
2297         (new_Constraint_System_from_Cloog_matrix): Same.
2298         * graphite-cloog-compat.h (matrix_num_type): New.
2300 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2302         * graphite.c (graphite_initialize): Do not initialize
2303         CLooG and initialize the Parma Polyhedra Library
2304         manually when using CLOOG_ORG.
2305         (graphite_finalize): Do not finalize CLooG and finalize
2306         the Parma Polyhedra Library manually when using CLOOG_ORG.
2307         * graphite-cloog-compat.h (cloog_initialize): Hide function
2308         when using CLOOG_ORG.
2309         (cloog_finalize): Same.
2311 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2313         * graphite-clast-to-gimple.c (free_scattering): Change
2314         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
2315         (CLOOG_ORG).
2316         (build_cloog_prog): Same.
2317         * graphite-cloog-compat.h (cloog_domain): Removed.
2318         (cloog_scattering): New.
2319         (cloog_set_domain): Removed.
2320         (cloog_set_scattering): New.
2321         (cloog_next_domain): Removed.
2322         (cloog_next_scattering): New.
2323         (cloog_set_next_domain): Removed.
2324         (cloog_set_next_scattering): New.
2325         (CloogScatteringList): New.
2326         (CloogScattering): New.
2327         (cloog_scattering_free): New.
2328         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
2329         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
2330         New.
2332 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2334         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
2335         CloogState.
2336         (set_cloog_options): Same.
2337         (print_clast_stmt): Same.
2338         (scop_to_clast): Same.
2339         (print_generated_program): Same.
2340         (gloog): Same.
2341         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
2342         (scop_to_clast): Extend with CloogState.
2343         * graphite-cloog-util.c: Include graphite-cloog-compat.h
2344         (new_Cloog_Domain_from_ppl_Polyhedron):
2345         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
2346         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
2347         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2348         * graphite-cloog-util.h (build_cloog_prog): Same.
2349         * graphite-cloog-copat.h (build_cloog_prog): New.
2350         (CloogState): New.
2351         (cloog_state_malloc): New.
2352         (cloog_state_free): New.
2353         (cloog_loop_malloc): New.
2354         (cloog_options_malloc): New.
2355         (cloog_statement_alloc): New.
2356         (cloog_domain_from_cloog_matrix): New.
2357         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2358         (new_Cloog_Domain_from_ppl_Polyhedron): New.
2360 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2362         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
2363         type of NAME now depends on used CLooG version.
2364         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
2365         (gcc_type_for_clast_expr): Same.
2366         (print_clast_stmt): Replace pprint with clast_pprint.
2367         * graphite-cloog-compat.h: Provide compatibility macros for
2368         CLooG Legacy.
2369         (clast_name_p): New.
2370         (clast_expr_term): New.
2371         (clast_expr_red): New.
2372         (clast_expr_bin): New.
2373         (clast_pprint): New.
2375 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2377         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
2378         compatible to newer CLooG releases (CLOOG_ORG).
2379         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
2380         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
2381         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
2382         (build_cloog_prog) : New.
2383         (cloog_program_extract_scalars): New.
2384         (cloog_program_scatter): New.
2386 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2388         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
2389         conditionally (CLOOG_ORG).
2390         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
2391         (cloog_statement_usr): New.
2392         (cloog_domain): Same.
2393         (cloog_set_domain): Same.
2394         (cloog_next_domain): Same.
2395         (cloog_set_next_domain): Same.
2396         (cloog_program_nb_scattdims): Same.
2397         (cloog_program_set_nb_scattdims): Same.
2398         (cloog_program_names): Same.
2399         (cloog_program_set_names): Same.
2400         (cloog_program_set_context): Same.
2401         (cloog_program_set_loop): Same.
2402         (cloog_program_blocklist): Same.
2403         (cloog_program_set_blocklist): Same.
2404         (cloog_program_scaldims): Same.
2405         (cloog_program_set_scaldims): Same.
2406         (cloog_names_nb_parameters): Same.
2407         (cloog_names_set_nb_parameters): Same.
2408         (cloog_names_parameters): Same.
2409         (cloog_names_set_parameters): Same.
2410         (cloog_names_set_nb_iterators): Same.
2411         (cloog_names_set_iterators): Same.
2412         (cloog_names_set_nb_scattering): Same.
2413         (cloog_names_set_scattering): Same.
2414         (cloog_statement_set_usr): Same.
2415         (cloog_loop_set_next): Same.
2416         (cloog_loop_set_domain): Same.
2417         (cloog_loop_set_block): Same.
2418         (cloog_block_list_next): Same.
2419         (cloog_block_list_set_next):
2420         (cloog_block_list_set_block): Same.
2422 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2424         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
2425         a bool.
2426         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
2427         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
2428         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
2429         when something has been changed.
2430         (rewrite_commutative_reductions_out_of_ssa): Same.
2432 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2434         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
2435         handle the case when def is in the sese region.
2436         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
2437         for invariant expressions.
2438         (rewrite_cross_bb_phi_deps): Removed.
2439         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
2440         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
2441         rewrite_cross_bb_phi_deps.
2443 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2445         * graphite-sese-to-poly.c
2446         (rewrite_commutative_reductions_out_of_ssa_loop): Call
2447         scev_analyzable_p only on is_gimple_reg
2449 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2451         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
2452         (rewrite_close_phi_out_of_ssa): Propagate constant values or
2453         parametric expressions outside the scop region.
2454         (rewrite_cross_bb_scalar_deps): Same.
2455         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
2457 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2459         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
2460         SSA_NAME_DEF_STMT only on SSA_NAMEs.
2462 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2464         * tree-scalar-evolution.c (instantiate_scev_name): Do not
2465         instantiate default definitions.
2467 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
2468             Sebastian Pop  <sebastian.pop@amd.com>
2470         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
2471         (loop_exits_from_bb_p): New.
2472         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
2473         (loop_exits_from_bb_p): Declared.
2474         * graphite-scop-detection.c (scopdet_basic_block_info): Call
2475         loop_exits_to_bb_p.
2477 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2479         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
2480         extra parameter for the region.  Call scev_analyzable_p.
2481         (rewrite_reductions_out_of_ssa): Update call to
2482         rewrite_close_phi_out_of_ssa.
2483         (rewrite_cross_bb_phi_deps): Same.
2484         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
2485         parameter for the region.  Call scev_analyzable_p.
2486         (rewrite_commutative_reductions_out_of_ssa): Update call to
2487         rewrite_commutative_reductions_out_of_ssa_loop.
2489 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2491         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
2493 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2495         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
2496         SSA scalar phi nodes that can be scev_analyzable_p.
2498 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2500         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
2501         handle SSA_NAME_IS_DEFAULT_DEF.
2503 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2505         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
2507 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2509         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
2510         case non close-phi nodes with one argument.
2512 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2514         * sese.h (scev_analyzable_p): Scevs could be expressions without
2515         chrecs and still be scev_analyzable_p.
2517 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2519         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2521 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2523         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
2524         * cfgloop.h (struct loop): Remove single_iv field.
2525         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
2526         (scop_canonicalize_loops): Removed.
2527         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
2528         over all the loop phi nodes in loop->header.
2529         (build_poly_scop): Remove use of scop_canonicalize_loops.
2531 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2533         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
2534         handle GIMPLE_CALL.
2536 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2538         * tree-chrec.c (chrec_apply): Should only apply to the specified
2539         variable.  Also handle multivariate chains of recurrences that
2540         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
2542 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2544         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
2545         (debug_clast_name_indexes_1): Removed.
2546         (debug_clast_name_indexes): Removed.
2547         (pbb_to_depth_to_oldiv): Removed.
2548         (build_iv_mapping): Replace the use of rename_map with iv_map.
2549         (translate_clast_user): Remove uses of rename_map.  Allocate and
2550         free iv_map.
2551         (translate_clast_for_loop): Remove uses of rename_map.
2552         (translate_clast_for): Same.
2553         (translate_clast_guard): Same.
2554         (translate_clast): Same.
2555         (gloog): Same.
2556         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
2557         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
2558         * sese.c (set_rename): Now static.
2559         (rename_variables_in_stmt): Removed.
2560         (rename_uses): New.
2561         (is_parameter): Removed.
2562         (is_iv): Removed.
2563         (expand_scalar_variables_call): Removed.
2564         (expand_scalar_variables_ssa_name): Removed.
2565         (expand_scalar_variables_expr): Removed.
2566         (expand_scalar_variables_stmt): Removed.
2567         (expand_scalar_variables): Removed.
2568         (rename_variables): Removed.
2569         (remove_condition): Removed.
2570         (get_true_edge_from_guard_bb): Removed.
2571         (get_false_edge_from_guard_bb): Removed.
2572         (struct igp): Removed.
2573         (default_before_guard): Removed.
2574         (convert_for_phi_arg): Removed.
2575         (add_guard_exit_phis): Removed.
2576         (insert_guard_phis): Removed.
2577         (graphite_copy_stmts_from_block): Now also uses iv_map and a
2578         region.  Do not copy conditions.  Do not copy induction variables.
2579         Call rename_uses.
2580         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
2581         the translated statement.  Use the iv_map for the induction
2582         variable renaming.
2583         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2584         (set_rename): Removed declaration.
2585         (scev_analyzable_p): ...here.
2586         * tree-chrec.c (chrec_apply_map): New.
2587         * tree-chrec.h (chrec_apply_map): Declared.
2589 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2591         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
2592         insert_loop_close_phis.
2593         * sese.c (name_defined_in_loop_p): Removed.
2594         (expr_defined_in_loop_p): Removed.
2595         (alive_after_loop): Removed.
2596         (close_phi_not_yet_inserted_p): Removed.
2597         (struct alep): Removed.
2598         (add_loop_exit_phis): Removed.
2599         (insert_loop_close_phis): Removed.
2601 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2603         * graphite-cloog-util.c
2604         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
2605         * graphite-poly.c
2606         (psct_scattering_dim_for_loop_depth): Same.
2608 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2610         * graphite-cloog-util.h: Added cloog.h.
2611         * graphite-blocking.c: Removed cloog.h.
2612         * graphite-dependences.c: Same.
2613         * graphite-interchange.c: Same.
2614         * graphite-poly.c: Same.
2615         * graphite-ppl.c: Same.
2616         * graphite-scop-detection.c: Same.
2617         * graphite-sese-to-poly.c:
2618         Removed cloog.h.
2619         Removed graphite-clast-to-gimple.h.
2620         (check_poly_representation): Removed (unused).
2621         * graphite-sese-to-poly.h
2622         (check_poly_representation): Removed (unused).
2624 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2626         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
2627         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
2628         (graphite-cloog-util.o): New.
2629         (graphite-ppl.o): Added graphite-cloog-util.h.
2630         * graphite-clast-to-gimple.c:
2631         Added graphite-cloog-util.h to include statements.
2632         * graphite-cloog-util.c: New.
2633         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
2634         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2635         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2636         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2637         (insert_constraint_into_matrix): Same.
2638         (ppl_Constrain_System_number_of_constraints): Same.
2639         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
2640         (oppose_constraint): Same.
2641         (cloog_matrix_to_ppl_constraint): Same.
2642         (new_Constraint_System_from_Cloog_Matrix): Same.
2643         * graphite-cloog-util.h: New.
2644         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
2645         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2646         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2647         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2648         (insert_constraint_into_matrix): Same.
2649         * graphite-ppl.c:
2650         Added graphite-cloog-util.h to include statements.
2651         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
2652         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2653         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2654         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2655         (insert_constraint_into_matrix): Same.
2656         (ppl_Constrain_System_number_of_constraints): Same.
2657         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
2658         (oppose_constraint): Same.
2659         (cloog_matrix_to_ppl_constraint): Same.
2660         (new_Constraint_System_from_Cloog_Matrix): Same.
2661         * graphite-ppl.h:
2662         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
2663         graphite-cloog-util.h.
2664         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
2665         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
2666         (new_C_Polyhedron_from_Cloog_Matrix): Same.
2667         (insert_constraint_into_matrix): Same.
2669 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
2671         * graphite-clast-to-gimple.c
2672         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
2673         (precision_for_interval): Same.
2674         (gcc_type_for_interval): Same.
2675         (compute_type_for_level): Same.
2676         * graphite-interchange.c
2677         (lst_interchange_profitable_p): Same.
2678         * graphite-poly.c
2679         (psct_scattering_dim_for_loop_depth): Same.
2680         * graphite-ppl.c
2681         (ppl_max_for_le_pointset): Same.
2682         (ppl_min_for_le_pointset): Same.
2684 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2686         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
2687         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
2689 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2691         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
2692         rewrite_close_phi_out_of_ssa.
2694 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2696         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
2698 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2700         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
2701         rename_map.
2702         * sese.c (debug_rename_map): Same.
2703         (get_rename): Same.
2704         (set_rename): Same.
2705         (rename_variables_in_stmt): Same.
2706         (expand_scalar_variables_call): Same.
2707         (expand_scalar_variables_ssa_name): Same.
2708         (expand_scalar_variables_expr): Same.
2709         (expand_scalar_variables_stmt): Same.
2710         (expand_scalar_variables): Same.
2711         (rename_variables): Same.
2712         (graphite_copy_stmts_from_block): Same.
2713         (copy_bb_and_scalar_dependences): Same.
2715 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2717         * graphite-clast-to-gimple.c (copy_renames): Removed.
2718         (translate_clast_for): Do not call copy_renames.
2719         (translate_clast_guard): Same.
2721 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2723         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
2724         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
2725         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
2726         before rewrite_cross_bb_scalar_deps.
2728 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2730         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
2731         Early return in when flag_associative_math is not set.
2733 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2735         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
2736         of SSA copies on edges except for loop->latch.
2738 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2740         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
2741         Split out of rewrite_reductions_out_of_ssa.
2742         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
2743         Declared.
2744         * graphite.c (graphite_transform_loops): Call it.
2746 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2748         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
2750 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
2752         * dbgcnt.def (graphite_scop): New counter.
2753         * graphite.c: Include dbgcnt.h.
2754         (graphite_transform_loops): Use new counter to limit transformations.
2755         * Makefile.in (graphite.o): Depend on DBGCNT_H.
2757 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2759         * passes.c (init_optimization_passes): Add pass_graphite.
2760         Schedule a pass_copy_prop before pass_graphite_transforms.
2761         * timevar.def (TV_GRAPHITE): Declared.
2762         * tree-pass.h (pass_graphite): Declared.
2763         * tree-ssa-loop.c (pass_graphite): New.
2765 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2767         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
2768         Remove calls to rename_nb_iterations and rename_sese_parameters.
2769         * graphite-clast-to-gimple.h (gloog): Update declaration.
2770         * graphite.c (graphite_transform_loops): Update call to gloog.
2771         * sese.c (rename_variables_in_expr): Removed.
2772         (rename_nb_iterations): Removed.
2773         (rename_sese_parameters): Removed.
2774         * sese.h (rename_nb_iterations): Removed.
2775         (rename_sese_parameters): Removed.
2777 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2779         * graphite-clast-to-gimple.c (gloog): Remove call to
2780         sese_adjust_liveout_phis.
2781         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
2782         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
2783         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
2784         rewrite_phi_out_of_ssa.
2785         * sese.c (get_vdef_before_sese): Removed.
2786         (sese_adjust_vphi): Removed.
2787         (sese_adjust_liveout_phis): Removed.
2788         * sese.h (sese_adjust_liveout_phis): Removed.
2790 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2792         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
2793         argument for the place after which to insert the out of SSA copy.
2794         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
2795         (rewrite_phi_out_of_ssa): Same.
2796         (rewrite_cross_bb_scalar_deps): Same.
2797         (insert_copyout): Removed.
2798         (insert_copyin): Removed.
2799         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
2800         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
2801         insert_copyin.
2803 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2805         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
2806         (rewrite_reductions_out_of_ssa): Same.
2807         (rewrite_commutative_reductions_out_of_ssa): Same.
2808         (build_poly_scop): Do not call these functions.
2809         * graphite-sese-to-poly.h (build_poly_scop): Declared.
2810         (rewrite_reductions_out_of_ssa): Declared.
2811         (rewrite_commutative_reductions_out_of_ssa): Declared.
2812         * graphite.c (graphite_transform_loops): Call on every scop
2813         rewrite_commutative_reductions_out_of_ssa before calling
2814         rewrite_reductions_out_of_ssa and build_scop_bbs.
2816 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2818         * graphite-dependences.c (dot_deps): Make system call to dotty run
2819         in background.
2820         (dot_deps_stmt): Same.
2821         * graphite-poly.c (dot_lst): Same.
2823 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
2825         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
2826         phi_arg_in_outermost_loop.
2827         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
2828         (remove_invariant_phi): Same.
2830 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
2832         * target.def (output_addr_const_extra): New hook.
2833         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
2834         * doc/tm.texi: Regenerate.
2835         * targhooks.c (default_asm_output_addr_const_extra): New function.
2836         * targhooks.h (default_asm_output_addr_const_extra): Declare.
2837         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
2838         target hook.
2840         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2841         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
2842         * config/i386/i386.h (output_addr_const_extra): Rename to...
2843         (i386_asm_output_addr_const_extra): ...this. Make static.
2844         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2846 2010-08-11  Richard Henderson  <rth@redhat.com>
2848         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
2850 2010-08-11  Nick Clifton  <nickc@redhat.com>
2852         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
2853         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
2854         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
2855         stormy16-lib2-cmpsi.c.
2857         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
2858         -O2.
2860 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
2862         * opts.h (struct cl_option_handler_func): Make handler take
2863         cl_decoded_option structure as parameter, not individual elements.
2864         (struct cl_option_handlers): Make callbacks take cl_decoded_option
2865         structure as parameter, not individual elements.
2866         (handle_option): Take cl_decoded_option structure as parameter,
2867         not individual elements.
2868         (handle_generated_option): Declare.
2869         * opts-common.c (handle_option): Take cl_decoded_option structure
2870         as parameter, not individual elements.  Update calls to callback
2871         and handler functions.
2872         (handle_generated_option): New.
2873         (read_cmdline_option): Update calls to callback functions and
2874         handle_option.
2875         * opts.c (common_handle_option, complain_wrong_lang,
2876         unknown_option_callback, post_handling_callback,
2877         lang_handle_option, target_handle_option): Take cl_decoded_option
2878         structure as parameter, not individual elements.
2879         (lang_handle_option, target_handle_option, common_handle_option):
2880         Assert option has at most one argument.
2881         (enable_warning_as_error): Call handle_generated_option instead of
2882         handle_option.  Do not pass -Werror argument as argument of
2883         generated option.
2885 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2887         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
2888         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
2889         (SUBWORD_BOOL_CAS): Likewise.
2890         (SUBWORD_SYNC_OP): Likewise.
2891         (SUBWORD_TEST_AND_SET): Likewise.
2892         (FETCH_AND_OP_WORD): Parenthesise INF_OP
2893         (SUBWORD_SYNC_OP): Likewise.
2894         (OP_AND_FETCH_WORD): Likewise.
2896 2010-08-10  Xinliang David Li  <davidxl@google.com>
2898         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
2899         compute max/min offset in address.
2901 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
2903         * ira-live.c: Include sbitmap.h.
2904         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
2905         Compress live ranges even more.
2907 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2909         * coverage.c (ctr_labels): Delete.
2911 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
2913         PR bootstrap/45177
2914         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
2915         test here from arm_gen_load_multiple_1.
2916         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
2917         multiple_operation_profitable_p.
2919 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2921         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
2922         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
2924 2010-08-10  Richard Henderson  <rth@redhat.com>
2926         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
2927         after saving registers.  Assert that SSE registers are only saved
2928         with a sufficiently aligned frame.
2929         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
2930         remove stack_realign_fp handling.
2931         (ix86_expand_prologue): Save int registers before stack_realign_fp,
2932         and do not mark the stack alignment as frame related.
2933         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
2935         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
2936         saves when re-aligning the stack.
2938 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2940         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
2941         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
2942         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
2944 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2946         * dwarf2out.c (struct die_struct): Move die_tag to the end.
2948 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
2950         * config/arm/iterators.md: New file.
2951         * config/arm/arm.md: Include iterators.md.
2952         (QHSI): Move to new file.
2953         (LTUGEU, cnb, optab, ior_xor): Likewise.
2954         * config/arm/iwmmxt.md (VMMX): Move to new file.
2955         (VSHFT, MMX_char): Likewise.
2956         * config/arm/neon.md (VD): Move to new file.
2957         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
2958         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
2959         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
2960         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
2961         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
2962         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
2963         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
2964         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
2965         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
2966         (Is_d_reg, V_mode_nunits): Likewise.
2967         * config/arm/vec-common.md (VALL): Move to new file.
2968         (VALLW, VINT, VINTW): Likewise.
2970 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
2972         PR middle-end/45182
2973         * combine.c (make_compound_operation): Don't try to convert
2974         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
2976 2010-08-10  Richard Guenther  <rguenther@suse.de>
2978         * tree.h (get_object_alignment): Adjust prototype.
2979         * builtins.c (get_object_alignment): Return unsigned int,
2980         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
2981         and TARGET_MEM_REF properly.
2982         (get_pointer_alignment): Adjust.
2983         * emit-rtl.c (get_mem_align_offset): Adjust comment.
2984         (set_mem_attributes_minus_bitpos): Adjust.
2985         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
2987 2010-08-10  Richard Guenther  <rguenther@suse.de>
2989         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
2990         (copy_prop_visit_assignment): Simplify.
2991         (copy_prop_visit_stmt): Also visit assignments from
2992         constants.
2993         (copy_prop_visit_phi_node): Use operand_equal_p.
2995 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2997         * ipa-split.c (find_split_points): Free stack.
2999 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3001         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
3002         * tree.c (tree_node_kind): Delete corresponding entries.
3004 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3006         * alias.c (may_alias_p): Remove unused ret.
3008 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
3010         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
3011         alias_sets_conflict_p.
3012         (walk_mems_1): Moved from alias.c.
3013         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
3014         in alias.c.
3015         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
3016         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
3017         * alias.c (walk_mems_2): Moved to ddg.c.
3018         (walk_mems_1): Ditto.
3019         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
3020         to ddg.c.
3021         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
3022         disambiguation.
3023         *(may_alias_p): New function to check whether two memory expression
3024         may alias or not. Currently used in buidling inter-iteration memory
3025         dependence.
3026         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
3027         (insn_alias_sets_conflict_p): Removed
3028         *rtl.h (may_alias_p): New function prototype.
3030 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3032         * tree.c (nreverse): Assert that we don't have a BLOCK.
3034 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
3036         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
3037         * config/arm/arm.c (arm_get_pcs_model): Likewise.
3038         * config/avr/avr.c (init_cumulative_args): Likewise.
3039         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3040         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3041         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
3042         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3043         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3044         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3045         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
3046         * dwarf2out.c (gen_subprogram_die): Likewise.
3047         * function.c (allocate_struct_function): Likewise.
3048         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
3049         (deserves_ellipsis): Delete.
3051 2010-08-09  Richard Guenther  <rguenther@suse.de>
3053         * tree-ssa-copy.c (cached_last_copy_of): Remove.
3054         (valueize_val): New function.
3055         (get_last_copy_of): Remove.
3056         (set_copy_of_val): Simplify.
3057         (dump_copy_of): Likewise.
3058         (copy_prop_visit_cond_stmt): Use valueize_val.
3059         (copy_prop_visit_phi_node): Properly handle unvisited names.
3060         Drop code managing copy-of chains.
3061         (init_copy_prop): Adjust.
3062         (fini_copy_prop): Likewise.
3063         (execute_copy_prop): Remove obsolete comment.
3065 2010-08-09  Richard Guenther  <rguenther@suse.de>
3067         PR middle-end/44632
3068         * function.c (gimplify_parameters): Do not clear addressable
3069         bit of the original parameter.
3071 2010-08-09  Richard Guenther  <rguenther@suse.de>
3073         PR middle-end/45212
3074         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
3075         alignment from MEM_REF offset only if we took it from the
3076         base object.
3078 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
3080         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
3082 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3084         * c-tree.h (build_arg_info): Declare.
3085         * c-decl.c (build_arg_info): Define.
3086         (get_parm_info): Call it.  Delete initialization code.
3087         * c-parser.c (c_parser_parms_declarator): Likewise.
3088         (c_parser_parms_list_declaractor): Likewise.
3090 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3092         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
3093         (struct c_arg_info): Change type of tags field.
3094         * c-decl.c (grokdeclarator): Update for changed type of tags field.
3095         (get_parm_info): Likewise.
3096         (store_parm_decls_newstyle): Likewise.
3098 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
3100         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
3101         (branch_island_list): Delete.
3102         (branch_islands): Declare.
3103         (add_compiler_branch_island): Adjust for branch_islands instead of
3104         branch_island_list.
3105         (macho_branch_islands): Likewise.
3106         (no_previous_def): Likewise.
3107         (get_prev_label): Likewise.
3109 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3111         PR boehm-gc/34544
3112         * gthr-posix.h (__gthread_start): Delete.
3113         (__gthread_active_init): Use pthread_default_stacksize_np instead of
3114         pthread_create to determine if hpux pthreads are active.
3115         * gthr-posix95.h (__gthread_start): Delete.
3116         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
3118 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
3120         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
3121         _WIN64 not expanded.
3123 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
3124             H.J. Lu  <hongjiu.lu@intel.com>
3126         PR target/45213
3127         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
3128         to output 32bit SFmode immediate as 8 byte sign extended value.
3130 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3132         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
3133         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
3134         (SUBWORD_BOOL_CAS): Likewise.
3135         (SUBWORD_SYNC_OP): Likewise.
3136         (SUBWORD_TEST_AND_SET): Likewise.
3137         (FETCH_AND_OP_WORD): Parenthesise INF_OP
3138         (SUBWORD_SYNC_OP): Likewise.
3139         (OP_AND_FETCH_WORD): Likewise.
3141 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3143         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
3144         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
3145         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
3146         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
3147         generic part.
3148         (cortex_a9_sched_adjust_cost): New function.
3149         (xscale_sched_adjust_cost): New function.
3150         * config/arm/arm-protos.h (struct tune_params): New field
3151         sched_adjust_cost.
3152         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
3154 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
3156         PR target/44942
3157         * config/sparc/sparc.c (function_arg_advance): Always take into account
3158         the padding, if any.
3160 2010-08-06  Richard Guenther  <rguenther@suse.de>
3162         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
3163         (dump_lattice_value): Dump it.
3164         (get_default_value): Adjust.
3165         (get_constant_value): Likewise.
3166         (set_value_varying): Likewise.
3167         (set_lattice_value): Make sure to not go up the lattice
3168         with bitwise constant values.
3169         (get_value_for_expr): Handle ADDR_EXPRs.
3170         (value_to_double_int): New function.
3171         (get_value_from_alignment): Likewise.
3172         (do_dbg_cnt): Adjust.
3173         (ccp_lattice_meet): Handle partially constant values.
3174         (bit_value_unop_1): New function.
3175         (bit_value_binop_1): Likewise.
3176         (bit_value_unop): Likewise.
3177         (bit_value_binop): Likewise.
3178         (evaluate_stmt): Track partially constant values if
3179         flag_tree_bit_ccp is set.
3180         (ccp_fold_stmt): Dump if we folded a predicate.
3181         (ccp_visit_stmt): Adjust.
3182         * common.opt (ftree-bit-ccp): New flag.
3183         * doc/invoke.texi (ftree-bit-ccp): Document.
3184         * opts.c (decode_options): Enable bit-CCP at -O1.
3186 2010-08-06  Alan Modra  <amodra@gmail.com>
3188         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
3189         and -mrelocatable-lib description.
3191 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
3193         From Martin Thuresson  <martint@google.com>
3194         * postreload.c (reload_cse_simplify_operands): Use
3195         SET_REGNO_RAW instead of SET_REGNO.
3196         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
3197         SET_REGNO.
3198         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
3199         instead of SET_REGNO.
3200         * rtl.h (SET_REGNO_RAW): New macro.
3202 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
3204         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
3205         computations.  Fix formatting issues.
3206         (num_sign_bit_copies1): Likewise.
3207         (canonicalize_condition): Likewise.
3209 2010-08-05  Richard Henderson  <rth@redhat.com>
3211         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
3212         (floor_log2): Use clz_hwi.
3213         (exact_log2): Use ctz_hwi.
3214         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
3215         * builtins.c (fold_builtin_bitop): Use them.
3216         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3217         * combine.c (get_pos_from_mask): Use ctz_hwi.
3218         * double-int.c (double_int_ctz): Likewise.
3219         * explow.c (force_reg): Likewise.
3220         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
3222 2010-08-05  Richard Henderson  <rth@redhat.com>
3224         PR target/45189
3225         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
3226         the alignment constant is properly sign-extended.
3228 2010-08-05  Richard Guenther  <rguenther@suse.de>
3230         * expr.c (store_expr): Use emit_block_move only if both
3231         source and target are MEMs.  Use store_bit_field if only
3232         the target is a MEM.
3234 2010-08-05  Richard Henderson  <rth@redhat.com>
3236         PR debug/45188
3237         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
3238         (INCOMING_RETURN_ADDR_RTX): Likewise.
3239         (dwarf2out_do_frame): Remove conditional compilation.
3240         (dwarf2out_frame_init): Likewise.
3242 2010-08-05  Nicolas Setton  <setton@adacore.com>
3244         * gcov.c (flag_display_progress): New static variable.
3245         (main): Display progress info on standard output if requested.
3246         (options): Add -d/--display-progress.
3247         (print_usage): Print them.
3248         (process_args): Handle them.
3249         * doc/gcov.texi: Document them.
3251 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3253         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
3254         (ipcp_insert_stage): Redirect only edges not flagged with
3255         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
3256         discovered constants.
3258 2010-08-05  Martin Jambor  <mjambor@suse.cz>
3260         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
3261         (struct ipa_param_descriptor): New fields types and
3262         cannot_devirtualize.
3263         (ipa_param_cannot_devirtualize_p): New function.
3264         (ipa_param_types_vec_empty): Likewise.
3265         (ipa_make_edge_direct_to_target): Declare.
3266         * ipa-cp.c: Fixed first stage driver name in initial comment,
3267         described devirtualization there too.
3268         (ipcp_analyze_node): Call ipa_analyze_params_uses.
3269         (ipcp_print_all_lattices): Print devirtualization info.
3270         (ipa_set_param_cannot_devirtualize): New function.
3271         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
3272         lattice to BOTTOM.
3273         (ipcp_init_stage): Merged into...
3274         (ipcp_generate_summary): ...its caller.
3275         (ipcp_change_tops_to_bottom): Also process type lists.
3276         (ipcp_add_param_type): New function.
3277         (ipcp_copy_types): Likewise.
3278         (ipcp_propagate_types): Likewise.
3279         (ipcp_propagate_stage): Also propagate types.
3280         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
3281         Also return true if propagated types require it.
3282         (ipcp_update_callgraph): Dump redirection info.
3283         (ipcp_process_devirtualization_opportunities): New function.
3284         (ipcp_const_param_count): Include known type information.
3285         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
3286         on new node.  Fixed formatting.
3287         * ipa-prop.c (make_edge_direct_to_target): Renamed to
3288         ipa_make_edge_direct_to_target and changed all callers.  Made
3289         externally visible.
3290         (ipa_node_duplication_hook): Duplicate types vector.
3291         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
3292         redirect outgoing calls for which we can't get a decl from the
3293         statement.  Check that we can get a decl from the call statement.
3294         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3295         ipa_analyze_params_uses only when ipa-cp is disabled.
3296         * tree-inline.c (get_indirect_callee_fndecl): Removed.
3297         (expand_call_inline): Do not call get_indirect_callee_fndecl.
3298         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
3299         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
3301 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3303         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
3304         temporary. Emit move from temporary to accum, so REG_EQUAL note will
3305         be attached to this insn in correct mode.
3307 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
3309         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
3310         using REGNO of base_reg directly.
3312 2010-08-05  Jie Zhang  <jie@codesourcery.com>
3314         PR tree-optimization/45144
3315         * tree-sra.c (type_consists_of_records_p): Return false
3316         if the record contains bit-field.
3318 2010-08-04  Richard Henderson  <rth@redhat.com>
3320         * config/i386/i386.c (struct ix86_frame): Remove padding and
3321         to_allocate members.
3322         (ix86_compute_frame_layout): Don't store them.
3323         (ix86_can_use_return_insn_p): Use a more direct and more obviously
3324         correct condition for the position of the stack pointer.
3325         (ix86_expand_prologue): Compute remaining stack allocation based
3326         on the ultimate stack pointer offset.
3327         (ix86_expand_epilogue): Use more obvious expressions testing for
3328         the stack pointer already pointing to the saved registers.
3330         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
3331         duplication deconstructing the frame pointer.  Simplify
3332         deallocation of the local stack frame.
3334         * reg-notes.def (CFA_EXPRESSION): New.
3335         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3336         (dwarf2out_frame_debug_cfa_expression): New.
3337         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
3339         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
3340         * config/i386/i386.c (ix86_expand_prologue): Set it.
3341         (ix86_expand_epilogue): Clear it.
3342         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
3343         context, add REG_CFA_EXPRESSION notes.
3345         * config/i386/i386.h (struct machine_frame_state): Rename from
3346         machine_cfa_state.  Add members tracking SP and FP regardless
3347         of the current CFA register.
3348         (ix86_cfa_state): Remove.
3349         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
3350         and sse_reg_save_offset members.
3351         (ix86_compute_frame_layout): Set them.
3352         (gen_push): Increment sp_offset too.
3353         (choose_baseaddr_len, choose_baseaddr): New.
3354         (ix86_emit_save_reg_using_mov): New.
3355         (ix86_emit_save_regs_using_mov): Use it.
3356         (ix86_emit_save_sse_regs_using_mov): Likewise.
3357         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
3358         compare vs the saved red_zone_offset.
3359         (pro_epilogue_adjust_stack): Adjust sp_offset.
3360         (ix86_adjust_stack_and_probe): Likewise.
3361         (ix86_expand_prologue): Set up, use, and validate the new
3362         frame_state_info members.  Use gen_frame_mem.
3363         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
3364         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
3365         new frame_state_info members.
3366         (ix86_emit_leave): Likewise.
3367         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
3368         out-of-range stack pointer offsets here.
3369         (ix86_emit_restore_sse_regs_using_mov): Likewise.
3370         (ix86_expand_epilogue): Use and validate the new frame_state_info
3371         members.  Break up and simplify the logic selecting the
3372         restore_regs_via_mov code path.  Ensure that there will be no
3373         out-of-range stack pointer offsets.
3375         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
3377         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
3378         argument name to reflect the expected tree; fix indentation.
3379         (ix86_asm_output_function_label): Output the entire 32-bit
3380         ms_hook here as bytes ...
3381         (ix86_expand_prologue): ... not here as insns.  Attach the
3382         unwind info for the ms_hook to a blockage insn.
3383         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
3384         (ix86_ms_bitfield_layout_p): Fix indentation.
3385         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
3387         * config/i386/i386.c (ix86_using_red_zone): New.
3388         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
3389         ix86_expand_prologue, ix86_force_to_memory): Use it.
3391         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
3392         saving the int registers.
3394         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
3395         and DWARF2_UNWIND_INFO conditional compilation.
3397 2010-08-04  Richard Henderson  <rth@redhat.com>
3399         PR debug/45171
3400         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
3401         an is_naming_typedef_decl.
3403 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
3405         PR rtl-optimization/45162
3406         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
3407         * dce.c (word_dce_process_block): Likewise.
3409 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
3411         PR target/44583
3412         * config/ia64/constraints.md (Z): New.
3413         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
3414         (xfreg_or_signed_fp01_operand): New.
3415         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
3416         with fr_reg_or_signed_fp01_operand and constraint G with Z.
3417         (subsf3): Ditto.
3418         (*maddsf4): Ditto.
3419         (*msubsf4): Ditto.
3420         (adddf3): Ditto.
3421         (adddf3_trunc): Ditto.
3422         (subdf3): Ditto.
3423         (*subdf3_trunc): Ditto.
3424         (*madddf4): Ditto.
3425         (*madddf4_trunc): Ditto.
3426         (*msubdf4): Ditto.
3427         (*msubdf4_trunc): Ditto.
3428         (addxf3): Replace xfreg_or_fp01_operand with
3429         xfreg_or_signed_fp01_operand and constraint G with Z.
3430         (*addxf3_truncsf): Ditto.
3431         (*addxf3_truncdf): Ditto.
3432         (subxf3): Ditto.
3433         (*subxf3_truncsf): Ditto.
3434         (*subxf3_truncdf): Ditto.
3435         (*maddxf4): Ditto.
3436         (*maddxf4_truncsf): Ditto.
3437         (*maddxf4_truncdf): Ditto.
3438         (*msubxf4): Ditto.
3439         (*msubxf4_truncsf): Ditto.
3440         (*msubxf4_truncdf): Ditto.
3442 2010-08-04  Richard Guenther  <rguenther@suse.de>
3444         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
3445         if either alias-set is zero.
3447 2010-08-04  Richard Guenther  <rguenther@suse.de>
3449         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
3450         * tree-ssa-ccp.c: ... here.
3451         * tree-ssa-copy.c: ... and here.
3452         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
3453         value_range_t): Move ...
3454         * tree-vrp.c: ... here.
3455         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
3456         (substitute_and_fold): Adjust prototype.
3457         * tree-ssa-propagate.c (replace_uses_in): Adjust.
3458         (replace_phi_args_in): Likewise.
3459         (substitute_and_fold): Take callback to query lattice instead
3460         of pointer to lattice.  Replace SSA name defs with lattice
3461         values first.
3462         * tree-ssa-ccp.c (ccp_finalize): Adjust.
3463         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
3464         (get_value): New function.
3465         (fini_copy_prop): Adjust.
3466         * tree-vrp.c (vrp_finalize): Adjust.
3468 2010-08-04  Richard Guenther  <rguenther@suse.de>
3470         PR middle-end/45176
3471         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
3472         points-to set for original MEM_REF.
3474 2010-08-04  Richard Guenther  <rguenther@suse.de>
3476         * tree-ssa-ccp.c (get_constant_value): New function.
3477         (get_rhs_assign_op_for_ccp): Remove.
3478         (valueize_op): New function.
3479         (ccp_fold): Use get_constant_value and valueize_op.
3480         (fold_const_aggregate_ref): Likewise.
3481         (ccp_fold_stmt): Likewise.
3482         (visit_assignment): Simplify.
3484 2010-08-04  Richard Guenther  <rguenther@suse.de>
3486         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
3487         * double-int.h (double_int_ctz): Declare.
3488         * double-int.c (double_int_ctz): New function.
3490 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
3492         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
3493         Define.
3494         picochip_expand_movmemhi : Expand movmem pattern.
3495         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
3496         Declare.
3497         * config/picochip/picochip.md (movmemhi) : New pattern.
3499 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
3501         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
3503 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
3505         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
3506         NEG as operand of a MULT by merging it with the other operand.
3507         * combine.c (make_compound_operation): Use trunc_int_for_mode when
3508         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
3509         MULT.
3510         * config/arm/constraints.md (M): Examine only 32 bits of a
3511         HOST_WIDE_INT.
3512         * config/arm/predicates.md (power_of_two_operand): Likewise.
3514 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3516         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
3517         non-NOTE insns.
3519 2010-08-03  Jan Hubicka  <jh@suse.cz>
3521         * ipa-split.c (struct split_point): Add split_part_set_retval.
3522         (find_retval): Forward declare.
3523         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
3524         (consider_split): Compute current->split_part_set_retval.
3525         (visit_bb): Do not look into return value.
3526         (split_function): Handle !split_part_set_retval
3528 2010-08-03  Martin Jambor  <mjambor@suse.cz>
3530         * tree-sra.c (completely_scalarize_record): New parameter REF, create
3531         its own access->expr intead of using build_ref_for_offset.
3533 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
3535         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
3536         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
3537         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
3538         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
3539         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
3540         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
3541         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
3542         DEFAULT_SWITCH_TAKES_ARG.
3543         * config/rx/rx.opt (-patch=): Remove option.
3544         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
3545         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
3546         * doc/invoke.texi (RX Options): Remove -patch=.
3547         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
3548         (option_map): Remove --profile-blocks, --quiet and --silent.
3550 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
3552         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
3553         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
3554         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
3555         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
3556         Update calls to ix86_expand_compare and ix86_expand_branch.
3557         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
3558         ix86_expand_compare.
3559         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
3560         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
3561         Make static.
3562         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
3563         and ix86_compare_op1.  Update calls to ix86_expand_compare.
3564         (ix86_expand_int_movcc): Ditto.
3565         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
3566         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
3567         (ix86_expand_setcc): Ditto.
3568         (ix86_expand_compare): Remove prototype.
3569         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
3570         ix86_compare_op0 and ix86_compare_op1.  Update calls
3571         to ix86_expand_branch to directly pass operands[1] and operands[2].
3572         (cbranchxf4): Ditto.
3573         (cbranch<MODEF:mode>4): Ditto.
3574         (cbranchcc4): Ditto.
3575         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
3576         Update calls to ix86_expand_setcc to directly pass operands[2] and
3577         operands[3].
3578         (cstorexf4): Ditto.
3579         (cstore<MODEF:mode>4): Ditto.
3580         (cstorecc4): Ditto.
3582 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
3584         PR target/45063
3585         * caller-save.c (save_call_clobbered_regs): Remove regs from
3586         hard_regs_saved when they are set.
3588 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
3590         PR target/41089
3591         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
3592         as volatile.
3594 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
3596         * common.opt (ftree-loop-distribute-patterns): New.
3597         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
3598         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
3599         at -O3.
3600         * tree-data-ref.c (stores_zero_from_loop): New.
3601         * tree-data-ref.h (stores_zero_from_loop): Declared.
3602         * tree-loop-distribution.c (tree_loop_distribution): Call
3603         stores_zero_from_loop.
3604         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
3606 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
3608         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
3609         into account.
3611         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
3612         * config/arm/arm.c (thumb1_code): New variable.
3613         (arm_override_options): Set it.
3614         (thumb1_final_prescan_insn): Keep track of condition code status.
3615         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
3616         jumps that depend on them.
3617         * config/arm/arm.h (thumb1_code): Declare variable.
3618         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
3619         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
3620         thumb1_cc_mode.
3621         (CC_STATUS_INIT): New macro.
3622         * config/arm/constraints.md (Pd): New constraint.
3623         * config/arm/predicates.md (noov_comparison_operator): New predicate.
3624         * config/arm/arm.md (is_thumb1): New define_attr.
3625         (conds): Set default to "clob" when generating Thumb1 code.
3626         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
3627         code are set.  Use two-operand assembly syntax.
3628         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
3629         pattern.
3630         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
3631         codes are set.  Use two-operand assembly syntax.
3632         (zero_extendhisi splitter): Remove constraints.
3633         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
3634         thumb1_movsf_insn): Set conds attribute as appropriate.
3635         (cbranchsi4_insn): Use condition code status from struct
3636         machine_function to determine whether the comparison can be eliminated.
3637         Discourage the alternative using high registers.
3638         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
3639         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
3640         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
3641         subsi3_cbranch): Delete.
3642         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
3643         one subtract and one cbranch insn.
3645         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
3646         thumb2_movdf_soft_insn): Delete patterns.
3647         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
3648         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
3649         (pool_range, neg_pool_range): Use them to define defaults.
3650         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
3651         and allow for TARGET_32BIT.
3653         PR target/40457
3654         * config/arm/arm.h (arm_regs_in_sequence): Declare.
3655         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
3656         load_multiple_sequence, store_multiple_sequence): Delete
3657         declarations.
3658         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
3659         declarations.
3660         * config/arm/ldmstm.md: New file.
3661         * config/arm/arm.c (arm_regs_in_sequence): New array.
3662         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
3663         CHECK_REGS.  All callers changed.
3664         If SAVED_ORDER is nonnull, copy the computed order into it.
3665         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
3666         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
3667         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
3668         If SAVED_ORDER is nonnull, copy the computed order into it.
3669         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
3670         like REGS.  Handle Thumb mode.
3671         (arm_gen_load_multiple_1): New function, broken out of
3672         arm_gen_load_multiple.
3673         (arm_gen_store_multiple_1): New function, broken out of
3674         arm_gen_store_multiple.
3675         (arm_gen_multiple_op): New function, with code from
3676         arm_gen_load_multiple and arm_gen_store_multiple moved here.
3677         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
3678         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
3679         changed.
3680         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
3681         * config/arm/predicates.md (commutative_binary_operator): New.
3682         (load_multiple_operation, store_multiple_operation): Handle more
3683         variants of these patterns with different starting offsets.  Handle
3684         Thumb-1.
3685         * config/arm/arm.md: Include "ldmstm.md".
3686         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
3687         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
3688         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
3689         peepholes): Delete.
3690         * config/arm/ldmstm.md: New file.
3691         * config/arm/arm-ldmstm.ml: New file.
3693         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
3694         if statement which adds extra costs to frame-related expressions.
3696 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3698         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
3700 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
3702         PR target/45142
3703         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
3704         alternative 2.
3705         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
3706         split V4SI operands.
3708 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
3710         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3711         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
3712         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
3713         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3715 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
3717         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
3718         LOCAL_INCLUDE_DIR.
3720 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
3722         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
3723         used in the call to optab_for_tree_code.  Fix the second
3724         is_widening_mult_p call.  Check that both unwidened operands
3725         have the same sign.
3727 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
3729         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
3731 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
3733         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3735 2010-07-30  DJ Delorie  <dj@redhat.com>
3737         * config/rx/predicates.md (rx_constshift_operand): New.
3738         * config/rx/rx.md (zs_cond): New.
3739         (cbranchsi4): Remove mode.
3740         (*cbranchsi4_<code>): Likewise.
3741         (*tstbranchsi4_<code>): New.
3742         (*tstbranchsi4r_<code>): New.
3743         (*tstbranchsi4m_eq): New.
3744         (*tstbranchsi4m_ne): New.
3745         (cbranchsf4): Remove mode.
3746         (*cbranchsf4_<code>): Likewise.
3748 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
3750         * rtlanal.c (simplify_subreg_regno): Don't treat
3751         HARD_FRAME_POINTER_REGNUM specially.
3753 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
3755         * common.opt (-G): Don't define option here.
3756         * config/g.opt: New.
3757         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
3758         rs6000/powerpc and score targets.
3759         * opts.c (common_handle_option): Don't handle -G here.
3760         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
3761         * config/frv/frv.c (frv_handle_option): Handle -G.
3762         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
3763         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
3764         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
3765         * config/mips/mips.c (mips_handle_option): Handle -G.
3766         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
3767         * config/score/score.c (score_handle_option): Handle -G.
3769 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
3771         * config/mmix/mmix.c: Include basic-block.h.
3773 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
3775         PR debug/45055
3776         PR rtl-optimization/45137
3777         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
3778         prototypes.
3779         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
3780         New functions.
3781         * combine.c (next_nonnote_nondebug_insn): Removed.
3782         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
3783         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
3784         * sched-deps.c (sched_analyze_insn): Likewise.
3785         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
3786         * rtlanal.c (canonicalize_condition): Likewise.
3787         * postreload.c (reload_combine_recognize_pattern): Likewise.
3788         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
3790 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
3792         * config/i386/i386.md (int_cond): Remove code iterator.
3793         (fp_cond): Ditto.
3794         (cbranch<mode>4): Use ordered_comparison_operator predicate
3795         for operator0.
3796         (cstore<mode>4): Ditto for operator1.
3797         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
3798         (add<mode>cc): ditto.
3800 2010-07-30  Richard Guenther  <rguenther@suse.de>
3802         PR middle-end/45141
3803         * expr.c (expand_expr_real_1): Check for not handled base address.
3805 2010-07-30  Richard Guenther  <rguenther@suse.de>
3807         * ipa-prop.c (ipa_modify_formal_parameters): Use
3808         build_distinct_type_copy.
3810 2010-07-30  Anthony Green  <green@moxielogic.com>
3812         * config/moxie/rtems.h: New file.
3813         * config.gcc: Add moxie-rtems support.
3815 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
3817         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
3818         df flags as in run_fast_df_dce.
3820 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
3822         Revert:
3823         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3825         * rtl.def (NOTE): Swap operands 4 and 5.
3826         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
3827         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
3828         Adjust accordingly.
3829         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
3831 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
3833         PR debug/45110
3834         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
3835         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
3836         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
3837         formal parameters.
3838         (gen_decl_die): Change return type to dw_die_ref, return what
3839         gen_formal_parameter_die returned.
3841 2010-07-29  Martin Jambor  <mjambor@suse.cz>
3843         * dbgcnt.def (eipa_sra): New counter.
3844         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
3846 2010-07-29  Xinliang David Li  <davidxl@google.com>
3848         PR bootstrap/45119
3849         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
3850         in revision 162652.
3852 2010-07-29  Richard Guenther  <rguenther@suse.de>
3854         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
3855         (TV_TREE_STORE_CCP): Likewise.
3856         (TV_TREE_REDPHI): Likewise.
3858 2010-07-29  Richard Guenther  <rguenther@suse.de>
3860         * double-int.h (double_int_and_not): New function.
3861         * combine.c (try_combine): Use it.
3862         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
3864 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
3866         PR rtl-optimization/42575
3867         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
3868         Argument AU removed.  All callers changed.  Ignore artificial refs.
3869         Use return value of df_word_lr_simulate_defs to decide whether an insn
3870         is necessary.
3871         (fast_dce): Rename arg to WORD_LEVEL.
3872         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
3873         static.
3874         (pass_fast_rtl_byte_dce): Delete.
3875         * dce.h (run_word_dce): Declare.
3876         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
3877         All callers changed.  Simplify code to only deal with two-word regs.
3878         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
3879         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
3880         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
3881         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
3882         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
3883         (df_word_lr_mark_ref): Declare.
3884         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
3885         df_word_lr_simulate_uses): Declare or rename from byte variants.
3886         (df_byte_lr_simulate_artificial_refs_at_top,
3887         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
3888         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
3889         declarations.
3890         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
3891         (enum df_mm): Delete.
3892         * df-byte-scan.c: Delete file.
3893         * df-problems.c (df_word_lr_problem_data): Renamed from
3894         df_byte_lr_problem_data, all members deleted except for
3895         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
3896         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
3897         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
3898         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
3899         df_byte_lr_confluence_0): Delete functions.
3900         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
3901         callers changed.
3902         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
3903         Don't initialize members that were deleted, don't try to discover data
3904         about registers.  Ignore hard regs.
3905         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
3906         (df_word_lr_mark_ref): New function.
3907         (df_word_lr_bb_local_compute): Renamed from
3908         df_byte_bb_lr_local_compute; all callers changed.  Use
3909         df_word_lr_mark_ref.  Assert that artificial refs don't include
3910         pseudos.  Ignore hard registers.
3911         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
3912         Assert that exit block uses don't contain pseudos.
3913         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
3914         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
3915         callers changed.  Ignore hard regs.
3916         (df_word_lr_transfer_function): Renamed from
3917         df_byte_lr_transfer_function; all callers changed.
3918         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
3919         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
3920         changed.
3921         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
3922         callers changed.
3923         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
3924         confluence operator 0 set to NULL.
3925         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
3926         callers changed.
3927         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
3928         Return bool, true if bitmap changed or insn otherwise necessary.
3929         All callers changed.  Simplify using df_word_lr_mark_ref.
3930         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
3931         all callers changed.  Simplify using df_word_lr_mark_ref.
3932         * lower-subreg.c: Include "dce.h"
3933         (decompose_multiword_subregs): Call run_word_dce if df available.
3934         * Makefile.in (lower-subreg.o): Adjust dependencies.
3935         (df-byte-scan.o): Delete.
3936         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
3938 2010-07-29  Richard Guenther  <rguenther@suse.de>
3940         * tree.c (build_vector): Assert that the vector constant
3941         has enough elements.
3942         (build_vector_from_ctor): Pad with trailing zeros.
3944 2010-07-29  Richard Guenther  <rguenther@suse.de>
3946         PR tree-optimization/45120
3947         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3948         Handle offset in DEREFs properly.
3949         (get_constraint_for_1): Handle MEM_REF offset properly.
3951 2010-07-29  Richard Guenther  <rguenther@suse.de>
3953         PR middle-end/45034
3954         * convert.c (convert_to_integer): Always use an unsigned
3955         type for narrowed negate and bitwise not.
3957 2010-07-29  Ira Rosen  <irar@il.ibm.com>
3959         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
3960         to outer loop when creating reduction epilogue for double reduction,
3961         and switch back to the inner loop when updating the phi nodes.
3962         Update uses of outer loop exit phi nodes in double reduction (instead
3963         of uses of reduction).
3965 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
3967         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
3968         popcount on power7 and parity on power6 systems.
3969         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
3970         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
3971         instructions.
3973         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
3974         (UNSPEC_PARITY): Ditto.
3975         (SFDF): New iterator for SF/DF.
3976         (rreg2): New mode attribute for floating register constraint.
3977         (TARGET_FLOAT): New mode attribute for whether single/double float
3978         is supported.
3979         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
3980         pattern.
3981         (parity<mode>2_cmpb): New insn for parity on power6 and newer
3982         machines.
3983         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
3984         pattern.  Add support for fcpsgn instruction added in power6.
3985         (copysignsf3): Delete.
3986         (copysigndf3): Delete.
3987         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
3988         instead of if_then_else in RTL to avoid problems with -0.
3990         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
3991         of if_then_else to mirror scalar code.
3992         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
3993         rs6000.md.
3995         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
3996         instead of if_then_else.
3998 2010-07-28  Xinliang David Li  <davidxl@google.com>
4000         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
4001         (dump_cand): Dump var_before/after.
4002         (htab_inv_expr_eq): New function.
4003         (htab_inv_expr_hash): New function.
4004         (tree_ssa_iv_optimize_init): Support pseudo invariants.
4005         (add_candidate_1): consider base type precision.
4006         (set_use_iv_cost): New parameter.
4007         (adjust_setup_cost): Use profile information.
4008         (get_address_cost): Do not hard code width in computing address
4009         offset limits.
4010         (compare_aff_trees): New function.
4011         (get_loop_invariant_expr_id): New function.
4012         (get_computation_cost_at): New parameter and use profile information.
4013         (get_computation_cost): New parameter.
4014         (determine_use_iv_cost_generic): Pass new parameter.
4015         (determine_use_iv_cost_address): Ditto.
4016         (determine_use_iv_cost_condition): Ditto.
4017         (autoinc_possible_for_pair): Ditto.
4018         (determine_use_iv_costs): More dumps.
4019         (iv_ca_get_num_inv_exprs): New function.
4020         (iv_ca_recount_cost): Consider loop invariants in register pressure
4021         cost.
4022         (iv_ca_add_use): New parameter.
4023         (iv_ca_dump): Better dumping.
4024         (iv_ca_extend): New parameter.
4025         (try_add_cand_for): Attempt to get better partial solution.
4026         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
4027         (create_new-ivs): More dumps.
4028         (rewrite_use_compare): Ditto.
4029         (free_loop_data): More cleanup.
4030         (treee_ssa_iv_optimize_finalize): Ditto.
4032 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
4034         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
4035         * config/i386/i386.c (ix86_profile_before_prologue): New.
4036         (override_options): Add special handling for -mfentry.
4037         (ix86_function_regparm): Likewise.
4038         (ix86_function_sseregparm): Likewise.
4039         (ix86_frame_pointer_required): Likewise.
4040         (ix86_expand_prologue): Check for ms_hook_prologue.
4041         (x86_function_profiler): Adjust mcount output.
4042         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
4043         * config/i386/i386.opt (mfentry): New.
4044         * doc/invoke.texi (mfentry): Add documentation.
4045         * doc/tm.texi: Regenerated..
4046         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
4047         * final.c (final_start_function): Replace macro
4048         PROFILE_BEFORE_PROLOGUE by target hook.
4049         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4050         * target.def (profile_before_prologue): New hook.
4051         * targhooks.c (default_profile_before_prologue): New.
4052         * targhooks.h (default_profile_before_prologue): New.
4054 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
4056         PR debug/45105
4057         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
4059         PR debug/45103
4060         * dwarf2out.c (dwarf2out_var_location): Always consider
4061         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
4063 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4065         PR rtl-optimization/45107
4066         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
4068 2010-07-28  Richard Guenther  <rguenther@suse.de>
4070         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
4071         (set_lattice_value): Do not query an old default value.
4072         (get_value_for_expr): New function.  Properly canonicalize
4073         float values.
4074         (ccp_visit_phi_node): Use it.
4076 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
4078         * config/arm/arm.c (arm_pcs_default): Remove static.
4079         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
4080         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
4081         (arm_pcs_default): Declare.
4083 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
4085         * config/rs6000/rs6000.c (rs6000_override_options):
4086         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
4087         ... to darwin_rs6000_override_options.
4088         (rs6000_return_in_memory): Update preceding comment for darwin
4089         64 bit ABI.  Use TARGET_MACHO inline.
4090         (rs6000_darwin64_struct_check_p): New.
4091         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
4092         (function_arg): Likewise.
4093         (rs6000_arg_partial_bytes): Likewise.
4094         (rs6000_function_value): Likewise.
4096 2010-07-28  Andi Kleen <ak@linux.intel.com>
4098         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
4100 2010-07-28  Richard Guenther  <rguenther@suse.de>
4102         PR middle-end/44903
4103         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
4104         targets try harder to not generate unaligned accesses.
4106 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
4108         PR rtl-optimization/45101
4109         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
4110         for gcse-las.
4112 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4114         PR tree-optimization/44885
4115         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
4116         with non-aliased component.
4118 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
4120         * config/darwin-driver.c (SWITCH_TAKES_ARG,
4121         WORD_SWITCH_TAKES_ARG): Remove.
4122         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4123         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
4124         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
4125         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
4126         definitions from gcc.c.
4127         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
4128         defaults.h.
4129         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
4130         Move to defaults.h.
4131         * opts-common.c: Include tm.h.
4132         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
4133         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
4134         Handle more than one argument.  Set canonical_option_num_elements.
4135         (decode_cmdline_options_to_array): Set
4136         canonical_option_num_elements and trailing elements of
4137         canonical_option.
4138         * opts.h (struct cl_decoded_option): Allow four elements in
4139         canonical_option.  Add field canonical_option_num_elements.
4140         * Makefile.in (opts-common.o): Update dependencies.
4142 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4144         PR middle-end/44790
4145         PR middle-end/44993
4146         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
4147         sure the base has address_mode before adding the offset.
4149 2010-07-27  Xinliang David Li <davidxl@google.com>
4151         * tree-flow.h (create_mem_ref): Add one new parameter.
4152         * tree-ssa-address.c (create_mem_ref): New parameter.
4153         (addr_to_parts): Ditto.
4154         (move_variant_to_index): New function.
4155         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
4157 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4159         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
4160         4 and 5.
4161         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
4162         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
4163         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
4164         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
4165         CODE_LABELs and NOTEs.
4166         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
4167         * combine.c (try_combine): Likewise.
4168         * ira.c (setup_prohibited_mode_move_regs): Likewise.
4169         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
4171 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4173         * coretypes.h (struct cl_option_handlers): Declare.
4174         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
4175         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
4176         * langhooks-def.h (lhd_handle_option): Declare.
4177         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
4178         * langhooks.c (lhd_handle_option): New.
4179         * langhooks.h (struct lang_hooks): Update prototype and return
4180         value type of handle_option hook.
4181         * optc-gen.awk: Generate target_flags_explicit definition for the
4182         driver.
4183         * opts-common.c: Include diagnostic.h.
4184         (handle_option): Move from opts.c.  Update prototype and return
4185         value type.  Use handlers structure.
4186         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
4187         handlers structure.
4188         (set_option): Move from opts.c.
4189         * opts.c (common_handle_option): Update prototype and return value
4190         type.  Update calls to handle_option and enable_warning_as_error.
4191         (unknown_option_callback, post_handling_callback,
4192         lang_handle_option, target_handle_option): New.
4193         (handle_option, read_cmdline_option): Move to opts-common.c.
4194         (read_cmdline_options): Update prototype.  Update call to
4195         read_cmdline_option.
4196         (decode_options): Initialize and use handlers structure.
4197         (set_option): Move to opts-common.c.
4198         (enable_warning_as_error): Update prototype.  Update call to
4199         handle_option.
4200         * opts.h (struct cl_option_handler_func, struct
4201         cl_option_handlers): New.
4202         (handle_option, enable_warning_as_error): Update prototypes.
4203         (read_cmdline_option): Declare.
4204         * Makefile.in (opts-common.o): Update dependencies.
4206 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4208         * config/arm/arm.c (params.h): Include.
4209         (arm_override_options): Tune gcse-unrestricted-cost.
4210         * config/arm/t-arm (arm.o): Define dependencies.
4212 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4214         PR target/42495
4215         PR middle-end/42574
4216         * basic-block.h (get_dominated_to_depth): Declare.
4217         * dominance.c (get_dominated_to_depth): New function, use
4218         get_all_dominated_blocks as a base.
4219         (get_all_dominated_blocks): Use get_dominated_to_depth.
4221         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
4222         (hoist_exprs): Remove.
4223         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
4224         (compute_code_hoist_vbeinout): Add debug print outs.
4225         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
4227         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
4228         quadratic behavior.
4229         * params.h (MAX_HOIST_DEPTH): New macro.
4230         * doc/invoke.texi (max-hoist-depth): Document.
4232 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4234         PR rtl-optimization/40956
4235         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
4236         constants.
4238 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4240         PR target/42495
4241         PR middle-end/42574
4242         * config/arm/arm.c (legitimize_pic_address): Use
4243         gen_calculate_pic_address pattern to emit calculation of PIC address.
4244         (will_be_in_index_register): New function.
4245         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
4246         (thumb1_legitimate_address_p): Use it provided !strict_p.
4247         * config/arm/arm.md (calculate_pic_address): New expand and split.
4249 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4251         PR target/42495
4252         PR middle-end/42574
4253         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
4254         * config/arm/arm.md (define_split "J", define_split "K"): Make
4255         IRA/reload friendly.
4257 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4259         * gcse.c (insert_insn_end_basic_block): Update signature, remove
4260         unused checks.
4261         (pre_edge_insert, hoist_code): Update.
4263 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4265         PR target/42495
4266         PR middle-end/42574
4267         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
4269 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4271         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
4273 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4275         PR rtl-optimization/40956
4276         PR target/42495
4277         PR middle-end/42574
4278         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
4279         for hoisting.
4280         (hoist_code): Count occurences in current block too.
4282 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4284         * gcse.c (struct expr:max_distance): New field.
4285         (doing_code_hoisting_p): New static variable.
4286         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
4287         simple expressions, don't change behavior for PRE.  Set max_distance.
4288         (insert_expr_in_table): Set new max_distance field.
4289         (hash_scan_set): Update.
4290         (hoist_expr_reaches_here_p): Stop search after max_distance
4291         instructions.
4292         (find_occr_in_bb): New static function.  Use it in ...
4293         (hoist_code): Calculate sizes of basic block before any changes are
4294         done.  Pass max_distance to hoist_expr_reaches_here_p.
4295         (one_code_hoisting_pass): Set doing_code_hoisting_p.
4297         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
4298         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
4299         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
4300         macros.
4301         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
4302         Document.
4304 2010-07-27  Jeff Law  <law@redhat.com>
4305             Maxim Kuvyrkov  <maxim@codesourcery.com>
4307         * gcse.c (compute_transpout, transpout): Remove, move logic
4308         to prune_expressions.
4309         (compute_pre_data): Move pruning of trapping expressions ...
4310         (prune_expressions): ... here.  New static function.
4311         (compute_code_hoist_data): Use it.
4312         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
4314 2010-07-27  Xinliang David Li  <davidxl@google.com>
4316         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
4317         (rewrite_use_address): Adjust iv update position when needed.
4319 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
4321         * dbgcnt.def (hoist_insn): New debug counter.
4322         * gcse.c (hoist_code): Use it.
4324 2010-07-27  Xinliang David Li  <davidxl@google.com>
4326         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
4327         (niter_for_single_dom_exit): Passes additional parameter.
4328         (iv_period): Fix comments.
4329         (may_eliminate_iv): Handles multiple exit loops properly.
4330         (free_tree_niter_desc): New function.
4331         (free_loop_data): Frees up loop iteration descriptors.
4333 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4335         PR target/44542
4336         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
4337         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
4338         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
4339         (expand_one_var): Don't consider DECL_ALIGN for variables for
4340         which expand_one_stack_var_at has been already called.
4342         PR testsuite/44701
4343         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
4344         constraints on IA-64.
4346 2010-07-27  Jie Zhang  <jie@codesourcery.com>
4348         PR target/44290
4349         Revert:
4350         2010-07-23  Jie Zhang  <jie@codesourcery.com>
4352         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4353         false if ! tree_versionable_function_p.
4355 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4357         * dwarf2out.c (add_data_member_location_attribute): Use
4358         add_AT_unsigned instead of add_AT_int if offset is non-negative.
4360 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4362         * postreload.c (try_replace_in_use): New static function.
4363         (reload_combine_recognize_const_pattern): Use it here.  Allow
4364         substituting into a final add insn, and substituting into a memory
4365         reference in an insn that sets the reg.
4367 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4369         * common.opt (o): Add MissingArgError.
4370         * doc/options.texi (MissingArgError): Document.
4371         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
4372         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
4373         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4374         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
4375         * langhooks.h (struct lang_hooks): Remove missing_argument.
4376         * optc-gen.awk: Handle MissingArgError and output new structure
4377         field initializers.
4378         * opts.c (read_cmdline_option): Use missing_argument_error field
4379         instead of missing_argument langhook.
4380         * opts.h (struct cl_option): Add missing_argument_error field.
4381         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
4383 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
4385         PR target/29090
4386         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
4387         Darwin64 ABI, for zero-sized objects.
4389 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
4391         PR target/35491
4392         PR target/29090
4394         Merge from Apple local 4.2.1.
4395         2005-05-11  Stan Shebs  <shebs@apple.com>
4396         Fix 64-bit varargs for Darwin (Radar 4028089).
4397         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
4398         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4399         Add argument, add case for 8-byte register half-filled with a float.
4400         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
4401         single-precision floats specially.
4403 2010-07-27  Ira Rosen  <irar@il.ibm.com>
4405         PR tree-optimization/44152
4406         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
4407         complex numbers for further check.
4408         (vect_supported_load_permutation_p): Check nodes with
4409         complex numbers.
4411 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
4413         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
4414         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
4415         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
4416         (LANG_HOOKS_INITIALIZER): Add new hooks.
4417         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
4418         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
4419         and complain_wrong_lang_p.  Update init_options prototype.
4420         * c-objc-common.c (c_initialize_diagnostics): First call
4421         c_common_initialize_diagnostics.
4422         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
4423         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
4424         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
4425         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
4426         (hook_uint_void_0): New.
4427         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
4428         (hook_uint_void_0): New.
4429         * opts-common.c (decode_cmdline_option,
4430         decode_cmdline_options_to_array): Also fill in canonical_option field.
4431         * opts.c (complain_wrong_lang): Use langhook to determine whether
4432         to complain instead of special-casing LTO.
4433         (decode_options): Separate lang_mask determination with
4434         option_lang_mask hook from call of init_options hook.
4435         * opts.h (struct cl_decoded_option): Add canonical_option.
4437 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
4439         PR tree-optimization/45083
4440         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
4442 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
4444         * postreload.c (reload_combine_recognize_const_pattern): Move test
4445         for limiting the insn movement to the right scope.
4447         PR rtl-optimization/45051
4448         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
4449         than reg_mentioned_p.
4451 2010-07-26  Richard Henderson  <rth@redhat.com>
4453         PR target/44132
4454         * tree-emutls.c: New file.
4455         * Makefile.in (OBJS-common): Add it.
4456         * tree-pass.h (pass_ipa_lower_emutls): Declare.
4457         * passes.c (init_optimization_passes): Add it.
4459         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
4460         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
4461         * expr.c (emutls_var_address): Delete.
4462         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
4463         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
4464         (emutls_finish): Delete.
4465         * toplev.c (compile_file): Don't call it.
4466         * tree.h (emutls_decl): Delete.
4467         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
4468         (emutls_finish, emutls_finalize_control_var): Delete.
4469         (emutls_object_type): Move to tree-emutls.c.
4470         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
4471         default_emutls_var_fields, get_emutls_object_type,
4472         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
4473         default_emutls_var_init): Likewise.
4474         (get_variable_section): Don't special case emutls.
4475         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
4476         default_elf_select_section, default_unique_section,
4477         default_encode_section_info): Likewise.
4478         * varpool.c (decide_is_variable_needed): Likewise.
4479         * gimple-iterator.c (update_call_edge_frequencies): New
4480         (gsi_insert_on_edge_immediate): Use it.
4481         (gsi_insert_seq_on_edge_immediate): Likewise.
4482         (gsi_commit_one_edge_insert): Likewise.
4484         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
4485         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
4486         (x86_64_elf_unique_section): Likewise.
4488 2010-07-26  Jan Hubicka  <jh@suse.cz>
4490         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
4491         GTY((skip)).
4493 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
4495         * target.def (output_source_filename): New hook.
4496         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
4497         * doc/tm.texi: Regenerate.
4498         * toplev.c (output_file_directive) Remove function.
4499         * toplev.h (output_file_directive) Remove.
4500         * output.h (default_asm_output_source_filename,
4501         output_file_directive): Declare.
4502         * varasm.h (default_asm_output_source_filename,
4503         output_file_directive): New functions.
4505         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4506         * config/mips/mips-protos.h (mips_output_filename): Remove.
4507         * config/mips/mips.c (mips_output_filename): Make Static.
4508         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4510 2010-07-26  Richard Guenther  <rguenther@suse.de>
4512         PR tree-optimization/43784
4513         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
4514         if the destination is used by the call.
4516 2010-07-26  Richard Guenther  <rguenther@suse.de>
4518         PR middle-end/45073
4519         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
4520         SSA updating on being in SSA form.
4522 2010-07-26  Richard Guenther  <rguenther@suse.de>
4524         PR middle-end/45056
4525         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
4527 2010-07-26  Richard Guenther  <rguenther@suse.de>
4529         PR tree-optimization/45071
4530         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
4531         adjust op->opcode.
4533 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
4535         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
4536         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
4537         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
4538         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
4539         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
4540         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
4541         save_r31, return_r31, save_interrupt, return_interrupt,
4542         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
4543         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
4544         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
4545         new ABI requirements.
4546         (save_r6_r9, L_callt_save_r6_r9): Remove.
4547         * config/v850/predicates.md (even_reg_operand, disp23_operand,
4548         const_float_1_operand const_float_0_operand): New Predicates.
4549         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
4550         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
4551         * config/v850/t-v850: Update multilibs for new target variants.
4552         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
4553         * config/v850/t-v850e: Likewise.
4554         * config/v850/v850.c (v850_issue_rate): New.
4555         (v850_strict_argument_naming): New.
4556         (function_arg): Modify to generate a different ABI.
4557         (print_operand): Update case 'z' to support float modes.
4558         (output_move_single): Modify to generate appropriate and better
4559         assembly.
4560         (v850_float_z_comparison_operator, v850_select_cc_mode,
4561         v850_float_nz_comparison_operator,  v850_gen_float_compare,
4562         v850_gen_compare): New functions to support comparison of float values.
4563         (ep_memory_offset): Add support for V850E2 targets.
4564         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
4565         (INTERRUPT_REGPARM_NUM): Remove.
4566         (compute_register_save_size): Add extra case to save/restore long call.
4567         (use_prolog_function): New function to support prologue.
4568         (expand_prologue): Add support for V850E2 targets and modified
4569         as per the current ABI requirements.
4570         (expand_epilogue): Likewise.
4571         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
4572         (construct_save_jarl): Likewise.
4573         (construct_dispose_instruction): Update as per the current ABI
4574         requirements.
4575         (construct_prepare_instruction): Likewise.
4576         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
4577         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
4578         (CPP_SPEC): Updated to support v850e2 targets.
4579         (STRICT_ALIGNMENT): Modified.
4580         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
4581         (FIXED_REGISTERS): Likewise.
4582         (CALL_USED_REGISTERS): Likewise.
4583         (CONDITIONAL_REGISTER_USAGE): Updated.
4584         (HARD_REGNO_MODE_OK): Updated.
4585         (reg_class): Updated to add even registers.
4586         (REG_CLASS_NAMES): Likewise.
4587         (REG_CLASS_CONTENTS): Likewise.
4588         (REGNO_REG_CLASS): Updated for CC registers.
4589         (REG_CLASS_FROM_LETTER): Added support for even registers.
4590         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
4591         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
4592         ARG_POINTER_REGNUM): Updated.
4593         (FUNCTION_ARG_ADVANCE): Define.
4594         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
4595         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
4596         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
4597         (GO_IF_LEGITIMATE_ADDRESS): Updated.
4598         (SELECT_CC_MODE): Define.
4599         (REGISTER_NAMES): Updated to add psw and fcc registers.
4600         (ADDITIONAL_REGISTER_NAMES): Updated.
4601         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
4602         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
4603         * config/v850/v850.md (define_constants): Define new constants.
4604         (type): Update store,bit1,macc,div,fpu and single attributes.
4605         (cpu): New attribute.
4606         (cc): Add set_z attribute.
4607         (unsign23byte_load, sign23byte_load, unsign23hword_load,
4608         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
4609         23word_store): New instructions for 23-bit displacement load and store.
4610         (movqi_internal, movhi_internal): Update the attributes.
4611         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
4612         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
4613         the attributes.
4614         (v850_tst1): Modified using CC_REGNUM.
4615         (tstsi): Remove.
4616         (cmpsi): Modified as define_expand from define_insn.
4617         (cmpsi_insn, cmpsf, cmpdf): New instructions.
4618         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
4619         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
4620         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
4621         one_cmplsi2): Clobber the CC_REGNUM register.
4622         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
4623         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
4624         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
4625         (setf_insn, set_z_insn, set_nz_insn): New instructions for
4626         v850e2v3 target.
4627         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
4628         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
4629         targets.
4630         (sasf_1, sasf_2): Remove.
4631         (sasf): New instruction.
4632         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
4633         targets. CC_REGNUM register is clobbered and attributes are
4634         updated.
4635         (branch_z_normal, branch_z_invert, branch_nz_normal,
4636         branch_nz_invert): New branch related instructions.
4637         (jump): Updated the attributes.
4638         (switch): Update to support new targets. CC_REGNUM register is
4639         clobbered and attributes are updated.
4640         (call_internal_short, call_internal_long, call_value_internal_short,
4641         call_value_internal_long): Updated the attributes.
4642         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
4643         clobbered and attributes are updated.
4644         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
4645         Update to support new targets. CC_REGNUM register is clobbered.
4646         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
4647         instructions.
4648         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
4649         are updated.
4650         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
4651         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
4652         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
4653         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
4654         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
4655         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
4656         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
4657         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
4658         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
4659         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
4660         point instructions defined for V850e2v3 target.
4661         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
4662         Add support for V850E2 targets and CC_REGNUM register is clobbered.
4663         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
4664         support for new targets.
4665         * config/v850/v850-modes.def: New file.
4666         * config/v850/v850.opt(mstrict-align): Remove.
4667         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
4668         mv850e2v3): New command line options for V850.
4669         * config.gcc: Update the newly added files.
4670         * doc/invoke.texi: Update the newly added command line options for
4671         V850 target.
4673 2010-07-26  Richard Guenther  <rguenther@suse.de>
4675         PR tree-optimization/45052
4676         * ipa-pure-const.c (check_stmt): Check volatileness.
4678 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4680         PR target/44707
4681         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
4682         * config/sparc/sparc.c: Include reload.h.
4683         (legitimize_tls_address): Rename into...
4684         (sparc_legitimize_tls_address): ...this.
4685         (legitimize_pic_address): Rename into...
4686         (sparc_legitimize_pic_address): ...this.
4687         (sparc_expand_move): Adjust to above renaming.
4688         (sparc_tls_referenced_p): Likewise.
4689         (sparc_legitimize_tls_address): Likewise.
4690         (sparc_legitimize_pic_address): Likewise.
4691         (sparc_legitimize_address): Likewise.
4692         (sparc_output_mi_thunk): Likewise.
4693         (sparc_legitimize_reload_address): New global function.  Recognize
4694         (lo_sum (high ...) ...) patterns generated by earlier passes.
4695         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
4697 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
4699         PR target/44484
4700         * config/sparc/predicates.md (memory_reg_operand): Delete.
4701         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
4702         (*sync_compare_and_swap): Encode the address form in the pattern.
4703         (*sync_compare_and_swapdi_v8plus): Likewise.
4705 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
4707         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
4708         Streamline paragraph on compatibility with the system compiler.
4710 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
4712         PR middle-end/45035
4713         * alias.c (true_dependence_1): Fix thinko in merge of old
4714         true_dependence and canon_true_dependence.
4716 2010-07-23  Jan Hubicka  <jh@suse.cz>
4718         * lto-streamer-out.c (write_symbol): Fix visibilities of external
4719         references.
4721 2010-07-23  Le-Chun Wu  <lcwu@google.com>
4723         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
4724         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
4725         and an unnecessary assignment.
4726         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
4727         self-assign warning.
4728         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
4729         unnecessary self-init.
4731 2010-07-23  Richard Guenther  <rguenther@suse.de>
4733         PR lto/43071
4734         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
4735         for -flto and -fwhopr.
4737 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
4739         PR target/41943
4740         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
4741         (stmp-int-hdrs): Prefix/postfix headers by include_next.
4742         * config.gcc (user_headers_inc_next_pre): New.
4743         (user_headers_inc_next_post): Likewise.
4744         (*-w64-mingw*): Use for float.h post-fixing, and for
4745         stddef.h/stdarg.h pre-fixing by include_next.
4746         * configure.ac (user_headers_inc_next_post): New.
4747         (user_headers_inc_next_pre): New.
4748         * configure: Regenerated.
4750 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4752         * configure.ac: Don't disable TLS on Solaris 8/9 by default
4753         Set tga_func for Solaris 2/x86 resp. SPARC.
4754         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
4755         (LIB_THREAD_LDFLAGS_SPEC): Define.
4756         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
4757         * configure: Regenerate.
4758         * config.in: Regenerate.
4759         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
4760         -pthread, -threads, LIB_TLS_SPEC with -pthread.
4761         * doc/install.texi (Specific, *-*-solaris2*): Document use of
4762         alternate thread libraries on Solaris 8.
4763         Document TLS patch requirements.
4764         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
4765         Document tls.
4767         PR target/18788
4768         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
4769         -shared.
4771 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
4773         * tree.h (struct tree_base): Add nameless_flag bitfield.
4774         (TYPE_NAMELESS, DECL_NAMELESS): Define.
4775         * omp-low.c (create_omp_child_function, scan_omp_parallel,
4776         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
4777         DECL_ARTIFICIAL where needed.
4778         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
4779         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
4780         has DECL_NAMELESS set.
4782 2010-07-23  Martin Jambor  <mjambor@suse.cz>
4784         PR tree-optimization/44915
4785         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
4786         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
4787         (analyze_function): Likewise.
4789 2010-07-23  Martin Jambor  <mjambor@suse.cz>
4791         PR tree-optimization/44914
4792         * tree-sra.c (sra_modify_function_body): Return true if CFG was
4793         changed, add purging dead eh edges.
4794         (ipa_sra_modify_function_body): Return true if CFG was changed,
4795         simplify purging dead eh edges.
4796         (modify_function): Return true if CFG was changed.
4797         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
4798         was changed.
4799         (ipa_early_sra): Likewise.
4801 2010-07-23  Jie Zhang  <jie@codesourcery.com>
4803         PR target/44290
4804         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
4805         if "naked".
4806         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
4807         false if ! tree_versionable_function_p.
4809 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
4811         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
4812         * ipa-pure-const.c (special_builtlin_state): Remove
4813         BUILT_IN_ARGS_INFO case.
4814         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4815         * builtins.c (expand_builtin): Likewise.
4816         (expand_builtin_args_info): Remove.
4817         * doc/tm.texi (__builtin_args_info): Remove.
4818         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
4819         * doc/tm.text.in: Likewise.
4821 2010-07-23  Richard Guenther  <rguenther@suse.de>
4823         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
4824         (lto_symtab_merge_decls_2): Likewise.
4825         * tree-ssa.c (useless_type_conversion_p): Likewise.
4826         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4827         * gimple.c (gtc_visited2, gtc_ob2): Remove.
4828         (struct type_pair_d): Make same_p an array indexed by mode.
4829         Update comment.
4830         (lookup_type_pair): Update initialization.
4831         (struct sccs): Adjust same_p type.
4832         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
4833         Adjust.
4834         (print_gimple_types_stats): Likewise.
4835         * gimple.h (enum gtc_mode): New.
4836         (gimple_types_compatible_p): Adjust prototype.
4838 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
4840         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
4841         again after processing insn.
4843 2010-07-23  Jie Zhang  <jie@codesourcery.com>
4845         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
4846         proper words when !tree_versionable_function_p.
4848 2010-07-23  Richard Guenther  <rguenther@suse.de>
4850         PR tree-optimization/45037
4851         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
4853 2010-07-23  Jie Zhang  <jie@codesourcery.com>
4855         * doc/extend.texi: Remove IP2K from the description of naked attribute.
4856         Add MCORE instead.
4858 2010-07-10  Andi Kleen  <ak@linux.intel.com>
4860         PR lto/44992
4861         * lto-opts.c (lto_write_options): Add NULL file_data argument to
4862         lto_get_section_name.
4863         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
4864         * lto-streamer-out.c (produce_asm): Likewise.
4865         (copy_function): Likewise.
4866         (produce_symtab): Likewise.
4867         (produce_asm_for_decls): Likewise.
4868         * lto-streamer.c (lto_get_section_name): Add file_data argument.
4869         Rewrite to add random postfix to LTO sections.
4870         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
4871         (lto_get_section_name): Add file_data argument to prototype.
4873 2010-07-10  Andi Kleen  <ak@linux.intel.com>
4875         * lto-section-in.c (lto_section_name): Synchronize names
4876         with lto_get_section_name.
4878 2010-07-10  Andi Kleen  <ak@linux.intel.com>
4880         * lto-opts.c (lto_read_file_options): Check for missing section.
4882 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4884         * ira.c (check_allocation): Correctly handle the case where an allocno
4885         with two objects was allocated to a single reg.
4887 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
4889         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
4890         (is_widening_mult_p): Likewise.
4891         (convert_to_widen): Use them.
4892         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
4893         well as integer ones.
4895 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
4897         * alias.c (true_dependence_1): New function, merged version of
4898         true_dependence and canon_true_dependence.
4899         (true_dependence): Simplify.
4900         (canon_true_dependence): Simplify.
4902 2010-07-22  Richard Henderson  <rth@redhat.com>
4904         PR target/45027
4905         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
4906         of V4SFmode for the SSE saves; increase stack alignment if needed.
4907         (ix86_gimplify_va_arg): Don't increase stack alignment here.
4909 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
4911         PR bootstrap/45028
4912         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
4913         call cprop_find_used_regs again via note_uses.
4915 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4917         * alias.c (get_alias_set): Fix formatting issues.
4919 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
4921         PR middle-end/44878
4922         * stmt.c (expand_value_return):  Call promote_function_mode with
4923         a for_return argument of 2 when returning by reference.
4925 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
4927         PR debug/45024
4928         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
4929         unit DIE if we can find the scope DIE.
4931 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4933         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
4934         changed.  Initialize OBJECT_SUBWORD.
4935         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
4936         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
4937         all callers changed.
4938         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
4939         (finish_allocno): Likewise.
4940         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
4941         (remove_low_level_allocnos): Likewise.
4942         (update_bad_spill_attribute): Likewise.
4943         (setup_min_max_allocno_live_range_point): Likewise.
4944         (sort_conflict_id_map): Likewise.
4945         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
4946         (ior_hard_reg_conflicts): New function.
4947         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
4948         (compress_conflict_vecs): Iterate over objects, not allocnos.
4949         (ira_add_live_range_to_object): New function.
4950         (object_range_compare_func): Renamed from allocno_range_compare_func.
4951         All callers changed.
4952         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
4953         subobjects, widen the min/max range of the lowest-order object to
4954         potentially include all other such low-order objects.
4955         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
4956         (check_allocation): Likewise.  Use more fine-grained tests for register
4957         conflicts.
4958         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
4959         allocno subobjects.
4960         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
4961         choices about which bits to set in each set.  Don't use
4962         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
4963         using the multiple sets we computed.
4964         (push_allocno_to_stack): Iterate over allocno subobjects.
4965         (all_conflicting_hard_regs_coalesced): New static function.
4966         (setup_allocno_available_regs_num): Use it.
4967         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
4968         subobjects.
4969         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
4970         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4971         by ALLOCNO_NUM_OBJECTS.
4972         (calculate_spill_cost): Likewise.
4973         (color_pass): Express if statement in a more normal way.
4974         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
4975         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
4976         (setup_slot_coalesced_allocno_live_ranges): Likewise.
4977         (allocno_reload_assign): Likewise.
4978         (ira_reassign_pseudos): Likewise.
4979         (fast_allocation): Likewise.
4980         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4981         (print_allocno_conflicts): Likewise.
4982         (ira_build_conflicts): Likewise.
4983         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
4984         callers changed.  Test subword 0 of each allocno for conflicts.
4985         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
4986         callers changed.  Iterate over allocno subobjects.
4987         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
4988         * ira-int.h (struct ira_allocno): New member: num_objects.
4989         Rename object to objects and change it into an array.
4990         (ALLOCNO_OBJECT): Add new argument N.
4991         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
4992         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
4993         (ior_hard_reg_conflicts): Declare.
4994         (ira_add_live_range_to_object): Declare.
4995         (ira_allocno_object_iterator): New.
4996         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
4997         (FOR_EACH_ALLOCNO_OBJECT): New macro.
4998         * ira-lives.c (objects_live): Renamed from allocnos_live; all
4999         uses changed.
5000         (allocnos_processed): New sparseset.
5001         (make_object_born): Renamed from make_allocno_born; take an
5002         ira_object_t argument.  All callers changed.
5003         (make_object_dead): Renamed from make_allocno_dead; take an
5004         ira_object_t argument.  All callers changed.
5005         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
5006         All callers changed.
5007         (mark_pseudo_regno_live): Iterate over allocno subobjects.
5008         (mark_pseudo_regno_dead): Likewise.
5009         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
5010         functions.
5011         (mark_ref_live): Detect subword accesses and call
5012         mark_pseudo_regno_subword_live as appropriate.
5013         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
5014         (process_bb_nodes_live): Deal with object-related updates first; set
5015         and test bits in allocnos_processed to avoid computing allocno
5016         statistics more than once.
5017         (create_start_finish_chains): Iterate over objects, not allocnos.
5018         (print_object_live_ranges): New function.
5019         (print_allocno_live_ranges): Use it.
5020         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
5021         and objects_live.
5023 2010-07-22  Richard Guenther  <rguenther@suse.de>
5025         PR lto/42451
5026         * gimple.c (gtc_next_dfs_num): New global.
5027         (struct sccs): Make value a union, add integer same_p member.
5028         (gtc_visit): New function.
5029         (gimple_types_compatible_p_1): New function, split out from ...
5030         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
5031         (iterative_hash_gimple_type): Adjust for sccs change.
5033 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5035         PR tree-optimization/44891
5036         * tree-sra.c: Include gimple-pretty-print.h.
5037         (replace_uses_with_default_def_ssa_name): Renamed to
5038         get_repl_default_def_ssa_name, return the new SSA name instead of
5039         replacing the old one.
5040         (sra_modify_assign): Dump a message when removing a load, if the LHS
5041         is an SSA_NAME, do not do any propagation, just set the RHS to a
5042         default definition SSA NAME, type convert if necessary.
5043         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
5045 2010-07-22  Richard Guenther  <rguenther@suse.de>
5047         PR tree-optimization/45017
5048         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
5049         TYPE_PRECISION of integral types in addition to size.
5051 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
5053         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
5054         when no C library is specified.
5056 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5058         * ipa-prop.h (struct ipa_node_params): Updated comment.
5059         (struct ipa_edge_args): Likewise.
5060         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
5062 2010-07-22  Martin Jambor  <mjambor@suse.cz>
5064         * cgraphunit.c (verify_edge_count_and_frequency): New function.
5065         (verify_cgraph_node): Verify frequencies of indirect edges.
5066         * tree-inline.c (tree_function_versioning): Update frequencies of
5067         indirect edges.
5069 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5071         PR target/43698
5072         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
5073         Set *arm_rev to be predicable.
5075 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5077         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
5078         (LINK_COMMAND_SPEC_A): New.
5079         (DSYMUTIL): New.
5080         (DSYMUTIL_SPEC): New.
5081         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
5082         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
5084 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
5086         * calls.c (load_register_parameters): Move check for zero
5087         sized items so that only the call to
5088         mem_overlaps_already_clobbered_arg_p () is protected.
5090 2010-07-22  Jan Hubicka  <jh@suse.cz>
5092         * ipa-pure-const.c (varying_state): Break out from ...
5093         (get_function_state): ... here; always return varying_state
5094         when state would be NULL otherwise.
5095         (remove_node_data): Do not free varying state.
5097 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5099         PR bootstrap/44970
5100         PR middle-end/45009
5101         * postreload.c: Include "target.h".
5102         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
5103         into account.
5104         (fixup_debug_insns): Don't copy the rtx.
5105         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
5106         Don't copy when replacing.  Call fixup_debug_insns in the case where
5107         we merged one add with another.
5108         (reload_combine_recognize_pattern): Fail if there aren't any uses.
5109         Try harder to determine whether we're picking a valid index register.
5110         Don't set store_ruid for an insn we're going to scan in the
5111         next iteration.
5112         (reload_combine): Remove unused code.
5113         (reload_combine_note_use): When updating use information for
5114         an old insn, ignore a use that occurs after store_ruid.
5115         * Makefile.in (postreload.o): Update dependencies.
5117         * function.c (record_hard_reg_sets): Restrict the previous change
5118         to cases where the incoming nominal mode is the same as the
5119         incoming promoted mode and everything happens in MODE_INT.
5121 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5123         PR debug/45015
5124         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
5125         ASM_OPERANDS_OUTPUT_IDX.
5126         (adjust_insn): For inline asm with multiple sets ensure first
5127         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
5128         the insn.
5130 2010-07-21  Richard Henderson  <rth@redhat.com>
5132         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
5133         comparison for avoiding xmm register saves.  Emit the xmm register
5134         saves explicitly.
5135         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
5136         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
5137         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
5138         Remove patterns and the associated splitters.
5140 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
5142         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
5143         and imagine parts of a complex, so that they can have the same
5144         base and fall into the same group.
5146 2010-07-21  Richard Guenther  <rguenther@suse.de>
5148         PR lto/45018
5149         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
5150         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
5151         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
5153 2010-07-21  Martin Jambor  <mjambor@suse.cz>
5155         PR tree-optimization/44900
5156         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
5157         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
5159 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
5161         PR middle-end/44738
5162         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
5164 2010-07-21  Richard Guenther  <rguenther@suse.de>
5166         PR middle-end/45013
5167         * tree-ssa.c (useless_type_conversion_p): Dispatch to
5168         gimple_types_compatible_p only when in lto.
5169         * gimple.c (gimple_types_compatible_p): Use canonical types
5170         to speed up comparison.
5172 2010-07-21  Richard Guenther  <rguenther@suse.de>
5174         * tree-flow.h (referenced_var): Move define ...
5175         * tree-flow-inline.h (referenced_var): ... here as an inline
5176         function.  Assert here ...
5177         * tree-dfa.c (referenced_var_lookup): ... instead of here.
5178         * tree-ssa.c (maybe_optimize_var): Check if the variable
5179         is in referenced vars.
5180         (execute_update_addresses_taken): Remove old broken check.
5181         * gimple-pretty-print.c (pp_points_to_solution): Use
5182         referenced_var_lookup.
5183         * tree-into-ssa.c (dump_decl_set): Likewise.
5185 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
5187         PR debug/45003
5188         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
5189         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
5190         ZERO_EXTEND here.
5192 2010-07-20  Richard Henderson  <rth@redhat.com>
5194         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
5196 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5198         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
5199         computing the sum of the stack pointer and a large constant.
5200         * config/arm/constraints.md (M): Remove superfluous parentheses.
5201         (Pc): New constraint.
5203 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5205         PR debug/45006
5206         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
5207         operand's type if exp is tcc_unary class tree.
5209 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5211         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
5212         Reverse sense of if_then_else condition.
5214 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
5216         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
5217         * config/rs6000/rs6000.c (rs6000_override_options): Set
5218         rs6000_block_move_inline_limit appropriately.
5219         (expand_block_move): Use rs6000_block_move_inline_limit.
5220         * doc/invoke.texi (mblock-move-inline-limit): Document.
5222 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
5224         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
5225         FROM and TO.  All callers changed.  Don't look for tracked uses,
5226         just scan the RTL for DEBUG_INSNs and substitute.
5227         (reload_combine_recognize_pattern): Call fixup_debug_insns.
5228         (reload_combine): Ignore DEBUG_INSNs.
5230 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
5232         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
5233         depth to 8 from 5.
5235         PR debug/45003
5236         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
5237         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
5238         instead of the result's type.
5240 2010-07-20  Richard Guenther  <rguenther@suse.de>
5242         PR tree-optimization/44977
5243         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
5244         SSA form.
5246 2010-07-20  Richard Guenther  <rguenther@suse.de>
5248         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
5249         (lto_symtab_merge_decls_2): Likewise.
5250         * gimple.h (gimple_types_compatible_p): Declare.
5251         * gimple.c (gimple_queue_type_fixup): Remove.
5252         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
5253         (gimple_compatible_complete_and_incomplete_type_p): New function.
5254         (gimple_types_compatible_p): Adjust.
5255         (gimple_register_type): Remove type fixup code.
5256         (print_gimple_types_stats): Adjust.
5257         (free_gimple_type_tables): Likewise.
5258         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
5259         * tree-ssa.c (useless_type_conversion_p): Likewise.
5261 2010-07-20  Richard Guenther  <rguenther@suse.de>
5263         PR middle-end/44971
5264         PR middle-end/44988
5265         * tree-ssa.c (maybe_optimize_var): New function split out from ...
5266         (execute_update_addresses_taken): ... here.
5267         (non_rewritable_mem_ref_base): Likewise.
5268         (execute_update_addresses_taken): Do not iterate over all referenced
5269         vars but just all local decls and parms.
5270         Properly check call and asm arguments and rewrite call arguments.
5272 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
5274         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
5275         to top level.
5276         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
5277         definitions ...
5278         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
5279         New macro.
5280         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
5282 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
5284         * gengtype.c (start_root_entry): New function, split out from
5285         write_root.  Check whether V is null and raise an error if so.
5286         (write_field_root): Check for V being null.  Don't raise an error here;
5287         set V to null instead.
5288         (write_root): Update comment above function.  Use start_root_entry.
5290 2010-07-19  Xinliang David Li  <davidxl@google.com>
5292         PR testsuite/44932
5293         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
5294         def edges.
5295         (find_uninit_use): Add dump.
5296         (is_use_properly_guarded): Ditto.
5297         (warn_uninitialized_phi): Ditto.
5298         (execute_late_warn_uninitialized): Ditto.
5300 2010-07-19  Richard Guenther  <rguenther@suse.de>
5302         PR middle-end/44941
5303         * expr.c (emit_block_move_hints): Move zero size check first.
5304         Move asserts to more useful places.
5305         * calls.c (load_register_parameters): Check for zero size.
5307 2010-07-19  Richard Henderson  <rth@redhat.com>
5309         * tree-optimize.c (execute_all_early_local_passes): New.  Change
5310         cgraph_state here ...
5311         (execute_early_local_optimizations): ... not here.  Remove.
5312         (pass_early_local_passes, pass_all_early_optimizations): Update.
5314 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
5316         * postreload.c (reload_combine_closest_single_use): Ignore the
5317         number of uses for DEBUG_INSNs.
5318         (fixup_debug_insns): New static function.
5319         (reload_combine_recognize_const_pattern): Use it.  Don't let the
5320         main loop be affected by DEBUG_INSNs.
5321         Really disallow moving adds past a jump insn.
5322         (reload_combine_recognize_pattern): Don't update use_ruid here.
5323         (reload_combine_note_use): Do it here.
5324         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
5326 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
5328         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
5329         of a loop.
5330         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
5332 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
5334         * config/i386/darwin.h: Define darwin_emit_branch_islands.
5335         (TARGET_MACHO_BRANCH_ISLANDS): New.
5336         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
5337         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
5338         default value.
5339         * config/i386/i386.c (output_pic_addr_const): Do not emit
5340         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
5341         (x86_output_mi_thunk): Adjust symbol creation.
5342         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
5343         Remove out of date comment.
5344         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
5345         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5346         (DARWIN_GENERATE_ISLANDS): Ditto.
5347         (output_call):  Do not emit branch islands unless
5348         darwin_emit_branch_islands is set.
5349         * config/darwin.c: Declare darwin_emit_branch_islands.
5350         (machopic_indirect_data_reference): Do not emit unless
5351         darwin_emit_branch_islands is set.
5352         (darwin_override_options): Set darwin_emit_branch_islands
5353         where it is needed.
5354         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
5356 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5358         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5359         sse_runtime, sse2_runtime.
5361 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
5363         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
5364         low half of a single-register SCmode return value before ORing
5365         it with the high half.
5366         * config/mips/mips16.S (MERGE_GPRf): Likewise.
5368 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5370         PR target/44805
5371         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
5372         on all targets.
5374 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
5376         PR target/42235
5377         * postreload.c (reload_cse_move2add): Return bool, true if anything.
5378         changed.  All callers changed.
5379         (move2add_use_add2_insn): Likewise.
5380         (move2add_use_add3_insn): Likewise.
5381         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
5382         reload_combine.
5383         (RELOAD_COMBINE_MAX_USES): Bump to 16.
5384         (last_jump_ruid): New static variable.
5385         (struct reg_use): New members CONTAINING_MEM and RUID.
5386         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
5387         (reload_combine_split_one_ruid, reload_combine_split_ruids,
5388         reload_combine_purge_insn_uses, reload_combine_closest_single_use
5389         reload_combine_purge_reg_uses_after_ruid,
5390         reload_combine_recognize_const_pattern): New static functions.
5391         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
5392         is true for our reg and that we have available index regs.
5393         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
5394         callers changed.  Use them to initialize fields in struct reg_use.
5395         (reload_combine): Initialize last_jump_ruid.  Be careful when to
5396         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
5397         Call reload_combine_recognize_const_pattern.
5398         (reload_combine_note_store): Update REAL_STORE_RUID field.
5400 2010-07-16  Jason Merrill  <jason@redhat.com>
5402         * Makefile.in (opts-common.o): Depend on options.h.
5404 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
5406         * tree.c (build_common_builtin_nodes): Use build_function_type_list
5407         instead of build_function_type.
5408         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
5409         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5411 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
5413         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
5414         do all the work.
5415         (rs6000_emit_int_cmove): Use function pointers for insn generation.
5416         Don't force values into registers unnecessarily.
5417         (output_isel): Assert that we're not given conditions we can't handle.
5418         Delete corresponding code.
5419         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
5420         scc_comparison_operator constraint.  Permit 0 for the consequent
5421         operand.  Permit any GPR for the alternative operand.
5422         (isel_unsigned_<mode>): Likewise.
5424 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
5426         PR target/44942
5427         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
5428         argument to const_tree.
5429         * config/i386/i386.c (function_arg_advance): If padding needs to be
5430         inserted before argument, increment cum->words by number of padding
5431         words as well.
5432         (contains_aligned_value_p): Change argument to const_tree.
5433         (ix86_function_arg_boundary): Change second argument to const_tree.
5435 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
5437         PR target/42235
5438         * function.c (record_hard_reg_sets): New static function.
5439         (assign_parm_setup_reg): If an optab for extending exists and the
5440         generated code clobbbers no hard regs, emit the insn directly and
5441         create a REG_EQUIV note.
5443 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5445         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
5446         TREE_CHAIN.
5447         * c-typeck.c (push_init_level): Likewise.
5448         (process_init_element): Likewise.
5450 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
5452         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
5453         (integer_three_node): Add.
5454         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
5455         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
5456         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
5457         of call build_int_cst.
5458         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
5459         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
5460         (find_interesting_uses_address): Ditto.
5461         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
5462         * tree-eh.c (lower_eh_constructs_2): Ditto.
5463         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
5464         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
5465         * expmed.c (expand_divmod): Ditto.
5466         * tree-mudflap.c (mx_register_decls): Ditto.
5467         * varasm.c (array_size_for_constructor): Ditto.
5468         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5469         * c-parser.c (c_parser_postfix_expression): Ditto.
5471 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5473         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
5474         New static variables.
5475         (reload_combine_recognize_pattern): New static function, broken out
5476         of reload_combine.
5477         (reload_combine): Use it.  Only initialize first_index_reg and
5478         last_index_reg once.
5480 2010-07-15  Richard Henderson  <rth@redhat.com>
5482         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
5483         when done.
5485 2010-07-15  Jan Hubicka  <jh@suse.cz>
5487         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
5488         comdats for broken gold.
5489         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
5491 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5493         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
5495 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5497         * tree.h (DECL_CHAIN): Define.
5498         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5499         * c-decl.c: Likewise.
5500         * c-parser.c: Likewise.
5501         * c-typeck.c: Likewise.
5502         * cfgexpand.c: Likewise.
5503         * cgraph.c: Likewise.
5504         * cgraphunit.c: Likewise.
5505         * combine.c: Likewise.
5506         * config/alpha/alpha.c: Likewise.
5507         * config/arm/arm.c: Likewise.
5508         * config/frv/frv.c: Likewise.
5509         * config/i386/i386.c: Likewise.
5510         * config/i386/winnt-cxx.c: Likewise.
5511         * config/ia64/ia64.c: Likewise.
5512         * config/iq2000/iq2000.c: Likewise.
5513         * config/mep/mep.c: Likewise.
5514         * config/mips/mips.c: Likewise.
5515         * config/pa/som.h: Likewise.
5516         * config/rs6000/rs6000.c: Likewise.
5517         * config/s390/s390.c: Likewise.
5518         * config/sh/sh.c: Likewise.
5519         * config/sh/symbian-cxx.c: Likewise.
5520         * config/sparc/sparc.c: Likewise.
5521         * config/spu/spu.c: Likewise.
5522         * config/stormy16/stormy16.c: Likewise.
5523         * config/vxworks.c: Likewise.
5524         * config/xtensa/xtensa.c: Likewise.
5525         * coverage.c: Likewise.
5526         * dbxout.c: Likewise.
5527         * dwarf2out.c: Likewise.
5528         * emit-rtl.c: Likewise.
5529         * expr.c: Likewise.
5530         * function.c: Likewise.
5531         * gimple-low.c: Likewise.
5532         * gimple-pretty-print.c: Likewise.
5533         * gimplify.c: Likewise.
5534         * integrate.c: Likewise.
5535         * ipa-inline.c: Likewise.
5536         * ipa-prop.c: Likewise.
5537         * ipa-split.c: Likewise.
5538         * ipa-struct-reorg.c: Likewise.
5539         * ipa-type-escape.c: Likewise.
5540         * langhooks.c: Likewise.
5541         * lto-cgraph.c: Likewise.
5542         * omp-low.c: Likewise.
5543         * stor-layout.c: Likewise.
5544         * tree-cfg.c: Likewise.
5545         * tree-complex.c: Likewise.
5546         * tree-dfa.c: Likewise.
5547         * tree-dump.c: Likewise.
5548         * tree-inline.c: Likewise.
5549         * tree-mudflap.c: Likewise.
5550         * tree-nested.c: Likewise.
5551         * tree-object-size.c: Likewise.
5552         * tree-pretty-print.c: Likewise.
5553         * tree-sra.c: Likewise.
5554         * tree-ssa-live.c: Likewise.
5555         * tree-ssa-loop-niter.c: Likewise.
5556         * tree-ssa-math-opts.c: Likewise.
5557         * tree-ssa-reassoc.c: Likewise.
5558         * tree-ssa-sccvn.c: Likewise.
5559         * tree-ssa-structalias.c: Likewise.
5560         * tree-tailcall.c: Likewise.
5561         * tree-vrp.c: Likewise.
5562         * tree.c: Likewise.
5563         * var-tracking.c: Likewise.
5564         * varasm.c: Likewise.
5566 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5568         PR target/44877
5569         * config/spu/spu.c (spu_expand_builtin_1): Allow references
5570         (as well as pointers) as argument to mask_for_load builtins.
5572 2010-07-15  Richard Guenther  <rguenther@suse.de>
5574         PR tree-optimization/44946
5575         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
5576         with accessing only padding properly.
5578 2010-07-15  Jan Hubicka  <jh@suse.cz>
5580         * ipa.c (function_and_variable_visibility): Variables marked as used
5581         should not be localized.
5583 2010-07-15  Jan Hubicka  <jh@suse.cz>
5585         * cgraph.c: Include lto-streamer.h
5586         (change_decl_assembler_name): Work when assembler name hash is at place.
5587         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
5588         be sure to rename it to avoid name clash.
5589         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
5590         Localize hidden symbols only when locally defined.
5592 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
5594         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
5596 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
5597             Kevin F. Quinn  <kevquinn@gentoo.org>
5599         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
5600         * common.opt: Add -Wtrampolines.
5601         * doc/invoke.texi: Add -Wtrampolines.
5603 2010-07-15  Jie Zhang  <jie@codesourcery.com>
5605         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
5606         cortex_a8_issue_ls.
5608 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
5610         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
5611         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
5613 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5615         * config/spu/spu.c (reg_names): Remove prototype.
5616         (call_used_regs): Likewise.
5618 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
5620         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
5621         "unused" with attribute "used".
5622         (__JCR_END__): Likewise.
5623         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
5624         "used" attribute.
5625         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
5627 2010-07-14  Richard Guenther  <rguenther@suse.de>
5629         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
5630         (maybe_fixup_decls): Likewise.
5631         (input_gimple_stmt): Do not fixup anything.
5632         * lto-streamer-out.c (output_gimple_stmt): Make sure all
5633         non-automatic variable uses are wrapped inside a MEM_REF.
5635 2010-07-14  Richard Henderson  <rth@redhat.com>
5637         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
5638         for functions.
5639         * varasm.c (assemble_variable): Remove early exit for functions;
5640         assert that we're given a variable.
5642 2010-07-14  Jie Zhang  <jie@codesourcery.com>
5644         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
5645         cortex_a8_default when neon_type is not none.
5647 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5649         * lower-subreg.c (subreg_context): New static bitmap.
5650         (decompose_multiword_subregs): Allocate and free it.
5651         (find_decomposable_subregs): Set a bit in it for a register that
5652         occurs in a subreg that changes mode but not size.
5653         (can_decompose_p): Test it instead of non_decomposable_context.
5655 2010-07-14  Richard Guenther  <rguenther@suse.de>
5657         PR tree-optimization/44824
5658         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
5659         is_gimple_mem_ref_addr.
5660         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
5661         non-decl_address_invariant_p addresses.
5663 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5665         * reload.c (find_reloads): Revert code to penalize small register
5666         classes that was brought in with the IRA merge.
5668 2010-07-14  Richard Guenther  <rguenther@suse.de>
5670         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
5671         as base of ARRAY_REFs.
5673 2010-07-14  Richard Guenther  <rguenther@suse.de>
5675         PR middle-end/44930
5676         * tree-pretty-print.c (do_niy): Do not print a newline.
5678 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
5680         * ira-int.h (struct ira_object): New.
5681         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
5682         (struct ira_allocno): Remove members min, max,
5683         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
5684         conflict_allocnos_num and conflict_vec_p.  Add new member object.
5685         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
5686         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
5687         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
5688         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
5689         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
5690         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
5691         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
5692         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
5693         an ira_object_t rather than ira_allocno_t.  All uses changed.
5694         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
5695         contains a vector of ira_object_t; all uses changed.
5696         (ira_objects_num): Declare variable.
5697         (ira_create_allocno_object): Declare function.
5698         (ira_conflict_vector_profitable_p): Adjust prototype.
5699         (ira_allocate_conflict_vec): Renamed from
5700         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
5701         (ira_allocate_object_conflicts): Renamed from
5702         ira_allocate_allocno_conflicts; first arg now ira_object_t.
5703         (struct ira_object_iterator): New.
5704         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
5705         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
5706         to conflict_vec_p.  All uses changed.
5707         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
5708         Changed to take into account that conflicts are now tracked for
5709         objects.
5710         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
5711         Args changed to accept ira_object_t.  All uses changed.
5712         (allocnos_conflict_p): New static function.
5713         (collected_conflict_objects): Renamed from collected_allocno_objects;
5714         now a vector of ira_object_t.  All uses changed.
5715         (build_conflict_bit_table): Changed to take into account that
5716         conflicts are now tracked for objects.
5717         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
5718         (print_allocno_conflicts, ira_build_conflicts): Likewise.
5719         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
5720         setup_allocno_left_conflicts_size, allocno_reload_assign,
5721         fast_allocation): Likewise.
5722         * ira-lives.c (make_hard_regno_born, make_allocno_born)
5723         process_single_reg_class_operands, process_bb_node_lives): Likewise.
5724         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
5725         Likewise.
5726         * ira-build.c (ira_objects_num): New variable.
5727         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
5728         contains a vector of ira_object_t; all uses changed.
5729         (ira_object_id_map_vec): Corresponding change.
5730         (object_pool): New static variable.
5731         (initiate_allocnos): Initialize it.
5732         (finish_allocnos): Free it.
5733         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
5734         New functions.
5735         (ira_create_allocno): Don't set members that were removed.
5736         (ira_set_allocno_cover_class): Don't change conflict hard regs.
5737         (merge_hard_reg_conflicts): Changed to take into account that
5738         conflicts are now tracked for objects.
5739         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
5740         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
5741         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
5742         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
5743         setup_min_max_conflict_allocno_ids, ):  Likewise.
5744         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
5745         to ira_object_t; all callers changed.
5746         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
5747         to ira_object_t, all callers changed.
5748         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
5749         to ira_object_t, all callers changed.
5750         (conflict_check, curr_conflict_check_tick): Renamed from
5751         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
5752         changed.
5753         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
5754         arg changed to ira_object_t, all callers changed.
5755         (create_cap_allocno): Call ira_create_allocno_object.
5756         (finish_allocno): Free the corresponding object.
5757         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
5758         callers changed.  Adjusted for dealing with objects.
5759         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
5760         dealing with objects.
5761         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
5763         * ira-int.h (struct live_range): Rename allocno member to object
5764         and change type to ira_object_t.
5765         (struct ira_object): New member live_ranges.
5766         (struct ira_allocno): Remove member live_ranges.
5767         (ALLOCNO_LIVE_RANGES): Remove.
5768         (OBJECT_LIVE_RANGES): New macro.
5769         (ira_create_live_range, ira_copy_live_range_list,
5770         ira_merge_live_range_list, ira_live_ranges_intersect_p,
5771         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
5772         * ira-build.c (ira_create_object): Initialize live ranges here.
5773         (ira_create_allocno): Not here.
5774         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
5775         changed to ira_object_t, all callers changed.
5776         (copy_live_range): Rename from copy_allocno_live_range, all callers
5777         changed.
5778         (ira_copy_live_range_list): Rename from
5779         ira_copy_allocno_live_range_list, all callers changed.
5780         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
5781         all callers changed.
5782         (ira_live_ranges_intersect_p): Rename from
5783         ira_allocno_live_ranges_intersect_p, all callers changed.
5784         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
5785         callers changed.
5786         (ira_finish_live_range_list): Rename from
5787         ira_finish_allocno_live_range_list, all callers changed.
5788         (change_object_in_range_list): Rename from change_allocno_in_range_list,
5789         last arg changed to ira_object_t, all callers changed.
5790         (finish_allocno): Changed to expect live ranges in the allocno's object.
5791         (move_allocno_live_ranges, copy_allocno_live_ranges,
5792         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
5793         ira_flattening, ira_build): Likewise.
5794         * ira-color.c (allocnos_have_intersected_live_ranges_p,
5795         slot_coalesced_allocno_live_ranges_intersect,
5796         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
5797         * ira-conflicts.c (build_conflict_bit_table): Likewise.
5798         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
5799         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
5800         make_allocno_dead, create_start_finish_chains,
5801         remove_some_program_points_and_update_live_ranges,
5802         ira_debug_live_range_list): Likewise.
5804         * ira-int.h (ira_object_conflict_iterator): Rename from
5805         ira_allocno_conflict_iterator.
5806         (ira_object_conflict_iter_init): Rename from
5807         ira_allocno_conflict_iter_init, second arg changed to
5808         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
5809         FOR_EACH_ALLOCNO_CONFLICT.
5810         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
5811         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
5812         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
5813         * ira-conflicts.c (print_allocno_conflicts): Likewise.
5815 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
5817         PR other/44874
5818         * tree-dump.c (dump_options): Add enumerate_locals entry.
5819         Add TDF_NOID exclusion to all entry.
5820         * tree-dump.h (dump_enumerated_decls): Declare.
5821         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
5822         Don't display type uid.
5823         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
5824         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
5825         * tree-ssa-live.c: Include gimple.h.
5826         (numbered_tree_d): New struct.
5827         (numbered_tree): New typedef.
5828         (DEF_VEC_O (numbered_tree): New.
5829         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
5830         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
5831         (dump_enumerated_decls): Likewise.
5832         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
5833         debug info and flag_dump_final_insns, call dump_enumerated_decls.
5834         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
5835         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
5837 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
5839         * expmed.h (MAX_BITS_PER_WORD): Move to...
5840         * defaults.h (MAX_BITS_PER_WORD): ...here.
5842 2010-07-13  DJ Delorie  <dj@redhat.com>
5844         * config/h8300/h8300.c (h8300_init_once): Default to
5845         -fstrict_volatile_bitfields.
5847         * config/sh/sh.c (sh_override_options): Default to
5848         -fstrict_volatile_bitfields.
5850         * config/rx/rx.c (rx_option_override): New.
5852         * config/m32c/m32c.c (m32c_override_options): Default to
5853         -fstrict_volatile_bitfields.
5855 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
5857         * tree.h (build_function_call_expr): Delete.
5858         (build_call_expr_loc_array): New function.
5859         (build_call_expr_loc_vec): New function.
5860         * tree-flow.h (struct omp_region): Change type of ws_args field
5861         to a VEC.
5862         * builtins.c (build_function_call_expr): Delete.
5863         (build_call_expr_loc_array): New function.
5864         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
5865         (build_call_expr): Likewise.
5866         (build_call_expr_loc_vec): New function.
5867         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
5868         build_function_call_expr.
5869         * expr.c (emutls_var_address): Likewise.
5870         * varasm.c (emutls_common_1): Likewise.
5871         * omp-low.c (expand_omp_atomic_mutex): Likewise.
5872         (expand_omp_taskreg): Adjust for new type of region->ws_args.
5873         (get_ws_args_for): Return a VEC instead of a tree.
5874         (expand_parallel_call): Call build_call_expr_loc_vec instead of
5875         build_function_call_expr.
5876         * stor-layout.c (self_referential_size): Likewise.
5878 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
5880         PR testsuite/44701
5881         * recog.c (constrain_operands): Allow side-effects in memory
5882         operands if either < or > constraint is used, rather than if
5883         both < and > is used.
5885 2010-07-13  Richard Guenther  <rguenther@suse.de>
5887         PR middle-end/44911
5888         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
5889         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
5890         without name.
5892 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5894         PR target/44761
5895         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
5896         to variable emited.
5897         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
5898         * config/sh/sh.md (symGOT_load): Likewise.
5899         (symDTPOFF2reg): Likewise.
5900         (symTPOFF2reg): Likewise.
5902 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5904         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
5905         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
5907 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5909         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
5910         explanation.
5911         Find ucontext_t * on Solaris 11.
5912         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
5913         Handle new Solaris 11 __sighndlr patterns.
5915 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
5917         PR debug/44901
5918         * vec.h (VEC_block_remove): Fix comment.
5919         * tree-ssa-live.c (remove_unused_locals): Don't use
5920         VEC_unordered_remove on local_decls, instead replace a single
5921         vector element in each iteration if at least one element had
5922         to be removed and VEC_truncate at the end.
5923         * omp-low.c (expand_omp_taskreg): Likewise.
5925 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5927         * c-decl.c (finish_function): Fix typo in comment.
5929 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5931         PR bootstrap/44921
5932         * postreload.c (move2add_use_add3_insn): Silence gcc warning
5933         on min_regno.
5935 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
5937         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
5938         (simplify_stmt_using_ranges): Use it.
5940 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5942         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
5943         member.  Do not mark as GTY(()).
5944         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
5945         (spu_builtin_decls): New static variable.
5946         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
5947         (spu_init_builtins): Likewise.
5948         (spu_builtin_mul_widen_even): Likewise.
5949         (spu_builtin_mul_widen_odd): Likewise.
5950         (spu_builtin_mask_for_load): Likewise.
5951         (spu_builtin_vec_perm): Likewise.
5952         * config/spu/spu-c.c: Include "target.h".
5953         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
5954         of using spu_builtins[].fndecl.
5956 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5958         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
5959         imply -minterlink-mips16.
5961 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5963         * config/mips/mips.h (mips16_globals): Declare.
5964         (SWITCHABLE_TARGET): Define.
5965         * config/mips/mips.c: Include target-globals.h.
5966         (mips16_globals): New variable.
5967         (mips_set_mips16_mode): Use save_target_globals and
5968         restore_target_globals instead of target_reinit.
5970 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5972         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
5973         to say that the function can be called more than once.
5974         * target-globals.c (save_target_globals): Call init_reg_sets.
5976 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5978         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
5979         * bb-reorder.h: New file.
5980         * bb-reorder.c (default_target_bb_reorder): New variable.
5981         (this_target_bb_reorder): New conditional variable.
5982         (uncond_jump_length): Redefine as a macro.
5983         * target-globals.h (this_target_bb_reorder): Declare.
5984         (target_globals): Add a bb_reorder field.
5985         (restore_target_globals): Copy the bb_reorder field to
5986         this_target_bb-reorder.
5987         * target-globals.c: Include bb-reorder.h.
5988         (default_target_globals): Initialize the bb_reorder field.
5989         (save_target_globals): Likewise.
5991 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5993         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
5994         * gcse.h: New file.
5995         * gcse.c: Include gcse.h.
5996         (default_target_gcse): New variable.
5997         (this_target_gcse): New conditional variable.
5998         (can_copy): Redefine as a macro.
5999         (can_copy_init_p): New macro.
6000         (can_copy_p): Remove can_copy_init_p.
6001         * target-globals.h (this_target_gcse): Declare.
6002         (target_globals): Add a gcse field.
6003         (restore_target_globals): Copy the gcse field to this_target_gcse.
6004         * target-globals.c: Include gcse.h.
6005         (default_target_globals): Initialize the gcse field.
6006         (save_target_globals): Likewise.
6008 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6010         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
6011         and x_ira_prohibited_mode_move_regs_initialized_p.
6012         (ira_prohibited_mode_move_regs): Redefine as a macro.
6013         * ira.c (ira_prohibited_mode_move_regs): Delete.
6014         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
6016 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6018         * reload.h (target_reload): Add x_cached_reg_save_code and
6019         x_cached_reg_restore_code.
6020         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
6021         Redefine as macros.
6023 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6025         * Makefile.in (target-globals.o): Depend on builtins.h.
6026         * builtins.h: New file.
6027         * builtins.c: Include builtins.h.
6028         (default_target_builtins): New variable.
6029         (this_target_builtins): New conditional variable.
6030         (apply_args_mode, apply_result_mode): Redefine as macros.
6031         * target-globals.h (this_target_builtins): Declare.
6032         (target_globals): Add a builtins field.
6033         (restore_target_globals): Copy the builtins field to
6034         this_target_builtins.
6035         * target-globals.c: Include builtins.h.
6036         (default_target_globals): Initialize the builtins field.
6037         (save_target_globals): Likewise.
6039 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6041         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
6042         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
6043         from expmed.c.
6044         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
6045         (alg_hash, alg_hash_used_p): New macros.
6046         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
6047         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
6048         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
6050 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6052         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
6053         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
6054         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
6055         (this_op_costs, costs_classes): Redefine as macros.
6056         (record_reg_classes): Don't take op_costs as a parameter.
6057         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
6058         (scan_one_insn): Update call to record_operand_costs.
6060 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6062         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
6063         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
6064         (target_ira_int): New structure.
6065         (default_target_ira_int): Declare.
6066         (this_target_ira_int): Declare as a variable or define as a macro.
6067         (ira_reg_mode_hard_regset, ira_register_move_cost)
6068         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
6069         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
6070         (prohibited_class_mode_regs, ira_important_classes_num)
6071         (ira_important_classes, ira_reg_class_intersect)
6072         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
6073         (ira_reg_class_union): Redefine as macros.
6074         * ira.h (target_ira): New structure.
6075         (default_target_ira): Declare.
6076         (this_target_ira): Declare as a variable or define as a macro.
6077         (ira_available_class_regs, ira_hard_regno_cover_class)
6078         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
6079         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
6080         (ira_class_hard_regs_num): Redefine as macros.
6081         * ira.c (default_target_ira, default_target_ira_int): New variables.
6082         (this_target_ira, this_target_ira_int): New conditional variables.
6083         (ira_reg_mode_hard_regset, ira_memory_move_cost)
6084         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
6085         (ira_class_subset_p): Delete.
6086         (no_unit_alloc_regs): Redefine as a macro.
6087         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
6088         (ira_class_hard_regs_num, ira_class_hard_reg_index)
6089         (ira_available_class_regs): Delete.
6090         (alloc_reg_class_subclasses): Redefine as a macro.
6091         (ira_reg_class_cover_size, ira_reg_class_cover)
6092         (ira_important_classes_num, ira_important_classes)
6093         (ira_important_class_nums, ira_class_translate): Delete.
6094         (cover_class_order): Document the variable's lifetime.
6095         (reorder_important_classes): Don't set ira_important_class_nums.
6096         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
6097         (ira_reg_class_super_classes, ira_reg_class_union)
6098         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
6099         Delete.
6100         (setup_reg_class_nregs): Don't set ira_max_regs.
6101         (prohibited_class_mode_regs): Delete.
6102         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
6103         (target_globals): Add ira and ira_int fields.
6104         (restore_target_globals): Copy the ira field to this_target_ira
6105         and the ira_int field to this_target_ira_int.
6106         * target-globals.c: Include ira-int.h.
6107         (default_target_globals): Initialize the ira and ira_int fields.
6108         (save_target_globals): Likewise.
6110 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6112         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
6113         * cfgloop.h (target_cfgloop): New structure.
6114         (default_target_cfgloop): Declare.
6115         (this_target_cfgloop): Declare as a variable or define as a macro.
6116         (target_avail_regs, target_clobbered_regs, target_res_regs)
6117         (target_reg_cost, target_spill_cost): Redefine as macros.
6118         * cfgloopanal.c (default_target_cfgloop): New variable.
6119         (this_target_cfgloop): New conditional variable.
6120         (target_avail_regs, target_clobbered_regs, target_res_regs)
6121         (target_reg_cost, target_spill_cost): Delete.
6122         * target-globals.h (this_target_cfgloop): Declare.
6123         (target_globals): Add a cfgloop field.
6124         (restore_target_globals): Copy the cfgloop field to
6125         this_target_cfgloop.
6126         * target-globals.c: Include cfgloop.h.
6127         (default_target_globals): Initialize the cfgloop field.
6128         (save_target_globals): Likewise.
6130 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6132         * regs.h (target_regs): Add x_direct_load, x_direct_store and
6133         x_float_extend_from_mem.
6134         (direct_load, direct_store, float_extend_from_mem): New macros.
6135         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
6137 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6139         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
6140         (target-globals.o): Depend on $(LIBFUNCS_H).
6141         * libfuncs.h: Include hashtab.h.
6142         (libfunc_entry): Moved from optabs.c.
6143         (target_libfuncs): New structure.
6144         (default_target_libfuncs): Declare.
6145         (this_target_libfuncs): Declare as a variable or define as a macro.
6146         (libfunc_table): Redefine as a macro.
6147         * optabs.c (default_target_libfuncs): New variable.
6148         (this_target_libfuncs): New conditional variable.
6149         (libfunc_table): Delete.
6150         (libfunc_entry): Moved to optabs.h.
6151         (libfunc_hash): Redefine as a macro.
6152         (hash_libfunc, eq_libfunc): Fix comments.
6153         (init_optabs): Use libfunc_hash to detect cases where the function
6154         has already been called.  Clear the hash table instead of
6155         recreating it.
6156         * target-globals.h (this_target_libfuncs): Declare.
6157         (target_globals): Add a libfuncs field.
6158         (restore_target_globals): Copy the libfuncs field to
6159         this_target_libfuncs.
6160         * target-globals.c: Include libfuncs.h.
6161         (default_target_globals): Initialize the libfuncs field.
6162         (save_target_globals): Likewise.
6164 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6166         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
6167         in all dependency lists.
6169 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6171         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
6172         * optabs.h (target_optabs): New structure.
6173         (default_target_optabs): Declare.
6174         (this_target_optabs): Declare as a variable or define as a macro.
6175         (optab_table, convert_optab_table, direct_optab_table): Redefine
6176         as macros.
6177         * optabs.c (default_target_optabs): New variable.
6178         (this_target_optabs): New conditional variable.
6179         (optab_table, convert_optab_table, direct_optab_table): Delete.
6180         * target-globals.h (this_target_optabs): Declare.
6181         (target_globals): Add a optabs field.
6182         (restore_target_globals): Copy the optabs field to
6183         this_target_optabs.
6184         * target-globals.c: Include expr.h and optabs.h.
6185         (default_target_globals): Initialize the optabs field.
6186         (save_target_globals): Likewise.
6188 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6190         * flags.h (target_flagstate): Add x_flag_excess_precision.
6191         (flag_excess_precision): Redefine as a macro.
6192         * toplev.c (flag_excess_precision): Delete.
6194 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6196         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
6197         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
6198         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
6199         (no_caller_save_reg_set): Redefine as a macro.
6200         * reload.h (target_reload): Add x_caller_save_initialized_p and
6201         x_regno_save_mode.
6202         (caller_save_initialized_p): Redefine as a macro.
6203         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
6204         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
6205         (regno_save_mode): Redefine as a macro.
6207 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6209         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
6210         * expmed.h: New file.
6211         * expmed.c (default_target_costs): New variable.
6212         (this_target_costs): New conditional variable.
6213         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
6214         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
6215         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
6216         * target-globals.h (this_target_expmed): Declare.
6217         (target_globals): Add a expmed field.
6218         (restore_target_globals): Copy the expmed field to
6219         this_target_expmed.
6220         * target-globals.c: Include expmed.h.
6221         (default_target_globals): Initialize the expmed field.
6222         (save_target_globals): Likewise.
6224 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6226         * Makefile.in (target-globals.o): Depend on reload.h.
6227         * reload.h (target_reload): New structure.
6228         (default_target_reload): Declare.
6229         (this_target_reload): Declare as a variable or define as a macro.
6230         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
6231         * reload1.c (default_target_reload): New variable
6232         (this_target_reload): New conditional variable.
6233         (indirect_symref_ok, double_reg_address_ok): Delete.
6234         (spill_indirect_levels): Redefine as a macro.
6235         * target-globals.h (this_target_reload): Declare.
6236         (target_globals): Add a reload field.
6237         (restore_target_globals): Copy the reload field to
6238         this_target_reload.
6239         * target-globals.c: Include hard-reg-set.h.
6240         (default_target_globals): Initialize the reload field.
6241         (save_target_globals): Likewise.
6243 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6245         * rtl.h (target_rtl): Add x_static_reg_base_value.
6246         * alias.c (static_reg_base_value): Redefine as a macro.
6248 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6250         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
6251         (GTFILES): Remove reginfo.c.
6252         * rtl.h (target_rtl): Add x_top_of_stack.
6253         (top_of_stack): New macro.
6254         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
6255         (top_of_stack): Delete.
6257 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6259         * regs.h (target_regs): Add x_hard_regs_of_mode,
6260         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
6261         x_may_move_out_cost and x_last_mode_for_init_move_cost.
6262         (have_regs_of_mode, contains_reg_of_mode, move_cost)
6263         (may_move_in_cost, may_move_out_cost): Redefine as macros.
6264         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
6265         (may_move_in_cost, may_move_out_cost): Delete.
6266         (last_mode_for_init_move_cost): Redefine as a macro.
6268 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6270         * hard-reg-set.h (target_hard_regs): New structure.
6271         (default_target_hard_regs): Declare.
6272         (this_target_hard_regs): Declare as a variable or define as a macro.
6273         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
6274         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
6275         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
6276         (reg_class_size, reg_class_subclasses, reg_class_subunion)
6277         (reg_class_superunion, reg_names): Redefine as macros.
6278         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
6279         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
6280         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
6281         (reg_class_contents, reg_class_size, reg_class_subclasses)
6282         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
6283         (default_target_hard_regs): New variable
6284         (this_target_hard_regs, initial_call_really_used_regs)
6285         (initial_reg_alloc_order): New conditional variables.
6286         (initial_reg_names): New variable.
6287         (init_reg_sets): Assert that initial_call_really_used_regs,
6288         initial_reg_alloc_order and initial_reg_names
6289         are all the same size as their variable counterparts.  Use them to
6290         initialize those counterparts.
6291         * target-globals.h (this_target_hard_regs): Declare.
6292         (target_globals): Add a hard_regs field.
6293         (restore_target_globals): Copy the hard_regs field to
6294         this_target_hard_regs.
6295         * target-globals.c: Include hard-reg-set.h.
6296         (default_target_globals): Initialize the hard_regs field.
6297         (save_target_globals): Likewise.
6299 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6301         * Makefile.in (target-globals.o): Depend on $(RTL_H).
6302         * rtl.h (target_rtl): New structure.
6303         (default_target_rtl): Declare.
6304         (this_target_rtl): Declare as a variable or define as a macro.
6305         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
6306         Redefine as macros.
6307         * emit-rtl.c (default_target_rtl): New variable.
6308         (this_target_rtl): New conditional variable.
6309         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
6310         (return_address_pointer_rtx): Delete.
6311         (initial_regno_reg_rtx): New macro.
6312         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
6313         (init_emit_regs): Likewise.
6314         * target-globals.h (this_target_rtl): Declare.
6315         (target_globals): Add a rtl field.
6316         (restore_target_globals): Copy the rtl field to this_target_rtl.
6317         * target-globals.c: Include rtl.h.
6318         (default_target_globals): Initialize the rtl field.
6319         (save_target_globals): Likewise.
6321 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6323         * Makefile.in (target-globals.o): Depend on $(REGS_H).
6324         * regs.h (target_reg_modes): New structure.
6325         (default_target_reg_modes): Declare.
6326         (this_target_reg_modes): Declare as a variable or define as a macro.
6327         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
6328         * reginfo.c (default_target_reg_modes): New variable.
6329         (this_target_reg_modes): New conditional variable.
6330         (hard_regno_nregs, reg_raw_mode): Delete.
6331         * target-globals.h (this_target_regs): Declare.
6332         (target_globals): Add a regs field.
6333         (restore_target_globals): Copy the regs field to this_target_regs.
6334         * target-globals.c: Include regs.h.
6335         (default_target_globals): Initialize the regs field.
6336         (save_target_globals): Likewise.
6338 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
6340         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
6341         * doc/tm.texi: Regenerate.
6342         * Makefile.in (OBJS-common): Add target-globals.o.
6343         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
6344         and target-globals.h.
6345         (target-globals.o): New rule.
6346         (GTFILES): Include $(srcdir)/target-globals.h.
6347         * defaults.h (SWITCHABLE_TARGET): Define.
6348         * gengtype.c (open_base_files): Add target-globals.h to the
6349         list of includes.
6350         * target-globals.h: New file.
6351         * target-globals.c: Likewise.
6353         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
6354         * flags.h (target_flag_state): New structure.
6355         (default_target_flag_state): Declare.
6356         (this_target_flag_state): Declare as a variable or define as a macro.
6357         (align_loops_log): Redefine as a macro.
6358         (align_loops_max_skip, align_jumps_log): Likewise.
6359         (align_jumps_max_skip, align_labels_log): Likewise.
6360         (align_labels_max_skip, align_functions_log): Likewise.
6361         * toplev.c (default_target_flag_state): New variable.
6362         (this_target_flag_state): New conditional variable.
6363         (align_loops_log): Delete.
6364         (align_loops_max_skip, align_jumps_log): Likewise.
6365         (align_jumps_max_skip, align_labels_log): Likewise.
6366         (align_labels_max_skip, align_functions_log): Likewise.
6367         * target-globals.h (this_target_flag_state): Declare.
6368         (target_globals): Add a flag_state field.
6369         (restore_target_globals): Copy the flag_state field to
6370         this_target_flag_state.
6371         * target-globals.c: Include flags.h.
6372         (default_target_globals): Initialize the flag_state field.
6373         (save_target_globals): Likewise.
6375 2010-07-12  Jie Zhang  <jie@codesourcery.com>
6377         * postreload.c (reg_symbol_ref[]): New.
6378         (move2add_use_add2_insn): New.
6379         (move2add_use_add3_insn): New.
6380         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
6381         (move2add_note_store): Likewise.
6383 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
6385         PR rtl-optimization/44752
6386         * genautomata.c (main): Don't emit an empty file even if there
6387         is no automaton.
6389 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6391         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
6392         ix86_solaris_return_in_memory.
6393         * config/i386-protos.h: Reflect this.
6394         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6395         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
6396         Move ...
6397         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
6399 2010-07-12  Jie Zhang  <jie@codesourcery.com>
6401         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
6402         align the stack when it's going to be saved.
6404 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6406         PR pch/14940
6407         * config/host-solaris.c (mmap_fixed): New function.
6408         (sol_gt_pch_get_address): Use it.
6409         (sol_gt_pch_use_address): Likewise.
6411 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6413         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6414         pentiumpro on Solaris 8 and 9/x86.
6415         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
6416         Document SSE/SSE2 support.
6417         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
6419 2010-07-12  Andi Kleen  <ak@linux.intel.com>
6421         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
6422         instead of gcc_assert to print better error message for multiple
6423         prevailing defs.
6425 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
6427         * config/i386/i386.c (ix86_asm_output_function_label): Change format
6428         string placeholder from 0x%x to %#x.
6429         (ix86_code_end): Use putc to output '\n'.
6430         (ix86_print_operand) <case ';'>: Use putc to output ';'.
6432 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
6434         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
6435         in directive -export.
6437 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
6439         * reginfo.h (reg_classes_intersect_p): Change arguments type to
6440         reg_class_t.
6441         * rtl.h (reg_classes_intersect_p): Adjust prototype.
6443         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6444         Remove macros.
6445         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
6446         rs6000_memory_move_cost): Remove
6447         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
6448         TARGET_MEMORY_MOVE_COST): Define.
6449         (rs6000_register_move_cost): Make static. Change arguments type from
6450         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
6451         (rs6000_memory_move_cost): Make static. Change arguments type from
6452         'enum reg_class' to reg_class_t.
6454 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
6456         PR middle-end/42505
6457         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
6458         lookup code into....
6459         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
6460         new functions.
6461         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
6462         * cfgloopanal.c (target_clobbered_regs): Define.
6463         (init_set_costs): Initialize target_clobbered_regs.
6464         (estimate_reg_pressure_cost): Add call_p argument.  When true,
6465         adjust the number of available registers to exclude the
6466         call-clobbered registers.
6467         * cfgloop.h (target_clobbered_regs): Declare.
6468         (estimate_reg_pressure_cost): Adjust declaration.
6469         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
6470         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
6471         (determine_set_costs): Dump target_clobbered_regs.
6472         (loop_body_includes_call): New function.
6473         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
6474         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
6475         call_p flag through.
6476         (best_gain_for_invariant): Likewise.
6477         (find_invariants_to_move): Likewise.
6478         (move_single_loop_invariants): Likewise, using already-computed
6479         has_call field.
6481 2010-07-10  Richard Guenther  <rguenther@suse.de>
6482             Joern Rennecke  <joern.rennecke@embecosm.com>
6484         PR debug/44832
6485         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
6486         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
6487         unless they have DECL_IGNORED_P set.
6489 2010-07-10  Richard Guenther  <rguenther@suse.de>
6491         PR lto/44889
6492         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
6493         helper function.
6494         (gimple_types_compatible_p): Similar to pointed-to
6495         types allow and merge a mix of complete and incomplete aggregate.
6496         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
6497         (iterative_hash_gimple_type): Adjust for that.
6499 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
6501         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
6503 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
6505         PR objc/44140
6506         * config/darwin.c (output_objc_section_asm_op): Save and restore
6507         section when outputting ObjC section list.
6509 2010-07-09  Jan Hubicka  <jh@suse.cz>
6511         * lto-streamer-out.c (produce_symtab): Do not write alias
6512         cgraph/varpool nodes.
6514 2010-07-09  Jan Hubicka  <jh@suse.cz>
6516         * tree-inline.c (declare_return_variable): Fix ICE while
6517         inlining DECL_BY_VALUE function not in SSA form
6519 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
6521         PR tree-optimization/44576
6522         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
6523         New.  Pull out from is_loop_prefetching_profitable to implement
6524         the trip count to ahead ratio heuristic.
6525         (mem_ref_count_reasonable_p): New.  Pull out from
6526         is_loop_prefetching_profitable to implement the instruction to
6527         memory reference ratio heuristic.  Also consider not reasonable if
6528         the memory reference count is above a threshold (to avoid
6529         explosive compilation time.
6530         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
6531         is_loop_prefetching_profitable to implement the instruction to
6532         prefetch ratio heuristic.
6533         (is_loop_prefetching_profitable): Removed.
6534         (loop_prefetch_arrays): Distribute the cost analysis across the
6535         function to allow early exit of the prefetch analysis.
6536         is_loop_prefetching_profitable is splitted into three functions,
6537         with each one called as early as possible.
6538         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
6539         number of memory references in a loop is considered too many.
6541 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
6543         * reload.c (find_reloads): Don't clear badop if we have a winreg
6544         alternative, but not win, and the class only has fixed regs.
6545         * hard-reg-set.h (class_only_fixed_regs): Declare.
6546         * reginfo.c (class_only_fixed_regs): New array.
6547         (init_reg_sets_1): Initialize it.
6548         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
6549         discourage alternatives using the stack pointer.
6551         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
6553         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
6555         * config/arm/arm.md (cbranchqi4): Fix array size.
6556         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
6557         calculating length.
6559 2010-07-09  Richard Guenther  <rguenther@suse.de>
6561         * gimple.c (struct type_fixup_s): New struct and VEC type.
6562         (gimple_register_type_fixups): New static global.
6563         (gimple_queue_type_fixup): New function.
6564         (gimple_types_compatible_p): Queue type fixups instead of
6565         applying them here.
6566         (gimple_register_type): Apply queued fixups for the
6567         canonical type.  Empty the type fixup queue.
6569 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
6571         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
6572         * configure: Regenerate.
6573         * config.in: Ditto.
6575 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
6576             Denys Vlasenko  <dvlasenk@redhat.com>
6577             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
6579         PR tree-optimization/28632
6580         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
6581         (extract_range_from_binary_expr): Further optimize
6582         BIT_AND_EXPR and BIT_IOR_EXPR.
6584 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
6586         * tree-if-conv.c (fold_or_predicates): New.
6587         (add_to_predicate_list): Call it.
6589 2010-07-09  Richard Guenther  <rguenther@suse.de>
6591         PR middle-end/44890
6592         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
6593         if base is a pointer.
6594         * tree-cfg.c (verify_expr): Update MEM_REF checking.
6596 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6598         PR target/44877
6599         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
6600         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
6601         builtin mask for load/store builtins.
6603 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
6605         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
6606         for "lock addl".
6607         * configure: Regenerate.
6608         * config/i386/i386.c (ix86_print_operand) <case ';'>:
6609         Remove TARGET_MACHO.
6611 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
6613         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
6614         default ISA flags.
6615         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
6617 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
6619         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
6621 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
6623         * config/picochip/picochip.md (commsTestPort): Emit more
6624         efficient sequence for tstport instruction.
6626 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
6628         * config/i386/i386.c (ix86_veclib_handler): Make static.
6630 2010-07-09  Richard Guenther  <rguenther@suse.de>
6632         PR tree-optimization/44852
6633         * tree-ssa-alias.c: Include toplev.h for exact_log2.
6634         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
6635         in MEM_REF.
6636         (indirect_refs_may_alias_p): Likewise.
6637         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
6639 2010-07-09  Richard Guenther  <rguenther@suse.de>
6641         PR tree-optimization/44882
6642         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
6643         sets do conflict.
6644         (vectorizable_load): Likewise.
6646 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
6648         PR target/40657
6649         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
6650         All callers changed.
6651         Handle the case when we're called for the epilogue.
6652         (thumb_unexpanded_epilogue): Use it.
6653         (thumb1_expand_epilogue): Likewise.
6655 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
6657         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
6658         both ranges are range_int_cst_p with non-negative minimum,
6659         try harder to derive smaller range.
6661 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6663         * genrecog.c: Include diagnostic-core.h before toplev.h.
6664         * genoutput.c: Likewise.
6665         * genextract.c: Likewise.
6666         * genautomata.c: Likewise.
6667         * genemit.c: Likewise.
6668         * genpeep.c: Likewise.
6669         * genattrtab.c: Likewise.
6670         * genconditions.c: Likewise.
6671         * genpreds.c: Likewise.
6673 2010-07-08  Andi Kleen  <ak@linux.intel.com>
6675         * lto-section-in.c (lto_section_name): Add missing comma.
6677 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
6679         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
6680         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
6681         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
6682         (ia64_override_options): Rename to...
6683         (ia64_option_override): ... this one. Make static.
6685 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
6687         PR middle-end/44843
6688         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
6689         pointed-to type of the offset in a MEM_REF to compute the alignment.
6691 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
6693         * final.c (final_scan_insn): Replace
6694         TARGET_UNWIND_INFO macro check by unwind_emit
6695         hook NULL check.
6696         * targhooks.c (default_unwind_emit): Removed.
6697         * targhooks.h (default_unwind_emit): Likewise.
6698         * target.def (unwind_emit): Set default value to NULL.
6700         * config/i386/i386-protos.h (ix86_asm_output_function_label):
6701         New prototype.
6702         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
6703         for NULL fntype argument and allow 64-bit targets.
6704         (ix86_asm_output_function_label): New function.
6705         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
6706         (ix86_handle_fndecl_attribute): Likewise.
6707         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
6708         * doc/doc/tm.texi: Regenerated.
6709         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
6710         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
6711         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
6712         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
6713         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
6714         * config/elfos.h: Likewise.
6715         * config/i386/cygming.h: Likewise.
6716         * config/netbsd-aout.h: Likewise.
6717         * config/openbsd.h: Likewise.
6718         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
6719         by ix86_asm_output_function_label function call.
6720         * varasm.c (assemble_start_function): Use
6721         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
6723 2010-07-08  Jan Hubicka  <jh@suse.cz>
6725         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
6726         New function.
6727         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
6728         Declare.
6729         * ipa-cp.c (ipcp_estimate_growth): Use it.
6730         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
6731         Likewise.
6733 2010-07-08  Jan Hubicka  <jh@suse.cz>
6735         * tree-inline.c (declare_return_variable): Allocate annotation for new
6736         temporary.
6738 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6740         PR tree-optimization/44710
6741         * tree-if-conv.c (parse_predicate): New.
6742         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
6743         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
6745 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
6747         * common.opt (ftree-loop-if-convert): New flag.
6748         * doc/invoke.texi (ftree-loop-if-convert): Documented.
6749         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
6750         when flag_tree_loop_if_convert is set.
6752 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
6754         * config/i386/i386.c: Use short syntax for function calls
6755         through function pointers.
6756         * config/i386/i386.md: Ditto.
6758 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
6760         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
6762 2010-07-08  Richard Guenther  <rguenther@suse.de>
6764         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
6765         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
6767 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
6769         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
6770         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
6771         (loc_list_from_tree): Likewise.
6772         (output_loc_operands): Handle outputting DW_OP_const[48]u
6773         with loc->dtprel set.
6774         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
6776 2010-07-08  Jan Hubicka  <jh@suse.cz>
6778         * ipa.c: Include pointer-set.h
6779         (cgraph_externally_visible_p): New attribute ALIASED;
6780         when in LTO, hidden symbols are local unless they are aliased.
6781         (function_and_variable_visibility): Compute aliased nodes;
6782         handle LTO and hidden symbol on functions and vars.
6783         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
6784         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
6786 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
6788         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6789         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6790         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6791         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6792         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6793         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
6794         (ix86_gen_probe_stack_range): Likewise.
6795         (override_options): Set them.
6796         (ix86_target_stack_probe): New function.
6797         (ix86_compute_frame_layout): Force use of push instructions to
6798         save registers if stack checking with probes is enabled.
6799         (get_scratch_register_on_entry): New function.
6800         (release_scratch_register_on_entry): Likewise.
6801         (ix86_adjust_stack_and_probe): Likewise.
6802         (output_adjust_stack_and_probe): Likewise.
6803         (ix86_emit_probe_stack_range): Likewise.
6804         (output_probe_stack_range): Likewise.
6805         (ix86_expand_prologue): Emit stack checking code if static built-in
6806         stack checking is enabled.
6807         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
6808         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
6809         (output_adjust_stack_and_probe): Likewise.
6810         (output_probe_stack_range): Likewise.
6811         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6812         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
6813         TARGET_STACK_PROBE.
6814         (allocate_stack_worker_64): Likewise.
6815         (allocate_stack): Likewise.
6816         (adjust_stack_and_probe): New insn.
6817         (probe_stack_range): Likewise.
6819 2010-07-08  Richard Guenther  <rguenther@suse.de>
6821         PR tree-optimization/44831
6822         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
6823         a MEM_REF preserving TBAA info of the original dereference.
6824         Dereference the original pointer if the address is not invariant.
6825         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
6826         at least one invariant address that we are going to dereference.
6828 2010-07-08  Richard Guenther  <rguenther@suse.de>
6830         PR tree-optimization/44861
6831         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
6832         information when building MEM_REFs.
6833         (vectorizable_load): Likewise.
6834         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
6836 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
6838         * config/sol2-c.c: Do not include diagnostic-core.h.
6840 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6842         PR bootstrap/44768
6843         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
6844         with respect to current_function_decl. Pass decl of the function.
6845         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
6846         * ipa-inline.c (compute_inline_parameters): Pass decl to
6847         estimated_stack_frame_size.
6849 2010-07-08  Richard Guenther  <rguenther@suse.de>
6851         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
6852         New function.
6853         (valueize_refs): Call it.
6855 2010-07-08  Richard Guenther  <rguenther@suse.de>
6857         PR rtl-optimization/44838
6858         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
6859         SSA form do not use pointer equivalence.
6861 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
6863         * dwarf2out.c (AT_linkage_name): Delete.
6864         (add_linkage_attr): New function.
6865         (add_linkage_name): Call it to emit the linkage attribute.
6866         (dwarf2out_finish): Likewise.
6867         (move_linkage_attr): Explicitly accept both attribute variants.
6869 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6871         * toplev.h: Do not include diagnostic-core.h.
6872         Include diagnostic-core.h in every file that includes toplev.h.
6873         * c-tree.h: Do not include toplev.h.
6874         * pretty-print.h: Update comment.
6875         * Makefile.in: Update dependencies.
6876         * alias.c: Include diagnostic-core.h in every file that includes
6877         toplev.h.
6878         * attribs.c: Likewise.
6879         * auto-inc-dec.c: Likewise.
6880         * bb-reorder.c: Likewise.
6881         * bt-load.c: Likewise.
6882         * caller-save.c: Likewise.
6883         * calls.c: Likewise.
6884         * cfg.c: Likewise.
6885         * cfganal.c: Likewise.
6886         * cfgbuild.c: Likewise.
6887         * cfgcleanup.c: Likewise.
6888         * cfghooks.c: Likewise.
6889         * cfgloop.c: Likewise.
6890         * combine.c: Likewise.
6891         * config/alpha/alpha.c: Likewise.
6892         * config/arc/arc.c: Likewise.
6893         * config/arm/arm.c: Likewise.
6894         * config/arm/pe.c: Likewise.
6895         * config/avr/avr.c: Likewise.
6896         * config/bfin/bfin.c: Likewise.
6897         * config/cris/cris.c: Likewise.
6898         * config/crx/crx.c: Likewise.
6899         * config/darwin-c.c: Likewise.
6900         * config/darwin.c: Likewise.
6901         * config/fr30/fr30.c: Likewise.
6902         * config/frv/frv.c: Likewise.
6903         * config/h8300/h8300.c: Likewise.
6904         * config/host-darwin.c: Likewise.
6905         * config/i386/i386.c: Likewise.
6906         * config/i386/netware.c: Likewise.
6907         * config/i386/nwld.c: Likewise.
6908         * config/i386/winnt-cxx.c: Likewise.
6909         * config/i386/winnt-stubs.c: Likewise.
6910         * config/i386/winnt.c: Likewise.
6911         * config/ia64/ia64-c.c: Likewise.
6912         * config/ia64/ia64.c: Likewise.
6913         * config/iq2000/iq2000.c: Likewise.
6914         * config/lm32/lm32.c: Likewise.
6915         * config/m32c/m32c-pragma.c: Likewise.
6916         * config/m32c/m32c.c: Likewise.
6917         * config/m32r/m32r.c: Likewise.
6918         * config/m68hc11/m68hc11.c: Likewise.
6919         * config/m68k/m68k.c: Likewise.
6920         * config/mcore/mcore.c: Likewise.
6921         * config/mep/mep-pragma.c: Likewise.
6922         * config/mep/mep.c: Likewise.
6923         * config/mmix/mmix.c: Likewise.
6924         * config/mn10300/mn10300.c: Likewise.
6925         * config/moxie/moxie.c: Likewise.
6926         * config/pa/pa.c: Likewise.
6927         * config/pdp11/pdp11.c: Likewise.
6928         * config/picochip/picochip.c: Likewise.
6929         * config/rs6000/rs6000-c.c: Likewise.
6930         * config/rs6000/rs6000.c: Likewise.
6931         * config/rx/rx.c: Likewise.
6932         * config/s390/s390.c: Likewise.
6933         * config/score/score.c: Likewise.
6934         * config/score/score3.c: Likewise.
6935         * config/score/score7.c: Likewise.
6936         * config/sh/sh.c: Likewise.
6937         * config/sh/symbian-base.c: Likewise.
6938         * config/sh/symbian-c.c: Likewise.
6939         * config/sh/symbian-cxx.c: Likewise.
6940         * config/sol2-c.c: Likewise.
6941         * config/sol2.c: Likewise.
6942         * config/sparc/sparc.c: Likewise.
6943         * config/spu/spu.c: Likewise.
6944         * config/stormy16/stormy16.c: Likewise.
6945         * config/v850/v850-c.c: Likewise.
6946         * config/v850/v850.c: Likewise.
6947         * config/vax/vax.c: Likewise.
6948         * config/vxworks.c: Likewise.
6949         * config/xtensa/xtensa.c: Likewise.
6950         * convert.c: Likewise.
6951         * cse.c: Likewise.
6952         * cselib.c: Likewise.
6953         * dbgcnt.c: Likewise.
6954         * dbxout.c: Likewise.
6955         * ddg.c: Likewise.
6956         * dominance.c: Likewise.
6957         * emit-rtl.c: Likewise.
6958         * explow.c: Likewise.
6959         * expmed.c: Likewise.
6960         * fixed-value.c: Likewise.
6961         * fold-const.c: Likewise.
6962         * fwprop.c: Likewise.
6963         * gcse.c: Likewise.
6964         * ggc-common.c: Likewise.
6965         * ggc-page.c: Likewise.
6966         * ggc-zone.c: Likewise.
6967         * gimple-low.c: Likewise.
6968         * gimplify.c: Likewise.
6969         * graph.c: Likewise.
6970         * haifa-sched.c: Likewise.
6971         * ifcvt.c: Likewise.
6972         * implicit-zee.c: Likewise.
6973         * integrate.c: Likewise.
6974         * ira-build.c: Likewise.
6975         * ira-color.c: Likewise.
6976         * ira-conflicts.c: Likewise.
6977         * ira-costs.c: Likewise.
6978         * ira-lives.c: Likewise.
6979         * ira.c: Likewise.
6980         * lists.c: Likewise.
6981         * loop-doloop.c: Likewise.
6982         * loop-iv.c: Likewise.
6983         * lto-opts.c: Likewise.
6984         * lto-symtab.c: Likewise.
6985         * main.c: Likewise.
6986         * modulo-sched.c: Likewise.
6987         * optabs.c: Likewise.
6988         * params.c: Likewise.
6989         * plugin.c: Likewise.
6990         * postreload-gcse.c: Likewise.
6991         * postreload.c: Likewise.
6992         * predict.c: Likewise.
6993         * profile.c: Likewise.
6994         * real.c: Likewise.
6995         * regcprop.c: Likewise.
6996         * reginfo.c: Likewise.
6997         * regmove.c: Likewise.
6998         * reorg.c: Likewise.
6999         * resource.c: Likewise.
7000         * rtl.c: Likewise.
7001         * rtlanal.c: Likewise.
7002         * sched-deps.c: Likewise.
7003         * sched-ebb.c: Likewise.
7004         * sched-rgn.c: Likewise.
7005         * sdbout.c: Likewise.
7006         * sel-sched-dump.c: Likewise.
7007         * sel-sched-ir.c: Likewise.
7008         * simplify-rtx.c: Likewise.
7009         * stmt.c: Likewise.
7010         * stor-layout.c: Likewise.
7011         * store-motion.c: Likewise.
7012         * targhooks.c: Likewise.
7013         * tree-cfg.c: Likewise.
7014         * tree-cfgcleanup.c: Likewise.
7015         * tree-dump.c: Likewise.
7016         * tree-eh.c: Likewise.
7017         * tree-inline.c: Likewise.
7018         * tree-nomudflap.c: Likewise.
7019         * tree-object-size.c: Likewise.
7020         * tree-optimize.c: Likewise.
7021         * tree-outof-ssa.c: Likewise.
7022         * tree-phinodes.c: Likewise.
7023         * tree-profile.c: Likewise.
7024         * tree-ssa-ccp.c: Likewise.
7025         * tree-ssa-coalesce.c: Likewise.
7026         * tree-ssa-live.c: Likewise.
7027         * tree-ssa-loop-niter.c: Likewise.
7028         * tree-ssa-loop-prefetch.c: Likewise.
7029         * tree-ssa-loop.c: Likewise.
7030         * tree-ssa-structalias.c: Likewise.
7031         * tree-ssa-uninit.c: Likewise.
7032         * tree-ssa.c: Likewise.
7033         * tree-vect-data-refs.c: Likewise.
7034         * tree-vect-loop-manip.c: Likewise.
7035         * tree-vect-loop.c: Likewise.
7036         * tree-vect-patterns.c: Likewise.
7037         * tree-vect-stmts.c: Likewise.
7038         * tree-vrp.c: Likewise.
7039         * varasm.c: Likewise.
7040         * vec.c: Likewise.
7041         * web.c: Likewise.
7042         * xcoffout.c: Likewise.
7044 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
7046         * gengtype.c (write_field_root): New function.
7047         (write_root): Use it.
7049 2010-07-07  Wei Guozhi  <carrot@google.com>
7051         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7052         of lowest bits to lshift/compare): Add a missing line.
7054 2010-07-07  Wei Guozhi  <carrot@google.com>
7056         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
7057         of lowest bits to lshift/compare): New.
7059 2010-07-07  Tom Tromey  <tromey@redhat.com>
7061         * doc/tm.texi: Update.
7062         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
7063         Add @hook.
7064         * target.def (want_debug_pub_sections): New hook.
7065         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
7066         * dwarf2out.c (add_pubname_string): Check
7067         targetm.want_debug_pub_sections.
7068         (add_pubname): Likewise.
7069         (add_pubtype): Likewise.
7071 2010-07-07  Jie Zhang  <jie@codesourcery.com>
7073         * genautomata.c (output_automata_list_min_issue_delay_code):
7074         Correctly decompress min_issue_delay.
7076 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7078         PR rtl-optimization/44404
7079         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
7080         possible, use reg_overlap_mentioned_p instead.
7082 2010-07-07  Duncan Sands  <baldrick@free.fr>
7084         PR middle-end/41355
7085         * tree.c (build_function_type_skip_args): Copy the original type using
7086         build_distinct_type_copy rather than copy_node.
7088 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7090         PR target/44850
7091         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
7092         revision 161876.
7093         (ix86_expand_prologue): Likewise.
7094         (ix86_handle_fndecl_attribute): Likewise.
7095         (ix86_asm_declare_function_name): Likewise.
7096         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7097         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7098         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
7099         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
7100         * doc/extend.texi: Likewise.
7102 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
7104         PR target/44844
7105         * config/i386/i386.md (rdrand<mode>): Changed to expand to
7106         retry if the carry flag isn't valid.
7107         (rdrand<mode>_1): New.
7109 2010-07-07  Richard Guenther  <rguenther@suse.de>
7111         PR middle-end/44790
7112         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
7113         for expanding the constant offset for MEM_REFs.
7115 2010-07-07  Richard Guenther  <rguenther@suse.de>
7117         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
7118         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
7119         * gimple.h (is_gimple_operand): Remove.
7120         * gimple.c (is_gimple_operand): Likewise.
7121         (walk_gimple_op): Fix wi->val_only setting for calls.
7122         * tree-cfg.c (verify_gimple_call): Fix argument validation.
7123         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
7124         invalid gimple calls.
7126 2010-07-06  Jan Hubicka  <jh@suse.cz>
7128         * lto-cgraph.c (output_cgraph): Add missing declaration.
7130 2010-07-06  Jan Hubicka  <jh@suse.cz>
7132         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
7133         partition.
7135 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
7137         * doc/gimple.texi (GIMPLE_DEBUG): Document.
7138         * doc/rtl.texi (Debug Information): New node.
7139         (NOTE_INSN_VAR_LOCATION): Document.
7140         (debug_insn): Likewise.
7141         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
7143 2010-07-07  Jan Hubicka  <jh@suse.cz>
7145         With parts by Richard Guenther.
7147         PR middle-end/44813
7148         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
7149         for functions passed by reference.
7150         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
7151         in memory when passed by reference.
7152         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
7153         beggining.
7154         * ipa-split.c (split_function): Cleanup way return value is passed;
7155         handle SSA DECL_BY_REFERENCE retvals.
7156         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
7157         DECL_BY_REFERENCE is set.
7158         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
7159         find_what_p_points_to): Handle RESULT_DECL.
7160         * tree-inline.c (declare_return_variable): Get new entry_block argument;
7161         when passing by reference ensure that RESULT_DECL is gimple_val.
7162         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
7163         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
7165 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
7167         PR rtl-optimization/44787
7168         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
7169         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
7171 2010-07-06  Jan Hubicka  <jh@suse.cz>
7173         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
7174         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
7175         with body can prevail.
7176         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
7177         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
7178         * cgraph.c (cgraph_get_node_or_alias): New function.
7179         * cgraph.h (cgraph_get_node_or_alias): Declare.
7181 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
7183         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
7184         support.
7185         (ix86_expand_prologue): Likewise.
7186         (ix86_handle_fndecl_attribute): Likewise.
7187         (ix86_asm_declare_function_name): New function for
7188         ASM_DECLARE_FUNCTION_NAME.
7189         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
7190         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
7191         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
7192         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
7193         * doc/extend.texi: Adjust documentation about ms_hook_prologue
7194         attribute.
7196 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7198         * config/i386/i386.md (immediate_operand): New mode attribute.
7200         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
7201         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
7202         using P mode iterator.
7203         (pro_epilogue_adjust_stack_di_2): Rename from
7204         pro_epilogue_adjust_stack_rex64_2.
7206         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
7208 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7210         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
7211         through gen_mov_insv_1 function pointer.
7212         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
7213         gen_truncxf<mode>2 through gen_truncxf function pointer.
7214         (remainder<mode>3): Ditto.
7215         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
7216         (allocate_stack): Call gen_allocate_stack_worker_64 or
7217         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
7218         function pointer.
7219         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
7220         function pointer.
7222 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
7224         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
7225         operand constraint instead of <r><i>m.
7227 2010-07-06  Richard Guenther  <rguenther@suse.de>
7229         PR middle-end/44828
7230         * convert.c (convert_to_integer): Watch out for overflowing
7231         MULT_EXPR as well.
7233 2010-07-05  Jan Hubicka  <jh@suse.cz>
7235         * lto-streamer.c (write_symbol_vec): Rename to ...
7236         (write_symbol) ... this one; write only symbol given and when
7237         present in cache. Sanity check that what is defined is present
7238         in cgraph/varpool with body/finalized decl.
7239         (write_symbols_of_kind): Remove.
7240         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
7241         pairs to produce symtab.
7242         (produce_asm_for_decls): Update call of produce_symtab; don't do so
7243         when doing WPA streaming.
7245 2010-07-05  Jan Hubicka  <jh@suse.cz>
7247         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
7248         function is still available to fold into.
7250 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7252         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
7253         * function.h (struct_function): Change type of local_decls field
7254         to a VEC.
7255         (add_local_decl): New function.
7256         (FOR_EACH_LOCAL_DECL): New macro.
7257         * cfgexpand.c (init_vars_expansion): Adjust for new type of
7258         cfun->local_decls.
7259         (estimated_stack_frame_size): Likewise.
7260         (expand_used_vars): Likewise.
7261         * cgraphbuild.c (build_cgraph_edges): Likewise.
7262         * function.c (instantiate_decls_1): Likewise.
7263         * ipa-struct-reorg.c (build_data_structure): Likewise.
7264         * ipa-type-escape.c (analyze_function): Likewise.
7265         * lto-streamer-in.c (input_function): Likewise.
7266         * lto-streamer-out.c (output_function): Likewise.
7267         * tree-ssa-live.c (remove_unused_locals): Likewise.
7268         * tree.c (free_lang_data_in_decl): Likewise.
7269         (find_decls_types_in_node): Likewise.
7270         * omp-low.c (remove_exit_barrier): Likewise.
7271         (expand_omp_taskreg): Likewise.
7272         (list2chain): Rename to...
7273         (vec2chain): ...this.  Adjust.
7274         * cgraphunit.c (assemble_thunk): Call add_local_decl.
7275         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
7276         * gimple-low.c (record_vars_into): Likewise.
7277         * tree-inline.c (remap_decls): Likewise.
7278         (declare_return_variable): Likewise.
7279         (declare_inline_vars): Likewise.
7280         (copy_forbidden): Adjust for new type of cfun->local_decls.
7281         (add_local_variables): New function.
7282         (expand_call_inline): Call it.
7283         (tree_function_versioning): Likewise.
7285 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
7287         AVX Programming Reference (June, 2010)
7288         * config/i386/cpuid.h (bit_F16C): New.
7289         (bit_RDRND): Likewise.
7290         (bit_FSGSBASE): Likewise.
7292         * config/i386/i386-builtin-types.def: Add
7293         "DEF_FUNCTION_TYPE (UINT16)", function types for
7294         float16 <-> float conversions and
7295         "DEF_FUNCTION_TYPE (VOID, UINT64)".
7297         * config/i386/i386-c.c (ix86_target_macros_internal): Support
7298         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
7299         OPTION_MASK_ISA_F16C.
7301         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
7302         (OPTION_MASK_ISA_RDRND_SET): Likewise.
7303         (OPTION_MASK_ISA_F16C_SET): Likewise.
7304         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
7305         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
7306         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
7307         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
7308         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
7309         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
7310         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
7311         (override_options): Handle them.
7312         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
7313         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
7314         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
7315         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
7316         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
7317         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
7318         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
7319         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
7320         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
7321         (bdesc_args): Likewise.
7322         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
7323         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
7324         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
7325         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
7326         Handle non-memory store.
7328         * config/i386/i386.h (TARGET_FSGSBASE): New.
7329         (TARGET_RDRND): Likewise.
7330         (TARGET_F12C): Likewise.
7332         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
7333         (UNSPEC_VCVTPS2PH): Likewise.
7334         (UNSPECV_RDFSBASE): Likewise.
7335         (UNSPECV_RDGSBASE): Likewise.
7336         (UNSPECV_WRFSBASE): Likewise.
7337         (UNSPECV_WRGSBASE): Likewise.
7338         (UNSPECV_RDRAND): Likewise.
7339         (rdfsbase<mode>): Likewise.
7340         (rdgsbase<mode>): Likewise.
7341         (wrfsbase<mode>): Likewise.
7342         (wrgsbase<mode>): Likewise.
7343         (rdrand<mode>): Likewise.
7345         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
7347         * config/i386/immintrin.h (_rdrand_u16): New.
7348         (_rdrand_u32): Likewise.
7349         (_readfsbase_u32): Likewise.
7350         (_readfsbase_u64): Likewise.
7351         (_readgsbase_u32): Likewise.
7352         (_readgsbase_u64): Likewise.
7353         (_writefsbase_u32): Likewise.
7354         (_writefsbase_u64): Likewise.
7355         (_writegsbase_u32): Likewise.
7356         (_writegsbase_u64): Likewise.
7357         (_rdrand_u64): Likewise.
7358         (_cvtsh_ss): Likewise.
7359         (_mm_cvtph_ps): Likewise.
7360         (_mm256_cvtph_ps): Likewise.
7361         (_cvtss_sh): Likewise.
7362         (_mm_cvtps_ph): Likewise.
7363         (_mm256_cvtps_ph): Likewise.
7365         * config/i386/sse.md (vcvtph2ps): New.
7366         (*vcvtph2ps_load): Likewise.
7367         (vcvtph2ps256): Likewise.
7368         (vcvtps2ph): Likewise.
7369         (*vcvtps2ph): Likewise.
7370         (*vcvtps2ph_store): Likewise.
7371         (vcvtps2ph256): Likewise.
7373         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
7375         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
7377 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
7379         PR bootstrap/44512
7380         * genenums.c (main): Output include of insn-constants.h
7381         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
7383 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
7385         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
7386         (override_options): Initialize it.
7387         (ix86_expand_prologue): Use it.
7389 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
7391         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
7393 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
7395         * double-int.h (fit_double_type): Remove declaration.
7396         * double-int.c (fit_double_type): Remove function.
7397         * tree.h (int_fits_type_p): Adjust prototype.
7398         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
7399         instead of fit_double_type.
7400         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
7401         instead of fit_double_type and build_int_cst_wide.
7402         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
7403         instead of fit_double_type and build_int_cst_wide.
7404         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
7405         of fit_double_type.
7407 2010-07-05  Jan Hubicka  <jh@suse.cz>
7409         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
7410         in_other_partition.
7411         * lto-cgraph.c (referenced_from_other_partition_p,
7412         reachable_from_other_partition_p): Use in_other_partition flags.
7413         (output_node, output_varpool_node): COMDAT nodes always have private
7414         copies and thus are never used from other partition.
7416 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
7418         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7419         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
7420         * config/ia64/ia64.c Include reload.h.
7421         (ia64_memory_move_cost): New function.
7422         (TARGET_MEMORY_MOVE_COST): Define.
7423         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
7424         memory_move_cost.
7426 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
7428         PR middle-end/42505
7429         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
7430         comments about cost model.
7431         (try_add_cand_for):  Add second strategy for choosing initial set
7432         based on original IVs, controlled by ORIGINALP argument.
7433         (get_initial_solution): Add ORIGINALP argument.
7434         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
7435         (find_optimal_iv_set): Try two different strategies for choosing
7436         the IV set, and return the one with lower cost.
7438 2010-07-05  Richard Guenther  <rguenther@suse.de>
7440         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
7442 2010-07-05  Richard Guenther  <rguenther@suse.de>
7444         * tree.c (reference_alias_ptr_type): New function.
7445         * tree.h (reference_alias_ptr_type): Declare.
7446         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
7447         allow non-TARGET_MEM_REF new refs.
7448         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
7449         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
7450         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
7451         (create_mem_ref): Get alias pointer type.  Adjust calls to
7452         create_mem_ref_raw.
7453         (maybe_fold_tmr): Likewise.
7454         * tree-flow.h (create_mem_ref): Adjust prototype.
7456 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
7458         PR c++/44808
7459         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
7460         *from_p is VAR_DECL.
7462 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7464         * tree.h (build_call_list): Remove.
7465         * tree.c (build_call_list): Remove.
7467 2010-07-05  Richard Guenther  <rguenther@suse.de>
7469         * double-int.h (double_int_sub): Declare.
7470         * double-int.c (double_int_sub): New function.
7471         * dwarf2out.c (field_byte_offset): Use it.
7472         * fixed-value.c (do_fixed_add): Likewise.
7473         (do_fixed_multiply): Likewise.
7474         (do_fixed_divide): Likewise.
7475         * tree-predcom.c (add_ref_to_chain): Likewise.
7476         (determine_roots_comp): Likewise.
7477         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
7479 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
7481         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
7482         implementations.
7484 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
7486         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
7487         * arm-modes.def (CC_NOTB): Don't define.
7488         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
7489         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
7490         (LTUGEU): New code_iterator.
7491         (cnb, optab): New corresponding code_attrs.
7492         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
7493         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
7494         using LTUGEU.
7495         (addsi3_carryin_shift_<optab>): Likewise.
7496         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
7497         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
7498         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
7499         (subsi3_compare): Renamed from subsi3_compare0_c.
7500         Change CC_NOTB to CC.
7501         (arm_subsi3_insn): Allow constants for operand 0.
7502         (compare_scc peephole for eq case): New.
7503         (compare_scc splitters): Change CC_NOTB to CC.
7505 2010-07-05  Richard Guenther  <rguenther@suse.de>
7507         * tree-ssa-loop-im.c (for_each_index): Do not handle
7508         ALIGN_INDIRECT_REF.
7509         (gen_lsm_tmp_name): Likewise.
7510         * tree-dump.c (dequeue_and_dump): Likewise.
7511         * tree-pretty-print.c (dump_generic_node): Likewise.
7512         (op_code_prio): Likewise.
7513         (op_symbol_code): Likewise.
7514         * tree.c (staticp): Likewise.
7515         (build1_stat): Likewise.
7516         * tree.h (INDIRECT_REF_P): Likewise.
7517         * fold-const.c (maybe_lvalue_p): Likewise.
7518         (operand_equal_p): Likewise.
7519         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7520         (ao_ref_init_from_vn_reference): Likewise.
7521         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7522         (find_interesting_uses_address): Likewise.
7523         * dwarf2out.c (loc_list_from_tree): Likewise.
7524         * gimplify.c (gimplify_expr): Likewise.
7525         * tree-eh.c (tree_could_trap_p): Likewise.
7526         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7527         * cfgexpand.c (expand_debug_expr): Likewise.
7528         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7529         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7530         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7531         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
7532         * tree-ssa-operands.c (get_expr_operands): Likewise.
7533         * expr.c (safe_from_p): Likewise.
7534         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
7535         * tree-vect-data-refs.c (vect_setup_realignment): Build
7536         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
7537         * tree-vect-stmts.c (vectorizable_load): Likewise.
7538         * tree.def (ALIGN_INDIRECT_REF): Remove.
7540 2010-07-05  Richard Guenther  <rguenther@suse.de>
7542         PR tree-optimization/44784
7543         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
7544         for inserted stmts.
7545         (find_or_generate_expression): Fix SCCVN insertion check.
7547 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
7549         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
7550         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
7551         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
7552         directives.
7554 2010-07-05  Ira Rosen  <irar@il.ibm.com>
7556         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
7557         statements that are not vectorized.
7558         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
7559         in INSIDE_COST.
7561 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
7563         PR bootstrap/44820
7564         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
7566 2010-07-05  Richard Guenther  <rguenther@suse.de>
7568         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
7569         RESULT_DECLs properly.
7571 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
7573         PR rtl-optimization/44695
7574         * config/i386/i386.md (extract_code): Removed.
7575         (<u>divmodqi4): Likewise.
7576         (divmodqi4): New.
7577         (udivmodqi4): Likewise.
7578         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
7579         (udivmodhiqi3): Likewise.
7581 2010-07-04  Jan Hubicka  <jh@suse.cz>
7583         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
7585 2010-07-04  Jan Hubicka  <jh@suse.cz>
7587         * cgraphunit.c (init_cgraph): Only initialize dump file if it
7588         is not already initialized.
7590 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
7592         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
7593         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
7594         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
7595         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
7596         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
7597         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
7598         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
7599         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
7600         (sync_new_nand_optab): Redefine as macros.
7601         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
7602         Delete.
7603         (direct_optab_index): New enum.
7604         (direct_optab_d): New structure.
7605         (direct_optab): New typedef.
7606         (direct_optab_table): Declare.
7607         (direct_optab_handler, set_direct_optab_handler): New functions.
7608         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
7609         (sync_lock_release_optab): New macros.
7610         * optabs.c (direct_optab_table): New variable.
7611         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
7612         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
7613         cmpstr_optab and cmpstrn_optab.
7614         (emit_conditional_move): Likewise for movcc_optab.
7615         (can_conditionally_move_p): Likewise for movcc_gen_code.
7616         (init_insn_codes): Clear direct_optab_table.
7617         (init_optabs): Don't initialize the new "direct optabs" here.
7618         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
7619         vcond_gen_code.
7620         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
7621         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
7622         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
7623         (expand_sync_operation): Likewise other sync_*_optabs.
7624         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
7625         to sync_compare_and_swap_optab.
7626         (expand_sync_lock_test_and_set): Use direct_optab_handler for
7627         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
7628         to the names of both.
7629         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
7630         cmpstr_optab and cmpstrn_optab.
7631         (expand_builtin_lock_release): Likewise sync_lock_release.
7632         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
7633         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
7634         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
7635         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
7636         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
7637         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
7638         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
7639         (sync_lock_test_and_set, sync_lock_release): Delete.
7640         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
7641         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
7642         * genopinit.c (optabs): Use set_direct_optab_handler for the new
7643         macro optabs.
7644         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
7645         the "optab" local variable.  Use direct_optab_handler for optab and
7646         sync_compare_and_swap_optab.
7647         * reload1.c (reload_in_optab, reload_out_optab): Delete.
7648         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
7649         reload_in_optab and reload_out_optab.
7650         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7651         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
7652         * config/pa/pa.c (pa_secondary_reload): Likewise.
7653         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
7654         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
7655         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
7656         (VMSupportsCS8_builtin): Likewise.
7658 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
7660         * optabs.h (optab_handlers): Change type of insn_code to int.
7661         (optab_handler, set_optab_handler, convert_optab_handler)
7662         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
7663         CODE_FOR_nothing".
7664         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
7665         (init_insn_codes): Zero both the above arrays.
7666         (init_optabs): Never call init_insn_codes first time around.
7668 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
7670         * optabs.h (optab_handler, convert_optab_handler): Turn into
7671         inline functions that return an insn code.
7672         (set_optab_handler, set_convert_optab_handler): New functions.
7673         * builtins.c: Replace optab_handler(X)->insn_code with
7674         optab_handler or set_optab_handler thoughout.  Likewise
7675         convert_optab_handler(X)->insn_code with convert_optab_handler
7676         and set_convert_optab_handler.
7677         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
7678         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
7679         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
7680         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
7681         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
7682         config/spu/spu.c: Likewise.
7684 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7686         PR target/44531
7687         * config.gcc (sh*-*-*): Use regular expressions instead of
7688         the 'i' modifier for sed substitutions.
7690 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7692         * gimple.c (gimple_body): Comments added.
7694 2010-07-04  Richard Guenther  <rguenther@suse.de>
7696         PR middle-end/44809
7697         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
7698         of an INDIRECT_REF.
7700 2010-07-04  Richard Guenther  <rguenther@suse.de>
7702         PR tree-optimization/44479
7703         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
7704         extra SSA name copy statements which preserves points-to
7705         information.
7706         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7707         Copy points-to information for all pointers.  Properly handle
7708         MEM_REFs.
7709         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
7710         copy statements.
7711         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
7712         dependency.
7714 2010-07-04  Richard Guenther  <rguenther@suse.de>
7716         PR middle-end/44785
7717         * tree-inline.c (initialize_inlined_parameters): Do not
7718         re-use pointer-map slot over remap_type call.
7720 2010-07-04  Richard Guenther  <rguenther@suse.de>
7722         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
7724 2010-07-04  Richard Guenther  <rguenther@suse.de>
7726         PR tree-optimization/44656
7727         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
7728         again after value-replacing in the defintions lhs.
7730 2010-07-04  Ira Rosen  <irar@il.ibm.com>
7731             Revital Eres  <eres@il.ibm.com>
7733         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
7734         Document new arguments.
7735         * doc/tm.texi: Regenerate.
7736         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
7737         Handle unaligned store.
7738         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
7739         * target.def (builtin_vectorization_cost): Add new arguments.
7740         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
7741         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
7742         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
7743         (vect_vfa_segment_size): Fix indentation.
7744         * tree-vectorizer.h (struct _vect_peel_info): New.
7745         (struct _vect_peel_extended_info): New.
7746         (struct _loop_vec_info): Add new field for peeling hash table and a
7747         macro for its access.
7748         (VECT_MAX_COST): Define.
7749         (vect_get_load_cost): Declare.
7750         (vect_get_store_cost, vect_get_known_peeling_cost,
7751         vect_get_single_scalar_iteraion_cost): Likewise.
7752         (vect_supportable_dr_alignment): Add new argument.
7753         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
7754         field.
7755         (destroy_loop_vec_info): Free peeling hash table.
7756         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
7757         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
7758         vect_analyze_slp. Fix indentation.
7759         (vect_get_single_scalar_iteraion_cost): New function.
7760         (vect_get_known_peeling_cost): Likewise.
7761         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
7762         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
7763         statement. Move outside cost calculation inside unknown peeling case.
7764         Call vect_get_known_peeling_cost for known amount of peeling.
7765         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
7766         reference to the print message of forced alignment.
7767         (vect_verify_datarefs_alignment): Update call to
7768         vect_supportable_dr_alignment.
7769         (vect_get_data_access_cost): New function.
7770         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
7771         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
7772         vect_peeling_hash_choose_best_peeling): Likewise.
7773         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
7774         to store all the accesses in the loop and find best possible access to
7775         align using peeling for known alignment case. For unknown alignment
7776         check if stores are preferred or if peeling is worthy.
7777         (vect_find_same_alignment_drs): Analyze pairs of loads too.
7778         (vect_supportable_dr_alignment): Add new argument and check aligned
7779         accesses according to it.
7780         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
7781         (cost_for_stmt): Call vect_get_stmt_cost.
7782         (vect_model_simple_cost): Likewise.
7783         (vect_model_store_cost): Call vect_get_stmt_cost. Call
7784         vect_get_store_cost to calculate the cost of the statement.
7785         (vect_get_store_cost): New function.
7786         (vect_model_load_cost): Call vect_get_stmt_cost. Call
7787         vect_get_load_cost to calculate the cost of the statement.
7788         (vect_get_load_cost): New function.
7789         (vectorizable_store): Update call to vect_supportable_dr_alignment.
7790         (vectorizable_load): Likewise.
7791         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
7792         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
7793         arguments. Handle unaligned store.
7794         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
7795         (rs6000_builtin_support_vector_misalignment): Return true for word and
7796         double word alignments for VSX.
7797         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
7798         vect_supportable_dr_alignment and builtin_vectorization_cost.
7800 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7802         PR target/44597
7803         * config/pa/predicates.md (prefetch_cc_operand): Remove.
7804         (prefetch_nocc_operand): Likewise.
7805         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
7806         (prefetch_20): New insn.
7807         (prefetch_cc): Remove.
7808         (prefetch_nocc): Likewise.
7810 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7812         * expr.c (vector_mode_valid_p): Move to c-common.c.
7813         * expr.h (vector_mode_valid_p): Do not declare here.
7814         * system.h: Poison GCC_EXPR_H in front-ends.
7815         * Makefile.in: Update dependencies.
7817 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7819         PR target/44705
7820         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
7822 2010-07-03  Jan Hubicka  <jh@suse.cz>
7824         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
7825         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
7826         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
7827         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
7828         Likewise.
7830         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
7831         Update timevars.V
7832         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
7833         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
7834         TV_IPA_LTO_DECL_OUT): New.
7835         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
7837 2010-07-03  Jan Hubicka  <jh@suse.cz>
7839         * ipa-inline.c (update_edge_key): Break out from ...
7840         update_callers_keys): ... here;
7841         (update_callee_keys): Update only the edges from caller to callee.
7842         (update_all_calle_keys): Do what update_calle_keys did.
7843         (decide_inlining_of_small_functions): Avoid recomputing of all
7844         callees when badness increase.
7846 2010-07-03  Jie Zhang  <jie@codesourcery.com>
7848         * config/arm/arm.c (arm_attr_length_move_neon): New.
7849         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
7850         * config/arm/neon.md (define_mode_attr V_slen): Remove.
7851         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
7852         to compute length attribute.
7854 2010-07-03  Jie Zhang  <jie@codesourcery.com>
7856         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
7857         as predicate for operand 1 and remove its constraint.
7858         * config/arm/predicates.md (vfp_register_operand): New.
7859         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
7860         (*push_fp_multi): Likewise.
7862 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
7864         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
7866 2010-07-03  Jan Hubicka  <jh@suse.cz>
7868         * config/i386/i386.c (override_options): Revert accidental commit.
7870 2010-07-02  Le-Chun Wu  <lcwu@google.com>
7872         PR c++/44128
7873         * doc/invoke.texi: Update documentation of -Wshadow.
7875 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
7876             Julian Brown  <julian@codesourcery.com>
7877             Sandra Loosemore <sandra@codesourcery.com>
7879         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
7880         comparisons.  Adjust to take both operands.
7881         (arm_select_cc_mode): Handle DImode comparisons.
7882         (arm_gen_compare_reg): Generate a scratch register for DImode
7883         comparisons which require one.  Use xor for Thumb equality checks.
7884         (arm_const_double_by_immediates): New.
7885         (arm_print_operand): Allow 'Q' and 'R' for constants.
7886         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
7887         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
7888         arm_canonicalize_comparison.
7889         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
7890         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
7891         prototype.
7892         (arm_const_double_by_immediates): Declare.
7893         * config/arm/constraints.md (Di): New constraint.
7894         * config/arm/predicates.md (arm_immediate_di_operand)
7895         (arm_di_operand, cmpdi_operand): New.
7896         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
7897         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
7898         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
7899         (cstoredi4): Handle non-Cirrus also.
7901 2010-07-02  Julian Brown  <julian@codesourcery.com>
7902             Sandra Loosemore <sandra@codesourcery.com>
7904         PR target/43703
7905         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
7906         (smax<mode>3): Disable for NEON float modes when
7907         flag_unsafe_math_optimizations is false.
7908         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
7909         (*mul<mode>3_neon)
7910         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
7911         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
7912         for NEON float modes when flag_unsafe_math_optimizations is false.
7913         (quad_halves_<code>v4sf): Only enable if
7914         flag_unsafe_math_optimizations is true.
7915         * doc/invoke.texi (ARM Options): Add note about floating point
7916         vectorization requiring -funsafe-math-optimizations.
7918 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7919             Julian Brown  <julian@codesourcery.com>
7921         * config/arm/neon.md (UNSPEC_VABA): Delete.
7922         (UNSPEC_VABAL): Delete.
7923         (UNSPEC_VABS): Delete.
7924         (UNSPEC_VMUL_N): Delete.
7925         (adddi3_neon): New.
7926         (subdi3_neon): New.
7927         (mul<mode>3add<mode>_neon): Make the pattern named.
7928         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
7929         (neon_vadd<mode>): Replace with define_expand, and move the remaining
7930         unspec parts...
7931         (neon_vadd<mode>_unspec): ...to this.
7932         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
7933         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
7934         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
7935         (neon_vaba<mode>): Rewrite in terms of vabd.
7936         (neon_vabal<mode>): Rewrite in terms of vabdl.
7937         (neon_vabs<mode>): Rewrite without unspec.
7938         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
7939         (*arm_subdi3): Likewise.
7940         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
7941         No_op attribute to disable assembly output checks.
7942         * config/arm/arm_neon.h: Regenerated.
7943         * doc/arm-neon-intrinsics.texi: Regenerated.
7945 2010-07-02  Jan Hubicka  <jh@suse.cz>
7947         * ipa-split.c (split_function): For aggregate values, set the return
7948         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
7949         *<retval> = fncall.part ().
7950         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
7952 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7954         * config/arm/neon.md (UNSPEC_VAND): Delete.
7955         (UNSPEC_VBIC): Delete.
7956         (UNSPEC_VCLZ): Delete.
7957         (UNSPEC_VCNT): Delete.
7958         (UNSPEC_VEOR): Delete.
7959         (UNSPEC_VORN): Delete.
7960         (UNSPEC_VORR): Delete.
7961         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
7962         core registers too.
7963         (anddi3_neon): Likewise.
7964         (orndi3_neon): Likewise.
7965         (bicdi3_neon): Likewise.
7966         (xordi3_neon): Likewise.
7967         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
7968         rid of unspec and handle unused operand.
7969         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
7970         * config/arm/predicates.md (imm_for_neon_logic_operand):
7971         Require TARGET_NEON.
7972         (imm_for_neon_inv_logic_operand): Likewise.
7973         * config/arm/arm.md (define_split for logical_binary_operator):
7974         Disable for NEON registers.
7975         (anddi3): Add new define_expand, and rename the insn.  Disable
7976         this insn for NEON, where anddi3_neon now applies.
7977         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
7978         (iordi3): As for anddi3.
7979         (xordi3): Likewise.
7980         * config/arm/neon.ml (Vand): Split DImode variants and mark them
7981         as No_op to disable testing for exact instruction match.
7982         (Vorr): Likewise.
7983         (Veor): Likewise.
7984         (Vbic): Likewise.
7985         (Vorn): Likewise.
7986         * config/arm/arm_neon.h: Regenerated.
7987         * doc/arm-neon-intrinsics.texi: Regenerated.
7989 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7991         * expr.h (emit_stack_probe): Declare.
7992         * explow.c (emit_stack_probe): Make global.
7993         (anti_adjust_stack_and_probe): Fix comments.
7994         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7995         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7996         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7997         * config/sparc/sparc.c: Include except.h.
7998         (sparc_emit_probe_stack_range): New function.
7999         (output_probe_stack_range): Likewise.
8000         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
8001         built-in stack checking is enabled.
8002         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
8003         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8004         (probe_stack_range): New insn.
8006 2010-07-02  Richard Guenther  <rguenther@suse.de>
8008         PR target/43958
8009         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
8010         for argument alignment.
8012 2010-07-02  Jan Hubicka  <jh@suse.cz>
8014         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
8015         walk backwards from entry_bb to check only those basic block of header
8016         that might lead to execution of split part.
8017         (consider_split) ... here.
8018         (find_return_bb): Allow assignment in return BB.
8019         (find_retval): New.
8020         (split_function): Fix name of cloned function; take care of updating
8021         return value in return_bb containing move.
8023 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
8025         PR target/44771
8026         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
8027         used variable insn.
8029 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
8031         * implicit-zee.c (combine_reaching_defs): Fix long lines.
8032         (is_set_with_extension_DI): Delete.
8033         (struct zero_extend_info): New structure.
8034         (add_removable_zero_extend): New function.
8035         (find_removable_zero_extends): Use note_stores to find SETs.
8036         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
8038 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8040         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
8041         is_miss_rate_acceptable. Pull total_positions computation
8042         out of the loops.  Early return if miss_positions exceeds
8043         the acceptable threshold.
8044         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
8045         is_miss_rate_acceptable after renaming of compute_miss_rate.
8047 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
8049         PR middle-end/44576
8050         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
8051         of 1000) for miss rate if the address diference is greater than or
8052         equal to the cache line size (the two reference will never hit the
8053         same cache line).
8055 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
8057         PR target/42835
8058         * config/arm/arm-modes.def (CC_NOTB): New mode.
8059         * config/arm/arm.c (get_arm_condition_code): Handle it.
8060         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
8061         * config/arm/arm.md (subsi3_compare0_c): New pattern.
8062         (compare_scc): Now a define_and_split.  Add a number of extra
8063         splitters before it.
8065         PR target/42172
8066         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
8067         and ZERO_EXTEND.
8068         (arm_rtx_costs_1): Likewise.
8069         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
8070         * config/arm/arm.md (is_arch6): New attribute.
8071         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
8072         extendqisi2): Tighten the code somewhat, avoiding invalid
8073         RTL to occur in the expander patterns.
8074         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
8075         (thumb1_zero_extendhisi2_v6): Delete.
8076         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
8077         (thumb1_extendhisi2_v6): Delete.
8078         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
8079         (thumb1_extendqisi2_v6): Delete.
8080         (zero_extendhisi2 for register input splitter): New.
8081         (zero_extendqisi2 for register input splitter): New.
8082         (thumb1_extendhisi2 for register input splitter): New.
8083         (extendhisi2 for register input splitter): New.
8084         (extendqisi2 for register input splitter): New.
8085         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
8086         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
8087         and add support for a register alternative requiring a split.
8088         (thumb1_zero_extendqisi2): Likewise.
8089         (arm_zero_extendqisi2): Likewise.
8090         (arm_extendhisi2): Likewise.
8091         (arm_extendqisi2): Likewise.
8093 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8095         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
8096         instead of an unspec.
8097         (neon_expand_vector_init): Likewise.
8098         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
8099         (UNSPEC_VDUP_LANE): Delete.
8100         (UNSPEC VDUP_N): Delete.
8101         (UNSPEC_VGET_HIGH): Delete.
8102         (UNSPEC_VGET_LANE): Delete.
8103         (UNSPEC_VGET_LOW): Delete.
8104         (UNSPEC_VMVN): Delete.
8105         (UNSPEC_VSET_LANE): Delete.
8106         (V_double_vector_mode): New.
8107         (vec_set<mode>_internal): Make code emitted match that for the
8108         corresponding intrinsics.
8109         (vec_setv2di_internal): Likewise.
8110         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
8111         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
8112         (neon_vset_lane<mode>): Combine double and quad patterns and
8113         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
8114         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
8115         (neon_vdup_n<mode>): Rewrite RTL without unspec.
8116         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
8117         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
8118         with neon_vdup_lanev2di, adjusting the pattern from the latter
8119         to be predicable for consistency.
8120         (neon_vdup_lane<mode>_internal): New.
8121         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
8122         to avoid using an unspec.
8123         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
8124         (neon_vdup_lanev2di): Turn into a define_expand.
8125         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
8126         (neon_vget_high<mode>): Replace with....
8127         (neon_vget_highv16qi): New pattern using canonical RTL.
8128         (neon_vget_highv8hi): Likewise.
8129         (neon_vget_highv4si): Likewise.
8130         (neon_vget_highv4sf): Likewise.
8131         (neon_vget_highv2di): Likewise.
8132         (neon_vget_low<mode>): Replace with....
8133         (neon_vget_lowv16qi): New pattern using canonical RTL.
8134         (neon_vget_lowv8hi): Likewise.
8135         (neon_vget_lowv4si): Likewise.
8136         (neon_vget_lowv4sf): Likewise.
8137         (neon_vget_lowv2di): Likewise.
8139         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
8140         test for this emitting vmov.
8141         (Vset_lane): Likewise.
8142         (Vdup_n): Likewise.
8143         (Vmov_n): Likewise.
8145         * doc/arm-neon-intrinsics.texi: Regenerated.
8147 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
8149         * config/arm/neon.md (vec_extractv2di): Correct error in register
8150         numbering to reconcile with neon_vget_lanev2di.
8152 2010-07-02  Richard Guenther  <rguenther@suse.de>
8154         * tree-ssa-structalias.c (pt_solution_set_var): New function.
8155         * tree-ssa-alias.h (pt_solution_set_var): Declare.
8156         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
8157         points-to information.
8159 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
8161         * config/s390/s390.c (override_options): Adopt prefetching
8162         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
8164 2010-07-02  Jan Hubicka  <jh@suse.cz>
8166         * df-problems.c (df_kill_notes): Do not collect dead  notes.
8167         (df_set_note): Just call add_reg_note.
8168         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
8169         df_create_unused_note): Do not deal with lists of old notes.
8170         (df_note_bb_compute): Likewise.
8172 2010-07-02  Richard Guenther  <rguenther@suse.de>
8174         * tree-ssa-structalias.c (find_func_aliases): Handle
8175         pointer alignment via BIT_AND_EXPR.
8176         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
8178 2010-07-02  Richard Guenther  <rguenther@suse.de>
8180         * tree-data-ref.c (initialize_data_dependence_relation): Handle
8181         mismatching number of dimensions properly.
8183 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8185         PR target/44707
8186         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
8187         (lo_sum (high ...) ...) patterns generated by earlier passes.
8189 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8191         * doc/install.texi (Prerequisites): Document Perl requirement on
8192         Solaris 2.
8193         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
8195 2010-07-02  Richard Guenther  <rguenther@suse.de>
8197         PR middle-end/44777
8198         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
8200 2010-07-02  Jan Hubicka  <jh@suse.cz>
8202         PR middle-end/44706
8203         * predict.c (predict_paths_for_bb): Handle case when control dependence
8204         BB has only abnormal edges.
8206 2010-07-02  Richard Guenther  <rguenther@suse.de>
8208         PR tree-optimization/44748
8209         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
8210         the embedded conversion in MEM_REFs.
8212 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
8214         * reload.c: Include toplev.h.
8215         * recog.c:  Likewise.
8216         * Makefile.in: Adjust dependencies.
8218 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
8220         PR debug/44694
8221         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
8222         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
8224 2010-07-01  Richard Guenther  <rguenther@suse.de>
8226         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
8227         types for offsets.
8229 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
8231         PR target/44732
8232         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
8233         Fix argument types.
8235 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
8237         PR target/44727
8238         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8239         Make sure operand 0 dies.
8241 2010-07-01  Richard Guenther  <rguenther@suse.de>
8243         PR middle-end/42834
8244         PR middle-end/44468
8245         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
8246         * doc/generic.texi (References to storage): Document MEM_REF.
8247         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
8248         (print_call_name): Likewise.
8249         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
8250         (build_simple_mem_ref_loc): New function.
8251         (mem_ref_offset): Likewise.
8252         * tree.h (build_simple_mem_ref_loc): Declare.
8253         (build_simple_mem_ref): Define.
8254         (mem_ref_offset): Declare.
8255         * fold-const.c: Include tree-flow.h.
8256         (operand_equal_p): Handle MEM_REF.
8257         (build_fold_addr_expr_with_type_loc): Likewise.
8258         (fold_comparison): Likewise.
8259         (fold_unary_loc): Fold
8260         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
8261         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
8262         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
8263         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
8264         (ptr_deref_may_alias_ref_p_1): Likewise.
8265         (ao_ref_base_alias_set): Properly differentiate base object for
8266         offset and TBAA.
8267         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
8268         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
8269         (indirect_refs_may_alias_p): Likewise.
8270         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
8271         chasing code.
8272         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
8273         (call_may_clobber_ref_p_1): Likewise.
8274         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
8275         * expr.c (expand_assignment): Handle MEM_REF.
8276         (store_expr): Handle MEM_REFs from STRING_CSTs.
8277         (store_field): If expanding a MEM_REF of a non-addressable
8278         decl use bitfield operations.
8279         (get_inner_reference): Handle MEM_REF.
8280         (expand_expr_addr_expr_1): Likewise.
8281         (expand_expr_real_1): Likewise.
8282         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
8283         * alias.c (ao_ref_from_mem): Handle MEM_REF.
8284         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
8285         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
8286         (dr_analyze_indices): Likewise.
8287         (dr_analyze_alias): Likewise.
8288         (object_address_invariant_in_loop_p): Likewise.
8289         * gimplify.c (mark_addressable): Handle MEM_REF.
8290         (gimplify_cond_expr): Build MEM_REFs.
8291         (gimplify_modify_expr_to_memcpy): Likewise.
8292         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
8293         (gimple_fold_indirect_ref): Adjust.
8294         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
8295         * tree.def (MEM_REF): New tree code.
8296         * tree-dfa.c: Include toplev.h.
8297         (get_ref_base_and_extent): Handle MEM_REF.
8298         (get_addr_base_and_unit_offset): New function.
8299         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
8300         * gimple-fold.c (may_propagate_address_into_dereference): Handle
8301         MEM_REF.
8302         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
8303         accesses if the array has just one dimension.  Remove always true
8304         parameter.  Do not require type compatibility here.
8305         (maybe_fold_offset_to_component_ref): Remove.
8306         (maybe_fold_stmt_indirect): Remove.
8307         (maybe_fold_reference): Remove INDIRECT_REF handling.
8308         Fold back to non-MEM_REF.
8309         (maybe_fold_offset_to_address): Simplify.  Deal with type
8310         mismatches here.
8311         (maybe_fold_reference): Likewise.
8312         (maybe_fold_stmt_addition): Likewise.  Also handle
8313         &ARRAY + I in addition to &ARRAY[0] + I.
8314         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
8315         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
8316         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
8317         * tree-ssa.c (useless_type_conversion_p): Make most pointer
8318         conversions useless.
8319         (warn_uninitialized_var): Handle MEM_REF.
8320         (maybe_rewrite_mem_ref_base): New function.
8321         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
8322         to SSA form.
8323         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
8324         INDIRECT_REF handling.
8325         (copy_tree_body_r): Handle MEM_REF.
8326         * gimple.c (is_gimple_addressable): Adjust.
8327         (is_gimple_address): Likewise.
8328         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
8329         invariant base are invariant.
8330         (is_gimple_min_lval): Adjust.
8331         (is_gimple_mem_ref_addr): New function.
8332         (get_base_address): Handle MEM_REF.
8333         (count_ptr_derefs): Likewise.
8334         (get_base_loadstore): Likewise.
8335         * gimple.h (is_gimple_mem_ref_addr): Declare.
8336         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
8337         * tree-cfg.c (verify_address): New function, split out from ...
8338         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
8339         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
8340         INDIRECT_REFs.
8341         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
8342         INDIRECT_REF.  Allow conversions.
8343         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
8344         a register does not change its size.
8345         (verify_types_in_gimple_reference): Verify MEM_REF.
8346         (verify_gimple_assign_single): Disallow INDIRECT_REF.
8347         Handle MEM_REF.
8348         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
8349         New.
8350         (mark_address_taken): Handle MEM_REF.
8351         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
8352         (get_asm_expr_operands): Pass opf_not_non_addressable.
8353         (get_expr_operands): Handle opf_[not_]non_addressable.
8354         Handle MEM_REF.  Remove INDIRECT_REF handling.
8355         * tree-vrp.c (check_array_ref): Handle MEM_REF.
8356         (search_for_addr_array): Likewise.
8357         (check_array_bounds): Likewise.
8358         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
8359         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
8360         (ref_always_accessed_p): Likewise.
8361         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
8362         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
8363         Handle MEM_REF.
8364         * cgraphbuild.c (mark_load): Properly check for NULL result
8365         from get_base_address.
8366         (mark_store): Likewise.
8367         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
8368         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
8369         handling for MEM_REF.
8370         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
8371         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
8372         * builtins.c (stabilize_va_list_loc): Use the function ABI
8373         valist type if we couldn't canonicalize the argument type.
8374         Always dereference with the canonical va-list type.
8375         (maybe_emit_free_warning): Handle MEM_REF.
8376         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
8377         memmove to memcpy.
8378         * builtins.c (fold_builtin_memory_op): Use ref-all types
8379         for all memcpy foldings.
8380         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
8381         (build_outer_var_ref): Likewise.
8382         (scan_omp_1_op): Likewise.
8383         (lower_rec_input_clauses): Likewise.
8384         (lower_lastprivate_clauses): Likewise.
8385         (lower_reduction_clauses): Likewise.
8386         (lower_copyprivate_clauses): Likewise.
8387         (expand_omp_atomic_pipeline): Likewise.
8388         (expand_omp_atomic_mutex): Likewise.
8389         (create_task_copyfn): Likewise.
8390         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
8391         Remove old union trick.  Initialize constant offsets.
8392         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
8393         INDIRECT_REF.  Init base_alias_set properly.
8394         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
8395         (vn_reference_fold_indirect): Adjust for MEM_REFs.
8396         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
8397         for ARRAY_REFs.
8398         (may_insert): Remove.
8399         (visit_reference_op_load): Do not test may_insert.
8400         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
8401         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8402         a field to store the constant offset this op applies.
8403         (run_scc_vn): Adjust prototype.
8404         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
8405         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
8406         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
8407         bother about volatile qualifiers on pointers.
8408         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
8409         * tree-ssa-loop-ivopts.c
8410         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
8411         (strip_offset_1): Likewise.
8412         (find_interesting_uses_address): Replace INDIRECT_REF handling with
8413         MEM_REF handling.
8414         (get_computation_cost_at): Likewise.
8415         * ipa-pure-const.c (check_op): Handle MEM_REF.
8416         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
8417         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
8418         and constants.
8419         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
8420         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
8421         (eliminate_local_variables_1): Likewise.
8422         (create_call_for_reduction_1): Likewise.
8423         (create_loads_for_reductions): Likewise.
8424         (create_loads_and_stores_for_name): Likewise.
8425         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
8426         (ssa_accessed_in_tree): Handle MEM_REF.
8427         (ssa_accessed_in_assign_rhs): Likewise.
8428         (update_type_size): Likewise.
8429         (analyze_accesses_for_call_stmt): Likewise.
8430         (analyze_accesses_for_assign_stmt): Likewise.
8431         (transform_access_sites): Likewise.
8432         (transform_allocation_sites): Likewise.
8433         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
8434         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8435         not handle INDIRECT_REF.
8436         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
8437         (cond_store_replacement): Likewise.
8438         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
8439         MEM_REF, no not handle INDIRECT_REFs.
8440         (insert_into_preds_of_block): Properly initialize avail.
8441         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
8442         for ARRAY_REFs.  Properly handle reference lookups that
8443         require a bit re-interpretation.
8444         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
8445         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
8446         (build_ref_for_offset_1): Remove.
8447         (build_ref_for_offset): Build MEM_REFs.
8448         (gate_intra_sra): Disable for now.
8449         (sra_ipa_modify_expr): Handle MEM_REF.
8450         (ipa_early_sra_gate): Disable for now.
8451         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
8452         MEM_REF handling.
8453         (disqualify_base_of_expr): Likewise.
8454         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
8455         MEM_REF handling.
8456         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
8457         Use mem_ref_offset.  Remove bogus folding.
8458         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
8459         (make_fancy_name_1): Add support for MEM_REF.
8460         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
8461         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
8462         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
8463         (compute_complex_ancestor_jump_func): Likewise.
8464         (ipa_analyze_virtual_call_uses): Likewise.
8465         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
8466         INDIRECT_REF folding with more generalized MEM_REF folding.
8467         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
8468         (forward_propagate_addr_into_variable_array_index): Also handle
8469         &ARRAY + I in addition to &ARRAY[0] + I.
8470         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
8471         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
8472         creates assignments with overlap.
8473         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
8474         (get_frame_field): Likewise.
8475         (get_nonlocal_debug_decl): Likewise.
8476         (convert_nonlocal_reference_op): Likewise.
8477         (struct nesting_info): Add mem_refs pointer-set.
8478         (create_nesting_tree): Allocate it.
8479         (convert_local_reference_op): Insert to be folded mem-refs.
8480         (fold_mem_refs): New function.
8481         (finalize_nesting_tree_1): Perform defered folding of mem-refs
8482         (free_nesting_tree): Free the pointer-set.
8483         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
8484         (vectorizable_load): Likewise.
8485         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
8486         (propagate_with_phi): Likewise.
8487         * tree-object-size.c (addr_object_size): Handle MEM_REFs
8488         instead of INDIRECT_REFs.
8489         (compute_object_offset): Handle MEM_REF.
8490         (plus_stmt_object_size): Handle MEM_REF.
8491         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
8492         for &MEM_REF.
8493         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
8494         (symbol_marked_for_renaming): Likewise.
8495         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
8496         (fold-const.o): Add $(TREE_FLOW_H).
8497         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
8498         (find_func_clobbers): Likewise.
8499         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
8500         (decompose_access): Likewise.
8501         (replace_field_acc): Likewise.
8502         (replace_field_access_stmt): Likewise.
8503         (insert_new_var_in_stmt): Likewise.
8504         (get_stmt_accesses): Likewise.
8505         (reorg_structs_drive): Disable.
8506         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
8507         (ix86_canonical_va_list_type): Likewise.
8509 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8511         PR other/44566
8512         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
8513         * target.def (struct gcc_target): Replace enum reg_class with
8514         reg_class_t in hook argument / return types.
8515         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
8516         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
8517         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
8518         * targhooks.h (default_branch_target_register_class): Likewise.
8519         (default_ira_cover_classes, default_secondary_reload): Likewise.
8520         (default_memory_move_cost, default_register_move_cost): Likewise.
8521         * targhooks.c (default_branch_target_register_class): Likewise.
8522         (default_ira_cover_classes, default_secondary_reload): Likewise.
8523         (default_memory_move_cost, default_register_move_cost): Likewise.
8524         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
8525         * bt-load.c (branch_target_load_optimize): Likewise.
8526         * ira.c (setup_cover_and_important_classes): Likewise.
8527         * ira-costs.c (copy_cost): Likewise.
8528         * reload1.c (emit_input_reload_insns): Likewise.
8529         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8530         * config/frv/frv.c (frv_secondary_reload): Likewise.
8531         * config/s390/s390.c (s390_secondary_reload): Likewise.
8532         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
8533         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
8534         (ix86_register_move_cost): Likewise.
8535         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
8536         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
8537         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
8538         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
8539         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
8540         (rs6000_ira_cover_classes): Likewise.
8541         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
8542         * config/picochip/picochip-protos.h (picochip_secondary_reload):
8543         Likewise.
8544         * config/pa/pa.c (pa_secondary_reload): Likewise.
8545         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
8546         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
8547         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
8548         * doc/tm.texi: Regenerate.
8550 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
8552         PR bootstrrap/44726
8553         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
8554         use.
8555         (build_alias_set_optimal_p): Likewise.
8556         (build_base_obj_set_for_drs): Likewise.
8558 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8560         * target.def: Remove comment about licensing problems of function
8561         declarations.
8563         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
8564         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
8565         * doc/tm.texi: Regenerate.
8567         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
8568         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
8570         * target.def (enum_va_list_p): Use DEFHOOK.
8571         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
8572         Rename ptype to ptree.
8573         * doc/tm.texi: Regenerate.
8575         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
8576         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
8577         * doc/tm.texi: Regenerate.
8579         * target.def (memory_move_cost): Use DEFHOOK.
8580         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
8581         Rename regclass AKA class to rclass.
8582         * doc/tm.texi: Regenerate.
8584         * target.def (pragma_parse): Use DEFHOOK.
8585         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
8586         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
8587         * doc/tm.texi: Regenerate.
8589         * target.def (pass_by_reference): Use DEFHOOK.
8590         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
8591         * doc/tm.texi: Regenerate.
8593         * target.def (resolve_overloaded_builtin): Rename params to arglist.
8594         Use DEFHOOK.
8595         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
8596         * doc/tm.texi: Regenerate.
8598         * target.def (return_pops_args): Use DEFHOOK.
8599         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
8600         Rename stack-size to size.
8601         * doc/tm.texi: Regenerate.
8603         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
8604         last-sched_cycle to last_clock, cur_cycle to clock.
8605         * doc/tm.texi.in: Use @hook.
8606         * doc/tm.texi: Regenerate.
8608         * target.def (print_operand, print_operand_address): Update comment.
8609         (print_operand_punct_valid_p): Likewise.
8611 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8613         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
8614         to rtl.h.
8615         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
8616         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
8617         * rtl-error.h: New.
8618         * regrename.c: Do not include toplev.h. Include rtl-error.h.
8619         * rtl-error.c: Likewise.
8620         * reload.c: Likewise.
8621         * recog.c:  Likewise.
8622         * sel-sched.c: Likewise.
8623         * function.c: Likewise.
8624         * reg-stack.c: Likewise.
8625         * cfgrtl.c: Likewise.
8626         * reload1.c: Likewise.
8627         * final.c: Include rtl-error.
8628         * Makefile.in: Adjust dependencies.
8630 2010-06-30  Jan Hubicka  <jh@suse.cz>
8632         PR middle-end/PR44706
8633         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
8634         to return the value.
8636 2010-06-30  Michael Matz  <matz@suse.de>
8638         PR bootstrap/44699
8639         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
8640         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
8641         a gimple reg, attach the original VDEF to the last store in the
8642         sequence.
8644 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
8646         PR other/44034
8647         * config/darwin.c (darwin_override_options): Use renamed
8648         targetm.asm_out.emit_unwind_label.
8650 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
8652         PR tree-optimization/39799
8653         * tree-inline.c (remap_ssa_name): Initialize variable only if
8654         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8656 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
8658         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
8660 2010-06-30  Richard Guenther  <rguenther@suse.de>
8662         PR target/44722
8663         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
8664         against oscillation with reverse peephole2.
8666 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8668         PR target/44721
8669         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8670         Fix last commit.
8672 2010-06-30  Nick Clifton  <nickc@redhat.com>
8674         * config/rx/rx-modes.def: New file.
8675         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
8676         (CC_REGNUM): Define.
8677         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
8678         register.
8679         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
8680         (SELECT_CC_MODE): Define.
8681         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
8682         (reg:CC CC_REG) instead of (cc0).
8683         (attr "cc"): Delete.
8684         (cbranchsi4): Do not split compare and branch here. Instead move
8685         it to...
8686         (cbranchsi4_<code>): ... here.  New patterns.
8687         (cmpsi): Call rx-compare_redundant to find out if it is necessary
8688         to emit the compare instruction.
8689         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
8690         cc_status flags.
8691         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
8692         FIRST_PSEUDO_REGNUM.
8693         (rx_expand_prologue, rx_expand_epilogue): Likewise.
8694         (rx_notice_update_cc): Delete.
8695         (rx_cc_modes_compatible): New function.
8696         (flags_needed_for_conditional): New function.
8697         (flags_from_mode): New function.
8698         (rx_compare_redundant): New function - scans backwards through
8699         insn list to find out if condition flags are already set correctly.
8700         (TARGET_CC_MODES_COMPATIBLE): Define.
8701         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
8703         * config/rx/rx.h (BRANCH_COST): Define.
8704         (REGISTER_MOVE_COST): Define.
8705         * config/rx/predicates (rx_source_operand): Allow all constant types.
8706         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
8707         (tstsi4): New pattern.
8708         * config/rx/rx.c (rx_memory_move_cost): Define.
8709         (TARGET_MEMORY_MOVE_COST): Define.
8711 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8713         * tree.h (block_may_fallthru): Declare here.
8714         * tree-flow.h (block_may_fallthru): Do not declare here.
8715         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
8716         bitmap.h
8717         * Makefile.in (c-typeck.o): Update dependencies.
8719 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
8721         PR debug/44694
8722         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
8723         * cselib.c (cfa_base_preserved_regno): New static variable.
8724         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
8725         of REGNO (cfa_base_preserved_val->locs->loc).
8726         (cselib_preserve_cfa_base_value): Add regno argument, set
8727         cfa_base_preserved_regno to it.
8728         (cselib_invalidate_regno): Allow removal of registers other than
8729         cfa_base_preserved_regno from cfa_base_preserved_val.
8730         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
8731         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
8732         of MEM addresses, if not on LHS.
8733         (reverse_op): Don't add reverse ops for cfa_base_rtx.
8734         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
8736 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
8738         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
8739         static variables.
8740         (peep2_buf_position): New static function.
8741         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
8742         peephole2_optimize): Use it.
8743         (peep2_attempt, peep2_update_life): New static functions, broken out
8744         of peephole2_optimize.
8745         (peep2_fill_buffer): New static function.
8746         (peephole2_optimize): Change the main loop to try to fill the buffer
8747         with the maximum number of insns before matching them against
8748         peepholes.  Use a forward scan.  Remove special case for targets with
8749         conditional execution.
8750         * genrecog.c (change_state): Delete dead code.
8751         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
8752         Rewrite so as not to expect the second insn to have had a peephole
8753         applied yet.
8755 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8757         * genhooks.c (emit_findices): Cast field precision to int.
8758         (emit_documentation): Likewise.
8760 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
8762         PR tree-optimization/43801
8763         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
8764         if old_decl was DECL_ONE_ONLY.
8766         PR debug/44668
8767         * dwarf2out.c (add_accessibility_attribute): New function.
8768         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
8769         instead of adding DW_AT_accessibility manually.
8770         (gen_enumeration_type_die, gen_struct_or_union_type_die,
8771         gen_typedef_die): Use it.
8773 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
8775         * vmsdbgout.c (full_name): Just output the file name if not native.
8777 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
8779         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
8780         (funcnam_table): New static table.
8781         (funcnum_table): New static table.
8782         (write_rtnbeg): Write value saved in funcnum_table.
8783         (write_rtnend): Write value saved in funcnum_table.
8784         (vmsdbgout_begin_function): Save current function info in
8785         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
8786         (vmsdbgout_finish): Iterate over funcnum_table.
8788 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
8790         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
8791         (vmsdbgout_type_decl): Declare
8792         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
8793         (FUNC_EPILOGUE_LABEL): New macro
8794         (vmsdbgout_begin_epilogue): New function.
8795         (vmsdbgout_type_decl): New function.
8797 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
8799         * vmsdbg.h: Update copyright.
8801 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
8803         * vmsdbg.h (DST_K_TBG): New DST constant.
8804         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
8805         (write_modbeg): Cast module_language to avoid warning.
8806         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
8808 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8810         PR other/44034
8811         * target.def, doc/tm.texi.in, genhooks.c: New files.
8812         * target.h: Instead of defining individual hook members,
8813         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
8814         include target.def.
8815         * target-def.h: Instead of defining individual hook initializers,
8816         include target-hooks-def.h.
8817         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
8818         targetm.live_on_entry -> targetm.extra_live_on_entry
8819         targetm.sched.md_finish ->targetm.sched.finish
8820         targetm.sched.md_init -> targetm.sched.init
8821         targetm.sched.md_init_global -> targetm.sched.init_global
8822         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
8823         targetm.asm_out.except_table_label ->
8824           targetm.asm_out.emit_except_table_label
8825         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
8826         targetm.target_help -> targetm.help
8827         targetm.vectorize.builtin_support_vector_misalignment ->
8828           targetm.vectorize.support_vector_misalignment
8829         targetm.file_start_app_off -> targetm.asm_file_start_app_off
8830         targetm.file_start_file_directive ->
8831          targetm.asm_file_start_file_directive
8832         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
8833         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
8834         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
8835         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
8836           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
8837         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
8838           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
8839         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
8840         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
8841         * Makefile.in (TARGET_H): Depend on target.def.
8842         (TARGET_DEF_H): Depend on target-hooks-def.h.
8843         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
8844         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
8845         * doc/tm.texi: Regenerate.
8847         * Makefile.in (s-tm-texi): Remove stray tab / rule.
8849         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
8850         (targetm.sched.init): Likewise.
8852 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8854         PR bootstrap/44713
8855         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
8856         (function_arg_advance_32): Const-ify TYPE parameter.
8857         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
8858         (ix86_function_arg_advance): Change type of NAMED to bool.
8859         (function_arg_32): Const-ify CUM and TYPE parameters.
8860         (function_arg_64): Likewise.  Change type of NAMED to bool.
8861         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
8862         to bool.
8863         (ix86_function_arg): Change type of NAMED to bool.
8864         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
8865         last argument as a bool.
8867 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8869         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
8870         (OVERRIDE_OPTIONS): Add note of obsolescence.
8871         Replace references with references to TARGET_OPTION_OVERRIDE.
8872         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
8873          the macro).
8874         * targhooks.c (default_target_option_override): New function.
8875         * targhooks.h (default_target_option_override): Declare.
8876         * target.h (struct gcc_target): Add override member to
8877         target_option member.
8878         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
8879         targetm.target_option.override call.
8880         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
8881         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
8883 2010-06-29  Jan Hubicka  <jh@suse.cz>
8885         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
8887 2010-06-29  Jan Hubicka  <jh@suse.cz>
8889         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
8890         unreachable.
8891         (rebuild_frequencies): New function.
8892         * predict.h (rebuild_frequencies): Declare.
8893         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
8894         entry block and edge reaching new_entry.
8895         (tree_function_versioning): When doing partial cloning, rebuild
8896         frequencies when done.
8897         * passes.c (execute_function_todo): Use rebild_frequencies.
8899 2010-06-29  Richard Guenther  <rguenther@suse.de>
8901         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
8902         * tree-flow.h (enum noalias_state): Remove.
8903         (struct var_ann_d): Remove noalias_state member.
8905 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
8907         PR target/43902
8908         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
8909         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
8910         (maddhidi4): Likewise.
8912         Revert parts of the change for PR25130.
8913         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8914         MEM_ALIAS_SET.
8916 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8918         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
8919         targetm.calls.function_incoming_arg, and
8920         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
8921         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
8922         * target.h (struct gcc_target): Add function_arg_advance,
8923         function_arg, and function_incoming_arg fields.
8924         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
8925         (TARGET_FUNCTION_INCOMING_ARG): Define.
8926         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
8927         and TARGET_FUNCTION_INCOMING_ARG.
8928         * targhooks.h (default_function_arg_advance): Declare.
8929         (default_function_arg, default_function_incoming_arg): Declare.
8930         * targhooks.c (default_function_arg_advance): New function.
8931         (default_function_arg, default_function_incoming_arg): New function.
8932         * config/i386/i386.c (function_arg_advance): Rename to...
8933         (ix86_function_arg_advance): ...this.  Make static.
8934         (function_arg): Rename to...
8935         (ix86_function_arg): ...this.  Make static.
8936         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8937         (TARGET_FUNCTION_ARG): Define.
8938         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
8939         (FUNCTION_ARG): Delete.
8940         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
8941         (function_arg): Delete prototype.
8943 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8945         * reginfo.c (init_reg_sets_1): Adjust comments.
8946         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
8947         * calls.c (prepare_call_address): Likewise.
8948         (emit_call_1): Use targetm.calls.return_pops_args.
8949         (expand_call): Likewise.
8950         * function.c (assign_parms): Likewise.
8951         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
8952         * target.h (struct gcc_target) [struct calls]: Add
8953         return_pops_args field.
8954         * targhooks.h (default_return_pops_args): Declare.
8955         * targhooks.c (default_return_pops_args): Define.
8956         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
8957         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
8958         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
8959         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
8960         documentation.
8961         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
8962         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
8963         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
8964         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
8965         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
8966         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
8967         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
8968         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
8969         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
8970         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
8971         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
8972         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
8973         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
8974         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
8975         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
8976         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
8977         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
8978         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
8979         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
8980         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
8981         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
8982         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
8983         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
8984         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
8985         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
8986         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
8987         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
8988         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
8989         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
8990         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
8991         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
8992         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
8993         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
8994         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
8995         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
8996         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
8997         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
8998         * config/i386/i386.c (ix86_return_pops_args): Make static.
8999         Constify arguments.
9000         (TARGET_RETURN_POPS_ARGS): Define.
9001         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
9002         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
9003         (TARGET_RETURN_POPS_ARGS): Define.
9004         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
9005         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
9006         (TARGET_RETURN_POPS_ARGS): Define.
9008 2010-06-29  Richard Guenther  <rguenther@suse.de>
9010         PR middle-end/44667
9011         * tree-inline.c (initialize_inlined_parameters): Make sure
9012         to remap the inlined parameter variable substitutions types.
9014 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9016         PR rtl-optimization/44659
9017         * combine.c (make_compound_operation) <SUBREG>: Do not return the
9018         result of force_to_mode if it partially re-expanded the compound.
9020 2010-06-28  Jan Hubicka  <jh@suse.cz>
9022         PR middle-end/44671
9023         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
9024         RESULT_DECL.
9026 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
9028         * double-int.h (force_fit_type_double): Remove declaration.
9029         * double-int.c (force_fit_type_double): Move to tree.c.
9030         * tree.h (force_fit_type_double): Declare.
9031         * tree.h (force_fit_type_double): Moved from double-int.c. Use
9032         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
9033         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
9034         * convert.c (convert_to_pointer): Adjust call to
9035         force_fit_type_double.
9036         * tree-vrp.c (extract_range_from_assert,
9037         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
9038         * fold-const.c: Update comment.
9039         (int_const_binop, fold_convert_const_int_from_int,
9040         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
9041         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
9042         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
9043         round_up_loc): Adjust call to force_fit_type_double.
9045 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9047         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
9049 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9051         * tree-sra.c (convert_callers): New parameter, change fndecls of
9052         recursive calls.
9053         (modify_function): Pass the old decl to convert_callers.
9055 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9057         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
9058         ipa_check_create_node_params and ipa_initialize_node_params with
9059         checking asserts they are not necessary.
9061 2010-06-28  Jan Hubicka  <jh@suse.cz>
9063         PR tree-optimization/44687
9064         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
9066 2010-06-28  Martin Jambor  <mjambor@suse.cz>
9068         PR c++/44535
9069         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
9070         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
9071         instead of BINFO_BASE_BINFO.
9073 2010-06-28  Michael Matz  <matz@suse.de>
9075         PR middle-end/44592
9076         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
9077         proper VDEF chain for intermediate stores in the sequence.
9079 2010-06-28  Jan Hubicka  <jh@suse.cz>
9081         PR tree-optimization/44357
9082         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
9083         uninlinable functions.
9085 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
9087         * config.gcc (powerpc*-*-*): Handle titan.
9088         * config/rs6000/rs6000.c (titan_cost): New costs.
9089         (rs6000_override_options): Add "titan" to processor_target_table.
9090         Add Titan to branch alignment logic.
9091         Correctly set rs6000_cost for titan.
9092         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
9093         * config/rs6000/titan.md: New file.
9094         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
9096 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9098         * tree-browser.c (TB_history_stack): Convert to a VEC.
9099         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
9100         (TB_history_prev): Likewise.
9102 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
9104         * vec.h (vec_heap_free): Add parentheses around free.
9106 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
9108         * system.h: Poison GCC_EXCEPT_H for front-end files.
9110         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
9111         langhook.
9112         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
9113         Define to NULL by default.
9114         * except.h: Define GCC_EXCEPT_H.
9115         (doing_eh): Remove prototype.
9116         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
9117         (lang_protect_cleanup_actions): Remove.
9118         * except.c (lang_protect_cleanup_actions): Remove.
9119         (doing_eh): Remove.
9120         (gen_eh_region): Don't check doing_eh here.
9121         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
9122         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
9123         instead of lang_protect_cleanup_actions.
9124         * omp-low.c (maybe_catch_exception): Likewise.
9125         * Makefile.in: Update dependencies.
9127 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
9129         * cgraph.h (struct varpool_node): new used_from_object_file flag.
9130         (struct cgraph_local_info): new used_from_object_file flag.
9131         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
9132         (cgraph_clone_node): initialize used_from_object_file.
9133         (cgraph_create_virtual_clone): initialize used_from_object_file.
9134         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
9135         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
9136         when compiling with -fwhole-program.
9137         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
9138         internal resolver.
9139         * ipa.c (function_and_variable_visibility): Set externally_visible
9140         flag of varpool_node if used_from_object_file flag is set.
9141         (cgraph_externally_visible_p): check used_from_object_file flag.
9142         * doc/invoke.texi (-fwhole-program option): Change description of
9143         externally_visible attribute accordingly.
9144         * doc/extend.texi (externally_visible): Ditto.
9146 2010-06-27  Jan Hubicka  <jh@suse.cz>
9148         * params.def (max-inline-insns-auto): Default to 40.
9149         * doc/invoke.texi (max-inline-insns-auto): Document the change.
9151 2010-06-27  Jan Hubicka  <jh@suse.cz>
9153         PR middle-end/44671
9154         PR middle-end/44686
9155         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
9156         signature change.
9157         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
9158         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
9160 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
9162         * target.h (struct gcc_target): Add register_move_cost field.
9163         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
9164         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
9165         * targhooks.c (default_register_move_cost): New function.
9166         * targhooks.h (default_register_move_cost): Declare function.
9167         * defaults.h (REGISTER_MOVE_COST): Delete.
9168         * ira-int.h (ira_register_move_cost): Update comment.
9169         * ira.c (ira_register_move_cost): Update comment.
9170         * reload.h (register_move_cost): Declare.
9171         * reginfo.c (register_move_cost): New function.
9172         (move_cost): Update comment.
9173         (init_move_cost, memory_move_secondary_cost): Replace
9174         REGISTER_MOVE_COST with register_move_cost.
9175         * postreload.c (reload_cse_simplify_set): (Ditto.).
9176         * reload.c (find_valid_class, find_reloads): (Ditto.).
9177         * reload1.c (choose_reload_regs): (Ditto.).
9178         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
9179         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
9180         * doc/md.texi (can_create_pseudo_p): Update documentation.
9182         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9183         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9184         * config/i386/i386.h (ix86_memory_move_cost): Make static.
9185         (TARGET_MEMORY_MOVE_COST): Define.
9187         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
9188         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
9189         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
9190         (TARGET_MEMORY_MOVE_COST): Define.
9192 2010-06-27  Richard Guenther  <rguenther@suse.de>
9194         PR tree-optimization/44683
9195         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
9196         false edge from the inverted condition.
9198 2010-06-27  Richard Guenther  <rguenther@suse.de>
9200         PR middle-end/44684
9201         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
9202         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
9203         for register LHS.  Or non-store assignments.
9205 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9207         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
9208         (sparc_emit_set_const64): Likewise.  Remove disabled code.
9209         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
9210         (sparc_emit_set_const64): Likewise.
9212 2010-06-26  Catherine Moore  <clm@codesourcery.com>
9214         * config/mips/mips.md (alu_type): New attribute.
9215         (type): Infer type from alu_type.
9216         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
9217         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
9218         *subsi3_extended, negsi2, negdi2, *low<mode>,
9219         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
9220         xor<mode>3, *nor<mode>3,
9221         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
9222         *zero_extendhi_truncqi):  Set alu_type instead of type.
9224 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
9226         * config/alpha/alpha.c (alpha_need_linkage): Adjust
9227         splay_tree_new_ggc call.
9228         (alpha_use_linkage): Likewise.
9230 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9232         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
9233         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
9234         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
9235         (static_specs): Remove switches_need_spaces.
9236         (process_command, do_self_spec): Hardcode handling "-o" instead of
9237         checking switches_need_spaces.
9238         * system.h (SWITCHES_NEED_SPACES): Poison.
9240 2010-06-26  Richard Guenther  <rguenther@suse.de>
9242         PR tree-optimization/44393
9243         * tree-loop-distribution.c (generate_loops_for_partition): Fix
9244         stmt removal and VOP renaming.
9245         (generate_memset_zero): Remove redundant stmt updating.
9246         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
9247         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
9249 2010-06-26  Jan Hubicka  <jh@suse.cz>
9251         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
9252         edges comming from header are equivalent.
9253         (visit_bb): Handle PHIs correctly.
9254         * tree-inline.c (copy_phis_for_bb): Be able to copy
9255         PHI from entry edge.
9256         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
9258 2010-06-26  Richard Guenther  <rguenther@suse.de>
9260         PR middle-end/44674
9261         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
9262         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
9264 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
9266         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
9267         add_infile, alloc_switch): New.
9268         (process_command): Remove variable lang_n_infiles.  Process
9269         options in a single pass.  Use new functions for allocating
9270         infiles and switches arrays.  Properly skip operands of
9271         -Xpreprocessor and -Xassembler.
9273 2010-06-26  Jan Hubicka  <jh@suse.cz>
9275         PR middle-end/44671
9276         * cgraphunit.c (cgraph_function_versioning): Remove wrong
9277         cgraph_make_decl_local call; fix typo copying RTL data.
9279 2010-06-25  DJ Delorie  <dj@redhat.com>
9281         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
9282         (m32c_output_aligned_common): Likewise.
9283         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
9284         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
9285         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
9286         (m32c_register_pragmas): Register it.
9287         * config/m32c/m32c.c (m32c_get_pragma_address): New.
9288         (m32c_insert_attributes): Set #pragma address decls volatile.
9289         (pragma_entry_eq): New.
9290         (pragma_entry_hash): New.
9291         (m32c_note_pragma_address): New.
9292         (m32c_get_pragma_address): New.
9293         (m32c_output_aligned_common): New.
9294         * doc/extend.texi: Document the new pragma.
9296         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
9297         also.
9298         * config/m32c/predicates.md (m32c_any_operand): Check the code
9299         instead of memory_operand so as to allow matching volatile MEMs.
9300         (m32c_nonimmediate_operand): Likewise.
9301         (mra_operand): Allow volatiles.
9303 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
9305         PR debug/44610
9306         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
9307         address if the offset is unknown.
9309 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
9311         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
9312         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
9313         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
9314         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
9315         to ia64_start_function. Invoke it.
9316         * config/ia64/ia64.c (ia64_start_function): Call new function
9317         dwarf2out_vms_debug_main_pointer.
9319 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9321         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
9322         statements computing the true predicate.
9324 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9326         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
9327         to boolean_true_node.
9328         (reset_bb_predicate): New.
9329         (predicate_bbs): Call reset_bb_predicate.
9331 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9333         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
9334         (tree_if_conversion): Returns true when something has been changed.
9335         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
9336         changed something.
9338 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
9340         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
9341         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
9342         * tree-if-conv.c: Include dbgcnt.h.
9343         (tree_if_conversion): Use if_conversion_tree to count the number of
9344         if-convertible loops.
9346 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
9348         * common.opt (fprefetch-loop-arrays): Re-define
9349         -fprefetch-loop-arrays as a tri-state option with the initial
9350         value of -1.
9351         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
9352         pass only when flag_prefetch_loop_arrays > 0.
9353         * toplev.c (process_options): Note that, with tri-states,
9354         flag_prefetch_loop_arrays>0 means prefetching is enabled.
9355         * config/i386/i386.c (override_options): Enable prefetching at -O3
9356         for a set of CPUs that sw prefetching is helpful.
9357         (software_prefetching_beneficial_p): New.  Return TRUE if software
9358         prefetching is beneficial for the given CPU.
9360 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
9362         PR rtl-optimization/44326
9363         * implicit-zee.c (find_removable_zero_extends): Replace
9364         INSN_P with NONDEBUG_INSN_P.
9366 2010-06-25  Martin Jambor  <mjambor@suse.cz>
9368         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
9369         (struct ipa_node_params): Removed the modification_analysis_done flag.
9370         (ipa_is_param_modified): Removed.
9371         (ipa_analyze_node): Declare.
9372         (ipa_compute_jump_functions): Remove declaration.
9373         (ipa_count_arguments): Likewise.
9374         (ipa_detect_param_modifications): Likewise.
9375         (ipa_analyze_params_uses): Likewise.
9376         * ipa-prop.c (struct param_analysis_info): New type.
9377         (visit_store_addr_for_mod_analysis): Removed.
9378         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
9379         moved down in the file.
9380         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
9381         (ipa_count_arguments): Made static.
9382         (mark_modified): New function.
9383         (is_parm_modified_before_call): New function.
9384         (compute_pass_through_member_ptrs): New parameter parms_info, call
9385         is_parm_modified_before_call instead of ipa_is_param_modified.
9386         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
9387         it to compute_pass_through_member_ptrs.
9388         (ipa_compute_jump_functions): New parameter parms_info, pass it to
9389         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
9390         on the callee if it is analyzed.  Made static.
9391         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
9392         is_parm_modified_before_call instead of ipa_is_param_modified.
9393         (ipa_analyze_call_uses): New parameter parms_info, pass it to
9394         ipa_analyze_indirect_call_uses.
9395         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
9396         ipa_analyze_call_uses.
9397         (ipa_analyze_params_uses): New parameter parms_info, pass it to
9398         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
9399         (ipa_analyze_node): New function.
9400         (ipa_print_node_params): Do not dump the modified flag.
9401         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
9402         it.  Do not stream the modified parameter flag.
9403         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
9404         it.  Do not stream the modified parameter flag.
9405         * ipa-cp.c (ipcp_analyze_node): Removed.
9406         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
9407         with only a call to ipa_analyze_node.
9408         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
9409         node with only a call to ipa_analyze_node.
9411 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9413         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
9415 2010-06-25  Jan Hubicka  <jh@suse.cz>
9417         * tree-pass.h (pass_split_functions): Declare.
9418         * opts.c (decode_options): Enable function splitting at -O2
9419         * timevar.def (TV_IPA_FNSPLIT): New macro.
9420         * ipa-split.c: New file.
9421         * common.opt (-fpartial-inlining): New flag.
9422         * Makefile.in (ipa-split.o): New object file.
9423         * passes.c (init_optimization_passes): Add ipa-split.
9424         * params.def (partial-inlining-entry-probability): New parameters.
9425         * doc/invoke.texi (-fpartial-inlining): New.
9427 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9429         PR 44665
9430         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
9431         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
9432         (gimplify_expr): Likewise.
9434 2010-06-25  Martin Jambor  <mjambor@suse.cz>
9436         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
9437         statements instead of bailing out on them.
9438         (ipa_analyze_indirect_call_uses): Do not require that loads from the
9439         parameter are in the same BB as the condition.  Update comments.
9441 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
9443         PR middle-end/43866
9444         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
9445         true or always false, return NULL_TREE.
9446         (tree_unswitch_single_loop): Optimize conditions even when reaching
9447         max-unswitch-level parameter.  If num > 0, optimize first all conditions
9448         using entry checks, then do still reachable block discovery and consider
9449         only conditions in still reachable basic blocks in the loop.
9451         PR tree-optimization/44539
9452         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
9453         the call doesn't have LHS, but has VDEF.
9455 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
9457         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
9458         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
9459         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
9460         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
9461         * system.h (MODIFY_TARGET_NAME): Poison.
9463 2010-06-25  Alan Modra  <amodra@gmail.com>
9465         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
9466         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
9467         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9468         CMODEL_LARGE as default.
9469         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
9470         (offsettable_ok_by_alignment): Delete.
9471         (rs6000_emit_move): Remove mcmodel=medium optimization.
9473 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
9475         With large parts from Jim Wilson:
9476         PR target/43902
9477         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
9478         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
9479         * optabs.c (optab_for_tree_code): Likewise.
9480         (expand_widen_pattern_expr): Likewise.
9481         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
9482         out of execute_optimize_widening_mul.
9483         (convert_plusminus_to_widen): New function.
9484         (execute_optimize_widening_mul): Use the two new functions.
9485         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
9486         Remove code to generate widening multiply-accumulate.  Add support
9487         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
9488         * gimple-pretty-print.c (dump_ternary_rhs): New function.
9489         (dump_gimple_assign): Call it when appropriate.
9490         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
9491         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
9492         (expand_gimple_stmt_1): Likewise.
9493         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
9494         WIDEN_MULT_MINUS_EXPR.
9495         * tree-ssa-operands.c (get_expr_operands): Likewise.
9496         * tree-inline.c (estimate_operator_cost): Likewise.
9497         * gimple.c (extract_ops_from_tree_1): Renamed from
9498         extract_ops_from_tree.  Add new arg for a third operand; fill it.
9499         (gimple_build_assign_stat): Support operations with three operands.
9500         (gimple_build_assign_with_ops_stat): Likewise.
9501         (gimple_assign_set_rhs_from_tree): Likewise.
9502         (gimple_assign_set_rhs_with_ops_1): Renamed from
9503         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
9504         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
9505         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
9506         WIDEN_MULT_MINUS_EXPR.
9507         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
9508         (extract_ops_from_tree_1): Adjust declaration.
9509         (gimple_assign_set_rhs_with_ops_1): Likewise.
9510         (gimple_build_assign_with_ops): Pass NULL for last operand.
9511         (gimple_build_assign_with_ops3): New macro.
9512         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
9513         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
9514         functions.
9515         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
9516         (verify_gimple_assign): Call it.
9517         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
9518         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
9519         functions for dealing with three-operand statements.
9520         * tree.c (commutative_ternary_tree_code): New function.
9521         * tree.h (commutative_ternary_tree_code): Declare it.
9522         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
9523         ternary statements.
9524         (gimple_assign_nonzero_warnv_p): Likewise.
9525         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
9526         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
9527         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
9528         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
9529         (struct hashtable_expr): New member ternary in the union.
9530         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
9531         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
9532         (iterative_hash_hashable_expr): Likewise.
9533         (print_expr_hash_elt): Handle EXPR_TERNARY.
9534         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
9535         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
9536         statements.  Handle GIMPLE_TERNARY_RHS.
9538 2010-06-25  Jan Hubicka  <jh@suse.cz>
9540         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
9542 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
9544         PR c/44517
9545         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
9546         parameters are not good.
9547         (c_parser_parameter_declaration): Error unknown type name if the type
9548         name can't start declaration specifiers.
9550 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
9552         * gcc.c (translate_options): Don't mention +e in comment.
9553         (process_command): Don't handle +e specially.
9555 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
9557         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
9559         * ira-build.c (merge_hard_reg_conflicts): New function.
9560         (create_cap_allocno, copy_info_to_removed_store_destinations,
9561         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
9562         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
9563         (remove_unnecessary_allocnos, remove_low_level_allocnos)
9564         copy_nifo_to_removed_store_destination): Use them.
9565         * ira-lives.c (make_hard_regno_born): New function, split out of
9566         make_regno_born.
9567         (make_allocno_born): Likewise.
9568         (make_hard_regno_dead): New function, split out of make_regno_dead.
9569         (make_allocno_dead): Likewise.
9570         (inc_register_pressure): New function, split out of set_allocno_live.
9571         (dec_register_pressure): New function, split out of clear_allocno_live.
9572         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
9573         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
9574         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
9575         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
9576         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
9577         mark_pseudo_regno_live.
9578         (process_bb_node_lives): Use mark_pseudo_regno_live,
9579         make_hard_regno_born and make_allocno_dead.
9580         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
9581         set_allocno_live, clear_allocno_live): Delete functions.
9583         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
9584         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
9585         functions.
9586         (ira_flattening): Use ira_parent_allocno.
9587         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
9588         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
9590         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
9591         statement.
9593         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
9594         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
9595         minmax_set_iter_cond, minmax_set_iter_next,
9596         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
9597         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
9598         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
9599         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
9600         uses changed.
9602         * ira-int.h (struct live_range, live_range_t): Renamed from struct
9603         ira_allocno_live_range and allocno_live_range_t; all uses changed.
9604         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
9605         All uses changed.
9607 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
9609         * thumb2.md (thumb2_tlobits_cbranch): Delete.
9610         (peephole2 to convert zero_extract/compare of single bit to
9611          lshift/compare): New.
9613 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
9615         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
9616         recursive call and call to 'int_const_binop'.
9617         (build_range_check, fold_cond_expr_with_comparison, unextend,
9618         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
9619         multiple_of_p): Adjust call to const_binop.
9621 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
9623         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
9624         determine size of XFmode operand.
9625         (XFmode extended DFmode push splitter): Ditto.
9626         (XFmode extended SFmode push splitter): Ditto.
9628 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9630         PR target/44588
9631         * config/i386/i386.md (extract_code): New.
9632         (<u>divmodqi4): Likewise.
9633         (divmodhiqi3): Likewise.
9634         (udivmodhiqi3): Likewise.
9635         (<u>divqi3): Remvoved.
9637 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
9639         PR middle-end/44492
9640         * recog.h (struct recog_data): Add is_asm field.
9641         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
9642         present in constraints of inline-asm operand and memory operand
9643         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
9644         (extract_insn): Initialize recog_data.is_asm.
9645         * doc/md.texi (Constraints): Document operand side-effect rules.
9647 2010-06-24  Andi Kleen  <ak@linux.intel.com>
9649         * c-parser.c (c_parser_conditional_expression): Call
9650         warn_for_omitted_condop.
9651         * doc/invoke.texi: Document omitted condop warning.
9653 2010-06-24  Nick Clifton<nickc@redhat.com>
9655         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
9656         insn in the sequence is a jump insn before setting its label.
9658 2010-06-24  Alan Modra  <amodra@gmail.com>
9660         * collect2.c (main): Match exactly --version and --help.
9662 2010-06-24  DJ Delorie  <dj@redhat.com>
9664         * config/m32c/m32c-pragma.c: Don't include rtl.h.
9666 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
9668         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
9669         using X87MODEF mode iterator.
9670         (pushsf splitter): Macroize splitter using P mode iterator.
9671         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
9672         mode iterator.
9674         (*movxf_internal): Rename from *movxf_integer.
9675         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
9676         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
9677         (*movdf_internal): Rename from *movdf_integer.
9678         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
9679         (*movsf_internal): Rename from *movdf_1.
9681 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
9683         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
9684         (const_gimple_seq_node): Removed typedefs.
9686         * gimple.h (gimple_seq_node_d, gimple_seq_node)
9687         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
9689 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9691         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
9692         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
9693         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
9694         and CODE_FOR_vec_extract_lo_v4df.
9696         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
9697         Changed to define_insn_and_split.
9698         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
9699         (vec_extract_lo_v16hi): Likewise.
9700         (vec_extract_lo_v32qi): Likewise.
9701         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
9702         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
9704 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
9706         PR target/44640
9707         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
9708         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
9709         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
9710         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
9711         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
9713         PR target/44640
9714         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
9716         PR other/44644
9717         * df-core.c (struct df): Rename to df_d.
9718         * df.h (struct df): Likewise.
9719         * dse.h (struct df): Remove forward declaration.
9720         * recog.h (struct insn_data): Rename to:
9721         (struct_insn_data_d).  Adjusted all users.
9723 2010-06-23  Arnaud Charlet  <charlet@adacore.com
9725         PR ada/22220
9726         * doc/install.texi: Update requirements to build GNAT.
9728 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
9730         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
9731         enum type.
9732         (m68k_sched_attr_opx_type): Remove unreachable return.
9733         (m68k_sched_attr_opy_type): Likewise.
9734         (m68k_sched_attr_size): Likewise.
9735         (sched_get_opxy_mem_type): Likewise.
9736         (m68k_sched_attr_op_mem): Likewise.
9738 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
9740         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
9741         new statement and adjust VDEF only if necessary.  Remove superfluous
9742         call to maybe_clean_or_replace_eh_stmt.
9743         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
9744         copy the flags.
9745         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
9746         * tree-inline.c (copy_bb): ...and not there.
9748 2010-06-22  Cary Coutant  <ccoutant@google.com>
9750         * dwarf2out.c (is_nested_in_subprogram): New function.
9751         (should_move_die_to_comdat): Use it.
9752         (copy_ancestor_tree): Don't mark DIEs here.
9753         (copy_decls_walk): Start walk from root of newly-added tree;
9754         mark DIEs here instead.
9756 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
9758         * config/i386/i386.md (unit): Also check sseishft1.
9760 2010-06-22  Jan Hubicka  <jh@suse.cz>
9762         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
9763         enabled.
9765 2010-06-22  Jan Hubicka  <jh@suse.cz>
9767         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
9768         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
9769         Return true if something changed.
9770         * df.h (df_confluence_function_n): Return bool.
9771         * df-core.c (df_worklist_propagate_forward,
9772         df_worklist_propagate_backward): Track changes and ages.
9773         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
9774         track ages.
9775         * dse.c (dse_confluence_n): Return always true.
9777 2010-06-22  Jan Hubicka  <jh@suse.cz>
9779         * bitmap.c (bitmap_clear_bit): Micro optimize.
9781 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
9783         * config/i386/i386.md (SWI1248x): New mode iterator.
9784         (SWI48x): Ditto.
9785         (SWI12): Ditto.
9786         (SWI24): Ditto.
9788         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
9789         SWI1248x mode iterator.
9790         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
9791         using SWI124 mode iterator.
9792         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
9793         mode iterator.
9794         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
9795         *pushdi2_prologue_rex64 using P mode iterator.
9796         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
9797         using SWI48 mode iterator.
9798         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
9799         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
9800         using SWI1248x mode iterator.
9801         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
9802         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
9803         SWI48 mode iterator.
9804         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
9805         iterator.
9806         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
9807         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
9808         SWI12 mode iterator.
9809         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
9810         SWI12 mode iterator.
9811         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
9812         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
9813         SWI24 mode iterator.
9814         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
9815         SWI48 mode iterator.
9816         (mov<mode>_insn_1): New expander.
9817         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
9818         using SWI48x mode iterator.
9820         (*movoi_internal_avx): Rename from *movoi_internal.
9821         (*movti_internal_rex64): Rename from *movti_rex64.
9822         (*movti_internal_sse): Rename from *movti_sse.
9823         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
9824         (*movdi_internal): Rename from *movdi_2.
9825         (*movsi_internal): Rename from *movsi_1.
9826         (*movhi_internal): Rename from *movhi_1.
9827         (*movqi_internal): Rename from *movqi_1.
9829         (insv): Update the call to gen_movsi_insv_1 for rename.
9830         * config/i386/i386.c (promote_duplicated_reg): Ditto.
9832 2010-06-22  Jan Hubicka  <jh@suse.cz>
9834         * passes.c (execute_function_todo): Move call of statistics_fini_pass
9835         to ...
9836         (execute_todo) ... this one.
9838 2010-06-22  Alan Modra  <amodra@gmail.com>
9840         PR target/44364
9841         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9842         * caller-save.c (insert_restore, insert_save): Use non-validate
9843         form of adjust_address.
9845 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9847         PR target/39690
9848         * config/pa/pa.c (override_options): Disable
9849         -freorder-blocks-and-partition.
9851 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9853         PR target/44615
9854         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
9856         * config/i386/i386.md (type): Add sseishft1
9858         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
9859         (ppro_insn_load): Likewise.
9860         (ppro_insn_store): Likewise.
9861         (ppro_insn_both): Likewise.
9863         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
9864         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
9865         for type.
9866         (*vec_extractv2di_1_avx): Likewise.
9867         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
9868         type.  Remove atom_unit.
9869         (*vec_extractv2di_1_sse2): Likewise.
9871 2010-06-21  DJ Delorie  <dj@redhat.com>
9873         * diagnostic.h (diagnostic_classification_change_t): New.
9874         (diagnostic_context): Add history and push/pop list.
9875         (diagnostic_push_diagnostics): Declare.
9876         (diagnostic_pop_diagnostics): Declare.
9877         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
9878         from pragmas in a history chain instead of the global table.
9879         (diagnostic_push_diagnostics): New.
9880         (diagnostic_pop_diagnostics): New.
9881         (diagnostic_report_diagnostic): Scan history chain to find state
9882         of diagnostics as of the diagnostic location.
9883         * opts.c (set_option): Pass UNKNOWN_LOCATION to
9884         diagnostic_classify_diagnostic.
9885         (enable_warning_as_error): Likewise.
9886         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
9887         use in the history chain.
9888         * doc/extend.texi: Document pragma GCC diagnostic changes.
9890 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
9892         * dwarf2out.c (add_linkage_name): New function.  Don't add
9893         anything to DW_TAG_member DIEs.
9894         (add_name_and_src_coords_attributes): Use it.
9895         (gen_variable_die): Call it for C++ static data members if
9896         specification is DW_TAG_member.
9898         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
9899         C++ char16_t and char32_t.
9901         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
9902         * genattrtab.c: Include vecprim.h.
9903         (cached_attrs, cached_attr_count, attrs_seen_once,
9904         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
9905         attrs_cached_after): New variables.
9906         (find_attrs_to_cache): New function.
9907         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
9908         (write_test_expr): Add attrs_cached argument, return it too,
9909         attempt to cache non-const attributes used more than once in
9910         a single case handling.
9911         (write_attr_get): Use find_attrs_to_cache, for caching candidates
9912         emit cached_* variables.  Adjust write_attr_set callers.
9913         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
9914         to find attributes that should be cached in this block.  Adjust
9915         write_test_expr callers.
9916         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
9917         callers.
9918         (make_automaton_attrs): Adjust write_test_expr caller.
9920         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
9921         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
9922         (make_automaton_attrs): If find_tune_attr returns non-NULL,
9923         write separate internal_dfa_insn_code_* and insn_default_latency_*
9924         functions for each attribute's value and emit init_sched_attrs
9925         function and function pointers.
9926         * genattr.c (const_attrs, reservations): New variables.
9927         (gen_attr): Add const attributes to const_attrs vector.
9928         (check_tune_attr, find_tune_attr): New functions.
9929         (main): Add reservations to reservations vector.  If find_tune_attr
9930         returns true, add prototype for init_sched_attrs and make
9931         internal_dfa_insn_code and insn_default_latency function pointers,
9932         otherwise define init_sched_attrs as dummy macro.
9933         * cfgexpand.c: Include insn-attr.h.
9934         (gimple_expand_cfg): Call init_sched_attrs.
9936         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
9938         PR target/44575
9939         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
9940         va_arg from a set of register save slots into a temporary,
9941         if the container is bigger than type size, do the copying
9942         using smaller mode or using memcpy.
9944         PR bootstrap/44426
9945         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
9946         prototype.
9947         (sel_print_to_dot): Remove macro.
9948         (sel_print): Likewise.  New prototype.
9949         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
9950         (sel_print): New function.
9952 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9954         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
9955         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
9957 2010-06-21  Nick Clifton  <nickc@redhat.com>
9959         * config/rx/rx.h (PTRDIFF_TYPE): Define.
9960         (SMALL_REGISTER_CLASS): Define (to zero).
9961         (PRINT_OPERAND): Delete.
9962         (PRINT_OPERAND_ADDRESS): Delete.
9963         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
9964         (rx_print_operand_address): Delete prototype.
9965         * config/rx/rx.c (rx_print_operand): Make static.
9966         Allow %H and %L to handle CONST_DOUBLEs.
9967         (rx_print_operand_address): Make static.
9968         (rx_gen_move_template): Rename local variable 'template' to
9969         out_template.
9970         (rx_function_arg): Do not pass unknown sized objects in registers.
9971         (TARGET_PRINT_OPERAND): Define.
9972         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9974 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9976         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
9978 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
9980         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
9981         stack-alignment for simple leaf-functions.
9983 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
9985         * doc/install.texi: Document bootstrap-lto.
9987 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
9989         PR debug/44248
9990         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
9991         (input_function): Drop them here, if VTA is disabled.
9993 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
9995         PR target/44546
9996         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
9997         New predicate.
9998         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
9999         ix86_swapped_fp_comparsion_operator instead of
10000         ix86_fp_comparison_operator.
10002         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
10003         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
10004         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
10005         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
10006         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
10007         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
10009 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
10011         PR other/32998
10012         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
10013         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
10014         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
10015         (decode_cmdline_option): Update for this return value.  Set
10016         orig_option_with_args_text field.  Set arg field for unknown
10017         options.  Make static.
10018         (decode_cmdline_options_to_array): New.
10019         (prune_options): Update handling of find_opt return value.
10020         * opts.c (read_cmdline_option): Take decoded option.  Return void.
10021         (read_cmdline_options): Take decoded options.
10022         (decode_options): Add parameters for decoded options.  Use
10023         decode_cmdline_options_to_array.  Use decoded options for -O
10024         scan.  Use integral_argument for -O parameters.  Update call to
10025         read_cmdline_options.
10026         (enable_warning_as_error): Update handling of find_opt return value.
10027         * opts.h: Update comment on unknown options.
10028         (struct cl_decoded_option): Update comments on opt_index and arg.
10029         Add orig_option_with_args_text.
10030         (decode_cmdline_option): Remove.
10031         (decode_cmdline_options_to_array): Declare.
10032         (decode_options): Update prototype.
10033         * toplev.c (save_argv): Remove.
10034         (save_decoded_options, save_decoded_options_count): New.
10035         (read_integral_parameter): Remove.
10036         (print_switch_values): Use decoded options.
10037         (toplev_main): Don't set save_argv.  Update call to decode_options.
10038         * toplev.h (read_integral_parameter): Remove.
10039         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
10041 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
10043         PR target/44072
10044         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
10045         immediate.
10046         * constraints.md (Pw, Px): New constraints.
10047         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
10049 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
10051         * config/i386/sse.md (fma4modesuffixf4): Removed.
10052         (ssemodesuffixf2s): Likewise.
10053         (ssemodesuffixf4): Likewise.
10054         (ssemodesuffixf2c): Likewise.
10055         (ssescalarmodesuffix2s): Likewise.
10056         (avxmodesuffixf2c): Likewise.
10057         (ssemodesuffix): New.
10058         (ssescalarmodesuffix): Likewise.
10059         Update patterns with ssemodesuffix and ssescalarmodesuffix.
10061 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
10063         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
10065 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10067         * stor-layout.c (debug_rli): Remove unused local variables.
10069 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10071         PR rtl-optimization/40900
10072         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
10073         original expression for later reuse.
10074         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
10075         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
10077 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
10079         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
10080         double_int_fits_in_uhwi_p): Implement as static inline.
10081         (double_int_xor): New inline function.
10082         (double_int_lrotate, double_int_rrotate, double_int_max,
10083         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10084         double_int_smin): Declare.
10085         (lrotate_double, rrotate_double): Remove declaration.
10086         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
10087         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
10088         (double_int_lrotate, double_int_rrotate, double_int_max,
10089         double_int_umax, double_int_smax, double_int_min, double_int_umin,
10090         double_int_smin): New function.
10091         * fold-const.c (int_const_binop): Clean up, use double_int_*
10092         functions.
10093         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
10094         double_int_* and immed_double_int_const functions.
10096 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10098         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
10099         * function.c (types_used_by_cur_var_decl): Likewise.
10100         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
10102 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
10104         * tree.h (record_layout_info): Change type of pending_statics field
10105         to a VEC.
10106         * stor-layout.c (start_record_layout): Store NULL into
10107         pending_statics.
10108         (debug_rli): Call debug_vec_tree instead of debug_tree.
10109         (place_field): Likewise.
10110         (finish_record_layout): Likewise.
10112 2010-06-18  Alan Modra  <amodra@gmail.com>
10114         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
10116 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10118         PR target/43740
10119         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
10120         for SET source operand from SET destination operand.
10122 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
10124         PR rtl-optimization/39871
10125         * reload1.c (init_eliminable_invariants): For flag_pic, disable
10126         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
10127         (function_invariant_p): Rule out a plus of frame or arg pointer with
10128         a SYMBOL_REF.
10129         * ira.c (find_reg_equiv_invariant_const): Likewise.
10131 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
10133         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
10134         print_operand_address and puts to output the operand for CONST.
10136 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
10138         PR debug/44572
10139         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
10140         hook.
10142 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10144         * v850-protos.h (print_operand): Delete.
10145         (print_operand_address): Delete.
10146         * v850.h (PRINT_OPERAND): Delete.
10147         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10148         (PRINT_OPERAND_ADDRESS): Delete.
10149         * v850.c (print_operand_address): Rename to...
10150         (v850_print_operand_address): ...this.  Make static. Call
10151         v850_print_operand.
10152         (print_operand): Rename to...
10153         (v850_print_operand): ...this.  Make static.  Call
10154         v850_print_operand_address.
10155         (v850_print_operand_punct_valid_p): New function.
10156         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10157         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10159 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10161         * config/sh/sh-protos.h (print_operand): Delete.
10162         (print_operand_address): Delete.
10163         * config/sh/sh.h (PRINT_OPERAND): Delete.
10164         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10165         (PRINT_OPERAND_ADDRESS): Delete.
10166         * config/sh/sh.c (sh_print_operand_address): Make static.
10167         (sh_print_operand): Make static.  Call sh_print_operand_address
10168         and sh_print_operand.
10169         (sh_print_operand_punct_valid_p): New function.
10170         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10171         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10173 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10175         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
10176         (mcore_print_operand_address): Delete.
10177         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
10178         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10179         (PRINT_OPERAND_ADDRESS): Delete.
10180         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
10181         (mcore_print_operand): Make static.
10182         (mcore_print_operand_punct_valid_p): New function.
10183         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
10184         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10186 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10188         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
10189         (print_operand_address): Delete.
10190         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
10191         (PRINT_OPERAND_ADDRESS): Delete.
10192         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
10193         static.
10194         (m68hc11_print_operand): Make static.
10195         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10197 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10199         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
10200         (m32r_print_operand_address): Delete.
10201         * config/m32r/m32r.h (m32r_punct_chars): Delete.
10202         (PRINT_OPERAND): Delete.
10203         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10204         (PRINT_OPERAND_ADDRESS): Delete.
10205         * config/m32r/m32r.c (m32r_punct_chars): Make static.
10206         (m32r_print_operand_address): Make static.
10207         (m32r_print_operand): Make static.
10208         (m32r_print_operand_punct_valid_p): New function.
10209         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10210         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10212 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10214         * config/iq2000/iq2000-protos.h (print_operand): Delete.
10215         (print_operand_address): Delete.
10216         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
10217         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10218         (PRINT_OPERAND_ADDRESS): Delete.
10219         (iq2000_print_operand_punct): Delete.
10220         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
10221         (iq2000_print_operand_address): Make static.
10222         (iq2000_print_operand): Make static.
10223         (iq2000_print_operand_punct_valid_p): New function.
10224         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10225         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10227 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10229         * config/frv/frv-protos.h (frv_print_operand): Delete.
10230         (frv_print_operand_address): Delete.
10231         * config/frv/frv.h (PRINT_OPERAND): Delete.
10232         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10233         (PRINT_OPERAND_ADDRESS): Delete.
10234         * config/frv/frv.c (frv_print_operand_address): Make static.
10235         (frv_print_operand): Make static.
10236         (frv_print_operand_punct_valid_p): New function.
10237         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10238         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10240 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
10242         * tree.h (vec_member): Declare.
10243         * tree.c (vec_member): Define.
10245 2010-06-17  Richard Guenther  <rguenther@suse.de>
10247         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
10248         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
10250 2010-06-17  Richard Guenther  <rguenther@suse.de>
10252         * tree-inline.c (declare_return_variable): Remove bogus code.
10254 2010-06-17  Richard Guenther  <rguenther@suse.de>
10256         * gimplify.c (gimplify_bind_expr): Always promote complex
10257         and vector variables to registers if possible.
10259 2010-06-17  Richard Guenther  <rguenther@suse.de>
10261         * expr.c (get_inner_reference): Use double_int for bit_offset
10262         calculation.
10264 2010-06-16  DJ Delorie  <dj@redhat.com>
10266         * common.opt (-fstrict-volatile-bitfields): new.
10267         * doc/invoke.texi: Document it.
10268         * fold-const.c (optimize_bit_field_compare): For volatile
10269         bitfields, use the field's type to determine the mode, not the
10270         field's size.
10271         * expr.c (expand_assignment): Likewise.
10272         (get_inner_reference): Likewise.
10273         (expand_expr_real_1): Likewise.
10274         * expmed.c (store_fixed_bit_field): Likewise.
10275         (extract_bit_field_1): Likewise.
10276         (extract_fixed_bit_field): Likewise.
10278 2010-06-16  Richard Guenther  <rguenther@suse.de>
10280         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
10282 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
10284         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
10285         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
10286         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
10287         * debug.c: Likewise.
10288         * sdbout.c: Likewise.
10289         * vmsdbgout.c: Likewise.
10290         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
10291         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
10292         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
10293         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
10294         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
10295         * dwarf2out.c (dw_fde_struct): New fields
10296         dw_fde_vms_{end,begin}_prologue.
10297         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
10298         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
10299         (dwarf2out_vms_end_prologue): New function.
10300         (dwarf2out_vms_begin_epilogue): New function.
10301         (dw_val_struct): New value dw_val_class_vms_delta.
10302         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
10303         begin_epilogue for VMS.
10304         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
10305         new static functions.
10306         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
10307         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
10308         static functions.
10309         (print_die): New case dw_val_class_vms_delta.
10310         (attr_checksum): Likewise.
10311         (same_dw_val_p: Likewise.
10312         (size_of_die): Likewise.
10313         (value_format): Likewise.
10314         (output_die): Likewise.
10315         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
10316         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
10317         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
10318         dwarf2out_cfi_begin_epilogue
10319         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
10321 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10323         * config/cris/cris-protos.h (cris_print_operand): Delete.
10324         (cris_print_operand_address): Delete.
10325         * config/cris/cris.h (PRINT_OPERAND): Delete.
10326         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10327         (PRINT_OPERAND_ADDRESS): Delete.
10328         * config/cris/cris.c (cris_print_operand_address): Make static.
10329         (cris_print_operand): Make static.
10330         (cris_print_operand_punct_valid_p): New function.
10331         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10332         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10334 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
10336         * config/arm/arm-protos.h (arm_print_operand): Delete.
10337         (arm_print_operand_address): Delete.
10338         * config/arm/arm.h (PRINT_OPERAND): Delete.
10339         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10340         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
10341         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
10342         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
10343         (arm_print_operand): Make static.
10344         (arm_print_operand_punct_valid_p): New function.
10345         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
10346         (TARGET_PRINT_OPERAND_ADDRESS): Define.
10348 2010-06-16  Nick Clifton  <nickc@redhat.com>
10350         * config/rx/constraints.md (NEGint4): New constraint.
10351         * config/rx/rx.md (attr cc): Add set_zsc.
10352         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
10353         initialised.
10354         (cmpsf): Likewise.
10355         (call_internal): Clobber the cc0 register.
10356         (call_value_internal): Likewise.
10357         (cstoresi4): Likewise.
10358         (movsieq): Likewise.
10359         (movsine): Likewise.
10360         (addsi3): Add alternative to handle small negative constants.
10361         (sunsi3): Likewise.
10362         (addsi3): Do not set the O bit in the cc0 register.
10363         (adddi3): Likewise.
10364         (subsi3): Likewise.
10365         (subdi3): Likewise.
10366         (andsi3): Reorder alternatives to prefer shorter forms.
10367         (mulsi3): Likewise.
10368         (iorsi3): Likewise.
10369         (negsi2): Note that the cc0 flags are set.
10370         (rotlsi3): Note that only the Z and S bits are set in cc0.
10371         (lshrsi3): Likewise.
10372         (ashlsi3): Likewise.
10373         (subsf3): Use %Q for the MEM operand.
10374         (fix_truncsfsi2): Likewise.
10375         (floatsisf2): Likewise.
10376         (bitset): Remove early clobber from destination.
10377         (bitset_in_memory): Likewise.
10378         (lrintsf2): Clobber the cc0 register.
10379         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
10380         (rx_print_operand): Handle %N.
10382 2010-06-16  Jan Hubicka  <jh@suse.cz>
10384         * df-core.c (df_compact_blocks): Free problem_temps vector.
10386 2010-06-16  Martin Jambor  <mjambor@suse.cz>
10388         PR tree-optimization/43905
10389         * tree-sra.c: Include tree-inline.h.
10390         (create_abstract_origin): Removed.
10391         (modify_function): Version the call graph node instead of creating
10392         abstract origins and dealing with same_body aliases.
10393         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
10394         function is versionable.
10395         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
10397 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
10399         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
10400         (CHOOSE_DYNAMIC_LINKER): Update.
10402 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
10404         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
10405         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
10406         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
10407         *prefetch_3dnow_rex.
10409 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
10411         * target.h (struct asm_out):Add declare_constant_name field.
10412         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10413         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
10414         * output.h (default_asm_declare_constant_name): Declare.
10415         (assemble_label): Update prototype.
10416         * varasm.c (assemble_constant_contents): Use
10417         targetm.asm_out.declare_constant_name target hook.
10418         (assemble_label): Add 'file' argument.
10419         (default_asm_declare_constant_name): New function.
10420         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
10421         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
10422         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
10424         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
10425         * config/darwin.c (darwin_asm_declare_constant_name): New function.
10426         (machopic_output_indirection): Update assemble_label argument list.
10427         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
10428         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
10430 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
10432         PR middle-end/44391
10433         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
10434         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
10436 2010-06-15  Richard Guenther  <rguenther@suse.de>
10438         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
10440 2010-06-15  Paul Brook  <paul@codesourcery.com>
10442         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
10443         hard-float ABI.
10445 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
10447         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
10448         don't get a vector type for output.
10450 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
10452         PR fortran/44536
10453         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
10454         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
10455         (LANG_HOOKS_DECLS): Add it.
10456         * gimplify.c (omp_notice_variable): Call
10457         lang_hooks.decls.omp_report_decl.
10459 2010-06-15  Martin Jambor  <mjambor@suse.cz>
10461         PR lto/44464
10462         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
10463         on the newly dead SSA name.
10465 2010-06-15  Alan Modra  <amodra@gmail.com>
10467         * doc/invoke.texi: Add mcmodel to powerpc options.
10468         * configure.ac: Add HAVE_LD_LARGE_TOC test.
10469         * configure: Regenerate.
10470         * config.in: Regenerate.
10471         * config/rs6000/linux64.opt (mcmodel): New.
10472         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
10473         (TARGET_CMODEL, SET_CMODEL): Define.
10474         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
10475         select CMODEL_MEDIUM default.
10476         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
10477         (TARGET_CMODEL): Define default.
10478         * config/rs6000/rs6000.c (cmodel): New variable.
10479         (rs6000_explicit_options): Add cmodel field.
10480         (rs6000_handle_option): Handle -mcmodel.
10481         (create_TOC_reference): Add largetoc_reg param.  Generate high,
10482         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
10483         (rs6000_delegitimize_address): Recognise new toc reference rtl
10484         and minimal-toc rtl.
10485         (rs6000_legitimize_reload_address): Handle new toc references.
10486         (print_operand_address): Handle legitimate_constant_pool_address_p
10487         match before lo_sum.
10488         (rs6000_eliminate_indexed_memrefs): Tidy.
10489         (rs6000_emit_move): Tweak threshold for inlining constants.
10490         Keep rs6000_emit_allocate_stack large stack frame offsets
10491         loaded into r0 inline.
10492         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
10493         (tocrel_base, tocrel_offset): New variables.
10494         (toc_relative_expr_p): Set them here.
10495         (print_operand_address): Skip over any offset on constant pool address.
10496         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
10497         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
10498         (offsettable_ok_by_alignment): New function.
10499         (rs6000_emit_move): Address suitably aligned local symbol_refs
10500         relative to the toc pointer for -mcmodel=medium.
10501         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
10502         strict param.  Allow lo_sum version of addressing.  Verify reg
10503         used for -mminimal-toc and -mcmodel != small.  Update all callers.
10504         * config/rs6000/constraints.md: Update for above change.
10505         * config/rs6000/predicates.md: Likewise.
10506         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
10507         code.
10508         (tls_gd): Split for -mcmodel=medium/large.
10509         (tls_gd_high, tls_gd_low): New.
10510         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
10511         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
10512         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
10513         (largetoc_high, largetoc_low): New.
10514         (cmptf_internal2): Add clobber.
10515         * config/rs6000/rs6000-protos.h: Update.
10517 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
10519         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
10520         true if no prefetch is going to be generated for a given group.
10521         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
10522         estimate the prefetch_count.
10523         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
10524         prefetch count by considering the unroll_factor and prefetch_mod
10525         for is_loop_prefetching_profitable.
10527 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
10529         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
10530         anything if the argument is not a MEM.
10532 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
10534         PR debug/43650
10535         PR debug/44181
10536         PR debug/44247
10537         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
10538         debug stmts.
10539         (canonicalize_loop_ivs): Likewise.
10541 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
10543         PR debug/43656
10544         * haifa-sched.c (setup_insn_reg_pressure_info,
10545         update_register_pressure): Reject debug insns.
10546         (ready_sort): Don't setup reg pressure for debug insns.
10547         (schedule_insn): Don't update reg pressure for debug insns.
10549 2010-06-14  Richard Guenther  <rguenther@suse.de>
10551         * lto-streamer.c (cached_bp): Remove.
10552         (bitpack_delete): Likewise.
10553         (bitpack_create): Likewise.
10554         (bp_get_next_word): Likewise.
10555         (bp_pack_value, bp_unpack_value): Move ...
10556         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
10557         Re-implement.
10558         (struct bitpack_d): Likewise.
10559         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
10560         New inline functions.
10561         * lto-streamer-out.c (lto_output_bitpack): Remove.
10562         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
10563         (pack_value_fields): Adjust.
10564         (lto_write_tree): Likewise.
10565         (output_gimple_stmt): Likewise.
10566         (output_function): Likewise.
10567         * lto-streamer-in.c (input_gimple_stmt): Adjust.
10568         (input_function): Likewise.
10569         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
10570         (lto_input_bitpack): Remove.
10571         (lto_materialize_tree): Adjust.
10572         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
10573         * lto-cgraph.c (lto_output_edge): Adjust.
10574         (lto_output_node): Likewise.
10575         (lto_output_varpool_node): Likewise.
10576         (lto_output_ref): Likewise.
10577         (input_node): Likewise.
10578         (input_varpool_node): Likewise.
10579         (input_ref): Likewise.
10580         (input_edge): Likewise.
10581         (output_node_opt_summary): Likewise.
10582         (input_node_opt_summary): Likewise.
10583         * ipa-pure-const.c (pure_const_write_summary): Likewise.
10584         (pure_const_read_summary): Likewise.
10585         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
10586         (ipa_read_indirect_edge_info): Likewise.
10587         (ipa_write_node_info): Likewise.
10588         (ipa_read_node_info): Likewise.
10590 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10592         PR target/44534
10593         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
10594         (vec_extract_lo_v16hi): Likewise.
10595         (vec_extract_lo_v32qi): Likewise.
10597 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
10599         PR bootstrap/44426
10600         * tree.h (build_call_expr): Don't define as vararg macro, instead
10601         add a prototype.
10602         * builtins.c (build_call_nofold): Remove.
10603         (expand_builtin_int_roundingfn, expand_builtin_pow,
10604         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
10605         expand_builtin_memset_args, expand_builtin_strcmp,
10606         expand_builtin_strncmp, expand_builtin_memory_chk): Use
10607         build_call_nofold_loc instead of build_call_nofold.
10608         (build_call_expr): New function.
10610         PR tree-optimization/44508
10611         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
10612         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
10613         don't eliminate trivially dead stmts.
10614         * tree-vrp.c (vrp_finalize): Pass false as last argument
10615         to substitute_and_fold.
10616         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
10617         to substitute_and_fold.
10618         * tree-ssa-ccp.c (ccp_finalize): Likewise.
10620         PR bootstrap/44509
10621         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
10623 2010-06-14  Ira Rosen  <irar@il.ibm.com>
10625         PR tree-optimization/44507
10626         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
10627         to build initial vector for BIT_AND_EXPR.
10628         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
10630 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
10632         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
10633         adjust z10prop set_attr.
10635 2010-06-13  Jan Hubicka  <jh@suse.cz>
10637         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
10638         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
10639         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
10640         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
10641         datastructure checks into checking asserts.
10642         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
10643         * tree-ssa-sccvn.c (VN_INFO): Likewise.
10644         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
10645         df_ref_create_structure): Likewise.
10646         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
10647         pool_free): Use gcc_checking_assert.
10648         * alias.c (get_alias_set): Likewise.
10649         * var-tracking.c (variable_htab_free, shared_hash_copy,
10650         canonicalize_values_mark, variable_merge_over_cur): Likewise.
10651         * lto-streamer.c (bp_unpack_value): Likewise.
10653 2010-06-13  Richard Guenther  <rguenther@suse.de>
10655         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
10656         Do not stream but initialize TYPE_CANONICAL to NULL.
10657         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
10658         * gimple.c (gimple_types_compatible_p): Disregard
10659         TYPE_STRUCTURAL_EQUALITY_P.
10660         (gimple_register_type): Use TYPE_CANONICAL as cache.
10661         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
10662         before registering common types.
10663         * config/i386/i386.c (ix86_function_arg_boundary): Do not
10664         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
10665         * tree.h (TYPE_CANONICAL): Clarify documentation.
10667 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
10669         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10670         LIBCALL_VALUE): Remove macros.
10671         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
10672         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10673         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10674         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
10675         (ia64_function_value): Make static. Handle receiving the function
10676         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
10678 2010-06-12  Jan Hubicka  <jh@suse.cz>
10680         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
10681         at correct place.
10683 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
10685         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
10687 2010-06-12  Jan Hubicka  <jh@suse.cz>
10689         * df-core.c (df_clear_bb_info): New function.
10690         (df_set_blocks): bb_info is always allocated.
10691         (df_get_bb_info): Use block_info_elt_size.
10692         (df_set_bb_info): Likewise.
10693         (df_compact_blocks): Update for new block_info.
10694         (grow_bb_info): New function.
10695         * df-problems.c (df_grow_bb_info): Move to df-core.c
10696         (df_rd_set_bb_info): Remove.
10697         (df_rd_free_bb_info): Do not free block pool.
10698         (df_rd_alloc): Do not create pool, use check for
10699         obstack presence instead of NULL pointer for new blocks.
10700         (df_rd_free): DO not free alloc pool; clear block_info.
10701         (problem_RD): Add size of block info structure.
10702         (df_lr_set_bb_info): Remove.
10703         (df_lr_free_bb_info): Do not free block pool.
10704         (df_lr_alloc): Do not create pool, use check for
10705         obstack presence instead of NULL pointer for new blocks.
10706         (df_lr_free): DO not free alloc pool; clear block_info.
10707         (problem_LR): Add size of block info structure.
10708         (df_live_set_bb_info): Remove.
10709         (df_live_free_bb_info): Do not free block pool.
10710         (df_live_alloc): Do not create pool, use check for
10711         obstack presence instead of NULL pointer for new blocks.
10712         (df_live_free): DO not free alloc pool; clear block_info.
10713         (problem_LIVE): Add size of block info structure.
10714         (problem_CHAIN): Add size of block info structure.
10715         (df_byte_lr_set_bb_info): Remove.
10716         (df_byte_lr_free_bb_info): Do not free block pool.
10717         (df_byte_lr_alloc): Do not create pool, use check for
10718         obstack presence instead of NULL pointer for new blocks.
10719         (df_byte_lr_free): DO not free alloc pool; clear block_info.
10720         (problem_BYTE_LR): Add size of block info structure.
10721         (problem_NOTE): Add size of block info structure.
10722         (df_byte_MD_set_bb_info): Remove.
10723         (df_byte_MD_free_bb_info): Do not free block pool.
10724         (df_byte_MD_alloc): Do not create pool, use check for
10725         obstack presence instead of NULL pointer for new blocks.
10726         (df_byte_MD_free): DO not free alloc pool; clear block_info.
10727         (problem_BD): Add size of block info structure.
10728         * df-scan.c (df_scan_free_internal): Free block pool.
10729         (df_scan_set_bb_info): Remove.
10730         (df_scan_free_bb_info): Check for artificial_defs instead
10731         of bb_info being non-NULL.
10732         (df_scan_alloc): DO not create df_scan_block pool.
10733         (problem_SCAN): Set size of block info.
10734         (df_bb_refs_record): Do not allocate bb_info.
10735         * df.h (df_problem): Add block_info_elt_size.
10736         (struct dataflow): Change block_info to void *.
10737         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
10738         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
10739         in-line structures.
10741 2010-06-12  Jan Hubicka  <jh@suse.cz>
10743         PR tree-optimize/44485
10744         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
10745         containing use of return value of noreturn function.
10747 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
10749         * targhooks.c (default_function_value): Don't use
10750         FUNCTION_OUTGOING_VALUE.
10751         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
10752         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
10754 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
10756         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
10757         Add crtfastmath.o to extra_parts.
10758         * config/mips/crtfastmath.c: New.
10759         * config/mips/linux.h (ENDFILE_SPEC): New.
10761 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
10763         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
10764         old_type in parameter.
10765         (gcc_type_for_value): Update call to gcc_type_for_interval.
10766         (compute_type_for_level_1): Renamed compute_type_for_level.
10767         Update call to gcc_type_for_interval.
10769 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
10771         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
10772         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
10774 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
10776         * opts-common.c: Include options.h.
10777         (integral_argument): Move from opts.c.
10778         (decode_cmdline_option): New.  Based on read_cmdline_option.
10779         * opts.c (integral_argument): Move to opts-common.c.
10780         (read_cmdline_option): Move most contents to
10781         decode_cmdline_option.  Use %qs in diagnostics.
10782         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
10783         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
10784         decode_cmdline_option): New.
10786 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
10788         PR target/44481
10789         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
10790         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
10791         (partiysi2_cmp): Ditto.
10792         (*partiyhi2_cmp): Ditto.
10793         (*parityqi2_cmp): Remove.
10795 2010-06-11  Jan Hubicka  <jh@suse.cz>
10797         * bitmap.h (bmp_iter_next_bit): New.
10798         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
10800 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
10801             Eric Botcazou  <ebotcazou@adacore.com>
10803         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
10804         computed cost.
10806 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
10808         * config/i386/i386.md (unspec): New define_c_enum.
10809         (unspecv): Ditto.
10811 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
10813         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
10815 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
10817         PR middle-end/44483
10818         * tree-if-conv.c (bb_predicate_s): New struct.
10819         (bb_predicate_p): New.
10820         (bb_has_predicate): New.
10821         (bb_predicate): New.
10822         (set_bb_predicate): New.
10823         (bb_predicate_gimplified_stmts): New.
10824         (set_bb_predicate_gimplified_stmts): New.
10825         (add_bb_predicate_gimplified_stmts): New.
10826         (init_bb_predicate): New.
10827         (free_bb_predicate): New.
10828         (is_predicated): Use bb_predicate.
10829         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
10830         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
10831         before processing their successors.
10832         (clean_predicate_lists): Removed.
10833         (find_phi_replacement_condition): Use bb_predicate.
10834         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
10835         computations.
10836         (insert_gimplified_predicates): New.
10837         (combine_blocks): Call insert_gimplified_predicates.
10838         (tree_if_conversion): Call free_bb_predicate instead of
10839         clean_predicate_lists.
10841 2010-10-11  Paul Brook  <paul@codesourcery.com>
10843         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
10844         * config/arm/arm.c (all_architectures): Change v7e-m default to
10845         cortexm4.
10846         * config/arm/arm-cores.def: Add cortex-m4.
10847         * config/arm/arm-tune.md: Regenerate.
10849 2010-06-11  Jan Hubicka  <jh@suse.cz>
10851         * ipa-pure-const.c (special_builtlin_state): New function.
10852         (check_call): Use it instead of special casign BUILT_IN_RETURN.
10853         (propagate_pure_const): Use it.
10855 2010-06-11  Jan Hubicka  <jh@suse.cz>
10857         * df-problems.c (df_live_scratch): Convert to bitmap_head.
10858         (df_live_alloc): Initialize df_live_scratch when initializing
10859         problem_data.
10860         (df_live_transfer_function): Update uses of df_live_scratch.
10861         (df_live_free): Free problem_data; clear df_live_scratch before
10862         releasing the obstack.
10863         (df_md_free): Free problem data.
10865 2010-06-11  Jan Hubicka  <jh@suse.cz>
10867         * doc/invoke.texi (Wsuggest-attribute): Document.
10868         (Wmissing-noreturn): Remove.
10869         * ipa-pure-const.c (warn_function_noreturn): New function.
10870         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
10871         warn_missing_noreturn.
10872         * common.opt (Wsuggest-attribute=noreturn): New.
10873         * tree-flow.h (warn_function_noreturn): Declare.
10874         * tree-cfg.c (execute_warn_function_noreturn): Use
10875         warn_function_noreturn.
10876         (gate_warn_function_noreturn): New.
10877         (pass_warn_function_noreturn): Update.
10879 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10881         * c-typeck.c (handle_warn_cast_qual): Add loc
10882         parameter. Improve warning message.
10883         (build_c_cast): Pass location to handle_warn_cast_qual.
10885 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
10887         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
10888         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
10889         insn mnemonic.
10890         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
10892 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
10894         Fix bootstap on mips
10895         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
10896         be naming typedefs.
10898 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
10900         * system.h (helper_const_non_const_cast): New inline for
10901         gcc version <= 4.0.
10902         (CONST_CAST2): For gcc version <= 4.0 use
10903         new helper to do const/non-const casting.
10905 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10907         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
10908         * Makefile.in (OBJS-common): Include insn-enums.o.
10909         (insn-enums.o): New rule.
10910         (simple_generated_c): Add insn-enums.c.
10911         (build/genenums.o): New rule.
10912         (genprogmd): Add "enums".
10913         * genconstants.c (print_enum_type): Declare a C string array
10914         for each enum.
10915         * genenums.c: New file.
10916         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
10917         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
10918         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
10920 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10922         * doc/md.texi (define_enum_attr): Document.
10923         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
10924         * read-md.h (lookup_enum_type): Declare.
10925         * read-md.c (lookup_enum_type): New function.
10926         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
10927         * genattrtab.c (attr_desc): Add an enum_name field.
10928         (evaluate_eq_attr): Take the associated attribute as argument.
10929         Get the enum prefix from the enum_name field, if defined.
10930         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
10931         (simplify_test_exp): Pass attr to evaluate_eq_attr.
10932         (add_attr_value): New function, split out from...
10933         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
10934         (write_test_expr): Pass attr to evaluate_eq_attr.
10935         (write_attr_get): Use the enum_name as the enum tag, if defined.
10936         (write_attr_valueq): Use the enum_name as a prefix, if defined.
10937         (find_attr): Initialize enum_name.
10938         (main): Handle DEFINE_ENUM_ATTR.
10939         * gensupport.c (process_rtx): Likewise.
10940         * config/mips/mips.h (mips_tune_attr): Delete.
10941         * config/mips/mips.md (cpu): Use define_attr_enum.
10943 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10945         * doc/md.texi (define_c_enum, define_enum): Document.
10946         * read-md.h (md_constant): Add a parent_enum field.
10947         (enum_value, enum_type): New structures.
10948         (upcase_string, traverse_enum_types): Declare.
10949         * read-md.c (enum_types): New variable.
10950         (upcase_string, add_constant): New functions.
10951         (handle_constants): Don't create the hash table here.
10952         Use add_constant.
10953         (traverse_md_constants): Don't check for a null md_constants.
10954         (decimal_string, handle_enum, traverse_enum_types): New functions.
10955         (read_md_files): Initialize md_constants and md_enums.
10956         * genconstants.c (print_md_constant): Ignore info argument.
10957         Only print constants that belong to no enum.
10958         (print_enum_type): New function.
10959         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
10960         for each defined enum type.
10961         * config/mips/mips.md (processor): New define_enum.
10962         (unspec): New define_c_enum.
10963         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
10964         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
10965         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
10966         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
10967         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10968         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10969         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10970         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10971         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10972         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10973         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10974         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10975         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10976         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10977         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10978         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10979         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10980         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10981         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10982         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10983         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10984         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10985         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10986         (UNSPEC_RDDSP): Move to mips-dsp.md.
10987         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
10988         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
10989         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
10990         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
10991         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
10992         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
10993         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
10994         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
10995         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
10996         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
10997         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
10998         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
10999         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
11000         Moved to mips-dspr2.md.
11001         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
11002         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
11003         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
11004         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
11005         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
11006         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
11007         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11008         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11009         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11010         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11011         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11012         UNSPEC_LOONGSON_PSADBH)
11013         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11014         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11015         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
11016         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11017         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11018         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11019         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
11020         (cpu): Update comment.
11021         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
11022         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
11023         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
11024         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
11025         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
11026         UNSPEC_LOONGSON_PCMPEQ)
11027         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
11028         UNSPEC_LOONGSON_PINSR_0)
11029         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
11030         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
11031         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
11032         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
11033         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
11034         UNSPEC_LOONGSON_PSADBH)
11035         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
11036         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
11037         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
11038         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
11039         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
11040         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
11041         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
11042         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
11043         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
11044         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
11045         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
11046         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
11047         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
11048         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
11049         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
11050         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
11051         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
11052         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
11053         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
11054         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
11055         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
11056         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
11057         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
11058         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
11059         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
11060         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
11061         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
11062         (UNSPEC_RDDSP): Moved from mips.md.
11063         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
11064         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
11065         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
11066         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
11067         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
11068         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
11069         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
11070         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
11071         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
11072         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
11073         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
11074         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
11075         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
11076         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
11077         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
11078         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
11079         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
11080         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
11081         (UNSPEC_SCC): Moved from mips.md.
11082         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
11083         "processor_type" to "processor".
11084         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
11085         * config/mips/mips.h (processor_type): Delete.
11086         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
11087         "processor_type" to "processor".
11089 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11091         * configure.ac (tm_include_list): Add insn-constants.h.
11092         * configure: Regenerate.
11093         * Makefile.in (GTM_H): Move insn-constants.h here from...
11094         (TM_H): ...here.
11095         * mkconfig.sh: Remove special handling for insn-constants.h.
11097 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11099         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
11100         (BUILD_MD): ...this new variable.
11101         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
11102         that include the old contents of simple_generated_h and
11103         simple_generated_c.
11104         (simple_generated_h, simple_generated_c): Include them.  Add
11105         insn-constants.h.
11106         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
11107         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
11108         Remove these dependencies from the main rule and include
11109         insn-conditions.md in the command line only if it appears
11110         in the dependency list.
11111         (insn-constants.h, s-constants): Delete.
11112         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
11113         or gensupport.h.
11114         (build/genmddeps.o): Likewise.
11115         (genprogrtl): New variable that contains everything from genprogmd
11116         except mddeps and constants.
11117         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
11118         depend on $(BUILD_MD)
11119         (genprog): New variable.  Make these programs depend on
11120         $(BUILD_ERRORS).
11121         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
11122         (main): Use read_md_files instead of init_rtx_reader_args.
11123         * genconstants.c: As for genmddeps.c.
11124         * read-md.h (read_skip_construct): Declare.
11125         * read-md.c (read_skip_construct): New function.
11126         (handle_file): Allow a null handle_directive, skipping the
11127         construct if so.
11128         (parse_include): Update the comment accordingly.
11130 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11132         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
11133         * genmddeps.c: Include read-md.h.
11134         (main): Call init_rtx_reader_args instead of init_md_reader_args.
11135         * genattr.c (main): Likewise.
11136         * genattrtab.c (main): Likewise.
11137         * genautomata.c (main): Likewise.
11138         * gencodes.c (main): Likewise.
11139         * genconditions.c (main): Likewise.
11140         * genconfig.c (main): Likewise.
11141         * genconstants.c (main): Likewise.
11142         * genemit.c (main): Likewise.
11143         * genextract.c (main): Likewise.
11144         * genflags.c (main): Likewise.
11145         * genopinit.c (main): Likewise.
11146         * genoutput.c (main): Likewise.
11147         * genpeep.c (main): Likewise.
11148         * genrecog.c (main): Likewise.
11149         * genpreds.c (main): Likewise.
11150         * gensupport.h (in_fname): Move to read-md.h.
11151         (init_md_reader_args_cb): Rename to...
11152         (init_rtx_reader_args_cb): ...this and return a bool.
11153         (init_md_reader_args): Rename to...
11154         (init_rtx_reader_args): ...this and return a bool.
11155         (include_callback): Move to read-md.h.
11156         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
11157         (file_name_list, first_dir_md_include): Move to read-md.c
11158         (first_bracket_include): Delete unused variable.
11159         (last_dir_md_include): Move to read-md.c.
11160         (process_include): Delete, moving code to read-md.c:handle_include.
11161         (process_rtx): Don't handle INCLUDE.
11162         (save_string): Delete.
11163         (rtx_handle_directive): New function.
11164         (init_md_reader_args_cb): Rename to...
11165         (init_rtx_reader_args_cb): ...this and return a boolean success value.
11166         Use read_md_args.
11167         (init_md_reader_args): Rename to...
11168         (init_rtx_reader_args): ...this and return a boolean success value.
11169         * rtl.def (INCLUDE): Delete.
11170         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
11171         argument.
11172         * read-rtl.c (read_conditions): Don't gobble ')' here.
11173         (read_mapping): Likewise.
11174         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
11175         Handle top-level non-rtx constructs here rather than in read_rtx_1.
11176         Store the whole queue in *X.  Remove call to init_md_reader.
11177         (read_rtx_1): Rename to...
11178         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
11179         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
11180         here.
11181         (read_nested_rtx): New function.  Handle (nil) here rather than
11182         in read_rtx_code.
11183         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
11184         gobble ')' here.
11185         * read-md.h (directive_handler_t): New type.
11186         (in_fname, include_callback): Moved from read-md.h.
11187         (read_constants, init_md_reader): Delete.
11188         (read_md_files): Declare.
11189         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
11190         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
11191         from gensupport.c.
11192         (read_constants): Rename to...
11193         (handle_constants): ...this.  Don't gobble ')' here.
11194         (handle_include, handle_file, handle_toplevel_file)
11195         (parse_include): New functions, mostly taken from gensupport.c.
11196         (init_md_reader): Subsume into...
11197         (read_md_files): ...this new function.
11199 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11201         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
11202         (unread_char): Decrement read_md_lineno after putting back '\n'.
11203         * read-md.c (fatal_with_file_and_line): Push back any characters
11204         that we decide not to add to the context.
11205         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
11206         fatal_expected_char in cases where '/' ends a line (for example).
11207         (read_name): Don't increment read_md_lineno here.
11208         (read_escape): Likewise.
11209         (read_quoted_string): Likewise.
11210         (read_braced_string): Likewise.
11212 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11214         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
11215         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
11216         * genconstants.c: Include read-md.h.
11217         * read-rtl.c (md_constants): Move to read-md.c.
11218         (md_name): Move to read-md.h.
11219         (initialize_iterators): Use leading_string_hash instead of def_hash
11220         and leading_string_eq_p instead of def_name_eq_p.
11221         (read_name): Move to read-md.c.
11222         (def_hash, def_name_eq_p): Delete.
11223         (read_constants, traverse_md_constants): Move to read-md.c.
11224         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
11225         * read-md.h: Include hashtab.h.
11226         (md_name): Moved from read-rtl.c.
11227         (md_constant): Moved from read-md.h.
11228         (leading_string_hash, leading_string_eq_p, read_name)
11229         (read_constants, traverse_md_constants): Declare.
11230         * read-md.c (md_constants): Moved from read-rtl.c.
11231         (leading_string_hash, leading_string_eq_p): New functions.
11232         (read_name, read_constants, traverse_md_constants): Moved from
11233         read-rtl.c.
11235 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11237         * read-rtl.c (md_name): New structure.
11238         (read_name): Take an md_name instead of a buffer pointer.
11239         Use the "string" field instead of strcpy when expanding constants.
11240         (read_constants): Remove the tmp_char argument.  Update the calls
11241         to read_name, using two local name buffers instead of the tmp_char
11242         argument.  Merge the constant-creation code.
11243         (read_conditions): Remove the tmp_char argument.  Update the calls
11244         to read_name, using a local name buffer instead of the tmp_char
11245         argument.
11246         (read_mapping): Replace tmp_char variable with a local name buffer.
11247         Update the calls to read_name.
11248         (read_rtx_1): Likewise.  Update the calls to read_constants and
11249         read_conditions.
11251 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11253         * Makefile.in (build/read-md.o): Depend on errors.h.
11254         * read-md.h (error_with_line): Declare.
11255         * read-md.c: Include errors.h.
11256         (message_with_line_1): New function, extracted from...
11257         (message_with_line): ...here.
11258         (error_with_line): New function.
11259         * genattrtab.c: If a call to message_with_line is followed by
11260         "have_error = 1;", replace both statements with a call to
11261         error_with_line.
11262         * genoutput.c: Likewise.
11263         * genpreds.c: Likewise.
11264         * genrecog.c: If a call to message_with_line is followed by
11265         "error_count++;", replace both statements with a call to
11266         error_with_line.
11267         (errorcount): Delete.
11268         (main): Don't check it.
11269         * gensupport.c: If a call to message_with_line is followed by
11270         "errors = 1;", replace both statements with a call to error_with_line.
11271         (errors): Delete.
11272         (process_define_cond_exec): Check have_error instead of errors.
11273         (init_md_reader_args_cb): Likewise.  Don't set errors.
11275 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11277         * read-md.h (read_md_file): Declare.
11278         (read_char, unread_char): New functions.
11279         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11280         (read_quoted_string, read_string): Remove FILE * argument.
11281         * read-md.c (read_md_file): New variable.
11282         (read_md_filename, read_md_lineno): Update comments and remove
11283         unnecessary initialization.
11284         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
11285         (read_escape, read_quoted_string, read_braced_string, read_string):
11286         Remove FILE * argument.  Update calls accordingly, using read_char
11287         and unread_char instead of getc and ungetc.
11288         * rtl.h (read_rtx): Remove FILE * argument.
11289         * read-rtl.c (iterator_group): Remove FILE * argument from
11290         "find_builtin".
11291         (iterator_traverse_data): Remove "infile" field.
11292         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
11293         (add_mapping, read_name, read_constants, read_conditions)
11294         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
11295         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
11296         Remove file arguments from all calls, using read_char and unread_char
11297         instead of getc and ungetc.
11298         * gensupport.c (process_include): Preserve read_md_file around
11299         the include.  Set read_md_file to the handle of the included file.
11300         Update call to read_rtx.
11301         (init_md_reader_args_cb): Set read_md_file to the handle of the file
11302         and remove local FILE *.  Update calls to read_rtx.
11304 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11306         * read-md.h (read_rtx_lineno): Rename to...
11307         (read_md_lineno): ...this.
11308         (read_rtx_filename): Rename to...
11309         (read_md_filename): ...this.
11310         (copy_rtx_ptr_loc): Rename to...
11311         (copy_md_ptr_loc): ...this.
11312         (print_rtx_ptr_loc): Rename to...
11313         (print_md_ptr_loc): ...this.
11314         * read-md.c: Likewise.  Update references after renaming.
11315         (string_obstack): Replace RTL with MD in comment.
11316         (set_rtx_ptr_loc): Rename to...
11317         (set_md_ptr_loc): ...this.
11318         (get_rtx_ptr_loc): Rename to...
11319         (get_md_ptr_loc): ...this.
11320         * genconditions.c: Update references after renaming.
11321         * genemit.c: Likewise.
11322         * genoutput.c: Likewise.
11323         * genpreds.c: Likewise.
11324         * gensupport.c: Likewise.
11325         * read-rtl.c: Likewise.
11327 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
11329         * Makefile.in (READ_MD_H): New variable.
11330         (BUILD_RTL): Add build/read-md.o.
11331         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
11332         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
11333         (build/genattrtab.o, build/genconditions.o build/genemit.o)
11334         (build/genextract.o, build/genflags.o, build/genoutput.o)
11335         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
11336         (build/read-md.o): New rule.
11337         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
11338         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
11339         * coretypes.h: ...here.
11340         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
11341         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
11342         * genattr.c: Include read-md.h.
11343         * genattrtab.c: Likewise.
11344         * genconditions.c: Likewise.
11345         * genemit.c: Likewise.
11346         * genextract.c: Likewise.
11347         * genflags.c: Likewise.
11348         * genoutput.c: Likewise.
11349         * genpreds.c: Likewise.
11350         * genrecog.c: Likewise.
11351         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
11352         (join_c_conditions, print_c_condition, read_rtx_filename)
11353         (read_rtx_lineno): Move to read-md.h.
11354         * read-rtl.c: Include read-md.h.
11355         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
11356         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
11357         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
11358         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
11359         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
11360         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
11361         (read_braced_string, read_string): Move to read-md.c.
11362         (read_rtx): Move some initialization to init_md_reader and call
11363         init_md_reader here.
11364         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
11365         Move to read-md.h.
11366         * gensupport.c: Include read-md.h.
11367         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
11368         * read-md.h, read-md.c: New files.
11370 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
11372         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11373         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11374         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
11375         * config/moxie/moxie.c (moxie_function_value): Make static.
11376         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
11377         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11379 2010-06-10  Martin Jambor  <mjambor@suse.cz>
11381         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
11382         * dbgcnt.def (tree_sra): New counter.
11383         * tree-sra.c: Include dbgcnt.h.
11384         (gate_intra_sra): Check tree_sra debug counter.
11386 2010-06-10  Martin Jambor  <mjambor@suse.cz>
11388         PR tree-optimization/44258
11389         * tree-sra.c (build_access_subtree): Return false iff there is a
11390         partial overlap.
11391         (build_access_trees): Likewise.
11392         (analyze_all_variable_accesses): Disqualify candidates if
11393         build_access_trees returns true for them.
11395 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
11397         PR debug/41371
11398         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
11399         tail-recurse into canonical node.  Fast-forward over
11400         non-canonical VALUEs.
11402 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
11404         PR boostrap/44470
11405         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
11406         (*addsi_1_zext) <TYPE_LEA>: Likewise.
11407         (add lea splitter): Likewise.
11408         (add_zext lea splitter): Likewise.
11410 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
11412         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
11414 2010-06-10  Jan Hubicka  <jh@suse.cz>
11416         * df-problems.c (df_live_problem_data): Add live_bitmaps.
11417         (df_live_alloc): Initialize problem data and live_osbtacks.
11418         (df_live_finalize): Remove obstack, problem data; do not
11419         clear all bitmaps.
11420         (df_live_top_dump, df_live_bottom_dump): Do not dump old
11421         data when not allocated.
11422         (df_live_verify_solution_start): Do not allocate problem data.
11423         (df_live_verify_solution_end): Check if out is allocated.
11424         (struct df_md_problem_data): New structure.
11425         (df_md_alloc): Allocate problem data.
11426         (df_md_free): Free problem data; do not clear bitmaps.
11428 2010-06-10  Jan Beulich  <jbeulich@novell.com>
11430         PR bootstrap/37304
11431         * configure.ac: Replace $() with ${} when intending to expand
11432         variables rather than invoking commands.
11433         * configure: Re-generate.
11435 2010-06-10  Jan Hubicka  <jh@suse.cz>
11437         PR rtl-optimization/44460
11438         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
11439         TYPE_NEEDS_CONSTRUCTING sanity check.
11441 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
11443         * doc/include/fdl.texi: Move to GFDL version 1.3.
11445         * doc/cpp.texi: Move to GFDL version 1.3.
11446         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
11447         * doc/gccint.texi: Move to GFDL version 1.3.
11448         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
11449         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
11450         * doc/invoke.texi: Move to GFDL version 1.3.
11452 2010-06-09  Jan Hubicka  <jh@suse.cz>
11454         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
11455         Break out from ...
11456         (propagate) ... here; swap the order.
11458 2010-06-09  Jan Hubicka  <jh@suse.cz>
11460         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
11461         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
11462         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
11463         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
11465 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
11467         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
11468         Do not the gather memory reference in the outer loop if the step
11469         is not a constant.
11471 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
11473         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
11474         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
11475         8 to 4.  Minor change of the related comments.
11477 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
11479         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
11480         the scev analysis when the variable is not used outside the loop
11481         in a close phi node: call compute_overall_effect_of_inner_loop.
11483 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
11485         * graphite-sese-to-poly.c (single_pred_cond): Renamed
11486         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
11487         (build_sese_conditions_before): Renamed call to single_pred_cond.
11488         (build_sese_conditions_after): Same.
11490 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
11492         * graphite-poly.h: Fix comments and indentation.
11493         * graphite-sese-to-poly.c: Same.
11494         (build_sese_conditions_before): Compute stmt and gbb only when needed.
11495         * tree-chrec.c: Fix comments and indentation.
11496         (tree-ssa-loop-niter.c): Same.
11498 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11500         PR rtl-optimization/42461
11501         * dce.c (deletable_insn_p): Return true for const or pure calls again.
11502         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
11504 2010-06-09  Jan Hubicka  <jh@suse.cz>
11506         * bitmap.c (bitmap_and): Walk array forward.
11507         (bitmap_and_compl_into): Likewise.
11508         (bitmap_xor): Likewise.
11509         (bitmap_xor_into):  Likewise.
11510         (bitmap_equal_p): Likewise.
11511         (bitmap_intersect_p): Likewise.
11512         (bitmap_intersect_compl_p): Likewise.
11513         (bitmap_ior_and_into): Likewise.
11514         (bitmap_elt_copy): Likewise.
11515         (bitmap_and_compl): Likewise.
11516         (bitmap_elt_ior): Likewise.
11518 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
11520         * opts-common.c (prune_options): Ensure replacement argv array
11521         is correctly terminated by a NULL entry.
11523 2010-06-09  Jan Hubicka  <jh@suse.cz>
11525         * cgraph.h (varpool_first_static_initializer,
11526         varpool_next_static_initializer): Make checking only when
11527         checking enabled.
11528         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
11529         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
11530         gcc_assert to gcc_checking_assert.
11531         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
11532         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
11533         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
11534         op_iter_init_phiuse, op_iter_init_phidef,
11535         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
11536         gcc_checking_assert.
11537         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
11538         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
11539         partition_is_global, live_on_entry, live_on_exit,
11540         live_merge_and_clear): Likewise.
11541         * system.h (gcc_checking_assert): New macro.
11542         * gimple.h (set_bb_seq): Use gcc_checking_assert.
11544 2010-06-09  Jason Merrill  <jason@redhat.com>
11546         * Makefile.in (TAGS): Collect tags info from c-family.
11548 2010-06-09  Jan Hubicka  <jh@suse.cz>
11550         * gimple.h (gcc_gimple_checking_assert): New macro.
11551         (gimple_set_def_ops, gimple_set_use_ops,
11552         gimple_set_vuse, gimple_set_vdef,
11553         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
11554         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
11555         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
11556         gimple_asm_output_op, gimple_asm_output_op_ptr,
11557         gimple_asm_set_output_op, gimple_asm_clobber_op,
11558         gimple_asm_set_clobber_op, gimple_asm_label_op,
11559         gimple_asm_set_label_op, gimple_try_set_kind,
11560         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
11561         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
11562         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
11563         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
11564         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
11565         gimple_omp_for_set_initial, gimple_omp_for_final,
11566         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
11567         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
11568         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
11569         conditional with ENABLE_GIMPLE_CHECKING.
11570         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
11572 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
11574         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
11575         (get_computation_cost_at): Use it.
11576         (determine_use_iv_cost_condition): Likewise.
11577         (determine_iv_cost): Likewise.
11579 2010-06-09  Richard Guenther  <rguenther@suse.de>
11581         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
11582         replace constants.
11584 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
11586         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
11588 2010-06-09  Martin Jambor  <mjambor@suse.cz>
11590         PR tree-optimization/44423
11591         * tree-sra.c (dump_access): Dump also grp_assignment_read.
11592         (analyze_access_subtree): Pass negative allow_replacements to children
11593         if the current type is scalar.
11595 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
11597         PR testsuite/42843
11598         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
11599         * doc/plugins.texi (Plugin license check): Update information
11600         on type of plugin_is_GPL_compatible.
11601         * Makefile.in (PLUGINCC): Define as $(COMPILER).
11602         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
11604 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
11606         * config/arm/arm.c (thumb2_reorg): New function.
11607         (arm_reorg): Call it.
11608         * config/arm/thumb2.md (define_peephole2 for flag clobbering
11609         arithmetic operations): Delete.
11611 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
11613         PR target/44067
11614         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
11615         e500v2 target.
11617 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
11619         PR plugins/44459
11620         * gcc-plugin.h: Encapsulate all declarations in extern "C".
11622 2010-06-08  Jan Hubicka  <jh@suse.cz>
11624         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
11625         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
11627 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
11629         PR tree-optimization/39874
11630         PR middle-end/28685
11631         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
11632         Declare.
11633         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
11634         same_bool_result_p): New.
11635         (and_var_with_comparison, and_var_with_comparison_1,
11636         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
11637         (or_var_with_comparison, or_var_with_comparison_1,
11638         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
11639         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
11640         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
11641         of combine_comparisons.
11642         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
11644 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
11646         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11647         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11648         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
11649         pdp11_function_value_regno_p): New functions.
11650         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11651         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11653 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
11655         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
11656         Thumb-2 in the MINUS case.
11658 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11660         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
11662         * doc/gty.texi (GTY Options): Document typed GC allocation and
11663         variable_size GTY option.
11665         * ggc-internal.h: New.
11667         * ggc.h: Update copyright year.
11668         (digit_string): Move to stringpool.c.
11669         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
11670         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
11671         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
11672         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
11673         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
11674         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
11675         (ggc_force_collect, ggc_get_size, ggc_statistics)
11676         (ggc_print_common_statistics): Move to ggc-internal.h.
11677         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
11678         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
11679         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
11680         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
11681         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
11682         (ggc_alloc_zone_pass_stat): Remove.
11683         (ggc_internal_alloc_stat, ggc_internal_alloc)
11684         (ggc_internal_cleared_alloc_stat): New.
11685         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
11686         (ggc_internal_vec_alloc_stat)
11687         (ggc_internal_cleared_vec_alloc_stat)
11688         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
11689         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
11690         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
11691         (ggc_cleared_alloc_ptr_array_two_args): New.
11692         (htab_create_ggc, splay_tree_new_ggc): Redefine.
11693         (ggc_splay_alloc): Change the type of the first argument to
11694         enum gt_types_enum.
11695         (ggc_alloc_string): Make macro.
11696         (ggc_alloc_string_stat): New.
11697         (ggc_strdup): Redefine.
11698         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
11699         (ggc_alloc_rtvec_sized): New.
11700         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
11701         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
11702         (ggc_internal_cleared_alloc_zone_stat)
11703         (ggc_internal_zone_alloc_stat)
11704         (ggc_internal_zone_cleared_alloc_stat)
11705         (ggc_internal_zone_vec_alloc_stat)
11706         (ggc_alloc_zone_rtx_def_stat)
11707         (ggc_alloc_zone_tree_node_stat)
11708         (ggc_alloc_zone_cleared_tree_node_stat)
11709         (ggc_alloc_cleared_gimple_statement_d_stat): New.
11711         * ggc-common.c: Include ggc-internal.h.
11712         (ggc_internal_cleared_alloc_stat): Rename from
11713         ggc_alloc_cleared_stat.
11714         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
11715         (ggc_calloc): Remove.
11716         (ggc_cleared_alloc_htab_ignore_args): New.
11717         (ggc_cleared_alloc_ptr_array_two_args): New.
11718         (ggc_splay_alloc): Add obj_type parameter.
11719         (init_ggc_heuristics): Formatting fixes.
11721         * ggc-none.c: Update copyright year.
11722         (ggc_alloc_stat): Rename to ggc_alloc_stat.
11723         (ggc_alloc_cleared_stat): Rename to
11724         ggc_internal_cleared_alloc_stat.
11725         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
11727         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
11728         Remove references to ggc_alloc in comments.
11729         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
11730         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
11731         (new_ggc_zone, destroy_ggc_zone): Remove.
11732         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
11734         * ggc-zone.c: Include ggc-internal.h.  Remove references to
11735         ggc_alloc in comments.
11736         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
11737         (ggc_internal_alloc_zone_pass_stat): New.
11738         (ggc_internal_cleared_alloc_zone_stat): New.
11739         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
11740         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
11741         (new_ggc_zone, destroy_ggc_zone): Remove.
11743         * stringpool.c: Update copyright year.  Include ggc-internal.h
11744         (digit_vector): Make static.
11745         (digit_string): Moved from ggc.h.
11746         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
11747         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
11749         * Makefile.in (GGC_INTERNAL_H): New.
11750         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
11751         $(GGC_INTERNAL_H) to dependencies.
11753         * gentype.c: Update copyright year.
11754         (walk_type): Accept variable_size GTY option.
11755         (USED_BY_TYPED_GC_P): New macro.
11756         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
11757         whitespace at the end of strings.
11758         (get_type_specifier, variable_size_p): New functions.
11759         (alloc_quantity, alloc_zone): New enums.
11760         (write_typed_alloc_def): New function.
11761         (write_typed_struct_alloc_def): Likewise.
11762         (write_typed_typed_typedef_alloc_def): Likewise.
11763         (write_typed_alloc_defns): Likewise.
11764         (output_typename, write_splay_tree_allocator_def): Likewise.
11765         (write_splay_tree_allocators): Likewise.
11766         (main): Call write_typed_alloc_defns and
11767         write_splay_tree_allocators.
11769         * lto-streamer.h (lto_file_decl_data_ptr): New.
11771         * passes.c (order): Define using cgraph_node_ptr.
11773         * strinpool.c (struct string_pool_data): Declare nested_ptr using
11774         ht_identifier_ptr.
11776         * gimple.h (union gimple_statement_d): Likewise.
11778         * rtl.h (struct rtx_def): Likewise.
11779         (struct rtvec_def): Likewise.
11781         * tree.h (union tree_node): Likewise.
11783         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
11785         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
11787         * tree-scalar-evolution.c (scev_initialize): Likewise.
11789         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
11791         * dwarf2asm.c (dw2_force_const_mem): Likewise.
11793         * omp-low.c (lower_omp_critical): Likewise.
11795         * bitmap.h (struct bitmap_head_def): Update comment to not
11796         reference ggc_alloc.
11798         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
11800         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
11802         * ipa-prop.c (duplicate_ggc_array): Rename to
11803         duplicate_ipa_jump_func_array.  Use typed GC allocation.
11804         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
11806         * gimple.c (gimple_alloc_stat): Use
11807         ggc_alloc_cleared_gimple_statement_d_stat.
11809         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
11811         * tree.c (make_node_stat): Use
11812         ggc_alloc_zone_cleared_tree_node_stat.
11813         (make_tree_vec_stat): Likewise.
11814         (build_vl_exp_stat): Likewise.
11815         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
11816         (make_tree_binfo_stat): Likewise.
11817         (tree_cons_stat): Likewise.
11819         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
11820         (shallow_copy_rtx_stat): Likewise.
11821         (make_node_stat): Likewise.
11823         * lto-symtab.c: Fix comment.
11825         * tree-cfg.c (create_bb): Update comment to not reference
11826         ggc_alloc_cleared.
11827         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
11829         * varpool.c (varpool_node): Use typed GC allocation.
11830         (varpool_extra_name_alias): Likewise.
11832         * varasm.c (emutls_decl): Likewise.
11833         (get_unnamed_section): Likewise.
11834         (get_noswitch_section): Likewise.
11835         (get_section): Likewise.
11836         (get_block_for_section): Likewise.
11837         (build_constant_desc): Likewise.
11838         (create_constant_pool): Likewise.
11839         (force_const_mem): Likewise.
11841         * tree.c (build_vl_exp_stat): Likewise.
11842         (build_real): Likewise.
11843         (build_string): Likewise.
11844         (decl_debug_expr_insert): Likewise.
11845         (decl_value_expr_insert): Likewise.
11846         (type_hash_add): Likewise.
11847         (build_omp_clause): Likewise.
11849         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
11851         * tree-ssa.c (init_tree_ssa): Likewise.
11853         * tree-ssa-structalias.c (heapvar_insert): Likewise.
11855         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11857         * tree-ssa-loop-niter.c (record_estimate): Likewise.
11859         * tree-ssa-alias.c (get_ptr_info): Likewise.
11861         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11863         * tree-phinodes.c (allocate_phi_node): Likewise.
11865         * tree-iterator.c (tsi_link_before): Likewise.
11866         (tsi_link_after): Likewise.
11868         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11870         * tree-dfa.c (create_var_ann): Likewise.
11872         * tree-cfg.c (create_bb): Likewise.
11874         * toplev.c (alloc_for_identifier_to_locale): Likewise.
11875         (general_init): Likewise.
11877         * stringpool.c (stringpool_ggc_alloc): Likewise.
11878         (gt_pch_save_stringpool): Likewise.
11880         * sese.c (if_region_set_false_region): Likewise.
11882         * passes.c (do_per_function_toporder): Likewise.
11884         * optabs.c (set_optab_libfunc): Likewise.
11885         (set_conv_libfunc): Likewise.
11887         * lto-symtab.c (lto_symtab_register_decl): Likewise.
11889         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11890         (input_eh_region): Likewise.
11891         (input_eh_lp): Likewise.
11892         (make_new_block): Likewise.
11893         (unpack_ts_real_cst_value_fields): Likewise.
11895         * lto-section-in.c (lto_new_in_decl_state): Likewise.
11897         * lto-cgraph.c (input_node_opt_summary): Likewise.
11899         * loop-init.c (loop_optimizer_init): Likewise.
11901         * lambda.h (lambda_vector_new): Likewise.
11903         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
11905         * ira.c (update_equiv_regs): Likewise.
11907         * ipa.c (cgraph_node_set_new): Likewise.
11908         (cgraph_node_set_add): Likewise.
11909         (varpool_node_set_new): Likewise.
11910         (varpool_node_set_add): Likewise.
11912         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
11913         (duplicate_ipa_jump_func_array): Likewise.
11914         (ipa_read_node_info): Likewise.
11916         * ipa-cp.c (ipcp_create_replace_map): Likewise.
11918         * integrate.c (get_hard_reg_initial_val): Likewise.
11920         * gimple.c (gimple_alloc_stat): Likewise.
11921         (gimple_build_omp_for): Likewise.
11922         (gimple_seq_alloc): Likewise.
11923         (gimple_copy): Likewise.
11925         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
11926         (gsi_insert_after_without_update): Likewise.
11928         * function.c (add_frame_space): Likewise.
11929         (insert_temp_slot_address): Likewise.
11930         (assign_stack_temp_for_type): Likewise.
11931         (allocate_struct_function): Likewise.
11932         (types_used_by_var_decl_insert): Likewise.
11934         * except.c (init_eh_for_function): Likewise.
11935         (gen_eh_region): Likewise.
11936         (gen_eh_region_catch): Likewise.
11937         (gen_eh_landing_pad): Likewise.
11938         (add_call_site): Likewise.
11940         * emit-rtl.c (get_mem_attrs): Likewise.
11941         (get_reg_attrs): Likewise.
11942         (start_sequence): Likewise.
11943         (init_emit): Likewise.
11945         * dwarf2out.c (new_cfi): Likewise.
11946         (queue_reg_save): Likewise.
11947         (dwarf2out_frame_init): Likewise.
11948         (new_loc_descr): Likewise.
11949         (find_AT_string): Likewise.
11950         (new_die): Likewise.
11951         (add_var_loc_to_decl): Likewise.
11952         (clone_die): Likewise.
11953         (clone_as_declaration): Likewise.
11954         (break_out_comdat_types): Likewise.
11955         (new_loc_list): Likewise.
11956         (loc_descriptor): Likewise.
11957         (add_loc_descr_to_each): Likewise.
11958         (add_const_value_attribute): Likewise.
11959         (tree_add_const_value_attribute): Likewise.
11960         (add_comp_dir_attribute): Likewise.
11961         (add_name_and_src_coords_attributes): Likewise.
11962         (lookup_filename): Likewise.
11963         (store_vcall_insn): Likewise.
11964         (dwarf2out_init): Likewise.
11966         * dbxout.c (dbxout_init): Likewise.
11968         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11970         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11972         * config/score/score7.c (score7_output_external): Likewise.
11974         * config/score/score3.c (score3_output_external): Likewise.
11976         * config/s390/s390.c (s390_init_machine_status): Likewise.
11978         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11979         (rs6000_init_machine_status): Likewise.
11980         (output_toc): Likewise.
11982         * config/pa/pa.c (pa_init_machine_status): Likewise.
11983         (get_deferred_plabel): Likewise.
11985         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11987         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11989         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11991         * config/mep/mep.c (mep_init_machine_status): Likewise.
11992         (mep_note_pragma_flag): Likewise.
11994         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11996         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11998         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12000         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12001         (i386_pe_maybe_record_exported_symbol): Likewise.
12003         * config/i386/i386.c (get_dllimport_decl): Likewise.
12004         (ix86_init_machine_status): Likewise.
12005         (assign_386_stack_local): Likewise.
12007         * config/frv/frv.c (frv_init_machine_status): Likewise.
12009         * config/darwin.c (machopic_indirection_name): Likewise.
12011         * config/cris/cris.c (cris_init_machine_status): Likewise.
12013         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12015         * config/avr/avr.c (avr_init_machine_status): Likewise.
12017         * config/arm/arm.c (arm_init_machine_status): Likewise.
12019         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12020         (alpha_need_linkage): Likewise.
12021         (alpha_use_linkage): Likewise.
12023         * cgraph.c (cgraph_allocate_node): Likewise.
12024         (cgraph_create_edge_1): Likewise.
12025         (cgraph_create_indirect_edge): Likewise.
12026         (cgraph_add_asm_node): Likewise.
12028         * cfgrtl.c (init_rtl_bb_info): Likewise.
12030         * cfgloop.c (alloc_loop): Likewise.
12031         (rescan_loop_exit): Likewise.
12033         * cfg.c (init_flow): Likewise.
12034         (alloc_block): Likewise.
12035         (unchecked_make_edge): Likewise.
12037         * c-parser.c (c_parse_init): Likewise.
12038         (c_parse_file): Likewise.
12040         * c-decl.c (bind): Likewise.
12041         (record_inline_static): Likewise.
12042         (push_scope): Likewise.
12043         (make_label): Likewise.
12044         (lookup_label_for_goto): Likewise.
12045         (finish_struct): Likewise.
12046         (finish_enum): Likewise.
12047         (c_push_function_context): Likewise.
12049         * bitmap.c (bitmap_element_allocate): Likewise.
12050         (bitmap_gc_alloc_stat): Likewise.
12052         * alias.c (record_alias_subset): Likewise.
12053         (init_alias_analysis): Likewise.
12055 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
12057         * fold-const.c (fold_comparison): Remove redundant parenthesis.
12058         * tree-inline.c (expand_call_inline): Pass translated return value of
12059         cgraph_inline_failed_string to diagnostic function.
12061 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
12062             Shujing Zhao  <pearly.zhao@oracle.com>
12064         PR c/37724
12065         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
12066         implicit bad conversions is initialization.
12067         (error_init): Use gmsgid instead of msgid for argument name and change
12068         the call for error.
12069         (pedwarn_init): Use gmsgid instead of msgid for argument name and
12070         change the call for pedwarn.
12071         (warning_init): Use gmsgid instead of msgid for argument name and
12072         change the call for warning.
12074 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
12076         * config/mips/mips-protos.h (mips_print_operand): Delete.
12077         (mips_print_operand_address): Delete.
12078         * config/mips/mips.h (mips_print_operand_punct): Delete.
12079         (PRINT_OPERAND): Delete.
12080         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12081         (PRINT_OPERAND_ADDRESS): Delete.
12082         * config/mips/mips.c (mips_print_operand_punct): Make static.
12083         (mips_print_operand_address): Make static.
12084         (mips_print_operand): Make static.  Call
12085         mips_print_operand_punct_valid_p.
12086         (mips_print_operand_punct_valid_p): New function.
12087         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12088         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12090 2010-06-07  Jan Hubicka  <jh@suse.cz>
12092         PR middle-end/44454
12093         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
12094         are allocated.
12096 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12098         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
12099         name of RECORD.
12101 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12103         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12104         attributes): Document gas.
12106 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
12108         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
12109         <TYPE_LEA>: Split instruction.
12110         <default>: Remove alternative 2 handling.
12111         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
12112         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
12113         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
12115         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
12116         (ashift_zext lea splitter): Use DImode for multiplication.
12118         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
12119         to generate addition.
12121 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
12123         * common.opt (fira-verbose): Use Var.
12124         (fpcc-struct-return): Use Init instead of VarExists.
12125         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
12126         toplev.c.
12127         * flags.h (flag_signed_char, flag_short_enums,
12128         flag_pcc_struct_return, flag_ira_verbose,
12129         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
12130         * toplev.c (flag_detailed_statistics, flag_signed_char,
12131         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
12132         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
12133         * toplev.h (flag_crossjumping, flag_if_conversion,
12134         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
12135         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
12136         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
12137         flag_cprop_registers, time_report, flag_ira_loop_pressure,
12138         flag_ira_coalesce, flag_ira_move_spills,
12139         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
12141 2010-06-07  Jan Hubicka  <jh@suse.cz>
12143         * df-core.c (df_analyze_problem): Do verification after allocation.
12145         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
12146         (df_lr_alloc): Initialize problem data; move bitmaps to
12147         lr_bitmaps obstack.
12148         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
12149         (df_lr_verify_solution_start): Do not initialize problem data;
12150         allocate bitmaps in lr_bitmaps.
12151         (df_lr_verify_solution_end): Do not free problem data.
12153 2010-06-07  Jan Hubicka  <jh@suse.cz>
12155         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
12156         if caller is noreturn.
12157         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
12158         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
12159         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
12160         * ipa-pure-const.c (check_decl): Add IPA parameter.
12161         (state_from_flags): New function.
12162         (better_state, worse_state): New functions.
12163         (check_call): When in IPA mode, do not care about callees.
12164         (check_load, check_store): Update.
12165         (check_ipa_load, check_ipa_store): New.
12166         (check_stmt): When in IPA mode, use IPA checkers.
12167         (analyze_function): Use state_from_flags.
12168         (propagate): Check indirect edges and references.
12170 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
12172         PR rtl-optimization/44404
12173         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
12174         of count_occurrences to see if it's safe to modify mem_insn.
12176 2010-06-07  Richard Guenther  <rguenther@suse.de>
12178         * gimplify.c (gimplify_cleanup_point_expr): For empty body
12179         and EH-only cleanup drop the cleanup instead of inserting it
12180         unconditionally.
12182 2010-06-07  Ira Rosen  <irar@il.ibm.com>
12184         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
12185         documentation.
12186         * targhooks.c (default_builtin_vectorization_cost): New function.
12187         * targhooks.h (default_builtin_vectorization_cost): Declare.
12188         * target.h (enum vect_cost_for_stmt): Define.
12189         (builtin_vectorization_cost): Change argument and comment.
12190         * tree-vectorizer.h: Remove cost model macros.
12191         * tree-vect-loop.c: Include target.h.
12192         (vect_get_cost): New function.
12193         (vect_estimate_min_profitable_iters): Replace cost model macros with
12194         calls to vect_get_cost.
12195         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
12196         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
12197         default implementation.
12198         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
12199         calls to target hook builtin_vectorization_cost.
12200         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
12201         Likewise.
12202         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
12203         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
12204         implementation to return costs.
12205         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
12206         * config/spu/spu.h: Remove vectorizer cost model macros.
12207         * config/i386/i386.h: Likewise.
12208         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
12209         a call to target hook builtin_vectorization_cost.
12211 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
12213         PR target/44319
12214         * config/i386/i386.c (override_options): Turn zee pass on for level 2
12215         and above and defer till target is known.
12216         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
12217         turn off otherwise.
12219 2010-05-25  Jan Hubicka  <jh@suse.cz>
12221         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
12222         (df_compact_blocks): Likewise.
12223         * df.h (struct df): Turn hardware_regs_used,
12224         regular_block_artificial_uses, eh_block_artificial_uses,
12225         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
12226         bitmap_head.
12227         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
12228         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
12229         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
12230         df_scan_blocks, df_insn_delete, df_insn_rescan,
12231         df_insn_rescan_debug_internal, df_insn_rescan_all,
12232         df_process_deferred_rescans, df_process_deferred_rescans,
12233         df_notes_rescan, df_get_call_refs, df_get_call_refs,
12234         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
12235         df_record_entry_block_defs, df_record_exit_block_uses,
12236         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
12237         df_scan_verify): Update.
12239 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12241         PR c++/44188
12242         * c-common.c (is_typedef_decl): Move this definition ...
12243         * tree.c (is_typedef_decl): ... here.
12244         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12245         * c-common.h (is_typedef_decl): Move this declaration ...
12246         * tree.h (is_typedef_decl): ... here.
12247         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12248         * dwarf2out.c (is_naming_typedef_decl): New function.
12249         (gen_tagged_type_die): Split out of ...
12250         (gen_type_die_with_usage): ... this function. When an anonymous
12251         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12252         is emitted for the typedef.
12253         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12254         anonymous tagged types.
12256 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12258         PR c/20000
12259         * c-decl.c (grokdeclarator): Delete warning.
12261 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
12263         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
12264         newly built CALL_EXPR.
12265         * tree-profile.c (tree_profiling): Don't profile functions produced
12266         for built-in stuff.
12268 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
12270         PR bootstrap/44427
12271         PR bootstrap/44428
12272         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
12273         endianness-independent.
12275 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
12277         * c-common.c: Move to c-family/.
12278         * c-common.def: Likewise.
12279         * c-common.h: Likewise.
12280         * c-cppbuiltin.c: Likewise.
12281         * c-dump.c: Likewise.
12282         * c-format.c: Likewise.
12283         * c-format.h : Likewise.
12284         * c-gimplify.c: Likewise.
12285         * c-lex.c: Likewise.
12286         * c-omp.c: Likewise.
12287         * c.opt: Likewise.
12288         * c-opts.c: Likewise.
12289         * c-pch.c: Likewise.
12290         * c-ppoutput.c: Likewise.
12291         * c-pragma.c: Likewise.
12292         * c-pragma.h: Likewise.
12293         * c-pretty-print.c: Likewise.
12294         * c-pretty-print.h: Likewise.
12295         * c-semantics.c: Likewise.
12296         * stub-objc.c: Likewise.
12298         * gengtype.c (get_file_langdir): Special-case files in c-family/.
12299         (get_output_file_with_visibility): Fix name for c-common.h.
12300         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
12302         * c-tree.h: Update include path for moved files.
12303         * c-lang.c: Likewise.
12304         * c-lang.h: Likewise.
12305         * c-parser.c: Likewise.
12306         * c-convert.c: Likewise.
12307         * c-decl.c: Likewise.
12308         * c-objc-common.c: Likewise.
12309         * configure.ac: Make sure c-family/ exists in the build directory.
12310         * configure: Regenerate.
12311         * Makefile.in: Update paths for moved files.  Regroup files per
12312         location and update dependencies.  Move generated_files down after
12313         ALL_GTFILES_H.
12315         * config/spu/spu-c.c: Update paths for moved files.
12316         * config/mep/mep-pragma.c: Likewise.
12317         * config/darwin-c.c: Likewise.
12318         * config/i386/msformat-c.c: Likewise.
12319         * config/i386/i386-c.c: Likewise.
12320         * config/avr/avr-c.c: Likewise.
12321         * config/sol2-c.c: Likewise.
12322         * config/ia64/ia64-c.c: Likewise.
12323         * config/rs6000/rs6000-c.c: Likewise.
12324         * config/arm/arm.c: Likewise.
12325         * config/arm/arm-c.c: Likewise.
12326         * config/h8300/h8300.c: Likewise.
12327         * config/v850/v850-c.c: Likewise.
12329         * config/t-darwin: Fix dependencies for moved files.
12330         * config/t-sol2: Fix dependencies for moved files.
12331         * config/mep/t-mep: Fix dependencies for moved files.
12332         * config/ia64/t-ia64: Fix dependencies for moved files.
12333         * config/rs6000/t-rs6000: Fix dependencies for moved files.
12334         * config/v850/t-v850: Fix dependencies for moved files.
12335         * config/v850/t-v850e: Fix dependencies for moved files.
12337         * config/m32c/m32c-pragma.c
12339         * po/exgettext: Look in c-family/ also.
12341 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
12343         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
12344         (mark_control_dependent_edges_necessary): Call it instead of marking
12345         the last statement manually.
12346         (propagate_necessity): Likewise.
12348 2010-06-05  Jan Hubicka  <jh@suse.cz>
12350         * basic-block.h (compute_dominance_frontiers): Updated.
12351         (compute_idf): Likewise.
12353         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
12354         for dominance frontiers.
12355         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
12356         (insert_updated_phi_nodes_for): Likewise.
12357         (update_ssa): Likewise.
12358         * cfganal.c (compute_dominance_frontiers_1): Likewise.
12359         (compute_dominance_frontiers): Likewise.
12360         (compute_idf): Likewise.
12361         * df-problems.c (df_md_local_compute): Likewise.
12363 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
12365         * target.h (struct gcc_target): Add memory_move_cost field.
12366         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
12367         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
12368         * targhooks.c (default_memory_move_cost): New function.
12369         * targhooks.h (default_memory_move_cost): Declare function.
12370         * reload.h (memory_move_cost): Declare.
12371         (memory_move_secondary_cost): Change type of 'in' argument to bool.
12372         * reginfo.c (memory_move_cost): New function.
12373         (memory_move_secondary_cost): Change type of 'in' argument to bool.
12374         * ira.h (ira_memory_move_cost): Update comment.
12375         * ira.c (ira_memory_move_cost): Update comment.
12376         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
12377         with memory_move_cost.
12378         * postreload.c (reload_cse_simplify_set): (Ditto.).
12379         * reload1.c (choose_reload_regs): (Ditto.).
12380         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
12381         (MEMORY_MOVE_COST):  Revise documentation.
12383         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
12384         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
12385         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
12386         type of 'in' argument to bool.
12387         (TARGET_MEMORY_MOVE_COST): Define.
12389 2010-06-05  Jan Hubicka  <jh@suse.cz>
12391         * ipa-pure-const.c (propagate): Fix typo in handling of functions
12392         that cannot return.  Be more careful when merging the results with
12393         previously known ones.
12395 2010-06-05  Matthias Klose  <doko@ubuntu.com>
12397         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
12398         function to add the -iplugindir option.
12399         (find_plugindir_spec_function): Add new declaration and function.
12400         (static_spec_func): Use it for "find-plugindir".
12402 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
12404         PR c++/44361
12405         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
12406         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
12407         statement expression.
12409 2010-06-05  Jan Hubicka  <jh@suse.cz>
12411         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
12412         (df_rd_problem_data): Convert sparse_invalidated_by_call,
12413         dense_invalidated_by_call to bitmap head.
12414         (df_rd_alloc, df_rd_bb_local_compute_process_def,
12415         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
12416         df_rd_start_dump, df_lr_verify_transfer_functions,
12417         df_live_verify_transfer_functions, df_chain_create_bb,
12418         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
12419         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
12420         df_simulate_one_insn_forwards, df_md_alloc,
12421         df_md_bb_local_compute_process_def,
12422         df_md_bb_local_compute_process_def, df_md_local_compute,
12423         df_md_transfer_function df_md_free): Update.
12425 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
12427         PR c/44322
12428         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
12429         target type for ADDR_EXPR; require no changes to qualifiers except
12430         for function types.
12431         * c-tree.h (c_build_type_variant): Remove.
12433 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
12435         * genautomata.c (get_excl_set): Do work per element, not per char.
12436         (check_presence_pattern_sets): Similar.
12437         (check_absence_pattern_sets): Similar.
12439 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
12441         * genautomata.c (curr_state_pass_num): Delete.
12442         (min_issue_delay_pass_states): Delete.
12443         (min_issue_delay): Delete.
12444         (initiate_min_issue_delay_pass_states): Delete.
12445         (output_min_issue_delay_table): Compute min_issue_delay_vect
12446         using a breadth-first search variant.
12447         (output_tables): Don't call initiate_min_issue_delay_pass_states.
12449 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
12451         PR boostrap/44421
12452         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
12453         (df_byte_lr_bb_local_compute): Likewise.
12455 2010-06-03  Jason Merrill  <jason@redhat.com>
12457         Implement noexcept operator (5.3.7)
12458         * c-common.c (c_common_reswords): Add noexcept.
12459         * c-common.h (enum rid): Add RID_NOEXCEPT.
12461 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
12463         * config/darwin-driver.c (darwin_default_min_version): Use
12464         GCC-specific formats in diagnostics.
12465         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
12466         diagnostics.
12467         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
12468         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
12469         eval_spec_function, handle_braces, process_brace_body, main,
12470         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
12471         getenv_spec_function, compare_version_strings,
12472         version_compare_spec_function): Use GCC-specific formats in
12473         diagnostics.
12475 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
12477         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
12478         that operand 0 and operand 1 are equal.
12479         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
12480         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
12481         and operand 1 are equal.
12482         <default>: Ditto.  Remove ??? comment.
12483         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
12484         and operand 1 are equal.
12485         <default>: Ditto.  Remove ??? comment.
12486         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
12487         are equal.
12488         (*add<mode>_4) <default>: Ditto.
12489         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
12491 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
12493         * config/i386/i386-protos.h (ix86_print_operand): Declare.
12494         * config/i386/i386.c (ix86_print_operand): Make non-static.
12495         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
12496         * output.h (output_operand): Declare.
12497         * final.c (output_operand): Make non-static.
12499 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
12501         PR rtl-optimization/44013
12502         * sched-deps.c (add_dependence_list_and_free): Don't free lists
12503         when processing debug insns.
12505         PR debug/41371
12506         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
12507         recursing.  Check that recursion is bounded.  Rename inner var
12508         to avoid hiding incoming argument.
12510 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
12512         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
12513         operands[2] == 255.
12514         (*addqi_3): Ditto.
12515         (*addqi_4): Ditto.
12516         (*addqi_5): Ditto.
12517         (*addqi_ext_1_rex64): Ditto.
12518         (*addqi_ext_1): Ditto.
12520         (*addqi_4): Check for incdec_operand in QImode.
12522         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
12523         using SWI mode iterator.
12524         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
12525         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
12526         mode iterator.
12527         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
12528         using SWI mode iterator.
12530 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12532         PR c/25880
12533         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
12534         * c-format.c (gcc_diag_flag_specs): Add hash.
12535         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
12536         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
12537         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
12538         pp_c_cv_qualifiers. Handle qualifiers spelling here.
12539         (pp_c_type_qualifier_list): Call the function above.
12540         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
12541         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
12542         (WARN_FOR_QUALIFIERS): New macro.
12543         (convert_for_assignment): Use it.
12545 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
12547         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
12549 2010-06-04  Jan Hubicka  <jh@suse.cz>
12551         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
12552         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
12553         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
12554         DF_BYTE_LR_OUT): Update for embedded bitmaps.
12555         * fwprop.c (single_def_use_enter_block): Likewise.
12556         * ddg.c (create_ddg_dep_from_intra_loop_link,
12557         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
12558         * loop-iv.c (latch_dominating_def): Likewise.
12559         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
12560         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
12561         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
12562         df_rd_transfer_function, df_rd_top_dump,
12563         df_rd_bottom_dump): Update.
12564         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
12565         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
12566         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
12567         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
12568         df_lr_verify_solution_start, df_lr_verify_solution_end,
12569         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
12570         df_live_free_bb_info, df_live_alloc, df_live_reset,
12571         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
12572         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
12573         df_live_verify_solution_start, df_live_verify_solution_end,
12574         df_live_verify_transfer_functions, df_chain_create_bb,
12575         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
12576         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
12577         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
12578         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
12579         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
12580         df_byte_lr_transfer_function, df_byte_lr_top_dump,
12581         df_byte_lr_bottom_dump, df_create_unused_note,
12582         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
12583         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
12584         df_md_transfer_function, df_md_init, df_md_confluence_0,
12585         df_md_confluence_n,
12586         df_md_top_dump, df_md_bottom_dump): Update.
12587         (struct df_lr_problem_data): Embedd bitmap headers.
12589 2010-06-04  Jan Hubicka  <jh@suse.cz>
12591         * dce.c (dce_process_block): Do not re-scan already marked
12592         instructions.
12594 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
12596         PR rtl-optimization/39871
12597         PR rtl-optimization/40615
12598         PR rtl-optimization/42500
12599         PR rtl-optimization/42502
12600         * ira.c (init_reg_equiv_memory_loc: New function.
12601         (ira): Call it twice.
12602         * reload.h (calculate_elim_costs_all_insns): Declare.
12603         * ira-costs.c: Include "reload.h".
12604         (regno_equiv_gains): New static variable.
12605         (init_costs): Allocate it.
12606         (finish_costs): Free it.
12607         (ira_costs): Call calculate_elim_costs_all_insns.
12608         (find_costs_and_classes): Take estimated elimination costs
12609         into account.
12610         (ira_adjust_equiv_reg_cost): New function.
12611         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
12612         * reload1.c (init_eliminable_invariants, free_reg_equiv,
12613         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
12614         (elim_bb): New static variable.
12615         (reload): Move code out of here into init_eliminable_invariants and
12616         free_reg_equiv.  Call them.
12617         (calculate_elim_costs_all_insns): New function.
12618         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
12619         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
12620         but call note_reg_elim_costly if we turned a valid memory address
12621         into an invalid one.
12622         * Makefile.in (ira-costs.o): Depend on reload.h.
12624 2010-06-04  Julian Brown  <julian@codesourcery.com>
12626         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
12627         for pool ranges.
12629 2010-06-04  Richard Guenther  <rguenther@suse.de>
12631         PR lto/41584
12632         * cgraph.h (struct varpool_node): Add lto_file_data field.
12633         * lto-cgraph.c (input_varpool_node): Initialize it.
12635 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
12637         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
12638         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
12639         predicate in "type" attribute calculation.
12640         (*addsi_1_zext): Ditto.
12641         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
12642         (*addsi_2_zext): Ditto.
12643         (*add<mode>_3): Ditto.
12644         (*addsi_3_zext): Ditto.
12645         (*add<mode>_5): Ditto.
12647 2010-06-03  Jan Hubicka  <jh@suse.cz>
12649         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
12650         of bitmap_bit_p.
12651         * cfganal.c (compute_dominance_frontiers_1): Likewise.
12653 2010-06-03  Jan Hubicka  <jh@suse.cz>
12655         * df-problems.c (df_create_unused_note, df_note_bb_compute):
12656         micro-optimize the checks when to add new note.
12658 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
12660         * final.c (output_asm_insn): Call
12661         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
12662         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
12663         (output_address): Call targetm.asm_out.print_operand_address.
12664         Update comments.
12665         * target.h (struct gcc_target): Add print_operand,
12666         print_operand_address, and print_operand_punct_valid_p fields.
12667         * targhooks.h (default_print_operand): Declare.
12668         (default_print_operand_address): Declare.
12669         (default_print_operand_punct_valid_p): Declare.
12670         * targhooks.c (default_print_operand): Define.
12671         (default_print_operand_address): Define.
12672         (default_print_operand_punct_valid_p): Define.
12673         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
12674         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
12675         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
12676         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
12677         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
12678         * vmsdbgout.c (addr_const_to_string): Update comment.
12679         * config/i386/i386.c (print_operand): Rename to...
12680         (ix86_print_operand): ...this.  Make static.
12681         (print_operand_address): Rename to...
12682         (ix86_print_operand_address): ...this.  Make static.  Call
12683         ix86_print_operand instead of PRINT_OPERAND.
12684         (ix86_print_operand_punct_valid_p): New function.
12685         (TARGET_PRINT_OPERAND): Define.
12686         (TARGET_PRINT_OPERAND_ADDRESS): Define.
12687         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12688         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
12689         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
12690         (PRINT_OPERAND): Delete.
12691         (PRINT_OPERAND_ADDRESS): Delete.
12692         * config/i386/i386-protos.h (print_operand): Delete prototype.
12693         (print_operand_address): Delete prototype.
12695 2010-06-03  Richard Guenther  <rguenther@suse.de>
12697         PR tree-optimization/44403
12698         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
12699         Preserve pointer qualifiers.
12700         (vect_create_data_ref_ptr): Likewise.
12702 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
12704         PR c++/44294
12705         * defaults.h (MAX_FIXED_MODE_SIZE): New.
12707         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
12709 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
12711         PR debug/44375
12712         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
12713         return false if merging the bbs would lead to goto_locus
12714         location being lost from the IL.
12716 2010-06-03  Jan Hubicka  <jh@suse.cz>
12717             Jakub Jelinek  <jakub@redhat.com>
12719         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
12720         set->regs[i] is NULL or has just one entry.
12722 2010-06-03  Jan Hubicka  <jh@suse.cz>
12724         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
12725         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
12727 2010-06-03  Paul Brook  <paul@codesourcery.com>
12729         * config/arm/arm.c (FL_TUNE): Define.
12730         (arm_default_cpu, arm_cpu_select): Remove.
12731         (all_cores): Populate core field.
12732         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
12733         (arm_find_cpu): New function.
12734         (arm_handle_option): Lookup cpu/architecture names.
12735         (arm_override_options): Cleanup mcpu/march/mtune handling.
12736         (arm_file_start): Ditto.
12738 2010-06-03  Alan Modra  <amodra@gmail.com>
12740         PR target/44169
12741         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
12742         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
12743         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
12744         (rs6000_emit_load_toc_table): Likewise.
12746 2010-06-02  Jan Hubicka  <jh@suse.cz>
12748         * passes.c (init_optimization_passes): Put ipa reference
12749         after ipa pure-const.
12751 2010-06-02  Jan Hubicka  <jh@suse.cz>
12753         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
12754         calls_read_all and calls_write_all.
12755         (get_reference_optimization_summary): Fix formatting.
12756         (is_proper_for_analysis): Check that decl is not readonly.
12757         (propagate_bits): Check CONST/PURE/noreturn flags.
12758         (ipa_init): Move all_module_statics to optimization_summary_obstack.
12759         (analyze_function): Ignore indirect edges.
12760         (copy_global_bitmap): For all module statics, do nothing.
12761         (generate_summary): Do not print calls_read_all/calls_write_all.
12762         (read_write_all_from_decl): Take node as argument; check
12763         cgraph_node_cannot_return.
12764         (propagate): Reorganize read_all/write_all computation;
12765         check indirect edges; check ecf flags; use all_module_statics
12766         in the results; do not free all_module_statics.
12767         (stream_out_bitmap): Handle all_module_statics.
12768         (ipa_reference_write_optimization_summary): Likewise; use
12769         varpool/cgraph encoders to get boundaries.
12770         (ipa_reference_read_optimization_summary): Read in all_module_statics;
12771         use it when possible.
12773 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12775         PR target/44218
12776         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
12777         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
12779         * doc/extend.texi (powerpc builtins): Document vec_recip,
12780         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
12782         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
12783         (rs6000_emit_swrsqrt): Ditto.
12784         (rs6000_emit_swdivsf): Delete.
12785         (rs6000_emit_swdivdf): Ditto.
12786         (rs6000_emit_swrsqrtsf): Ditto.
12788         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
12789         describe the reciprocal estimate support for each type.
12790         (recip_options): Map -mrecip=<opt> into option bits.
12791         (gen_2arg_fn_t): New typedef for binary rtx gen function.
12792         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
12793         reciprocal estimate instructions.
12794         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
12795         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
12796         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
12797         cost information if -mdebug=cost or -mdebug=reg.
12798         (rs6000_override_options): Set -mrecip-precision for power6, and
12799         power7 machines.  If -mvsx or -mdfp, enable various options that
12800         came in previous instruction set ISAs, unless the option was
12801         explicitly disabled by the command line option.  Parse
12802         -mrecip=<opt> options.
12803         (rs6000_builtin_vectorized_function): Add support for vectorizing
12804         the reciprocal estimate builtins and expansions.
12805         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
12806         (bdesc_2arg): Add reciprocal estimate builtins.
12807         (bdesc_1arg): Add reciprocal square root estimate builtins.
12808         (rs6000_expand_builtin): Rewrite to use a switch statement,
12809         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
12810         (rs6000_init_builtins): Create declarations for reciprocal
12811         estimate builtins.
12812         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
12813         sized, prefer traditional floating point registers, if integer
12814         vector types, prefer altivec registers.  Don't actually look at
12815         the memory address any more.
12816         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
12817         builtins.
12818         (rs6000_load_constant_and_splat): New helper function to load up
12819         the constant for reciprocal estimate instructions.
12820         (rs6000_emit_madd): New helper function for generating
12821         multiply/add type instructions, based on the current switches.
12822         (rs6000_emit_msub): Ditto.
12823         (rs6000_emit_mnsub): Ditto.
12824         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
12825         replace a divide with a reciprocal estimate and fixup, adding
12826         support for machines with high precision and vectors.
12827         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
12828         low precision machines.
12829         (rs6000_emit_swdiv): New common function to be called to replace a
12830         division with reciprocal estimate and fixup.
12831         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
12832         for double and vector types.  Add support for high precision machines.
12834         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
12835         the reciprocal estimate instructions can be generated.
12836         (TARGET_FRE): Ditto.
12837         (TARGET_FRSQRTES): Ditto.
12838         (TARGET_FRSQRTE): Ditto.
12839         (RS6000_RECIP_*): New macros for reciprocal estimate support.
12841         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
12842         square root estimate on vectors.
12843         (re<mode>2): New insn for reciprocal division estimate on vectors.
12845         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
12846         New builtin.
12847         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
12848         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
12849         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
12850         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
12851         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
12852         (RS6000_BUILTIN_RSQRT): Ditto.
12853         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
12854         floating point builtin.
12856         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
12857         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
12858         __RECIP_PRECISION__ based on the command line switches.
12859         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
12861         * config/rs6000/rs6000.opt (-mrecip): Document add support for
12862         replacing division instructions with reciprocal estimate and fixup.
12863         (-mrecip=<opt>): New option.
12864         (-mrecip-precision): Ditto.
12866         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
12867         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
12868         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
12869         precision scalar.
12871         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
12872         (UNSPEC_VREFP): Ditto.
12873         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
12874         conterparts with regard to support of -mno-fused-madd and -ffast-math.
12875         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
12876         reciprocal estimate instructions to be generated.
12877         (altivec_vrefp): Ditto.
12879         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
12880         estimate support.
12881         (rreg): New mode attribute for reciprocal estimate support.
12882         (recip<mode>3): New insn for division using reciprocal estimate
12883         and fixup builtins.
12884         (divide define_split): New define_split to convert floating point
12885         division to use reciprocal estimate if the user used the
12886         appropriate options and the split is run when we can add new
12887         pseudo registers for the fixup.
12888         (rsqrt<mode>2): New insn for reciprocal square root support.
12889         (recipsf3): Move into recip<mode>3.
12890         (recipdf3): Ditto.
12891         (fres): Use TARGET_FRES.
12892         (rsqrtsf2): Move into rsqrt<mode>2.
12893         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
12894         (copysignsf3): Add support for VSX.
12895         (fred): Use TARGET_FRE.
12896         (fred_fpr): Ditto.
12897         (rsqrtdf_internal1): New function for frsqrte instruciton.
12899         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
12900         (vec_rsqrt): Ditto.
12902 2010-06-03  Richard Guenther  <rguenther@suse.de>
12904         PR middle-end/44291
12905         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
12906         (set_user_assembler_libfunc): Likewise.
12908 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12910         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
12911         defaults.h.
12912         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
12913         to defaults.h
12914         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
12915         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
12916         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
12917         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
12918         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
12919         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
12920         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
12921         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
12922         * defaults.h: Updated for above mentioned changes.
12924 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
12926         * c-common.c: Remove header include of tm_p.h.
12927         * Makefile.in (c-common.o): Remove TM_P_H dependency.
12929 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
12931         * tree.h (struct tree_decl_map): New type.
12932         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
12933         (tree_decl_map_hash): New prototype.
12934         (debug_expr_for_decl, value_expr_for_decl): Change into
12935         tree_decl_map hashtab from tree_map.
12936         (init_ttree): Adjust initialization.
12937         (tree_decl_map_hash): New function.
12938         (decl_debug_expr_lookup, decl_debug_expr_insert,
12939         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
12941 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12943         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
12944         linker emulations.
12945         * configure: Regenerate.
12946         * config.in: Regenerate.
12948         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
12949         (X86_64_EMULATION): Define.
12950         (TARGET_LD_EMULATION): Use them.
12952         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
12953         (SPARC64_EMULATION): Define.
12954         (LINK_ARCH_SPEC): Use them.
12956 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12958         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
12959         smallest_mode_for_size for computing the precision types of new
12960         graphite IVs.  Do not call lang_hooks.types.type_for_size.
12962 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12964         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
12965         information.
12966         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
12968 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12970         PR middle-end/44363
12971         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
12972         return false instead.
12974 2010-06-02  Jan Hubicka  <jh@suse.cz>
12976         PR middle-end/44295
12977         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
12978         create new cgraph node to check callee.
12980 2010-06-02  Richard Guenther  <rguenther@suse.de>
12982         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
12984 2010-06-02  Richard Guenther  <rguenther@suse.de>
12986         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
12987         (lto_wrapper_cleanup): ... this.  Do not exit.
12988         (fatal): Adjust.  Exit here.
12989         (fatal_perror): Likewise.
12990         (fatal_signal): New function.
12991         (main): Set up signal handlers to cleanup temporary files.
12992         * Makefile.in (lto-wrapper.o): Adjust dependencies.
12994 2010-06-02  Richard Guenther  <rguenther@suse.de>
12996         PR tree-optimization/44377
12997         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
12999 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13001         * config/s390/2097.md (z10_fhex): Remove insn reservation.
13002         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
13003         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
13004         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
13005         instruction.
13006         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
13008 2010-06-02  Jan Hubicka  <jh@suse.cz>
13010         * bitmap.c (bitmap_descriptor): Add search_iter.
13011         (bitmap_find_bit): Increment it.
13012         (print_statistics): Print it.
13014 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
13016         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
13017         instead of gimple_build_call_vec.  Delete unnecessary local variable.
13019 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13021         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
13022         change from yesterday.
13024 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
13026         * c-ada-spec.c: Clean up redundant includes.
13028 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
13030         * gimplify.c: Do not include except.h and optabs.h.
13031         (gimplify_body): Do not initialize RTL profiling.
13032         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
13033         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
13034         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
13035         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
13036         langhooks.h.
13038         * tree-pretty-print.h: Include pretty-print.h.
13039         * gimple-pretty-print.h: Include pretty-print.h.
13041         * tree-pretty-print.c: Do not include diagnostic.h.
13042         * tree-vrp.c: Likewise.
13043         * tree-tailcall.c: Likewise
13044         * tree-scalar-evolution.c: Likewise
13045         * tree-ssa-dse.c: Likewise
13046         * tree-chrec.c: Likewise
13047         * tree-ssa-sccvn.c: Likewise
13048         * tree-ssa-copyrename.c: Likewise
13049         * tree-nomudflap.c: Likewise
13050         * tree-call-cdce.c: Likewise
13051         * tree-stdarg.c: Likewise
13052         * tree-ssa-math-opts.c: Likewise
13053         * tree-nrv.c: Likewise
13054         * tree-ssa-sink.c: Likewise
13055         * tree-browser.c: Likewise
13056         * tree-ssa-loop-ivcanon.c: Likewise
13057         * tree-ssa-loop.c: Likewise
13058         * tree-parloops.c: Likewise
13059         * tree-ssa-address.c: Likewise
13060         * tree-ssa-ifcombine.c: Likewise
13061         * tree-if-conv.c: Likewise
13062         * tree-data-ref.c: Likewise
13063         * tree-affine.c: Likewise
13064         * tree-ssa-phiopt.c: Likewise
13065         * tree-ssa-coalesce.c: Likewise
13066         * tree-ssa-pre.c: Likewise
13067         * tree-ssa-live.c: Likewise
13068         * tree-predcom.c: Likewise
13069         * tree-ssa-forwprop.c: Likewise
13070         * tree-ssa-dce.c: Likewise
13071         * tree-ssa-ter.c: Likewise
13072         * tree-ssa-loop-prefetch.c: Likewise
13073         * tree-optimize.c: Likewise
13074         * tree-ssa-phiprop.c: Likewise
13075         * tree-object-size.c: Likewise
13076         * tree-outof-ssa.c: Likewise
13077         * tree-ssa-structalias.c: Likewise
13078         * tree-switch-conversion.c: Likewise
13079         * tree-ssa-reassoc.c: Likewise
13080         * tree-ssa-operands.c: Likewise
13081         * tree-vectorizer.c: Likewise
13082         * tree-vect-data-refs.c: Likewise
13083         * tree-vect-generic.c: Likewise
13084         * tree-vect-stmts.c: Likewise
13085         * tree-vect-patterns.c: Likewise
13086         * tree-vect-slp.c: Likewise
13087         * tree-vect-loop.c: Likewise
13088         * tree-ssa-loop-ivopts.c: Likewise
13089         * tree-ssa-loop-im.c: Likewise
13090         * tree-ssa-loop-niter.c: Likewise
13091         * tree-ssa-loop-unswitch.c: Likewise
13092         * tree-ssa-loop-manip.c: Likewise
13093         * tree-ssa-loop-ch.c: Likewise
13094         * tree-dump.c: Likewise
13095         * tree-complex.c: Likewise
13097         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
13098         * tree-ssa-uninit.c: Likewise
13099         * tree-ssa-threadupdate.c: Likewise
13100         * tree-ssa-uncprop.c: Likewise
13101         * tree-ssa-ccp.c: Likewise
13102         * tree-ssa-dom.c: Likewise
13103         * tree-ssa-propagate.c: Likewise
13104         * tree-ssa-alias.c: Likewise
13105         * tree-dfa.c: Likewise
13106         * tree-cfgcleanup.c: Likewise
13107         * tree-sra.c: Likewise
13108         * tree-ssa-copy.c: Likewise
13109         * tree-ssa.c: Likewise
13110         * tree-profile.c: Likewise
13111         * tree-cfg.c: Likewise
13112         * tree-ssa-threadedge.c: Likewise
13113         * tree-vect-loop-manip.c: Likewise
13115         * tree-inline.c: Do not include diagnostic.h and expr.h.
13116         Include rtl.h.
13117         (copy_decl_for_dup_finish): Do not use NULL_RTX.
13119         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
13120         * tree-loop-distribution.c: Likewise.
13122 2010-06-01  Jan Hubicka  <jh@suse.cz>
13124         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
13126 2010-06-01  Jan Hubicka  <jh@suse.cz>
13128         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
13129         remove return value.
13130         (split_bbs_on_noreturn_calls) .... here.
13131         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
13132         * tree-flow.h (fixup_noreturn_call): New.
13134 2010-06-01  Jan Hubicka  <jh@suse.cz>
13136         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
13138 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
13140         * tree.h (build_nt_call_list): Delete.
13141         * tree.c (build_nt_call_list): Delete.
13143 2010-06-01  Jan Hubicka  <jh@suse.cz>
13145         * fwprop.c: Make emit-rtl.h include last.
13146         * rtlanal.c: Include emit-rtl.h.
13147         * genautomata.c: Output emit-rtl include into insn-automata.c
13148         * df-scan.c: Include emit-rtl.h.
13149         * haifa-sched.c: Indlude emit-rtl.h.
13150         * mode-switching.c: Indlude emit-rtl.h.
13151         * graph.c: Indlude emit-rtl.h.
13152         * sel-sched.c: Include emit-rtl.h.
13153         * sel-sched-ir.c: Include emit-rtl.h.
13154         * ira-build.c: Include emit-rtl.h.
13155         * emit-rtl.c (first_insn, last_insn): Remove defines.
13156         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
13157         Move to emit-rtl.h.
13158         (set_new_first_and_last_insn, get_last_insn_anywhere,
13159         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
13160         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
13161         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
13162         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
13163         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
13164         Use accessor functions.
13165         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13166          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13167         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13168         mem_expr_equal_p): Move here from rtl.h.
13169         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
13170         Move here from emit-rtl.c; make inline.
13171         * cfglayout.h: Include emit-rtl.h.
13172         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
13173          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
13174         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
13175         mem_expr_equal_p, get_insns, set_first-insn,
13176         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
13177         * reg-stack.c: Include emit-rtl.h.
13178         * dce.c: Likewise.
13180 2010-06-01  Jan Hubicka  <jh@suse.cz>
13182         * cgraph.h (tree_function_versioning): Update prototype.
13183         (cgraph_function_versioning): Update prototype.
13184         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
13185         bitmap.
13186         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
13187         (cgraph_materialize_clone, save_inline_function_body): Update use of
13188         tree_function_versioning.
13189         * tree-inline.c (copy_bb): Look for previous copied block to link
13190         after; fix debug output.
13191         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
13192         (copy_body): Likewise.
13193         (expand_call_inline): Update use of copy_body.
13194         (tree_function_versioning): Update use of copy body; accept
13195         blocks_to_copy and new_entry.
13197 2010-06-01  Jan Hubicka  <jh@suse.cz>
13199         * gegenrtl.c: Remove unnecesary prototypes.
13200         (gendecl): Remove.
13201         (gendef): Produce static inline.
13202         (gencode): Remove.
13203         (main): Do not decode parameters; generate header only.
13204         * Makefile.in (genrtl.c): Remove.
13206 2010-06-01  Jan Hubicka  <jh@suse.cz>
13208         * tree-switch-conversion.c (build_one_array): Make it readonly.
13210 2010-06-01  Richard Guenther  <rguenther@suse.de>
13212         * optabs.c (init_optabs): Guard all accesses to reinit.
13213         * ipa-pure-const.c (propagate): Fix another typo.
13214         * opts.c (common_handle_option): Split assignment to bool.
13215         * c-opts.c (c_common_handle_option): Likewise.
13217 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
13218             Matthew Gingell  <gingell@adacore.com>
13220         * doc/invoke.texi: Mention -fdump-ada-spec.
13221         * tree-dump.c (dump_files): Add ada-spec.
13222         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
13223         * tree-pass.h (tree_dump_index): Add TDI_ada.
13224         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
13225         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
13226         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
13227         * c-decl.c: Include c-ada-spec.h.
13228         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
13229         functions.
13230         (c_write_global_declarations): Add handling of -fdump-ada-spec.
13231         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
13232         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
13233         * c-ada-spec.h, c-ada-spec.c: New files.
13235 2010-06-01  Richard Guenther  <rguenther@suse.de>
13237         PR lto/43853
13238         * ipa-pure-const.c (get_function_state): Hand back varying state
13239         if we do not have one.
13240         (has_function_state): New function.
13241         (duplicate_node_data): Adjust.
13242         (remove_node_data): Likewise.
13243         (pure_const_write_summary): Likewise.
13244         (propagate): Likewise.  Fix typo.
13246 2010-06-01  Jan Hubicka  <jh@suse.cz>
13248         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
13249         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
13250         (execute_all_ipa_transforms): Do not play with the states.
13252 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
13254         * config/arm/t-linux-androideabi: New.
13255         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
13257 2010-06-01  Jan Hubicka  <jh@suse.cz>
13259         * tree-inline.c (estimate_num_insns): For stdarg functions look
13260         into call statement to count cost of argument passing.
13262 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
13264         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
13265         argument for fprintf.
13266         (ix86_output_addr_diff_elt): Likewise.
13267         (x86_function_profiler): Likewise.
13268         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
13269         (LPREFIX): Likewise.
13270         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
13272 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13274         PR target/44338
13275         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
13276         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
13277         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
13278         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
13279         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
13280         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
13281         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
13282         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
13283         TARGET_FUSED_MADD.
13285 2010-05-31  Jan Hubicka  <jh@suse.cz>
13287         * tree.h (tree_range_check_failed): Declare noreturn.
13289 2010-05-31  Jan Hubicka  <jh@suse.cz>
13291         * gimple.c (gimple_call_builtin_p): New function.
13292         * gimple.h (gimple_call_builtin_p): Declare.
13293         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
13294         to exit.
13295         (execute_warn_function_return): BUILT_IN_RETURN is return.
13296         (split_critical_edges): Return edges are not critical.
13297         (is_ctrl_altering_stmt): Builtin_in_return is altering.
13298         (gimple_verify_flow_info): Handle built_in_return.
13299         (execute_warn_function_return): Handle built_in_return.
13300         * ipa-pure-const.c (check_call): Ignore builtin_return.
13302 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
13304         PR middle-end/44337
13305         * expr.c (expand_assignment): Don't store anything for out-of-bounds
13306         array accesses with non-MEM.
13308         PR tree-optimization/44182
13309         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
13310         newly needs to end a bb is followed by debug stmts, instead return
13311         true from the function at the end.
13312         (maybe_move_debug_stmts_to_successors): New function.
13313         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
13315 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
13317         PR target/44161
13318         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
13320 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
13322         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
13323         for nested functions in non-optimized compilation.
13325 2010-05-31  Richard Guenther  <rguenther@suse.de>
13327         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
13329 2010-05-30  Jan Hubicka  <jh@suse.cz>
13331         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
13333 2010-05-30  Richard Guenther  <rguenther@suse.de>
13335         PR lto/42975
13336         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
13337         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
13338         no longer needed.
13340 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
13342         * config/darwin.c (output_objc_section_asm_op): Add comment.
13343         (name_needs_quotes): Add '_' to list of valid comment chars.
13344         (machopic_output_function_base_name): Remove unneeded quotes.
13345         (darwin_encode_section_info): Adjust asm whitespace.
13346         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
13347         (ASM_OUTPUT_LOCAL): Ditto.
13348         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
13349         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
13350         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
13352 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
13354         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
13355         RS6000_OUTPUT_BASENAME unconditionally.
13356         (rs6000_output_function_epilogue): Likewise.
13358 2010-05-30  Jan Hubicka  <jh@suse.cz>
13360         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
13361         nodes.
13363 2010-05-30  Richard Guenther  <rguenther@suse.de>
13365         * tree-cfg.c (verify_gimple_assign_single): Implement
13366         verification for COND_EXPR rhs.
13368 2010-05-30  Jan Hubicka  <jh@suse.cz>
13370         * cgraph.h (cgraph_dump_file): Declare.
13371         * cgraphunit.c (cgraph_dump_file): Export.
13372         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
13374 2010-05-30  Jan Hubicka  <jh@suse.cz>
13376         * dwarf2out.c (reference_to_unused,
13377         premark_types_used_by_global_vars_helper): Avoid creation of new
13378         varpool nodes.
13380 2010-05-30  Jan Hubicka  <jh@suse.cz>
13382         * cgraph.h (cgraph_node_cannot_return,
13383         cgraph_edge_cannot_lead_to_return): New functions.
13384         * cgraph.c (cgraph_node_cannot_return,
13385         cgraph_edge_cannot_lead_to_return): Use them.
13386         * ipa-pure-const.c (pure_const_names): New static var.
13387         (check_call): Handle calls not leading to return.
13388         (pure_const_read_summary): Dump info read.
13389         (propagate): Dump info about propagation process; ignore side effects
13390         of functions not leading to exit; fix handling of pure functions.
13392 2010-05-30  Jan Hubicka  <jh@suse.cz>
13394         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
13395         for tail call epilogues.
13397 2010-05-30  Jan Hubicka  <jh@suse.cz>
13399         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
13400         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
13401         dump files.
13403 2010-05-29  Jan Hubicka  <jh@suse.cz>
13405         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
13406         node; remove references in node we no longer keep in cgrpah but need
13407         body of.
13409 2010-05-29  Jan Hubicka  <jh@suse.cz>
13411         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
13413 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13415         PR target/44165
13416         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
13418 2010-05-29  Jan Hubicka  <jh@suse.cz>
13420         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
13421         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
13422         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
13423         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
13424         debug_names_replaced_by, debug_update_ssa): Likewise.
13425         * sbitmap.c (debug_sbitmap): Likewise.
13426         * genrecog.c (debug_decision, debug_decision_list): Likewise.
13427         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
13428         debug_tree_chain): Likewise.
13429         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
13430         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
13431         * optabs.c (debug_optab_libfuncs): Likewise.
13432         (verify_loop_closed_ssa): Likewise.
13433         * value-prof.c (verify_histograms): Likewise.
13434         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
13435         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
13436         * cfghooks.c (verify_flow_info): Likewise.
13437         * fold-const.c (debug_fold_checksum): Likewise.
13438         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
13439         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
13440         Likewise.
13441         * omega.c (debug_omega_problem): Likewise.
13442         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
13443         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
13444         * dominance.c (verify_dominators, debug_dominance_info,
13445         debug_dominance_tree): Likewise.
13446         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
13447         * df_regno_debug, df_ref_debug,
13448         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
13449         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
13450         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
13451         * sel-sched.c (debug_state): Likewise.
13452         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
13453         Likewise.
13454         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
13455         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
13456         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
13457         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
13458         Likewise.
13459         * c-pretty-print.c (debug_c_tree): Likewise.
13460         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
13461         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
13462         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
13463         * ebitmap.c (debug_ebitmap): Likewise.
13464         * function.c (debug_find_var_in_block_tree): Likewise.
13465         * print-rtl.c (debug_rtx): Likewise.
13466         (debug_rtx_count): Likewise.
13467         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
13468         * stor-layout.c (debug_rli): Likewise.
13469         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
13470         * tree-data-ref.c (debug_data_references,
13471         debug_data_dependence_relations, debug_data_reference,
13472         debug_data_dependence_relation, debug_rdg_vertex,
13473         debug_rdg_component, debug_rdg): Likewise.
13474         * tree-affine.c (debug_aff): Likewise.
13475         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
13476         Likewise.
13477         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
13478         * emit-rtl.c (verify_rtl_sharing): Likewise.
13479         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
13480         debug_value_expressions): Likewise.
13481         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
13482         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
13483         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
13484         * cfglayout.c (verify_insn_chain): Likewise.
13485         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
13486         debug_clast_stmt, debug_generated_program): Likewise.
13487         * ggc-page.c (debug_print_page_list): Likewise.
13488         * tree-ssa-ter.c (debug_ter): Likewise.
13489         * graphite-dependences.c (debug_pddr): Likewise.
13490         * sched-deps.c (debug_ds): Likewise.
13491         * tree-ssa.c (verify_ssa): Likewise.
13492         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
13493         debug_scattering_functions, debug_iteration_domains, debug_pdr,
13494         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
13495         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
13496         * tree-inline.c (debug_find_tree): Likewise.
13497         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
13498         debug_ppl_powerset_matrix): Likewise.
13499         * var-tracking.c (debug_dv): Likewise.
13500         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
13501         * cfgloop.c (verify_loop_structure): Likewise.
13502         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
13503         * c-common.c (verify_sequence_points): Likewise.
13504         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
13505         debug_candidates, debug_rgn_dependencies): Likewise.
13506         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
13507         * debug_constraint_graph, debug_solution_for_var,
13508         debug_sa_points_to_info): Likewise.
13509         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
13510         Likewie.
13511         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
13512         debug_loops, debug_loop, debug_loop_num): Likewise.
13513         * passes.c (debug_pass): Likewise.
13514         (dump_properties): Likewise; add cfglayout property.
13515         (debug_properties): Likewise.
13516         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
13517         * varpool.c (debug_varpool): Likewise.
13518         * regcprop.c (debug_value_data): Likewise.
13519         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
13520         debug_immediate_uses_for): Likewise.
13522 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13524         PR bootstrap/44315
13525         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
13526         Filter out insn-flags.h.
13528 2010-05-29  Jan Hubicka  <jh@suse.cz>
13530         * cgraph.h (struct varpool_node_set_def,
13531         struct cgraph_node_set_def): Remove unused AUX pointer.
13532         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
13533         VEC_empty macro.
13535 2010-05-29  Jan Hubicka  <jh@suse.cz>
13537         PR middle-end/44324
13538         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
13540 2010-05-29  Richard Guenther  <rguenther@suse.de>
13542         * lto-streamer.c (cached_bp): New global variable.
13543         (bitpack_create): Return the cached bitpack, if available.
13544         (bitpack_delete): Clear and cache the bitpack, if appropriate.
13545         (bp_pack_value): Remove redundant asserts.
13547 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
13549         PR middle-end/44306
13550         * tree-if-conv.c (is_true_predicate): New.
13551         (is_predicated): Use is_true_predicate.
13552         (add_to_predicate_list): Same.  Do not use unshare_expr.
13553         (add_to_dst_predicate_list): Same.
13555 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
13557         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
13558         field on edges.
13559         (predicate_bbs): Same.
13560         (clean_predicate_lists): Same.
13561         (find_phi_replacement_condition): Do not AND the predicate from
13562         edge->aux.
13564 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13566         PR bootstrap/44315
13567         * Makefile.in (build/gencondmd.o): Add a missing `\'.
13569 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13571         PR target/44261
13572         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
13573         (negdf2): Adjust expander pattern and use negdf2_slow.
13574         (negsf2): Likewise.
13576 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
13578         * basic-block.h (struct control_flow_graph): Move last_label_uid field
13579         up.
13580         * df.h (struct df_base_ref): Move regno field up.
13581         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
13582         * expr.h (struct separate_ops): Move location field up.
13583         * optabs.h (struct optab_d): Move libcall_basename field down.
13584         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
13585         * config/i386/i386.h (struct machine_function): Convert call_abi field
13586         into a bitfield.  Move cfa field to the end of the structure.
13588 2010-05-29  Jan Hubicka  <jh@suse.cz>
13590         * varpool.c (varpool_get_node): Fix lookup.
13592 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13594         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
13595         RTL specific prototypes with #ifdef RTX_CODE.
13596         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
13597         * config/spu/t-spu-elf: Fix dependencies.
13599         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
13601 2010-05-29  Mike Stump  <mikestump@comcast.net>
13603         PR bootstrap/44315
13604         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
13605         TM_H when building to avoid dependency loops.
13607 2010-05-29  Jan Hubicka  <jh@suse.cz>
13609         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
13610         refs and body; not the whole node for masters of materialized clones.
13612 2010-05-29  Mike Stump  <mikestump@comcast.net>
13614         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
13616 2010-05-29  Jan Hubicka  <jh@suse.cz>
13618         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
13619         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
13620         use of clone_function_name.
13621         * cgraph.h (cgraph_create_virtual_clone,
13622         cgraph_function_versioning): update prototypes.
13623         (clone_function_name): Declare.
13624         * ipa-cp.c (ipcp_insert_stage): Update call of
13625         cgraph_create_virtual_clone.
13626         * omp-low.c (create_omp_child_function_name): Use
13627         cgraph_create_virtual_clone.
13628         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
13629         (cgraph_function_versioning): Take SUFFIX argument; produce new name
13630         and make decl local.
13632 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13634         * vec.h: Include statistics.h
13635         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
13636         with VEC_H.
13638 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13640         * c-lex.c: Do not include c-tree.h.
13641         * c-pretty-print.c: Likewise.
13642         * c-opts.c: Likewise.
13643         * c-gimplify.c: Likewise.
13644         * c-common.c: Likewise.
13645         * c-dump.c: Likewise.  Include c-common.h.
13647 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13649         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
13650         before including diagnostic-core.h.
13651         (c_cpp_error): New prototype moved from c-tree.h.
13652         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
13653         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
13654         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
13655         (c_cpp_error): Prototype moved to c-common.h.
13656         * Makefile.in: Update dependency for C_COMMON_H.
13658 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
13660         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
13661         * c-common.c (c_register_addr_space): Remove here.
13662         * c-decl.c (c_register_addr_space): Re-add here.
13664 2010-05-28  Mike Stump  <mikestump@comcast.net>
13666         * config/darwin-c.c: Remove c-tree.h include.
13668 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13670         * gcc.c: Include diagnostic.h.
13671         (error_count): Remove.  All users changed to use errorcount.
13672         (programname): Remove.  All users changed to use progname.
13673         (fancy_abort, internal_error, fatal_error, error, warning, inform,
13674         fnotice): Remove.
13675         (execute): Don't include "Internal error" and bug reporting
13676         information in argument of internal_error call.
13677         (process_command): Don't increment error_count after calling
13678         perror_with_name.
13679         (input_filename): Rename to gcc_input_filename.  All users
13680         changed.
13681         (main): Call diagnostic_initialize.  Register delete_temp_files
13682         with atexit.  Use seen_error to test for errors.
13683         * gcc.h: Include diagnostic-core.h.
13684         (fatal_error, error, warning): Remove.
13685         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
13686         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
13687         (gcc.o): Update dependencies.
13689 2010-05-28  Jeff Law  <law@redhat.com>
13691         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
13692         functions.
13693         * ira.h (ira_bad_reload_regno): Declare
13694         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
13696         * ira-color.c (update_curr_costs): Free updated hard reg costs.
13697         (ira_reassign_conflict_allocnos): Remove bogus asserts.
13698         (allocno_reload_assign): Likewise.
13700 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
13702         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
13703         build1_stat.
13705 2010-05-28  Richard Guenther  <rguenther@suse.de>
13707         PR lto/44312
13708         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
13709         Stream fixed-point constants mode.
13710         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
13711         and TYPE_PRECISION.
13712         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
13713         Stream fixed-point constants mode.
13714         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
13715         and TYPE_PRECISION.
13717 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
13719         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
13720         only place it was called from.
13721         (number_of_latch_executions): Do not return chrec_dont_know when the
13722         may_be_zero is a runtime condition: instead, return a COND_EXPR
13723         including the may_be_zero condition.
13724         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
13725         of nb_iterations.
13726         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
13727         COND_EXPRs.
13729 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
13731         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
13732         generate COND_EXPRs for degenerate_phi_result.
13734 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
13736         PR middle-end/44293
13737         * tree-if-conv.c (if_convertible_loop_p): Check the
13738         if-convertibility of phi nodes in non predicated BBs.
13740 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13742         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
13744 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13746         PR driver/15303
13747         * gcc.c (inform, warning, inform): New functions.
13748         (fatal_ice): Rename to internal_error; change cmsgid parameter to
13749         gmsgid.  All callers changed.
13750         (notice): Rename to fnotice; add parameter fp.  All callers changed.
13751         (fatal_error): Rename to fatal_signal.  All users changed.
13752         (fatal): Rename to fatal_error; change cmsgid parameter to
13753         gmsgid.  All callers changed.
13754         (process_command): Use warning instead of error for warnings.
13755         (end_going_arg): Don't use _() around argument of error.
13756         (do_spec_1): Use inform for message from %n specs.  Use warning
13757         instead of error for warnings.
13758         (main): Use inform for comparison messages.  Use warning for
13759         message about unused linker input.
13760         (error): Increment error_count.  Print "error: ".
13761         * gcc.h (fatal): Change to fatal_error.
13762         (warning): Declare.
13763         * config/darwin-driver.c (darwin_default_min_version): Use warning
13764         instead of fprintf for warnings.
13765         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
13767 2010-05-28  Julian Brown  <julian@codesourcery.com>
13769         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
13770         (*thumb2_addsi3_compare0_scratch): New.
13771         * config/arm/constraints.md (Pv): New.
13772         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
13773         for ARM mode only.
13774         (*addsi3_compare0_scratch): Likewise.
13776 2010-05-28  Jan Hubicka  <jh@suse.cz>
13778         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
13779         check.
13780         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
13781         only on local statics.
13783 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
13785         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
13787 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
13789         PR bootstrap/44314
13790         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
13791         (OPTION_GLIBC): Define.
13793 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
13795         PR debug/41048
13796         * dwarf2out.c (double_int_type_size_in_bits): New function.
13797         (round_up_to_align): Change first argument and return value to
13798         double_int.
13799         (field_byte_offset): Work internally on double_ints.
13801         PR target/43636
13802         * builtins.c (expand_movstr): Use a temporary pseudo instead
13803         of target even when target is not NULL and not const0_rtx, but
13804         fails movstr predicate.
13805         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
13807 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
13809         * final.c (rest_of_clean_state): Use %m in errors instead of
13810         strerror (errno).
13811         * gengtype.c (read_input_list, close_output_files): Use xstrerror
13812         instead of strerror.
13813         * toplev.c (process_options): Use %m in errors instead of strerror
13814         (errno).
13815         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
13816         (errno).
13818 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
13820         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
13821         (ix86_canonical_va_list_type): Make static.  Add declaration.
13822         (ix86_enum_va_list): Make static.  Reindent.
13823         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
13824         (ix86_canonical_va_list_type): Ditto.
13825         (ix86_enum_va_list): Ditto.
13827 2010-05-28  Richard Guenther  <rguenther@suse.de>
13829         * lto-wrapper.c (run_gcc): With -save-temps generate a
13830         user-visible ltrans filename.  Fixup ltrans unit numbering.
13832 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
13834         * c-common.c (c_common_nodes_and_builtins): Replace use
13835         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
13836         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
13837         to ix86_enum_va_list.
13838         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
13839         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
13840         (TARGET_ENUM_VA_LIST_P): Add hook description.
13841         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
13842         * target.h (gcc_target): Add enum_va_list hook.
13844         PR bootstrap/44299
13845         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
13846         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
13847         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
13849 2010-05-28  Alan Modra  <amodra@gmail.com>
13851         PR target/44266
13852         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
13853         emit_library_call machinery to set up __tls_get_addr calls.
13855 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13857         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
13859 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
13861         Revert fix for PR c++/44188
13862         * c-common.c (is_typedef_decl): Revert the moving of  this
13863         definition ...
13864         * tree.c (is_typedef_decl): ... here.
13865         (typdef_variant_p): Revert the moving of this  definition
13866         here from gcc/cp/tree.c.
13867         * c-common.h (is_typedef_decl): Revert the moving of this
13868         declaration ...
13869         * tree.h (is_typedef_decl): ... here.
13870         (typedef_variant_p): Revert the moving of this  declaration here
13871         from gcc/cp/cp-tree.h
13872         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
13873         (gen_tagged_type_die): Revert the splitting out of ...
13874         (gen_type_die_with_usage): ... this function. Revert the anonymous
13875         tagged type handling.
13876         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
13877         typedefs naming anonymous tagged types.
13879 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
13881         * config/rs6000/rs6000-modes.def (PSImode): Delete.
13883 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
13885         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
13886         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
13887         throughout.
13888         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
13889         "xer" to "ca".
13890         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
13891         XER_REGS to CA_REGS throughout.
13892         * config/rs6000/rs6000.h: Same.
13893         (ADDITIONAL_REGISTER_NAMES): Add "xer".
13894         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
13895         that mode_iterator "P" is the size for arithmetic carries as well.
13896         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
13898 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
13900         PR bootstrap/44255
13901         * combine.c (struct rtx_subst_pair): Define unconditionally.
13902         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
13903         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
13904         Call make_compound_operation on pair->to.
13905         (propagate_for_debug): Don't call make_compound_operation here.
13906         Always use simplify_replace_fn_rtx.
13908 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
13910         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
13911         * config/xtensa/xtensa.c (override_options): Check
13912           TARGET_FORCE_NO_PIC and set flag_pic.
13913         * config/xtensa/xtensa.opt: Document -mforce-no-pic
13915 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
13917         PR bootstrap/44299
13918         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
13919         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
13921 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
13923         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
13924         toplev.h.
13925         * diagnostic.c: Don't include toplev.h.
13926         (progname): Define.  Moved from toplev.c.
13927         (seen_error): New function.
13928         * diagnostic.h: Include diagnostic-core.h.
13929         (diagnostic_t, emit_diagnostic): Don't declare here.
13930         * toplev.c (progname): Move to toplev.c.
13931         (emit_debug_global_declarations, compile_file, finalize,
13932         do_compile, toplev_main): Use seen_error.
13933         * toplev.h: Include diagnostic-core.h.
13934         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
13935         internal_error, warning, warning_at, error, error_n, error_at,
13936         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
13937         verbatim, fnotice, progname): Move to diagnostic-core.h.
13938         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
13939         (expand_builtin_expect): Use seen_error.
13940         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
13941         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
13942         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
13943         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
13944         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
13945         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
13946         errorcount for errors.
13947         * c-opts.c (c_common_finish): Use seen_error.
13948         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13949         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
13950         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
13951         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
13952         (get_coverage_counts): Use seen_error.
13953         * dwarf2out.c (dwarf2out_finish): Use seen_error.
13954         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
13955         gimplify_body): Use seen_error.
13956         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
13957         * ipa-pure-const.c (gate_pure_const): Use seen_error.
13958         * ipa-reference.c (gate_reference): Use seen_error.
13959         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
13960         * lambda-code.c: Include diagnostic-core.h instead of
13961         diagnostic.h.
13962         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13963         * lto-compress.c: Include diagnostic-core.h instead of
13964         diagnostic.h.
13965         * lto-section-in.c: Include diagnostic-core.h instead of
13966         diagnostic.h.
13967         * lto-streamer-out.c: Include diagnostic-core.h instead of
13968         diagnostic.h.
13969         * lto-streamer.c: Include diagnostic-core.h instead of
13970         diagnostic.h.
13971         (gate_lto_out): Use seen_error.
13972         * matrix-reorg.c: Include diagnostic-core.h instead of
13973         diagnostic.h.
13974         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
13975         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
13976         (gate_expand_omp, lower_omp_1): Use seen_error.
13977         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
13978         (rest_of_decl_compilation, rest_of_type_compilation,
13979         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
13980         * tree-cfg.c (label_to_block_fn): Use seen_error.
13981         * tree-inline.c (optimize_inline_calls): Use seen_error.
13982         * tree-mudflap.c (mudflap_finish_file): Use
13983         seen_error.
13984         * tree-optimize.c (gate_all_optimizations,
13985         gate_all_early_local_passes, gate_all_early_optimizations): Use
13986         seen_error.
13987         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
13988         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
13989         (varpool_remove_unreferenced_decls,
13990         varpool_assemble_pending_decls): Use seen_error.
13991         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
13992         (TOPLEV_H, DIAGNOSTIC_H): Update.
13993         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
13994         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
13995         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
13996         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
13997         coverage.o, lambda-code.o): Update dependencies.
13999 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
14001         PR c++/44188
14002         * c-common.c (is_typedef_decl): Move this definition ...
14003         * tree.c (is_typedef_decl): ... here.
14004         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
14005         * c-common.h (is_typedef_decl): Move this declaration ...
14006         * tree.h (is_typedef_decl): ... here.
14007         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
14008         * dwarf2out.c (is_naming_typedef_decl): New function.
14009         (gen_tagged_type_die): Split out of ...
14010         (gen_type_die_with_usage): ... this function. When an anonymous
14011         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
14012         is emitted for the typedef.
14013         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
14014         anonymous tagged types.
14016 2010-05-27  Jason Merrill  <jason@redhat.com>
14018         * print-tree.c (debug_vec_tree): New fn.
14019         (print_vec_tree): New fn.
14020         * tree.h: Declare them.
14021         * gdbinit.in (pvt): New command.
14023         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
14025         * gdbinit.in (pdd): New command.
14027 2010-05-27  Jan Hubicka  <jh@suse.cz>
14029         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
14030         (update_caller_keys): Return early if there are no callers;
14031         only update fibheap when decresing the key.
14032         (update_callee_keys): Avoid recursion.
14033         (decide_inlining_of_small_functions): When badness does not match;
14034         re-insert into fibheap.
14036 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
14038         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
14039         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
14040         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
14041         (ALL_HOST_OBJS): Now a union of the above two.
14042         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
14043         all files in ALL_HOST_FRONTEND_OBJS.
14044         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
14046         * c-common.c: Pretend to be a backend file by undefining
14047         IN_GCC_FRONTEND (still need rtl.h here).
14049 2010-05-27  Jan Hubicka  <jh@suse.cz>
14051         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
14052         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
14054 2010-05-27  Jan Hubicka  <jh@suse.cz>
14056         * sched-ebb.c: Rename struct deps to struct deps_desc.
14057         * ddg.c: Likewise.
14058         * sel-sched-ir.c: Likewise.
14059         * sched-deps.c: Likewise.
14060         * sched-int.h: Likewise.
14061         * sched-rgn.c: Likewise.
14063 2010-05-27  Jon Beniston  <jon@beniston.com>
14065         PR 43726
14066         * config/lm32/lm32.h: Remove definition of
14067         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
14069 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14071         PR lto/44230
14072         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
14074 2010-05-27  Richard Guenther  <rguenther@suse.de>
14076         PR tree-optimization/44284
14077         * tree-vect-stmts.c (vectorizable_assignment): Handle
14078         sign-changing conversions as simple copy.
14080 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14082         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
14083         Bionic C library.
14084         (__gthread_active_p): Check for pthread_create if compiling against
14085         Bionic C library.
14087 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14089         Support compilation for Android platform.  Reimplement -mandroid.
14091         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
14092         (*android*): Set ANDROID_DEFAULT.
14093         (arm*-*-linux*): Include linux-android.h.
14094         (arm*-*-eabi*): Don't include previous -mandroid implementation.
14095         * config/arm/eabi.h: Remove, move Android-specific parts ...
14096         * config/linux-android.h: ... here.  New file.
14097         * config/arm/eabi.opt: Rename to ...
14098         * config/linux-android.opt: ... this.
14099         (mandroid): Allow -mno-android option.  Initialize based on
14100         ANDROID_DEFAULT.
14101         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
14102         Move logic to corresponding LINUX_TARGET_* macros.
14103         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
14104         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
14105         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
14106         Android definitions.
14107         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
14108         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
14109         Document.
14111 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14113         Add support for Bionic C library
14115         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
14116         macro.
14117         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
14118         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
14120         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
14121         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
14122         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
14123         to support multiple C libraries.  Handle Bionic.
14124         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
14125         (BIONIC_DYNAMIC_LINKER64): Define.
14126         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
14127         Update.
14128         (TARGET_HAS_SINCOS): Enable for Bionic.
14130         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
14131         the last option specified on command line take effect.
14132         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
14133         (mbionic): New.
14134         (mglibc, muclibc): Update.
14136         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
14137         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
14138         DEFAULT_LIBC.
14140         * doc/invoke.texi (-mglibc, -muclibc): Update.
14141         (-mbionic): Document.
14143 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14145         * c-common.h (c_register_addr_space): Add prototype.
14146         (ADDR_SPACE_KEYWORD): Remove.
14147         * c-common.c (c_register_addr_space): New function.
14148         (c_addr_space_name): Reimplement.
14149         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
14151         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
14152         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
14154         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
14155         Remove TARGET_ADDR_SPACE_KEYWORDS.
14157 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
14159         * input.c: New file.
14160         * input.h (main_input_filename): Move declaration to toplev.h.
14161         * toplev.c (input_location, line_table): Move to input.c
14162         * toplev.h (main_input_filename): Move declaration from input.h.
14163         * tree.c (expand_location): Move to input.c.
14164         * Makefile.in (OBJS-common): Add input.o.
14165         (input.o): Add dependencies.
14167 2010-05-27  Richard Guenther  <rguenther@suse.de>
14169         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
14170         for non-existant files.
14171         (fork_execute): Mark args_name file as deleted.
14173 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
14175         PR bootstrp/44287
14176         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
14177         (narrow_signed_type): Likewise.
14179 2010-05-26  Jan Hubicka  <jh@suse.cz>
14181         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
14182         edge only when checking is enabled; check using former_clone_of;
14183         check inline clones too.
14184         (cgraph_materialize_clone): Record former_clone_of pointer.
14185         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
14186         combining redirections; dump args_to_skip bitmap
14187         (cgraph_materialize_all_clones): Do no redirection here.
14188         * ipa-inline.c (inline_transform): Do redirection here.
14189         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
14190         cheking only).
14192 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14194         * config/avr/avr-c.c: Do not include regs.h.
14195         Include cpplib.h for cpp_define and tree.h for c-common.h.
14196         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
14197         * config/avr/t-avr: Fix dependencies for avr-c.o.
14199 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14201         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
14202         string instead of SYMBOL_REF rtx.
14203         * rtl.h (set_stack_check_libfunc): Move prototype from here...
14204         * libfuncs.h: ...to here.  Adjust for explow.c change.
14206 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14208         * pretty-print.c: Don't include ggc.h.
14209         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
14210         (identifier_to_locale): Use them for allocation.
14211         * pretty-print.h (identifier_to_locale_alloc,
14212         identifier_to_locale_free): Declare.
14213         * toplev.c (alloc_for_identifier_to_locale): New.
14214         (general_init): Set identifier_to_locale_alloc and
14215         identifier_to_locale_free.
14216         * Makefile.in (pretty-print.o): Update dependencies.
14218 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14220         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
14221         pointer types if they have different alignment or mode.
14223 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
14225         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14226         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14227         * config/sparc/sparc-protos.h (function_value): Remove declaration.
14228         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
14229         sparc_function_value_regno_p): New functions.
14230         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14231         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14232         (function_value): Rename to...
14233         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
14234         argument to 'outgoing'.
14235         (function_arg_record_value, function_arg_union_value,
14236         function_arg_vector_value): Update comment.
14238 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14240         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
14241         (fde_needed_for_eh_p): New predicate.
14242         (output_call_frame_info): Use it throughout to decide whether FDEs
14243         are needed for EH purpose.
14244         (dwarf2out_begin_prologue): Reorder assignments.
14246 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14248         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
14249         special case loop->header.
14250         (is_predicated): New.
14251         (if_convertible_loop_p): Call it.
14253 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14255         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
14256         iterator in parameter.  Do not generate code during the analysis.
14257         (tree_if_convert_cond_stmt): Removed.
14258         (tree_if_convert_stmt): Removed.
14259         (predicate_bbs): New.
14260         (if_convertible_loop_p): Call predicate_bbs.
14261         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
14262         now contains all the analysis part.
14264 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14266         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
14267         statements in the analysis part.
14268         (tree_if_convert_stmt): Update comment.
14269         (remove_conditions_and_labels): New.
14270         (combine_blocks): Call remove_conditions_and_labels.
14271         (tree_if_conversion): Update comment.
14273 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14275         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
14276         than 2 predecessors or more than 2 successors.
14278 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14280         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
14281         of loops in which the data dependence analysis fails.
14283 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14285         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
14286         CDI_POST_DOMINATORS.
14287         (tree_if_conversion): Same.
14289 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14291         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
14293 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
14295         * tree-if-conv.c: Update copyright years.  Fix comments.
14296         Fix indentation.
14298 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
14300         * builtin-types.def (BT_INT128): New primitive type.
14301         (BT_UINT128): Likewise.
14302         * c-common.c (c_common_r): Add __int128 keyword.
14303         (c_common_type_for_size): Handle __int128.
14304         (c_common_type_for_mode): Likewise.
14305         (c_common_signed_or_unsigned_type): Likewise.
14306         (c_common_nodes_and_builtins): Add builtin type
14307         if target supports 128-bit integer scalar.
14308         * c-common.h (enum rid): Add RID_INT128.
14309         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
14310         if target supports 128-bit integer scalar.
14311         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
14312         (finish_declspecs): Likewise.
14313         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
14314         (c_token_starts_declspecs): Likewise.
14315         (c_parser_declspecs): Likewise.
14316         (c_parser_attributes): Likewise.
14317         (c_parser_objc_selector): Likewise.
14318         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
14319         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
14320         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
14321         * tree.c (make_or_reuse_type): Likewise.
14322         (make_unsigned_type): Likewise.
14323         (build_common_tree_nodes_2): Likewise.
14324         * tree.h (enum integer_type_kind): Add itk_int128 and
14325         itk_unsigned_int128.
14326         (int128_integer_type_node): New define.
14327         (int128_unsigned_type_node): New define.
14328         * doc/extend.texi: Add documentation about __int128 type.
14330 2010-05-26  Richard Guenther  <rguenther@suse.de>
14332         * tree-ssa-sccvn.c (copy_nary): Adjust.
14333         (copy_phis): Rename to ...
14334         (copy_phi): ... this.  Adjust.
14335         (copy_references): Rename to ...
14336         (copy_reference): ... this.  Adjust.
14337         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
14338         result into the valid table.
14340 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14342         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
14343         insn-config.h, insn-codes.h, recog.h, and optabs.h.
14345 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14347         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
14349 2010-05-26  Richard Guenther  <rguenther@suse.de>
14351         * opts.c (common_handle_option): Handle OPT_Ofast.
14353 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
14355         * diagnostic.c: Don't include opts.h.
14356         (permissive_error_option): Define.
14357         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
14358         for classify_diagnostic.  Don't use memset for
14359         classify_diagnostic.  Initialize new and recently added fields.
14360         (diagnostic_classify_diagnostic): Use context->n_opts instead of
14361         N_OPTS.
14362         (diagnostic_report_diagnostic): Pass context parameter to
14363         diagnostic_report_warnings_p.  Use option_enabled and option_name
14364         hooks from context.
14365         (emit_diagnostic): Use permissive_error_option.
14366         (permerror): Likewise.
14367         * diagnostic.h: Don't include options.h.
14368         (struct diagnostic_context): Add n_opts, opt_permissive,
14369         inhibit_warnings, warn_system_headers, option_enabled and
14370         option_name fields.  Change classify_diagnostic to a pointer.
14371         * opts-diagnostic.h: New file.
14372         * opts.c: Include opts-diagnostic.h.
14373         (common_handle_option): Set global_dc fields for -Wfatal-errors,
14374         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
14375         (option_name): New function.
14376         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
14377         (c_common_handle_option): Set global_dc->permissive for
14378         -fpermissive.
14379         * c-common.c (c_cpp_error): Save and restore
14380         global_dc->warn_system_headers, not variable warn_system_headers.
14381         * toplev.c: Include opts-diagnostic.h.
14382         (general_init): Update call to diagnostic_initialize.  Set
14383         global_dc->show_column, global_dc->option_enabled and
14384         global_dc->option_name.
14385         (process_options): Don't set global_dc fields here.
14386         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
14387         (diagnostic.o, opts.o, toplev.o): Update dependencies.
14389 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14391         * config/picochip/picochip.md (movsi): Split a movsi from a
14392         const after reload.
14394 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14396         * ggc-zone.c: Update copyright year.
14397         (poison_region): Mark memory for Valgrind as undefined before
14398         memset () call and inaccessible afterwards.
14399         (ggc_pch_total_size): Change type of i to int.
14401 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14403         * ggc-common.c (ggc_free_overhead): Allow empty slot.
14405 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14407         * ggc-common.c: Update copyright year.
14408         (ggc_rlimit_bound): Remove prototype.  Compile only if
14409         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
14410         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
14411         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
14412         (ggc_min_heapsize_heuristic): Likewise.
14414 2010-05-26  Richard Guenther  <rguenther@suse.de>
14416         PR rtl-optimization/44164
14417         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
14418         no-common access-path disambiguation.
14419         (indirect_ref_may_alias_decl_p): Adjust.
14420         (indirect_refs_may_alias_p): Likewise.
14421         (refs_may_alias_p_1): Likewise.
14423 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14425         * c-typeck.c: Do not include expr.h.
14427 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
14429         * rtl.h (decl_default_tls_model): Move prototype from here...
14430         * output.h: ...to here.
14431         * c-decl.c: Do not include rtl.h.
14432         * c-pragma.c: Likewise.
14433         * c-parser.c: Likewise.
14434         * c-gimplify.c: Likewise.  And also not hard-reg-set.
14435         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
14436         FIXME note for it.  Add a FIXME note for expr.h.
14437         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
14438         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
14439         defined.
14441 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
14443         PR target/44199
14444         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
14445         or total_size is larger than red zone size for non-V4 ABI, emit a
14446         stack_tie resp. frame_tie insn before stack pointer restore.
14447         * config/rs6000/rs6000.md (frame_tie): New insn.
14449 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14451         * function.h (struct function): Add can_throw_non_call_exceptions bit.
14452         * lto-streamer-in.c (input_function): Stream it in.
14453         * lto-streamer-out.c (output_function): Stream it out.
14454         * function.c (allocate_struct_function): Set it.
14455         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
14456         for flag_non_call_exceptions.
14457         * cfgbuild.c (control_flow_insn_p): Likewise.
14458         (make_edges): Likewise.
14459         * cfgexpand.c (expand_stack_alignment): Likewise.
14460         * combine.c (distribute_notes): Likewise.
14461         * cse.c (cse_extended_basic_block): Likewise.
14462         * except.c (insn_could_throw_p): Likewise.
14463         * gcse.c (simple_mem): Likewise.
14464         * ipa-pure-const.c (check_call): Likewise.
14465         (check_stmt ): Likewise.
14466         * lower-subreg.c (lower-subreg.c): Likewise.
14467         * optabs.c (emit_libcall_block): Likewise.
14468         (prepare_cmp_insn): Likewise.
14469         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
14470         * postreload.c (rest_of_handle_postreload): Likewise.
14471         * reload1.c (reload_as_needed): Likewise.
14472         (emit_input_reload_insns): Likewise.
14473         (emit_output_reload_insns): Likewise.
14474         (fixup_abnormal_edges): Likewise.
14475         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
14476         * store-motion.c (find_moveable_store): Likewise.
14477         * tree-eh.c (stmt_could_throw_p): Likewise.
14478         (tree_could_throw_p): Likewise.
14479         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14480         * config/arm/arm.c (arm_expand_prologue): Likewise.
14481         (thumb1_expand_prologue): Likewise.
14482         * config/rx/rx.md (cbranchsf4): Likewise.
14483         (cmpsf): Likewise.
14484         * config/s390/s390.c (s390_emit_prologue): Likewise.
14485         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
14486         (inline_forbidden_into_p): New predicate.
14487         (expand_call_inline): Use it to forbid inlining.
14488         (tree_can_inline_p): Likewise.
14490 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
14492         * config/i386/i386-c.c: Do not include rtl.h.
14493         * config/i386/t-i386: Update dependencies.
14495 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
14497         * attribs.c: Do not include rtl.h.
14498         * Makefile.in: Update dependencies.
14500 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
14502         * double-int.h (double_int_and): New.
14503         * combine.c (try_combine): Clean up, use double_int_* and
14504         immed_double_int_const functions.
14506 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14508         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
14509         stderr to /dev/null instead of grep -q.
14510         * configure: Regenerate.
14512 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
14514         * Makefile.in (EXCEPT_H): Fix typo.
14516 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
14518         * ira-build.c (update_conflict_hard_reg_costs): New.
14519         (ira_build): Call update_conflict_hard_reg_costs.
14521 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
14523         PR debug/41371
14524         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
14525         ENABLE_CHECKING.
14526         (intersect_loc_chains): Walk the s2var's loc_chain together
14527         with s1node chain as long as the locations are equal, don't
14528         call find_loc_in_1pdv in that case.
14530         PR debug/42801
14531         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
14532         (copy_bind_expr): ... instead of here.
14533         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
14534         if the block hasn't been remapped.
14535         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
14536         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
14538 2010-05-25  Richard Guenther  <rguenther@suse.de>
14540         PR middle-end/44069
14541         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
14542         out-of-bounds array accesses.
14544 2010-05-25  Richard Guenther  <rguenther@suse.de>
14546         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
14547         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
14548         (run_gcc): Re-organize to make cleanup easier.
14550 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14552         * config/s390/s390.c (optimization_options): Fix and move the
14553         flag_prefetch_loop_arrays override ...
14554         (override_options): ... here.
14556 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
14558         * diagnostic.c: Don't include plugin.h.
14559         (diagnostic_report_diagnostic): Don't handle plugins specially
14560         here.  Pass context to internal_error callback.
14561         * diagnostic.h (struct diagnostic_context): Add context parameter
14562         to internal_error callback.
14563         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
14564         * plugin.h (struct diagnostic_context): Declare.
14565         (warn_if_plugins, plugins_internal_error_function): Declare.
14566         * toplev.c (general_init): Set global_dc->internal_error.
14567         * Makefile.in (diagnostic.o): Update dependencies.
14569 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
14571         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
14572         * config/rs6000/t-darwin64: New.
14573         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
14574         build crt2.
14576 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
14578         PR 44203
14579         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
14580         match the original (and intended) behaviour before r159557.  This
14581         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
14582         in two ways.
14584 2010-05-25  Richard Guenther  <rguenther@suse.de>
14586         * doc/invoke.texi: Document -Ofast.
14587         * target.h (struct gcc_target): Add handle_ofast.
14588         * target-def.h (TARGET_HANDLE_OFAST): Add.
14589         (TARGET_INITIALIZER): Adjust.
14590         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
14591         * common.opt (Ofast): Add.
14593 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
14595         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
14596         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
14598 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
14600         PR target/43610
14601         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
14602         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
14603         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
14604         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
14606 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
14608         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
14609         DW_OP_minus with negated offset instead of DW_OP_plus.
14610         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
14612 2010-05-25  Wei Guozhi  <carrot@google.com>
14614         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
14615         tst instruction and a new alternative.
14616         * config/arm/constraints.md (Pu): New constraint.
14618 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
14620         * function.c (assign_stack_local_1): Initialize variable
14621         to avoid warning when bootstrapping at -O3.
14623 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
14625         * configure.ac (all_lang_makefiles): Remove everything related to it.
14626         * configure: Regenerate.
14627         * Makefile.in: Fix reference to ada Make-lang.in.
14628         Remove support for LANG_MAKEFILES.
14630 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
14631             Sandra Loosemore  <sandra@codesourcery.com>
14633         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
14634         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
14635         description.  Add arm_neon_fp16_ok.
14636         (Add Options): Add arm_neon and arm_neon_fp16.
14638 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
14640         * diagnostic.c: Don't include flags.h.
14641         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
14642         context parameters.  Check flags in the context passed as a parameter.
14643         (diagnostic_build_prefix): Add context parameter.  Check
14644         show_column flag in context.
14645         (diagnostic_action_after_output): Check fatal_errors flag in context.
14646         (diagnostic_report_current_module): Check show_column flag in context.
14647         (default_diagnostic_starter): Update call to
14648         diagnostic_build_prefix.
14649         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
14650         (emit_diagnostic): Pass context to permissive_error_kind.
14651         (permerror): Pass context to permissive_error_kind.
14652         * diagnostic.h (struct diagnostic_context): Add show_column,
14653         pedantic_errors, permissive and fatal_errors fields.
14654         (diagnostic_build_prefix): Update prototype.
14655         * langhooks.c
14656         * toplev.c (process_options): Set flags in global_dc from
14657         flag_show_column, flag_pedantic_errors, flag_permissive,
14658         flag_fatal_errors.
14659         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
14660         to diagnostic_build_prefix.
14661         * Makefile.in (diagnostic.o): Update dependencies.
14663 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14665         * config/i386/ia32intrin.h (__crc32q): Define only if
14666         __SSE4_2__ is defined.
14668 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
14670         PR target/44132
14671         PR middle-end/43602
14672         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
14673         DECL_VISIBILITY_SPECIFIED.
14674         (emutls_decl): Set DECL_PRESERVE_P and copy
14675         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
14676         (emutls_finalize_control_var): New callback.
14677         (emutls_finish): Finalize emutls control variables.
14678         * toplev.c (compile_file): Move the call to emutls_finish ()
14679         before varpool_assemble_pending_decls ().
14681 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
14683         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
14684         added to the preprocessor condition.
14686 2010-05-24  Paul Brook  <paul@codesourcery.com>
14688         * gengtype-lex.l: Add HARD_REG_SET.
14689         * expr.c (expand_expr_real_1): Record writes to hard registers.
14690         * function.c (rtl_data): Add asm_clobbers.
14691         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
14692         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
14693         Use crtl->asm_clobbers.
14695 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14697         * doc/makefile.texi (Makefile): Mention stages 'profile'
14698         and 'feedback' for profiledbootstrap.
14700 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14702         PR target/44245
14703         * config/i386/i386.c (def_builtin): Properly check
14704         OPTION_MASK_ISA_64BIT.
14706 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
14708         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
14709         typedefs with different but compatible types.  Allow duplicate
14710         typedefs with the same type except for pedantic non-C1X, but give
14711         warning for variably modified types.
14712         * c-typeck.c (tagged_types_tu_compatible_p,
14713         function_types_compatible_p, type_lists_compatible_p,
14714         comptypes_internal): Add parameter different_types_p; set
14715         *different_types_p for different but compatible types.  All
14716         callers changed.
14717         (comptypes_check_different_types): New.
14718         * c-tree.h (comptypes_check_different_types): Declare.
14720 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
14722         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
14723         * jump.c: Include basic-block.h.
14724         * profile.c: Likewise.
14725         * tree-profile.c: Likewise.
14726         * coverage.c: Likewise.
14727         * basic-block.h (optimize_function_for_size_p): Move to function.h.
14728         (optimize_function_for_speed_p): Likewise.
14729         * function.h (optimize_function_for_size_p,
14730         optimize_function_for_speed_p): Moved here from basic-block.h.
14731         * Makefile.in: Update dependencies.
14733 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14735         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
14736         before calling make; allow override through $MAKE.
14737         * doc/invoke.texi (Optimize Options): Document override.
14739 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
14741         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
14742         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14743         (rs6000_mode_dependent_address_ptr): Make static.
14744         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14745         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
14746         Remove.
14748 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
14750         PR target/43869
14751         * config/i386/i386.c: Make sure that the correct regparm is passed.
14753 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
14755         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
14756         * sbitmap.c: ...to here to internalize sbitmap element access.
14757         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
14758         Explain why basic-block.h is included.
14759         * function.h: Include tm.h for CUMULATIVE_ARGS.
14760         * Makefile.in: Update dependencies.
14762 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
14764         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
14765         New core types.
14766         * sbitmap.h (struct sbitmap_def): Do not typedef here.
14767         * sbitmap.c: Include sbitmap.h.
14768         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
14769         hard-reg-set.h.  Split everything related to regsets out from here...
14770         * regset.h: ...to here.  New file.
14771         * df.h: Include regset.h and sbitmap.h.
14772         * tree-flow.h: Likewise.
14773         * cfgloop.h: Likewise.
14774         * except.h: Do not include sbitmap.h.  Include hashtab.h.
14775         * cgraph.h: Include vec.h and function.h.
14776         * reload.h (struct insn_chain): Change types of live_throughout
14777         and dead_or_set from regset_head to bitmap_head.
14778         (compute_use_by_pseudos): Be defined also if regset.h is not included.
14779         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
14780         spilled_regs from regset_head to bitmap_head to avoid dependency
14781         in regset.h.
14782         * sel-sched-ir.h: Include regset.h.
14783         * reload.c: Include df.h before reload.h.
14784         * caller-save.c: Likewise.
14785         * reload1.c: Likewise.
14786         * ira.c: Likewise.
14787         (mark_elimination): Update type of r to bitmap, consistent with
14788         DF_LR_IN.
14789         * dominance.c: Include bitmap.h.
14790         * modulo-sched.c: Include df.h.
14791         * cfganal.c: Include bitmap.h and sbitmap.h.
14792         * cfgbuild.c: Include sbitmap.h.
14793         * lcm.c: Include sbitmap.h.
14794         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
14795         * domwalk.c: Include sbitmap.h, exclude ggc.h.
14796         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
14797         * cselib.c: Include bitmap.h.
14798         * tree-optimize.c: Include regset.h.
14799         * stmt.c: Include bitmap.h.
14800         * Makefile.in: Update dependencies.
14802 2010-05-22  Jan Hubicka  <jh@suse.cz>
14804         * cgraph.h (struct varpool_node): Add same_comdat_group.
14805         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
14806         pointer.
14807         (output_varpool): Update call of lto_output_varpool_node.
14808         (input_varpool): Read same_comdat_group pointer.
14809         (input_varpool_1): Fixup same_comdat_group pointer.
14810         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
14811         group is needed, all are.
14812         * varpool.c (varpool_remove_node): Remove node from same comdat group
14813         linklist too.
14814         (varpool_analyze_pending_decls): Walk same comdat groups.
14816 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
14818         * rtl.h (union rtunion_def): Remove rt_bit member.
14819         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
14820         * print-rtl (print_rtx): Do not print the member.
14821         * gengtype.c (adjust_field_rtx_def): Do not handle it.
14822         * gengenrtl.c (type_from_format): Likewise.
14823         (accessor_from_format): Likewise.
14825 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
14827         * dbgcnt.c: Include toplev.h instead of errors.h.
14828         * ira-emit.c: Don't include errors.h.
14829         * ira.c: Include toplev.h instead of errors.h.
14830         * lto-compress.c: Include toplev.h instead of errors.h.
14831         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
14832         ira.o, dbgcnt.o): Update dependencies.
14834 2010-05-22  Richard Guenther  <rguenther@suse.de>
14836         * gimple.c (gimple_types_compatible_p): Check type qualifications
14837         before merging pointer to complete and pointer to incomplete type.
14838         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
14839         we use our own resolution algorithm.  The gold linker plugin
14840         doesn't do the job we want it to do here.
14842 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
14844         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14845         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14846         (sparc_mode_dependent_address_p): New function.
14848 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
14850         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
14852         * timevar.c: Do not include any core headers.
14853         (timevar_print): De-i18n-ize.
14854         (print_time): Likewise.
14855         * timevar.h (timevar_push, timevar_pop): Make inline functions.
14857 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
14859         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
14860         langhooks-def.h.
14861         (diagnostic_initialize): Initialize x_data not last_function.
14862         (diagnostic_report_current_function): Move to tree-diagnostic.c.
14863         (default_diagnostic_starter): Call
14864         diagnostic_report_current_module not
14865         diagnostic_report_current_function.
14866         (diagnostic_report_diagnostic): Initialize x_data not
14867         abstract_origin.
14868         (verbatim): Likewise.
14869         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
14870         x_data.
14871         (struct diagnostic_context): Change last_function to x_data.
14872         (diagnostic_auxiliary_data): Replace with
14873         diagnostic_context_auxiliary_data and
14874         diagnostic_info_auxiliary_data.
14875         (diagnostic_last_function_changed, diagnostic_set_last_function,
14876         diagnostic_report_current_function): Move to tree-diagnostic.h.
14877         (print_declaration, dump_generic_node, print_generic_stmt,
14878         print_generic_stmt_indented, print_generic_expr,
14879         print_generic_decl, debug_c_tree, dump_omp_clauses,
14880         print_call_name, debug_generic_expr, debug_generic_stmt,
14881         debug_tree_chain, default_tree_printer): Move to
14882         tree-pretty-print.h.
14883         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
14884         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
14885         gimple-pretty-print.h.
14886         * pretty-print.c: Don't include tree.h
14887         (pp_base_format): Don't handle %K here.
14888         (pp_base_tree_identifier): Move to tree-pretty-print.c.
14889         * pretty-print.h (text_info): Change abstract_origin to x_data.
14890         (pp_tree_identifier, pp_unsupported_tree,
14891         pp_base_tree_identifier): Move to tree-pretty-print.h.
14892         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
14893         tree-pretty-print.h: New files.
14894         * tree-pretty-print.c: Include tree-pretty-print.h.
14895         (percent_K_format): New.  Moved from pretty-print.c.
14896         (pp_base_tree_identifier): Move from pretty-print.c.
14897         * c-objc-common.c: Include tree-pretty-print.h.
14898         (c_tree_printer): Handle %K here.
14899         * langhooks.c: Include tree-diagnostic.h.
14900         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
14901         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
14902         (default_tree_printer): Handle %K using percent_K_format.
14903         (general_init): Use default_tree_diagnostic_starter.
14904         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
14905         (free_lang_data): Use default_tree_diagnostic_starter.
14906         * c-pretty-print.c: Include tree-pretty-print.h.
14907         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14908         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14909         * dwarf2out.c: Include tree-pretty-print.h.
14910         * except.c: Include tree-pretty-print.h.
14911         * gimple-pretty-print.c: Include tree-pretty-print.h and
14912         gimple-pretty-print.h.
14913         * gimplify.c: Include tree-pretty-print.h.
14914         * graphite-poly.c: Include tree-pretty-print.h and
14915         gimple-pretty-print.h.
14916         * ipa-cp.c: Include tree-pretty-print.h.
14917         * ipa-inline.c: Include gimple-pretty-print.h.
14918         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14919         * ipa-pure-const.c: Include gimple-pretty-print.h.
14920         * ipa-struct-reorg.c: Include tree-pretty-print.h and
14921         gimple-pretty-print.h.
14922         * ipa-type-escape.c: Include tree-pretty-print.h.
14923         * print-rtl.c: Include tree-pretty-print.h.
14924         * print-tree.c: Include gimple-pretty-print.h.
14925         * sese.c: Include tree-pretty-print.h.
14926         * tree-affine.c: Include tree-pretty-print.h.
14927         * tree-browser.c: Include tree-pretty-print.h.
14928         * tree-call-cdce.c: Include gimple-pretty-print.h.
14929         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14930         * tree-chrec.c: Include tree-pretty-print.h.
14931         * tree-data-ref.c: Include tree-pretty-print.h and
14932         gimple-pretty-print.h.
14933         * tree-dfa.c: Include tree-pretty-print.h.
14934         * tree-if-conv.c: Include tree-pretty-print.h and
14935         gimple-pretty-print.h.
14936         * tree-inline.c: Include tree-pretty-print.h.
14937         * tree-into-ssa.c: Include tree-pretty-print.h and
14938         gimple-pretty-print.h.
14939         * tree-nrv.c: Include tree-pretty-print.h.
14940         * tree-object-size.c: Include tree-pretty-print.h and
14941         gimple-pretty-print.h.
14942         * tree-outof-ssa.c: Include tree-pretty-print.h and
14943         gimple-pretty-print.h.
14944         * tree-parloops.c: Include tree-pretty-print.h and
14945         gimple-pretty-print.h.
14946         * tree-predcom.c: Include tree-pretty-print.h and
14947         gimple-pretty-print.h.
14948         * tree-scalar-evolution.c: Include tree-pretty-print.h and
14949         gimple-pretty-print.h.
14950         * tree-sra.c: Include tree-pretty-print.h.
14951         * tree-ssa-address.c: Include tree-pretty-print.h.
14952         * tree-ssa-alias.c: Include tree-pretty-print.h.
14953         * tree-ssa-ccp.c: Include tree-pretty-print.h and
14954         gimple-pretty-print.h.
14955         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
14956         * tree-ssa-copy.c: Include tree-pretty-print.h and
14957         gimple-pretty-print.h.
14958         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
14959         * tree-ssa-dce.c: Include tree-pretty-print.h and
14960         gimple-pretty-print.h.
14961         * tree-ssa-dom.c: Include tree-pretty-print.h and
14962         gimple-pretty-print.h.
14963         * tree-ssa-dse.c: Include gimple-pretty-print.h.
14964         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
14965         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
14966         * tree-ssa-live.c: Include tree-pretty-print.h and
14967         gimple-pretty-print.h.
14968         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
14969         gimple-pretty-print.h.
14970         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
14971         gimple-pretty-print.h.
14972         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
14973         gimple-pretty-print.h.
14974         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
14975         gimple-pretty-print.h.
14976         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
14977         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
14978         * tree-ssa-operands.c: Include tree-pretty-print.h and
14979         gimple-pretty-print.h.
14980         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
14981         gimple-pretty-print.h.
14982         * tree-ssa-pre.c: Include tree-pretty-print.h and
14983         gimple-pretty-print.h.
14984         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
14985         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
14986         gimple-pretty-print.h.
14987         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
14988         gimple-pretty-print.h.
14989         * tree-ssa-sink.c: Include gimple-pretty-print.h.
14990         * tree-ssa-ter.c: Include tree-pretty-print.h and
14991         gimple-pretty-print.h.
14992         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
14993         * tree-ssa.c: Include tree-pretty-print.h and
14994         gimple-pretty-print.h.
14995         * tree-stdarg.c: Include gimple-pretty-print.h.
14996         * tree-switch-conversion.c: Include gimple-pretty-print.h.
14997         * tree-tailcall.c: Include tree-pretty-print.h and
14998         gimple-pretty-print.h.
14999         * tree-vect-data-refs.c: Include tree-pretty-print.h and
15000         gimple-pretty-print.h.
15001         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
15002         gimple-pretty-print.h.
15003         * tree-vect-loop.c: Include tree-pretty-print.h and
15004         gimple-pretty-print.h.
15005         * tree-vect-patterns.c: Include gimple-pretty-print.h.
15006         * tree-vect-slp.c: Include tree-pretty-print.h and
15007         gimple-pretty-print.h.
15008         * tree-vect-stmts.c: Include tree-pretty-print.h and
15009         gimple-pretty-print.h.
15010         * tree-vectorizer.c: Include tree-pretty-print.h.
15011         * tree-vrp.c: Include tree-pretty-print.h and
15012         gimple-pretty-print.h.
15013         * value-prof.c: Include tree-pretty-print.h and
15014         gimple-pretty-print.h.
15015         * var-tracking.c: Include tree-pretty-print.h.
15016         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
15017         (tree-diagnostic.o): New dependencies.
15018         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
15019         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
15020         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
15021         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
15022         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
15023         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
15024         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
15025         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
15026         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
15027         tree-ssa-address.o, tree-ssa-loop-niter.o,
15028         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
15029         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
15030         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
15031         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
15032         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
15033         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
15034         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
15035         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
15036         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
15037         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
15038         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
15039         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
15040         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
15041         tree-switch-conversion.o, var-tracking.o, value-prof.o,
15042         cfgexpand.o, pretty-print.o): Update dependencies.
15044 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
15046         * tree-ssa-structalias.c: Remove tm_p.h from include.
15048 2010-05-21  Jeff Law  <law@redhat.com>
15050         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
15052 2010-05-21  Jason Merrill  <jason@redhat.com>
15054         * tree-eh.c (cleanup_is_dead_in): New.
15055         (lower_try_finally): Don't generate a dead cleanup region.
15056         (lower_cleanup): Likewise.
15058 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15060         PR debug/44223
15061         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
15062         unchain each use from the cyclic next_regno_use chain first.
15064 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15066         * real: Do not include gmp.h, mpfr.h, and mpc.h.
15067         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
15068         (real_value_negate, real_value_abs): New prototypes.
15069         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
15070         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
15071         new include file for interface between MPFR and REAL_VALUE_TYPE.
15072         * real.c: Include realmpfr.h.
15073         (real_arithmetic2): Remove legacy function.
15074         (real_value_negate): New.
15075         (real_value_abs): New.
15076         (mfpr_from_real, real_from_mpfr): Move from here...
15077         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
15078         * builtins.c: Include realmpfr.h.
15079         * fold-const.c: Include realmpfr.h.
15080         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
15081         (fold_negate_const): Likewise.
15082         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
15083         * toplev.c: Include realmpfr.h.
15084         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
15085         and real_value_negate.
15086         * fixed-value.c (check_real_for_fixed_mode): Likewise.
15087         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
15088         (vfp3_const_double_index): Likewise.
15089         (arm_print_operand): Likewise.
15090         * Makefile.in: Update dependencies.
15092 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15094         * config/s390/s390.c (override_options): Increase the default
15095         of max-completely-peel-times.
15097 2010-05-21  Julian Brown  <julian@codesourcery.com>
15098             Mark Mitchell  <mark@codesourcery.com>
15100         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
15101         sibling calls for Thumb-1.
15102         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
15103         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
15104         Thumb-2.
15105         (*call_insn, *call_value_insn): Don't use for Thumb-2.
15106         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
15107         for Thumb-2.
15108         (return): New expander.
15109         (*arm_return): New name for ARM return insn.
15110         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
15112 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
15114         * config.gcc (sparc64-*-rtems*): New target.
15116 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15118         * tree.c (build_function_decl_skip_args): Fix grammar.
15119         (build_function_type_list_1): Fix typos, adjust formatting.
15121 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
15123         * tree.h: Include real.h and fixed-value.h as basic datatypes.
15124         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
15125         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
15126         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
15127         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
15128         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
15129         tree-pretty-print.c, tree-loop-distribution.c,
15130         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
15131         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
15132         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
15133         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
15134         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
15135         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
15136         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
15137         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
15138         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
15139         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
15140         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
15141         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
15142         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
15143         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
15144         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
15145         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
15146         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
15147         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
15148         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
15149         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
15150         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
15151         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
15152         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
15153         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
15154         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
15155         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
15156         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
15157         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
15158         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
15159         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
15160         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
15161         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
15162         config/score/score7.c, config/score/score.c, config/arm/arm.c,
15163         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
15164         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
15165         config/bfin/bfin.c: Clean up redundant includes.
15166         * Makefile.in: Update accordingly.
15168 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
15170         PR middle-end/44204
15171         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
15172         statement has no arguments.
15174 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
15176         PR/44139
15177         * varasm.c (emutls_decl): Merge attributes to new decl.
15179 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
15181         PR middle-end/44101
15182         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
15183         around the uniquized constructor if its type requires a conversion.
15185 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
15187         PR debug/44205
15188         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
15189         at -O0 goto_locus of any of the incoming edges differs from
15190         goto_locus of outgoing edge, or gimple_location of any of the
15191         labels differs.
15193 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
15195         * ira.c (ira_non_ordered_class_hard_regs): Define.
15196         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
15197         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
15198         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
15199         cost of unaligned hard regs when allocating multi-reg pseudos.
15201 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
15203         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
15204         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
15205         for TARGET_NO_FLOAT.
15206         * config/mips/mips.c (mips_file_start): Expand conditional expression
15207         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
15208         (mips_override_options): Move -mno-float override -msoft-float and
15209         -mhard-float.
15210         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
15211         Condition(TARGET_SUPPORTS_NO_FLOAT).
15212         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
15213         __mips_no_float here.
15214         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
15215         (TARGET_SUPPORTS_NO_FLOAT): Define.
15216         * config/mips/sdemtk.opt: Delete.
15218 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
15220         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
15222 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
15224         PR target/43733
15225         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
15226         * configure: Regenerate.
15227         * config.in: Regenerate.
15228         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
15229         instead of sahf only for 64bit targets.
15231 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15233         PR debug/44178
15234         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
15235         setup_ref_regs for DEBUG_INSNs.
15237 2010-05-20  Jan Hubicka  <jh@suse.cz>
15239         PR middle-end/44197
15240         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
15242 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15244         PR bootstrap/43870
15245         * df-scan.c (df_ref_compare): Stabilize sort.
15247 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
15249         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
15250         argument.  Don't use DW_OP_piece if offset is non-zero,
15251         put offset into second DW_OP_bit_piece argument.
15252         (dw_sra_loc_expr): Adjust callers.  For memory expressions
15253         compute offset.
15255 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
15257         PR target/44202
15258         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
15259         settings for 16-bit-constant "addo" alternative.
15261 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
15263         * config/mips/mips-dsp.md (add<DSPV:mode>3,
15264         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
15266         PR target/43764
15267         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
15268         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
15269         Use it.
15271 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
15273         * diagnostic.c (FLOAT, FFS): Don't undefine.
15274         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
15275         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
15276         include ordering.
15278 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
15280         * combine.c (propagate_for_debug): Call make_compound_operation
15281         on the source value.
15282         (try_combine): When implementing a split chosen by find_split_point,
15283         either copy i2src or set it to null.  Assert that i2src is not null
15284         before substituting into CALL_INSN_FUNCTION_USAGE.
15286 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
15288         * double-int.h (double_int_ior): New function.
15289         * tree.h (build_int_cst_wide_type): Remove.
15290         * tree.c (build_int_cst_wide_type): Remove.
15291         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
15292         of build_int_cst_wide_type.
15293         * stor-layout.c (set_sizetype): (Ditto.).
15294         * dojump.c (do_jump): Use build_int_cstu instead of
15295         build_int_cst_wide_type.
15297 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15299         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
15300         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
15301         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
15302         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
15303         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
15304         propagate the 'data' argument to copy_tree_r.
15305         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
15306         Propagate 'data' argument to walk_tree.
15307         (copy_if_shared): New function.
15308         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
15309         (unmark_visited): New function.
15310         (unshare_body): Call copy_if_shared instead of doing it manually.
15311         (unvisit_body): Call unmark_visited instead of doing it manually.
15313 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
15315         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
15316         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
15317         * hooks.c: Likewise.
15318         * target-def.h (TARGET_FOLD_BUILTIN): Define to
15319         hook_tree_tree_int_treep_bool_null.
15320         * target.h (struct gcc_target): Update signature of fold_builtin
15321         field.
15322         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
15323         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
15324         instead of the call expression.
15325         (fold_builtin_call_array): Pass n and argarray directly.
15326         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
15327         consing a list.
15328         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
15329         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
15330         `i' and use it in place of `arity'.
15331         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
15332         Dereference `args' directly.
15333         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
15335 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15337         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15338         3dnow, sse3, sse2.
15339         (Directives): Document optional dg-require-effective-target
15340         selector.
15342 2010-05-19  Richard Guenther  <rguenther@suse.de>
15344         PR lto/44196
15345         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
15347 2010-05-19  Richard Guenther  <rguenther@suse.de>
15349         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
15350         * common.opt (fwhopr=): New.
15351         * opts.c (common_handle_option): Handle OPT_fwhopr.
15352         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
15353         * collect2.c (main): Match -fwhopr*.
15354         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
15355         Execute ltrans stage in parallel when jobs is bigger than 1.
15357 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15359         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15360         pentiumpro on Solaris 8/x86 with Sun as.
15361         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
15362         hidden alias bug.
15363         (gcc_cv_as_ix86_quad): Check for .quad directive.
15364         * configure: Regenerate.
15365         * config.in: Regenerate.
15366         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
15368 2010-05-19  Martin Jambor  <mjambor@suse.cz>
15370         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
15371         also for indirect edges.  Actual printing moved...
15372         (ipa_print_node_jump_functions_for_edge): ...here.
15373         (ipa_compute_jump_functions): Renamed to
15374         ipa_compute_jump_functions_for_edge and made static.
15375         (ipa_compute_jump_functions): New function.
15376         (make_edge_direct_to_target): Check if the number of arguments on
15377         the newly direct edge is the same as the number of parametrs of
15378         the callee.
15379         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
15380         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
15381         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15382         analysis functions unconditionally, call the new
15383         ipa_analyze_params_uses on the node instead of every edge.
15385 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
15387         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
15388         to tree.
15389         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
15390         also checks for a constant int vs.  non-constant but
15391         loop-invariant steps.
15392         (find_or_create_group): Change the sort algorithm to only consider
15393         steps that are constant ints.
15394         (idx_analyze_ref): Adopt code to handle a tree instead of a
15395         HOST_WIDE_INT for step.
15396         (gather_memory_references_ref): Handle tree instead of int and be
15397         prepared to see a NULL_TREE.
15398         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
15399         prefetches if the step cannot be calculated at compile time.
15400         (issue_prefetch_ref): Issue prefetches for non-constant but
15401         loop-invariant steps.
15403 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15405         Revert:
15406         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15408         * tree.h (build_call_list): Remove.
15409         * tree.c (build_call_list): Remove.
15411 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
15413         * tree.h (build_call_list): Remove.
15414         * tree.c (build_call_list): Remove.
15416 2010-05-18  Jan Hubicka  <jh@suse.cz>
15418         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
15420 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
15422         PR rtl-optimization/43332
15423         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
15425 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
15427         * tree.h (build_int_cstu): Implement as static inline.
15428         * tree.c (build_int_cstu): Remove function.
15429         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
15430         sign extended.
15432 2010-05-18  Richard Guenther  <rguenther@suse.de>
15434         PR lto/44143
15435         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
15436         (debug): Initialize from -save-temps.
15437         (collect_execute): Print command-line when verbose.
15438         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
15439         for ltrans invocation.  Produce -dumpbase flag again.
15440         (process_args): Remove.
15441         (main): Simplify.
15442         * collect2.c (maybe_run_lto_and_relink): Only pass object
15443         files to lto-wrapper.
15444         * gcc.c (LINK_COMMAND_SPEC): Likewise.
15446 2010-05-18  Jan Hubicka  <jh@suse.cz>
15448         * opts.c (decode_options): Do not disable whopr at ipa_cp.
15449         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
15451 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
15453         PR lto/44184
15454         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
15455         in a GIMPLE_ASM.
15456         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
15457         in a GIMPLE_ASM.
15459 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
15461         PR debug/41371
15462         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
15463         rtx_equal_p inline.
15465 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
15467         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
15468         lto-macho as lto_binary_reader.
15470         * darwin.c (darwin_asm_named_section): Do not add assembler comment
15471         after .section directive; just print it before the directive instead.
15473 2010-05-17  Jan Hubicka  <jh@suse.cz>
15475         * cgraph.c (cgraph_create_virtual_clone): Only check
15476         versionable_function_p when not in wpa and checking is enabled.
15477         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
15478         there are no more functions to materialize.
15480 2010-05-17  Jan Hubicka  <jh@suse.cz>
15482         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
15483         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
15484         New functions.
15485         (output_cgraph): Call output_cgraph_opt_summary.
15486         (input_cgrpah): Call input_cgraph_opt_summary.
15487         (output_cgraph_opt_summary_p, output_node_opt_summary,
15488         input_node_opt_summary, input_cgraph_opt_section): New functions.
15489         * lto-section-in.c (lto_section_name): Add cgraphopt.
15490         * tree-inline.c (tree_function_versioning): Handle parm_num.
15491         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
15492         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
15494 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
15496         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
15497         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
15498         the insn to prefetch ratio heuristic to loops with known trip count.
15500 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
15502         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
15503         (schedule_prefetches): Do not generate a prefetch if the unroll factor
15504         is far from what is required by the prefetch.
15506 2010-05-17  Jan Hubicka  <jh@suse.cz>
15508         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
15509         (ipcp_estimate_growth): Likewise.
15510         (ipcp_const_param_count): Likewise.
15511         (ipcp_insert_stage): Likewise.
15512         * ipa-prop.c (visit_load_for_mod_analysis): New function.
15513         (visit_store_addr_for_mod_analysis): Set used flag.
15514         (ipa_detect_param_modifications): Set used flag for SSE params;
15515         update use of walk_stmt_load_store_addr_ops.
15516         (ipa_print_node_params): Print used flag.
15517         (ipa_write_node_info): Stream used flag.
15518         (ipa_read_node_info): Likewise.
15519         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
15520         (ipa_is_param_used): New function.
15521         (lto_ipa_fixup_call_notes): Remove unused declaration.
15523 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15525         PR target/44074
15526         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
15527         * configure: Regenerate.
15528         * config.in: Regenerate.
15529         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
15530         !HAVE_AS_IX86_REP_LOCK_PREFIX.
15531         Don't emit whitespace.
15532         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
15533         (*rep_movsi): Likewise.
15534         (*rep_movsi_rex64): Likewise.
15535         (*rep_movqi): Likewise.
15536         (*rep_movqi_rex64): Likewise.
15537         (*rep_stosdi_rex64): Likewise.
15538         (*rep_stossi): Likewise.
15539         (*rep_stossi_rex64): Likewise.
15540         (*rep_stosqi): Likewise.
15541         (*rep_stosqi_rex64): Likewise.
15542         (*cmpstrnqi_nz_1): Use {%;} after repz.
15543         (*cmpstrnqi_nz_rex_1): Likewise.
15544         (*cmpstrnqi_1): Likewise.
15545         (*cmpstrnqi_rex_1): Likewise.
15546         (*strlenqi_1): Use {%;} after repnz.
15547         (*strlenqi_rex_1): Likewise.
15548         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
15549         (*sync_compare_and_swap<mode>): Likewise.
15550         (sync_double_compare_and_swap<mode>): Likewise.
15551         (*sync_double_compare_and_swapdi_pic): Likewise.
15552         (sync_old_add<mode>): Likewise.
15553         (sync_add<mode>): Likewise.
15554         (sync_sub<mode>): Likewise.
15555         (sync_<code><mode>): Likewise.
15557 2010-05-17  Martin Jambor  <mjambor@suse.cz>
15559         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
15560         otr_token and polymorphic.
15561         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
15562         (cgraph_clone_edge): Copy the above fields.
15563         * tree.c (get_binfo_at_offset): New function.
15564         * tree.h (get_binfo_at_offset): Declare.
15565         * ipa-prop.h (enum jump_func_type): Added known_type jump function
15566         type, reordered items, updated comments.
15567         (union jump_func_value): Added base_type field, reordered fields.
15568         (enum ipa_lattice_type): Moved down in the file.
15569         (struct ipa_param_descriptor): New field polymorphic.
15570         (ipa_is_param_polymorphic): New function.
15571         * ipa-prop.c: Include gimple.h and gimple-fold.h.
15572         (ipa_print_node_jump_functions): Print known type jump functions.
15573         (compute_complex_pass_through): Renamed to...
15574         (compute_complex_assign_jump_func): this.
15575         (compute_complex_ancestor_jump_func): New function.
15576         (compute_known_type_jump_func): Likewise.
15577         (compute_scalar_jump_functions): Create known type and complex ancestor
15578         jump functions.
15579         (ipa_note_param_call): New parameter polymorphic, set the corresponding
15580         flag in the call note accordingly.
15581         (ipa_analyze_call_uses): Renamed to...
15582         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
15583         variable var only in the block where it is used.
15584         (ipa_analyze_virtual_call_uses): New function.
15585         (ipa_analyze_call_uses): Likewise.
15586         (combine_known_type_and_ancestor_jfs): Likewise.
15587         (update_jump_functions_after_inlining): Implemented handling of a
15588         number of new jump function types combination.
15589         (print_edge_addition_message): Removed.
15590         (make_edge_direct_to_target): New function.
15591         (try_make_edge_direct_simple_call): Likewise.
15592         (try_make_edge_direct_virtual_call): Likewise.
15593         (update_call_notes_after_inlining): Renamed to...
15594         (update_indirect_edges_after_inlining): this.  Moved edge creation for
15595         indirect calls to try_make_edge_direct_simple_call, also calls
15596         try_make_edge_direct_virtual_call for virtual calls.
15597         (ipa_print_node_params): Changed the header message.
15598         (ipa_write_jump_function): Stream also known type jump functions.
15599         (ipa_read_jump_function): Likewise.
15600         (ipa_write_indirect_edge_info): Stream new fields in
15601         cgraph_indirect_call_info.
15602         (ipa_read_indirect_edge_info): Likewise.
15603         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
15604         GIMPLE_FOLD_H.
15606 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15608         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
15610 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
15612         * tree.h (CALL_EXPR_ARGS): Delete.
15613         (call_expr_arglist): Delete.
15614         * tree.c (call_expr_arglist): Delete.
15615         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
15616         targetm.fold_builtin.
15617         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
15618         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
15619         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
15620         arglist parameter.  Use CALL_EXPR_ARG.
15621         (picochip_expand_builtin_3op): Likewise.
15622         (picochip_expand_builtin_2opvoid): Likewise.
15623         (picochip_expand_array_get): Likewise.
15624         (picochip_expand_array_put): Likewise.
15625         (picochip_expand_array_testport): Likewise.
15626         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
15627         rather than arglist.
15628         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
15629         CALL_EXPR_ARGS.
15630         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
15631         than TREE_VALUE and TREE_CHAIN.
15632         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15633         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
15634         the arglist.
15636 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
15638         PR bootstrap/42347
15639         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
15640         to have no fallthru edge.
15642         PR middle-end/44102
15643         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
15644         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
15645         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
15646         add BARRIER after previous bb if needed.
15648 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
15650         * tree.c (build_function_type_list_1): Remove bogus assert condition.
15652 2010-05-17  Alan Modra  <amodra@gmail.com>
15654         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
15655         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
15656         with copy_reg rtx param.
15657         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
15658         Correct cases where code for ABI_V4 did not initialise the reg
15659         used to access frame.  Also leave frame_reg_rtx as sp for large
15660         frames that save no regs.
15662 2010-05-17  Martin Jambor  <mjambor@suse.cz>
15664         PR middle-end/44133
15665         * tree-sra.c (create_access_replacement): New parameter rename, mark
15666         the replaement for renaming only when it is true.
15667         (get_access_replacement): Pass true in the rename parameter of
15668         create_access_replacement.
15669         (get_unrenamed_access_replacement): New function.
15670         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
15671         replacement declaration from it.
15673 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
15675         * function.c (try_fit_stack_local, add_frame_space): New static
15676         functions.
15677         (assign_stack_local_1): Use them.  Look for opportunities to use
15678         space previously wasted on alignment.
15679         * function.h (struct frame_space): New.
15680         (struct rtl_data): Add FRAME_SPACE_LIST member.
15681         * reload1.c (something_was_spilled): New static variable.
15682         (alter_reg): Set it.
15683         (reload): Test it in addition to testing if the frame size changed.
15685 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
15687         * config/s390/s390.c: Define sane prefetch settings and activate
15688         flag_prefetch_loop_arrays on -O3.
15689         * config/s390/s390.h: Declare that read can use write prefetch.
15691 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
15693         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
15694         build.
15696 2010-05-16  Jan Hubicka  <jh@suse.cz>
15698         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
15699         function body; do not check stdarg field of struct function.
15701 2010-05-16  Jan Hubicka  <jh@suse.cz>
15703         * cgraph.c (dump_cgraph_node): Dump versionable flag.
15704         * cgraph.h (cgraph_local_info): Add versionable flag.
15705         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
15706         (ipcp_versionable_function_p): Use it.
15707         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
15708         versionable flag.
15710 2010-05-16  Jan Hubicka  <jh@suse.cz>
15712         * cgraph.c (cgraph_clone_node): Take decl argument and insert
15713         clone into hash when it is different from orig.
15714         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
15715         * cgraph.h (cgraph_clone_node): Update prototype.
15716         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
15717         (lto_cgraph_encoder_delete): Delete body map.
15718         (lto_cgraph_encoder_size): Move to header.
15719         (lto_cgraph_encoder_encode_body_p,
15720         lto_set_cgraph_encoder_encode_body): New.
15721         (lto_output_node): Do not take written_decls argument; output clone_of
15722         pointer.
15723         (add_node_to): Add include_body_argument; call
15724         lto_set_cgraph_encoder_encode_body on master of the clone.
15725         (add_references): Update use of add_node_to.
15726         (compute_ltrans_boundary): Likewise.
15727         (output_cgraph): Do not create written_decls bitmap.
15728         (input_node): Take nodes argument; stream in clone_of correctly.
15729         (input_cgraph_1): Update use of input_node.
15730         * lto-streamer-out.c (lto_output): Use encoder info to decide
15731         what bodies to output.
15732         * ipa-inline.c (cgraph_clone_inlined_nodes,
15733         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
15734         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
15735         (lto_cgraph_encoder_size): Define here.
15736         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
15737         Declare.
15739 2010-05-16  Richard Guenther  <rguenther@suse.de>
15741         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
15742         -fipa-type-escape.
15743         * ipa-type-escape.c (gate_type_escape_vars): Run when
15744         -fipa-struct-reorg runs.
15745         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
15746         * common.opt (fipa-type-escape): Remove.
15748 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
15750         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
15751         (decode_options): Likewise.
15752         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
15754 2010-05-16  Jan Hubicka  <jh@suse.cz>
15756         * ipa.c (function_and_variable_visibility): Also bring local all
15757         aliases.
15759 2010-05-16  Richard Guenther  <rguenther@suse.de>
15761         * alias.c (nonoverlapping_memrefs_p): Remove use of
15762         IPA type-escape information.
15764 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
15766         * c-common.c (c_common_reswords): Add _Static_assert for C.
15767         * c-parser.c (c_token_starts_declaration,
15768         c_parser_next_token_starts_declaration,
15769         c_parser_static_assert_declaration_no_semi,
15770         c_parser_static_assert_declaration): New.
15771         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
15772         Handle static assertions if static_assert_ok.
15773         (c_parser_external_declaration, c_parser_declaration_or_fndef,
15774         c_parser_compound_statement_nostart, c_parser_label,
15775         c_parser_for_statement, c_parser_objc_methodprotolist,
15776         c_parser_omp_for_loop): All callers of
15777         c_parser_declaration_or_fndef changed.
15778         (c_parser_struct_declaration): Handle static assertions.
15779         (c_parser_compound_statement_nostart): Use
15780         c_parser_next_token_starts_declaration and
15781         c_token_starts_declaration to detect start of declarations.
15782         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
15783         Likewise.
15785 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
15787         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15788         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15789         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15790         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15791         (mmix_function_outgoing_value): Rename to...
15792         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
15793         (mmix_function_value_regno_p): Make static.
15794         (mmix_libcall_value): New function.
15795         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
15796         mmix_function_value_regno_p): Remove declaration.
15798 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
15800         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
15801         BUILT_IN_ALLOCA if stack checking is enabled.
15803 2010-05-16  Richard Guenther  <rguenther@suse.de>
15805         * var-tracking.c (vars_copy_1): Inline ...
15806         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
15807         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
15808         (variable_merge_over_cur): Adjust.  Merge asserts.
15809         (variable_merge_over_src): Likewise.
15810         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
15811         (variable_post_merge_new_vals): Merge asserts.
15812         (variable_post_merge_perm_vals): Likewise.
15813         (find_mem_expr_in_1pdv): Likewise.
15814         (dataflow_set_different_value): Remove.
15815         (onepart_variable_different_p): Merge asserts.
15816         (variable_different_p): Likewise.
15817         (dataflow_set_different_1): Inline ...
15818         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
15819         (emit_notes_for_differences_1): Merge asserts.
15821 2010-05-16  Richard Guenther  <rguenther@suse.de>
15823         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
15824         * optabs.c (libfunc_decl_hash): Likewise.
15825         * varasm.c (emutls_decl): Likewise.
15827 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
15829         * c-decl.c: Don't include gimple.h.
15830         (merge_decls): Do not copy gimple_body.
15832 2010-05-15  Jason Merrill  <jason@redhat.com>
15834         * c.opt: Add -fnothrow-opt.
15836 2010-05-15  Jan Hubicka  <jh@suse.cz>
15838         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
15839         analyzed.
15840         * passes.c (ipa_write_summaries): Write all analyzed nodes.
15842 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
15844         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
15845         * Makefile.in: Add it.
15846         Fix all other Makefile dependencies for changes below.
15847         * tree.h: Include it instead of defining VEC primitives here.
15848         * gimple.h: Likewise.
15849         * rtl.h: Likewise.
15850         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
15851         * except.h: Include vecir.h, break dependence on tree.h.
15853         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
15854         Move from here...
15855         * tree-iterator.c: ...to here.
15856         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
15858         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
15859         tm_p.h.
15860         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
15861         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
15862         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
15863         tree-mudflap.h, and target.h.
15864         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
15865         predict.h, tree-inline.h, gimple.h, and langhooks.h.
15866         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
15867         Add FIXME for why gimple.h is still included (should be unnecessary
15868         since GCC 4.5 gimplification unit-at-a-time).
15869         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
15870         * c-pragma.c: Add FIXME for why function.h needs to be included just
15871         for cfun, at front-end level.
15872         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
15873         Do not include ggc.h, but include vecprim.h for VEC(char).
15874         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
15875         Explain why target.h is included.
15876         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
15877         Explain why gimple.h is included.
15878         * c-ppoutput.c: Do not include tm.h.
15879         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
15880         * c-parses.c: Explain why rtl.h is included, and that this (and only
15881         this) is also why tm.h must be included.
15882         Do not include except.h.
15883         * c-lang.c: Do not include ggc.h.
15885 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
15887         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
15889 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
15891         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
15892         unions by default if those structs and unions have no tags.  Do
15893         not condition anonymous struct and unions handling on flag_iso.
15894         Allow anonymous structs and unions for C1X.
15895         (finish_struct): Do not diagnose lack of named fields when
15896         anonymous structs and unions present for C1X.  Accept flexible
15897         array members in structure with anonymous structs or unions but no
15898         directly named fields.
15899         * doc/extend.texi (Unnamed Fields): Update.
15901 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
15903         * gimple.h (compare_field_offset): Rename into...
15904         (gimple_compare_field_offset): ...this.
15905         * gimple.c (compare_field_offset): Rename into...
15906         (gimple_compare_field_offset): ...this.  Compare the full access if
15907         the offset is self-referential.
15908         (gimple_types_compatible_p): Adjust for above renaming.
15909         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
15910         DECL_NONADDRESSABLE_P flag of fields before merging them.
15912 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
15914         * tree.h (ctor_to_list): Delete.
15915         * tree.c (ctor_to_list): Delete.
15917 2010-05-15  Jan Hubicka  <jh@suse.cz>
15919         * ipa-reference.c: Include toplev.h
15920         (is_proper_for_analysis): Only add to all_module_statics
15921         if it is allocated.
15922         (write_node_summary_p, stream_out_bitmap,
15923         ipa_reference_write_optimization_summary,
15924         ipa_reference_read_optimization_summary): New.
15925         (struct ipa_opt_pass_d pass_ipa_reference): Add
15926         optimization summary streaming.
15927         * lto-cgraph.c (referenced_from_this_partition_p,
15928         reachable_from_this_partition_p): New functions.
15929         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15930         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
15931         * opts.c (decode_options): Enable ipa_reference.
15932         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
15933         * lto-streamer.h (referenced_from_this_partition_p,
15934         reachable_from_this_partition_p): Declare.
15936 2010-05-15  Richard Guenther  <rguenther@suse.de>
15938         PR tree-optimization/44038
15939         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
15940         taking the address of a V_C_E of a constant.
15942 2010-05-14  Jan Hubicka  <jh@suse.cz>
15944         * tree.h (memory_identifier_string): Remove.
15945         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
15946         (ipa_reference_global_vars_info_d): Remove statics_not_read and
15947         statics_not_written.
15948         (ipa_reference_optimization_summary_d): New structure.
15949         (ipa_reference_optimization_summary_t): New type and vector.
15950         (ipa_reference_vars_info_d): Embedd structures instead of using
15951         pointers.
15952         (reference_vars_to_consider): Remove out of GGC space.
15953         (module_statics_escape): Remove.
15954         (global_info_obstack): Rename to ...
15955         (optimization_summary_obstack): ... this one.
15956         (initialization_status_t): Remove.
15957         (memory_identifier_string): Remove.
15958         (get_reference_vars_info): Fix indenting.
15959         (set_reference_vars_info): Likewise.
15960         (get_reference_optimization_summary): New.
15961         (set_reference_optimization_summary): New.
15962         (get_global_reference_vars_info): Remove.
15963         (ipa_reference_get_read_global): Remove.
15964         (ipa_reference_get_written_global): Remove.
15965         (ipa_reference_get_not_read_global): Update.
15966         (ipa_reference_get_not_written_global): Update.
15967         (is_proper_for_analysis): Outlaw addressable.
15968         (propagate_bits): Update for new datastructures.
15969         (analyze_variable): Remove.
15970         (init_function_info): Update for new datastructures.
15971         (clean_function_local_data): Remove.
15972         (clean_function): Remove.
15973         (copy_global_bitmap): Use optimizations_summary_obstack.
15974         (duplicate_node_data): Duplicate optimization summary only.
15975         (remove_node_data): Remove optimization summary only.
15976         (generate_summary): Do not analyze variables; do not compute
15977         module_statics_escape; do not prune solutions by it.
15978         (read_write_all_from_decl): Fix typos in comments.
15979         (propagate): Doscover readonly and nonaddressable first;
15980         update for new datastructures; share global bitmaps.
15981         * ipa-reference.h (ipa_reference_get_read_global,
15982         ipa_reference_get_written_global): Remove.
15983         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
15984         * Makefile.in: Remove ipa-refereference from GT files.
15986 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
15988         PR debug/44112
15989         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
15990         for all SYMBOL_REF_DECLs.
15992 2010-05-14  Jan Hubicka  <jh@suse.cz>
15994         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
15995         (varpool_all_refs_explicit_p): New inline function.
15996         * ipa-reference.c: Update comment.
15997         (module_statics_written): Remove.
15998         (get_static_decl): Remove.
15999         (ipa_init): Do not initialize module_statics_written.
16000         (analyze_function): Likewise.
16001         (generate_summary): Likewise; do not compute module_statics_readonly
16002         and do not update variable flags.
16003         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
16004         * ipa.c: Inlucde flags.h
16005         (cgraph_local_node_p): New.
16006         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
16007         promote functions to local.
16008         (ipa_discover_readonly_nonaddressable_vars): New function.
16009         (function_and_variable_visibility): Use cgraph_local_node_p.
16010         * varpool.c (varpool_finalize_decl): Set force_output for
16011         DECL_PRESERVE_P vars.
16013 2010-05-14  Jan Hubicka  <jh@suse.cz>
16015         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
16017 2010-05-14  Richard Guenther  <rguenther@suse.de>
16019         PR tree-optimization/44119
16020         * tree-ssa-pre.c (eliminate): Properly mark replacement of
16021         a PHI node necessary.
16023 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
16025         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
16027 2010-05-14  Jason Merrill  <jason@redhat.com>
16029         PR c++/44127
16030         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
16031         (gimple_call_set_nothrow): New.
16032         * gimple.c (gimple_build_call_from_tree): Call it.
16033         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
16035         PR c++/44127
16036         * gimplify.c (gimplify_seq_add_stmt): No longer static.
16037         * gimple.h: Declare it.
16038         * gimple.c (gimple_build_eh_filter): No ops.
16040 2010-05-14  Jan Hubicka  <jh@suse.cz>
16042         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
16043         nodes already in queue.
16044         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
16045         re-enqueueing node.
16047 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
16049         PR debug/44136
16050         * cfgexpand.c (expand_debug_expr): If non-memory op0
16051         has BLKmode, return NULL.
16053 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
16055         * config.gcc: Add support for --with-cpu option for bdver1.
16056         * config/i386/i386.h (TARGET_BDVER1): New macro.
16057         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
16058         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16059         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
16060         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
16061         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
16062         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
16063         (processor_type): Add PROCESSOR_BDVER1.
16064         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
16065         processor_type in config/i386/i386.h.
16066         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
16067         movaps <reg, reg> instead of movapd <reg, reg> when replacing
16068         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
16069         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
16070         to emit packed xor instead of packed double/packed integer
16071         xor for SSE and AVX when moving a zero value.
16072         * config/i386/sse.md: Add check for
16073         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
16074         movapd/movdqa for SSE and AVX.
16075         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
16076         single logical operations i.e and, or and xor instead of packed double
16077         logical operations for SSE and AVX.
16078         * config/i386/i386-c.c (ix86_target_macros_internal):
16079         Add PROCESSOR_BDVER1.
16080         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
16081         (has_fma4, has_xop): New.
16082         * config/i386/i386.c (bdver1_cost): New variable.
16083         (m_BDVER1): New macro.
16084         (m_AMD_MULTIPLE): Add m_BDVER1.
16085         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
16086         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
16087         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
16088         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
16089         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
16090         x86_tune_sse_partial_reg_dependency,
16091         x86_tune_sse_unaligned_load_optimal,
16092         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
16093         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
16094         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
16095         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
16096         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
16097         Enable/disable for bdver1.
16098         (processor_target_table): Add bdver1_cost.
16099         (cpu_names): Add bdver1.
16100         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
16101          processor_alias_table.
16102         (ix86_expand_vector_move_misalign): Change.
16103         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
16104         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
16105         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
16106         of movupd/movdqu for SSE and AVX.
16107         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
16108         (ix86_tune_adjust_cost): Add code for bdver1.
16109         (standard_sse_constant_opcode): Add check for
16110         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
16111         of packed double xor for SSE and AVX.
16113 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
16115         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
16116         result to unsigned.
16118 2010-05-14  Tristan Gingold  <gingold@adacore.com>
16120         * toplev.c (default_debug_hooks): Remove this variable.
16121         (process_options): Remove assignments to default_debug_hooks.
16123 2010-05-14  Martin Jambor  <mjambor@suse.cz>
16125         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
16126         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
16127         * langhooks.h (struct lang_hooks_for_decls): Removed field
16128         fold_obj_type_ref.
16129         * tree.c (free_lang_data): Remove assignment to
16130         lang_hooks.fold_obj_type_ref.
16131         * tree.def (OBJ_TYPE_REF): Update comment.
16133 2010-05-14  Richard Guenther  <rguenther@suse.de>
16135         PR tree-optimization/44124
16136         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
16138 2010-05-14  Alan Modra  <amodra@gmail.com>
16140         PR target/44075
16141         * config/rs6000/rs6000.c (struct machine_function): Reorder
16142         fields for better packing.  Add lr_save_state.
16143         (rs6000_ra_ever_killed): Return lr_save_state if set.
16144         (rs6000_emit_eh_reg_restore): Set lr_save_state.
16146 2010-05-13  Jan Hubicka  <jh@suse.cz>
16148         * varpool.c (decide_is_variable_needed): Drop code checking
16149         TREE_SYMBOL_REFERENCED.
16151 2010-05-13  Jan Hubicka  <jh@suse.cz>
16153         * final.c (output_addr_const): Do not call mark_decl_referenced.
16154         * cgraphunit.c (process_function_and_variable_attributes): Use
16155         mark_needed_node dirrectly.
16156         (assemble_thunk): Do not call mark_decl_referenced.
16158 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
16160         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
16162 2010-05-13  Jeff Law  <law@redhat.com>
16164         * ira-conflicts.c (print_allocno_conflicts): New function broken out
16165         from...
16166         (print_conflicts): Call print_allocno_conflicts.
16168 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16170         PR debug/44104
16171         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
16172         if it is NULL.
16174 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
16176         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
16177         t-mingw-w64 or t-mingw-w32 for multilib configuration.
16178         * config/i386/t-mingw-w32: New.
16179         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
16181 2010-05-13  Martin Jambor  <mjambor@suse.cz>
16183         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
16184         gimple-fold.c).
16185         * gimple-fold.c (get_base_binfo_for_type): New function.
16186         (gimple_get_relevant_ref_binfo): Likewise.
16187         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16188         (gimple_fold_obj_type_ref): Likewise.
16189         (fold_gimple_call): Simplify condition for folding virtual calls
16190         and call gimple_fold_obj_type_ref.
16191         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
16192         (gimple_fold_obj_type_ref_known_binfo): Likewise.
16194 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
16196         * config/rs6000/rs6000-protos.h
16197         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
16198         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
16199         (rs6000_debug_mode_dependent_address)
16200         (rs6000_mode_dependent_address_ptr): Likewise.
16202 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
16204         PR debug/43983
16205         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
16206         by SRA.
16207         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
16208         * tree-sra.c (create_access_replacement): Call unshare_expr before
16209         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
16210         * dwarf2out.c: Include tree-flow.h.
16211         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
16212         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
16213         Handle DW_OP_bit_piece.
16214         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
16215         construct_piece_list, adjust_piece_list): New functions.
16216         (add_var_loc_to_decl): Handle SRA optimized variables.
16217         Adjust for var_loc_note to loc field renaming.
16218         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
16219         in VAR_LOCATION note.
16220         (new_loc_descr_op_bit_piece): New function.
16221         (dw_sra_loc_expr): New function.
16222         (dw_loc_list): Use it.  Don't handle the last range after the
16223         loop, handle it inside of the loop.  Adjust for var_loc_note
16224         to loc field renaming.
16225         (add_location_or_const_value_attribute): Only special case
16226         single entry loc lists if loc is NOTE_P.  Adjust for
16227         var_loc_note to loc field renaming.
16228         (dwarf2out_var_location): Don't set newloc->var_loc_note
16229         and newloc->next here.
16231 2010-05-12  Jan Hubicka  <jh@suse.cz>
16233         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
16234         flag.
16235         * cgraph.h (cgraph_only_called_directly_p,
16236         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
16237         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
16238         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
16239         (assemble
16240         * ipa.c (cgraph_remove_unreachable_nodes): Use
16241         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
16242         flags.
16243         * tree-inline.c (copy_bb): Check address_taken flag.
16244         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
16245         externally_visible flag.
16247 2010-05-12  Jason Merrill  <jason@redhat.com>
16249         PR bootstrap/44048
16250         PR target/44099
16251         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
16252         * sdbout.c (plain_type_1): Likewise.
16253         * dwarf2out.c (is_base_type): Likewise.
16254         (gen_type_die_with_usage): Likewise.  Generate
16255         DW_TAG_unspecified_type for any LANG_TYPE.
16257 2010-05-12  Jan Hubicka  <jh@suse.cz>
16259         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
16260         indrect edges too.
16261         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
16262         (cgraph_clone_edge): Update.
16263         (cgraph_node_remove_callees): Remove indirect calls too.
16264         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
16265         (cgraph_create_indirect_edge): Update prototype.
16266         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
16267         is_proper_for_analysis.
16268         (add_new_function, visited_nodes, function_insertion_hook_holder,
16269         get_local_reference_vars_info, mark_address_taken, mark_address,
16270         mark_load, mark_store, check_asm_memory_clobber, check_call,
16271         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
16272         (ipa_init): Do not initialize visited_nodes;
16273         function_insertion_hook_holder.
16274         (analyze_variable): Rewrite.
16275         (analyze_function): Rewrite.
16276         (copy_local_bitmap): Remove.
16277         (duplicate_node_dat): Do not duplicate local info.
16278         (generate_summary): Simplify to only walk cgraph.
16279         (write_node_summary_p, ipa_reference_write_summary,
16280         ipa_reference_read_summary): Remove.
16281         (propagate): Do not remove function insertion;
16282         generate summary.
16283         (pass_ipa_reference): NULLify summary handling fields.
16284         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
16285         (input_edge): Input ecf_flags.
16286         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
16287         (update_indirect_edges_after_inlining): Ignore edges with unknown
16288         param.
16290 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
16292         * implicit-zee.c: New file.
16293         * tree-pass.h (pass_implicit_zee): Declare.
16294         * passes.c (init_optimization_passes): Add zee pass.
16295         * common.opt (fzee): New flag.
16296         * timevar.def (TV_ZEE): Define.
16297         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
16298         and beyond.
16299         * Makefile.in (implicit-zee.o): Add new build file.
16301 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16302             Nathan Froyd  <froydnj@codesourcery.com>
16304         * c-common.c (sync_resolve_params): Remove write-only variable.
16306 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
16308         * target.h (struct gcc_target): Add mode_dependent_address_p field.
16309         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16310         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
16311         * targhooks.c (default_mode_dependent_address_p): New function.
16312         * targhooks.h (default_mode_dependent_address_p): Declare function.
16313         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
16314         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
16315         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
16316         target hook. Change return type to bool.
16317         * recog.h (mode_dependent_address_p): Change return type to bool.
16319 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16320             Nathan Froyd  <froydnj@codesourcery.com>
16322         * tree-mudflap.c (build_function_type_0, build_function_type_1,
16323         build_function_type_2, build_function_type_3): Remove.
16324         (mudflap_init): Use build_function_type_list.
16326 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
16327             Nathan Froyd  <froydnj@codesourcery.com>
16329         * coverage.c (build_fn_info_value): Call build_constructor instead of
16330         build_constructor_from_list.
16331         (build_ctr_info_value): Likewise.
16332         (build_gcov_info): Likewise.
16334 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
16336         * tree.c (build_constructor): Compute TREE_CONSTANT for the
16337         resultant constructor.
16338         (build_constructor_single): Don't set TREE_CONSTANT.
16339         (build_constructor_from_list): Don't compute TREE_CONSTANT.
16341 2010-05-12  Jan Hubicka  <jh@suse.cz>
16343         * cgraph.h (struct varpool_node): Add aux.
16344         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
16345         * varpool.c (varpool_remove_node): Do not remove initializer.
16346         (varpool_reset_queue): Export.
16347         (varpool_finalize_decl): Volatile vars are forced to be output.
16348         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
16349         replaced decl.
16350         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
16351         process_references, varpool_can_remove_if_no_refs): New functions.
16352         (cgraph_remove_unreachable_nodes): Handle variables too.
16354 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
16356         PR target/44088
16357         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
16359 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
16361         PR middle-end/44085
16362         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
16363         change value of ORT_TASK.
16364         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
16365         (omp_notice_threadprivate_variable): New function.
16366         (omp_notice_variable): Call it for threadprivate variables.
16367         If enclosing ctx is a task, print enclosing task rather than
16368         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
16369         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
16370         if task has untied clause.
16372         PR debug/42278
16373         * dwarf2out.c (base_type_die): Don't add name attribute here.
16374         (modified_type_die): Instead of sizetype use
16375         its underlying original type.  If a DW_TAG_base_type doesn't
16376         have name added, add __unknown__.
16377         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
16378         always call force_type_die instead.
16380 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
16382         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
16383         for __stack_chk_guard.
16385 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
16387         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
16388         don't call start_source_file debug hook here...
16389         (finish_options): ... but here, after outputting predefined and
16390         command line defines and undefs.
16392         PR middle-end/44071
16393         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
16394         no fallthru edge.
16395         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
16396         optimizing away empty bb with no successors, move over its
16397         footer chain to fallthru predecessor.
16398         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
16399         (rtl_split_edge): For asm goto call patch_jump_insn even if
16400         splitting fallthru edge.
16402         PR c++/44059
16403         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
16404         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
16405         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
16406         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
16407         on DW.ref.* decls.
16409         PR c++/44062
16410         * c-parser.c (c_parser_expression): Mark LHS of a comma
16411         expression as read if it is a decl, handled component or
16412         COMPOUND_EXPR with that on the RHS.
16413         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
16414         if it is a decl or handled component.
16416 2010-05-11  Jan Hubicka  <jh@suse.cz>
16418         * lto-symtab.c (lto_symtab_free): New function.
16419         * lto-streamer.h (lto_symtab_free): Declare.
16421 2010-05-11  Jan Hubicka  <jh@suse.cz>
16423         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
16424         that if function is needed it is reachable.
16425         (lto_output_node): See if it the function is reachable or referenced.
16426         (output_cgraph): Update call of lto_output_node.
16427         * lto-streamer.h (reachable_from_other_partition_p): Declare.
16429 2010-05-11  Jan Hubicka  <jh@suse.cz>
16431         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
16432         Mark as used.
16434 2010-05-11  Jan Hubicka  <jh@suse.cz>
16436         PR tree-optimize/44063
16437         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
16438         queue.
16439         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
16440         limits.
16441         (estimate_function_body_sizes): Compute sizes even when disregarding.
16443 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
16445         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
16447 2010-05-11  Jan Hubicka  <jh@suse.cz>
16449         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
16450         into every boundary.
16452 2010-05-11  Jan Hubicka  <jh@suse.cz>
16454         * matrix-reorg.c (matrix_reorg): Rebuild edges.
16456 2010-05-11  Jan Hubicka  <jh@suse.cz>
16458         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
16459         lto_streamer_cache_delete): Put nodes into heap.
16460         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
16461         heap.
16463 2010-05-11  Jan Hubicka  <jh@suse.cz>
16465         * cgraphbuild.c (cgraph_rebuild_references): New.
16466         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
16467         out extern inlines.
16468         * cgraph.h (cgraph_rebuild_references): Declare.
16469         * tree-inline.c (tree_function_versioning): Use it.
16470         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
16472 2010-05-11  Jan Hubicka  <jh@suse.cz>
16474         * cgraph.c: Include ipa-utils.h
16475         (cgraph_create_virtual_clone): Update references.
16476         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
16478 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
16480         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
16481         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
16482         cache size.
16484 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
16486         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
16488 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
16490         * gcc.c (execute): For -### don't quote arguments that
16491         contain just alphanumerics and _/-. characters.
16492         * doc/invoke.texi: Document that change for -###.
16494         PR debug/44023
16495         * df-problems.c (struct dead_debug): Add to_rescan field.
16496         (dead_debug_init): Clear to_rescan field.
16497         (dead_debug_finish): Rescan all debug insns in to_rescan
16498         bitmap and free the bitmap.
16499         (dead_debug_insert_before): Instead of rescanning debug insns
16500         immediately queue their rescanning until dead_debug_finish.
16501         (df_note_bb_compute): After dead_debug_add do continue instead
16502         of break.
16504 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
16506         PR debug/44028
16507         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
16508         clear also INSN_REG_USE_LIST.
16510 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16512         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
16514 2010-05-10  Jan Hubicka  <jh@suse.cz>
16516         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
16517         commited change.
16519 2010-05-10  Jan Hubicka  <jh@suse.cz>
16521         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
16522         Allocate encoders.
16523         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
16524         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
16525         (lto_streamer_cache_create): Init alloc pool.
16526         (lto_streamer_cache_delete): Free alloc pool.
16527         * lto-streamer.h: Include alloc pool.
16528         (lto_streamer_cache_d): Use alloc pool.
16529         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
16531 2010-05-10  Jan Hubicka  <jh@suse.cz>
16533         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
16534         * cgraphbuild.c: Include except.h
16535         (record_type_list, record_eh_tables): New function.
16536         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
16538 2010-05-10  Jan Hubicka  <jh@suse.cz>
16540         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
16541         __frame_dummy_init_array_entry, force_to_data): Attribute as used
16542         rather than unused.
16544 2010-05-10  Michael Matz  <matz@suse.de>
16546         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
16547         (can_reassociate_p): Use FLOAT_TYPE_P.
16548         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
16549         (vect_force_simple_reduction): ... this.
16550         * tree-parloops.c (gather_scalar_reductions): Use
16551         vect_force_simple_reduction.
16552         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
16553         vect_is_simple_reduction, add modify argument, if true rewrite
16554         "a-b" into "a+(-b)".
16555         (vect_is_simple_reduction, vect_force_simple_reduction): New
16556         functions.
16557         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
16559 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
16560             Vladimir Makarov  <vmakarov@redhat.com>
16562         PR rtl-optimization/44012
16563         * ira-build.c (remove_unnecessary_allocnos): Nullify
16564         regno_allocno_map of the removed allocno.
16566 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16568         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
16569         to /dev/null.
16570         * configure: Regenerate.
16572 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16574         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
16575         unused.
16576         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
16577         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
16578         support in Sun ld.
16579         * configure: Regenerate.
16581 2010-05-10  Richard Guenther  <rguenther@suse.de>
16583         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
16584         marked if the entry identifier is marked.
16586 2010-05-10  Richard Guenther  <rguenther@suse.de>
16588         * c-common.c (struct c_common_attributes): Add fnspec attribute.
16589         (handle_fnspec_attribute): New function.
16590         * gimple.h (gimple_call_return_flags): Declare.
16591         (gimple_call_arg_flags): Likewise.
16592         * gimple.c (gimple_call_arg_flags): New function.
16593         (gimple_call_return_flags): Likewise.
16594         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
16595         New argument flags.
16596         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
16597         return value flags.
16598         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
16599         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
16600         main work to ...
16601         (make_heapvar_for): ... this new function.
16602         (handle_rhs_call): Handle fnspec attribute argument specifiers.
16603         (handle_lhs_call): Likewise.
16604         (find_func_aliases): Adjust.
16606 2010-05-10  Richard Guenther  <rguenther@suse.de>
16608         PR tree-optimization/44050
16609         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
16611 2010-05-10  Wei Guozhi  <carrot@google.com>
16613         PR target/42879
16614         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
16616 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
16618         PR c/10676
16619         * c-typeck.c (lookup_field): Take a type directly.  Update
16620         recursive calls.
16621         (build_component_ref): Update call to lookup_field.
16622         (set_init_label): Use lookup_field to find initialized field.
16623         Handle returned list of fields like a sequence of designators.
16625 2010-05-09  Richard Guenther  <rguenther@suse.de>
16627         PR middle-end/44024
16628         * fold-const.c (tree_single_nonzero_warnv_p): Properly
16629         handle &FUNCTION_DECL.
16631 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
16633         PR c/4784
16634         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
16635         structures and unions recursively.
16636         (detect_field_duplicates): Move duplicate detection with a hash to
16637         detect_field_duplicates_hash.  Always use a hash if anonymous
16638         structures or unions are present.
16639         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
16640         give errors.
16642 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
16644         PR target/44046
16645         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
16646         detect Atom, Core 2 and Core i7.
16648 2010-05-09  Richard Guenther  <rguenther@suse.de>
16650         * gcc.c (store_arg): Handle temporary file deletion for
16651         joined arguments.
16653 2010-05-09  Richard Guenther  <rguenther@suse.de>
16655         PR middle-end/44043
16656         * ipa-inline.c (estimate_function_body_sizes): Return after
16657         disregarding inline limits.
16659 2010-05-09  Richard Guenther  <rguenther@suse.de>
16661         * gcc.c (store_arg): Revert last change.
16663 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
16665         PR middle-end/28685
16666         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
16667         (optimize_ops_list): Call it.
16669 2010-05-08  Richard Guenther  <rguenther@suse.de>
16671         PR tree-optimization/44030
16672         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
16673         NECESSARY flag if we propagate from a inserted expression.
16675 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
16677         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
16678         domain types as equal if they are both PLACEHOLDER_EXPRs.
16680 2010-05-08  Richard Guenther  <rguenther@suse.de>
16682         * lto-wrapper.c (run_gcc): Remove linker output from
16683         command line for LTRANS invocation.
16685 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
16687         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
16688         lto-macho as lto_binary_reader.
16689         * target.h (struct gcc_target): New hooks lto_start and lto_end.
16690         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
16691         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
16692         in lto_start and lto_end calls.
16693         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
16694         magic numbers.
16695         (scan_prog_file): Update is_elf_or_coff call.
16696         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
16698         * collect2.c (main): Fix enum comparison.
16700         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
16701         Add prototypes.
16702         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
16703         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
16704         and TARGET_ASM_LTO_END.
16705         * darwin.c: Include obstack.h and lto-streamer.h.
16706         (lto_section_names_offset, lto_section_names_obstack,
16707         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
16708         global variables.
16709         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
16710         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
16711         to a temporary file.
16712         (darwin_asm_lto_end): New function.  Restore asm_out_file.
16713         (darwin_asm_named_section): For LTO sections, replace the name with
16714         the offset of the section name in a string table, and build this
16715         table.
16716         (darwin_file_start): Initialize global vars for LTO support.
16717         (darwin_file_end): If output to asm_out_file was redirected, append it
16718         to the proper asm_out_file here.  Add the section names section.
16720 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
16722         * c-pragma.c (pending_weak_d, pending_weak): New.
16723         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
16724         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
16725         handle_pragma_weak): Update the uses of pending_weaks.
16727 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16729         PR documentation/44016
16730         * doc/standards.texi (Standards): Link to unversioned
16731         cxx0x_status.html page.
16733 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
16735         PR target/43708
16736         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
16737         in addition to TREE_USED, to avoid "set but unused" warnings.
16739 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
16741         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
16742         (is_loop_prefetching_profitable): Do not insert prefetches
16743         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
16744         times the prefetch ahead distance.
16746 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
16748         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
16749         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
16750         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
16751         the unroll_factor.
16753 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
16755         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
16756         a diagnostic info when the insn-to-mem ratio is too small.
16758 2010-05-07  Richard Guenther  <rguenther@suse.de>
16760         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
16761         the linker plugin.
16762         (store_arg): Queue temp_filename for deletion instead of
16763         the whole argument.
16765 2010-05-07  Richard Guenther  <rguenther@suse.de>
16767         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
16768         (run_gcc): Handle LTRANS phase invocation.
16769         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
16771 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
16773         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
16774         this is also meaningful on PARM_DECLs and RESULT_DECLs.
16776 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16778         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
16780 2010-05-07  Richard Guenther  <rguenther@suse.de>
16782         PR tree-optimization/44020
16783         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
16784         code when PRE is not yet initialized.
16786 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16788         * config/mips/dbxmdebug.h: Remove.
16789         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
16791 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
16793         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
16794         with null pointer and also warn about ordered comparison of zero with
16795         pointer if -Wextra.
16797 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16799         * graphite-blocking.c
16800         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
16801         * graphite-clast-to-gimple.c
16802         (clast_to_gcc_expression): Same.
16803         (precision_for_value): Same.
16804         (precision_for_interval): Same.
16805         (gcc_type_for_interval): Same.
16806         (graphite_create_new_guard): Same.
16807         (compute_bounds_for_level): Same.
16808         (graphite_create_new_loop_guard): Same.
16809         * graphite-interchange.c
16810         (build_linearized_memory_access): Same.
16811         (pdr_stride_in_loop): Same.
16812         (memory_strides_in_loop_1): Same.
16813         (memory_strides_in_loop): Same.
16814         (extend_scattering): Same.
16815         (psct_scattering_dim_for_loop_depth): Same.
16816         (pbb_number_of_iterations): Same.
16817         * graphite-poly.h
16818         (debug_iteration_domains): Same.
16819         * graphite-ppl.c
16820         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16821         (ppl_set_inhomogeneous_gmp): Same.
16822         (ppl_strip_loop): Same.
16823         (ppl_lexico_compare_linear_expressions): Same.
16824         (ppl_read_polyhedron_matrix): Same.
16825         (ppl_max_for_le_pointset): Same.
16826         * graphite-ppl.h
16827         (ppl_read_polyhedron_matrix): Same.
16828         (tree_int_to_gmp): Same.
16829         (gmp_cst_to_tree): Same.
16830         (ppl_set_inhomogeneous): Same.
16831         (ppl_set_inhomogeneous_tree): Same.
16832         (ppl_set_coef): Same.
16833         (ppl_set_coef_tree): Same.
16834         * graphite-sese-to-poly.c
16835         (build_pbb_scattering_polyhedrons): Same.
16836         (build_scop_scattering): Same.
16837         (scan_tree_for_params_right_scev): Same.
16838         (scan_tree_for_params): Same.
16839         (find_params_in_bb): Same.
16840         (find_scop_parameters): Same.
16841         (add_upper_bounds_from_estimated_nit): Same.
16842         (build_loop_iteration_domains): Same.
16843         (add_condition_to_domain): Same.
16844         (pdr_add_memory_accesses): Same.
16846 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16848         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
16849         CLooG's value_* macros to their respective mpz_* counterparts.
16850         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
16851         (graphite_create_new_loop_guard): Same.
16852         * graphite-interchange.c (build_linearized_memory_access): Same.
16853         (pdr_stride_in_loop): Same.
16854         (memory_strides_in_loop_1): Same.
16855         (1st_interchange_profitable_p): Same.
16856         * graphite-poly.c (extend_scattering): Same.
16857         (psct_scattering_dim_for_loop_depth): Same.
16858         (pbb_number_of_iterations): Same.
16859         (pbb_number_of_iterations_at_time): Same.
16860         * graphite-poly.h (new_1st_loop): Same.
16861         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
16862         (oppose_constraint): Same.
16863         (insert_constraint_into_matrix): Same.
16864         (ppl_set_inhomogeneous_gmp): Same.
16865         (ppl_set_coef_gmp): Same.
16866         (ppl_strip_loop): Same.
16867         (ppl_lexico_compare_linear_expressions): Same.
16868         (ppl_max_for_le_pointset): Same.
16869         (ppl_min_for_le_pointset): Same.
16870         (ppl_build_realtion): Same.
16871         * graphite-ppl.h (gmp_cst_to_tree): Same.
16872         (ppl_set_inhomogeneous): Same.
16873         (ppl_set_inhomogeneous_tree): Same.
16874         (ppl_set_coef): Same.
16875         (ppl_set_coef_tree): Same.
16876         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
16877         (build_scop_scattering): Same.
16878         (add_value_to_dim): Same.
16879         (scan_tree_for_params_right_scev): Same.
16880         (scan_tree_for_params_int): Same.
16881         (scan_tree_for_params): Same.
16882         (find_params_in_bb): Same.
16883         (find_scop_parameters): Same.
16884         (add_upper_bounds_from_estimated_nit): Same.
16885         (build_loop_iteration_domains): Same.
16886         (create_linear_expr_from_tree): Same.
16887         (add_condition_to_domain): Same.
16888         (pdr_add_memory_accesses): Same.
16890 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
16891             Jason Merrill  <jason@redhat.com>
16893         * c-common.c (c_common_reswords): Add nullptr.
16894         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
16895         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
16896         (gen_type_die_with_usage): Likewise.
16897         * dbxout.c (dbxout_type): Likewise.
16898         * sdbout.c (plain_type_1): Likewise.
16900 2010-05-06  Jason Merrill  <jason@redhat.com>
16902         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
16903         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
16904         ret appropriately.
16905         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
16907         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
16908         stripping WITH_SIZE_EXPR.
16909         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
16910         change.
16912 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16914         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
16915         list of obsolete configurations.
16916         Disabled check for obsolete configurations.
16917         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
16918         Removed support for previous versions.
16919         * config/mips/iris.h: Removed.
16920         * config/mips/iris5.h: Removed.
16921         * config/mips/iris6.h: Merged old iris.h contents.
16922         (TARGET_IRIX): Removed.
16923         (DRIVER_SELF_SPECS): Removed mabi=32.
16924         (IDENT_ASM_OP): Removed undef.
16925         (STARTFILE_SPEC): Removed mabi=32.
16926         (ENDFILE_SPEC): Likewise.
16927         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
16928         (MACHINE_TYPE): Update for IRIX 6.5.
16929         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
16930         TARGET_IRIX by TARGET_IRIX6.
16931         (mips_file_start): Likewise.
16932         (mips_output_external): Remove IRIX 5/6 O32 support.
16933         (mips_output_function_prologue): Likewise.
16934         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
16935         TARGET_IRIX6.
16936         (TARGET_CPU_CPP_BUILTINS): Likewise.
16937         (TARGET_IRIX): Removed.
16938         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
16939         (MULTILIB_DIRNAMES): Removed 32.
16940         (MULTILIB_OSDIRNAMES): Removed ../lib.
16941         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
16942         (Specific, mips-sgi-irix5): Document removal.
16943         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
16944         Remove references to older IRIX 6 releases and the O32 ABI.
16946 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
16948         PR bootstrap/43994
16949         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
16950         instead of DF_REF_REAL_REG.
16952 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
16954         PR target/43888
16955         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
16956         handling to still return true for x64 targets.
16958 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16960         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
16962 2010-05-06  Jan Hubicka  <jh@suse.cz>
16964         PR tree-optimization/43791
16965         * ipa-inline.c (update_caller_keys): Remove bogus
16966         disregard_inline_limits check.
16968 2010-05-06  Michael Matz  <matz@suse.de>
16970         PR tree-optimization/43984
16971         * tree-ssa-pre.c (inserted_phi_names): Remove.
16972         (inserted_exprs): Change to bitmap.
16973         (create_expression_by_pieces): Set bits, don't append to vector.
16974         (insert_into_preds_of_block): Don't handle inserted_phi_names.
16975         (eliminate): Don't look at inserted_phi_names, remove deleted
16976         insns from inserted_exprs.
16977         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
16978         (init_pre, fini_pre): Allocate and free bitmaps.
16979         (execute_pre): Insert insns on edges before elimination.
16981 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16983         * tree.c (initializer_zerop): Handle STRING_CST.
16985 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16987         PR 40989
16988         * doc/invoke.texi (Wimplicit): Document as C only.
16989         * opts.c (common_handle_option): Add argument kind.
16990         (handle_option): Rename as read_cmdline_option. Factor out code to...
16991         (handle_option): ... here. New.
16992         (handle_options): Rename as read_cmdline_options.
16993         (decode_options): Update call.
16994         (set_option): Use option index instead of option pointer. Classify
16995         diagnostics correctly.
16996         (enable_warning_as_error): Call handle_option.
16997         * opts.h (set_option): Update declaration.
16998         (handle_option): Declare.
16999         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
17000         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
17001         * c-opts.c (set_Wimplicit): Delete.
17002         (c_family_lang_mask): New static constant.
17003         (c_common_handle_option): Add argument kind. Use handle_option
17004         instead of set_Wimplicit.
17005         (c_common_post_options): warn_implicit and warn_implicit_int
17006         are disabled by default.
17007         * c-common.c (warn_implicit): Do not define here.
17008         * c-common.h (warn_implicit): Do not declare here.
17009         (c_common_handle_option): Update declaration.
17010         * lto-opts.c (lto_reissue_options): Update call to set_option.
17012 2010-05-06  Richard Guenther  <rguenther@suse.de>
17014         PR tree-optimization/43571
17015         * domwalk.c (walk_dominator_tree): Walk the dominator
17016         sons in more optimal order.
17018 2010-05-06  Richard Guenther  <rguenther@suse.de>
17020         PR tree-optimization/43934
17021         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
17022         (stmt_cost): Likewise.
17023         (extract_true_false_args_from_phi): New helper.
17024         (determine_max_movement): For PHI nodes verify we can hoist them
17025         and compute their cost.
17026         (determine_invariantness_stmt): Handle PHI nodes.
17027         (move_computations_stmt): Likewise.  Hoist PHI nodes in
17028         if-converted form using COND_EXPRs.
17029         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
17030         (tree_ssa_lim): Likewise.
17031         * tree-flow.h (tree_ssa_lim): Adjust prototype.
17032         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
17034 2010-05-06  Richard Guenther  <rguenther@suse.de>
17036         PR tree-optimization/43987
17037         * tree-ssa-structalias.c (could_have_pointers): For possibly
17038         address-taken variables force pointers to be recorded.
17039         (create_variable_info_for_1): Likewise.
17040         (push_fields_onto_fieldstack): Pass in wheter all fields
17041         must have pointers.
17042         (find_func_aliases): Query types instead of vars whether
17043         they contain pointers where appropriate.
17045 2010-05-06  Jan Hubicka  <jh@suse.cz>
17047         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
17048         (record_reference, mark_address, mark_load, mark_store): Record
17049         references.
17050         (record_references_in_initializer): Update call of record_references.
17051         (rebuild_cgraph_edges): Remove all references before rebuiding.
17052         * cgraph.c (cgraph_create_node): Clear ref list.
17053         (cgraph_remove_node): Remove references.
17054         (dump_cgraph_node): Dump references.
17055         (cgraph_clone_node): Clone references.
17056         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
17057         (struct cgraph_node, varpool_node): Add ref_lst.
17058         * ipa-ref.c: New file.
17059         * ipa-ref.h: New file.
17060         * ipa-ref-inline.h: New file.
17061         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
17062         (referenced_from_other_partition_p): New function.
17063         (lto_output_varpool_node): Take set arugment; call
17064         referenced_from_other_partition.
17065         (lto_output_ref): New.
17066         (add_references): New.
17067         (output_refs): New.
17068         (output_cgraph): Compute boundary based on references; output refs.
17069         (output_varpool): Accept cgraph_node_set argument.
17070         (input_ref): New.
17071         (input_refs): New.
17072         (input_cgraph): Call input_refs.
17073         * lto-section-in.c (lto_section_name): Add refs.
17074         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
17075         (ipa-ref.o): New file.
17076         * varpool.c (varpool_node): Clear ipa ref list.
17077         (varpool_remove_node): Remove references.
17078         (dump_varpool_node): Dump references.
17079         (varpool_assemble_decl): Only compile finalized ones.
17080         (varpool_extra_name_alias): Initialize ref list.
17081         * lto-streamer.c (lto-get_section_name): Add .refs section.
17082         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
17083         (referenced_from_other_partition_p): Declared.
17085 2010-05-06  Ira Rosen  <irar@il.ibm.com>
17087         PR tree-optimization/43901
17088         * tree-vect-stmts.c (vectorizable_call): Assert that vector
17089         type is not NULL if it's transformation phase, and return
17090         FALSE if it's analysis.
17091         (vectorizable_conversion, vectorizable_operation,
17092         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
17094 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
17096         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17097         Delete.
17098         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
17099         New define.
17100         * config/mips/mips-protos.h
17101         (mips_small_register_classes_for_mode_p): Delete prototype.
17103 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
17105         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
17106         * config/arm/arm.c (multiple_operation_profitable_p,
17107         compute_offset_order): New static functions.
17108         (load_multiple_sequence, store_multiple_sequence): Use them.
17109         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
17110         memory offsets, not register numbers.
17111         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
17113 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
17115         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
17116         (get_pending_sizes, put_pending_size, put_pending_sizes):
17117         Update the uses of pending_sizes.
17118         * c-decl.c (store_parm_decls): Likewise.
17119         * c-tree.h (struct c_arg_info): Likewise.
17120         * tree.h: Update the prototype for get_pending_sizes and
17121         put_pending_sizes.
17123 2010-05-05  Jason Merrill  <jason@redhat.com>
17125         PR debug/43370
17126         * c-common.c (handle_aligned_attribute): Respect
17127         ATTR_FLAG_TYPE_IN_PLACE.
17129         PR testsuite/43758
17130         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
17131         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17132         (TARGET_INITIALIZER): Use it.
17133         * c-common.c (attribute_takes_identifier_p): Call it.
17134         * c-common.h: Update prototype.
17135         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
17136         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
17138 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17140         PR debug/43950
17141         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
17142         DW_ID_down_case for Fortran compilation units.
17144 2010-05-05  Jan Hubicka  <jh@suse.cz>
17146         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
17147         handle aliases.
17149 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
17151         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
17152         a variable-sized RESULT_DECL.
17154 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
17156         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
17158 2010-05-05  Jason Merrill  <jason@redhat.com>
17160         PR c++/43787
17161         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
17162         returns GS_OK.
17163         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
17165 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
17166             Jakub Jelinek  <jakub@redhat.com>
17168         PR debug/43478
17169         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
17170         (dead_debug_init, dead_debug_finish): New functions.
17171         (dead_debug_add, dead_debug_insert_before): Likewise.
17172         (df_note_bb_compute): Initialize a dead_debug object, add dead
17173         debug uses to it, insert debug bind insns before death insns,
17174         reset debug insns that refer to pending uses at the end.
17175         * rtl.h (make_debug_expr_from_rtl): New prototype.
17176         * varasm.c (make_debug_expr_from_rtl): New function.
17178 2010-05-05  Jan Hubicka  <jh@suse.cz>
17180         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
17181         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
17182         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
17183         lto_varpool_encoder_deref, lto_varpool_encoder_size,
17184         lto_varpool_encoder_encode_initializer_p,
17185         lto_set_varpool_encoder_encode_initializer): New functions.
17186         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
17187         call output_varpool.
17188         (input_varpool_node): Do not always set analyzed.
17189         (input_cgraph_1): Return vector of cgraph nodes.
17190         (input_varpool_1): Return vector of varpools.
17191         (input_cgraph): Free the vectors.
17192         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17193         output only initializers needed.
17194         (lto_output): Only call output_cgraph.
17195         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
17196         * lto-section-out.c (lto_new_out_decl_state): Initialize
17197         state->varpool_node_encoder.
17198         * lto-streamer.h (lto_varpool_encoder_d): New.
17199         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
17200         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
17201         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
17202         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
17203         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
17204         Declare.
17205         (output_varpool, input_varpool): Remove declarations.
17207 2010-05-05  Jan Hubicka  <jh@suse.cz>
17209         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
17210         with body can prevail.
17212 2010-05-05  Jan Hubicka  <jh@suse.cz>
17214         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
17215         size.
17217 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17219         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
17221         * gengtype.h (erro_at_line): Constify pos argument.
17223         * gengtype.c: Include hashtab.h.
17224         (enum gc_used): Document GC_MAYBE_POINTED_TO.
17225         (error_at_line): Constify pos argument.
17226         (do_typedef): Initialize p->opt field.
17227         (get_file_gtfilename): Fix comment typo.
17228         (struct walk_type_data): Constify line field.
17229         (get_output_file_for_structure): New function.
17230         (write_local_func_for_structure): Constify orig_s argument.
17231         Use get_output_file_for_structure.
17232         (write_func_for_structure): Use get_output_file_for_structure.
17233         (INDENT): New define.
17234         (dump_pair, dump_type, dump_type_list, dump_typekind)
17235         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
17236         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
17237         functions.
17238         (seen_types): New variable.
17239         (main): New variable do_dump.  Process "-d" command line option.
17240         Call dump_everything if dump requested.
17242 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
17244         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
17245         in a temporary instead of invoking the macro multiple times.
17246         (track_expr_p): Likewise.
17248 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
17250         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
17251         per new semantics.
17252         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
17253         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
17254         conditions for printing notes.
17255         * common.opt (-Wcoverage-mismatch): Allow negative, default to
17256         true, update documentation.
17257         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
17259 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
17261         PR c/43981
17262         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
17263         on dimen.
17265 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17267         PR target/43799
17268         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
17269         (*sse_prologue_save_insn1): Likewise.
17270         (SSE prologue save splitter): Likewise.
17272 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
17274         * tree.c (free_lang_data_in_one_sizepos): New inline function.
17275         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
17276         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
17277         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
17278         all decls.  Call it on DECL_FIELD_OFFSET of fields.
17279         (find_decls_types_r): Follow DECL_VALUE_EXPR.
17280         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
17282 2010-05-04  Martin Jambor  <mjambor@suse.cz>
17284         * tree-sra.c (build_access_from_expr_1): The first parameter type
17285         changed to simple tree.
17286         (build_access_from_expr): Likewise, gsi parameter was eliminated.
17287         (scan_assign_result): Renamed to assignment_mod_result, enum elements
17288         renamed as well.
17289         (build_accesses_from_assign): Removed all parameters except for a
17290         simple gimple statement.  Now returns a simple bool.
17291         (scan_function): All non-analysis parts moved to separate functions
17292         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
17293         parameters and updated both callers.
17294         (sra_modify_expr): Removed parameter data.
17295         (sra_modify_function_body): New function.
17296         (perform_intra_sra): Call sra_modify_function_body to modify the
17297         function body.
17298         (replace_removed_params_ssa_names): Parameter data changed into
17299         adjustments vector.
17300         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
17301         changed the parameter dont_convert to convert with the opposite
17302         meaning.
17303         (sra_ipa_modify_assign): Parameter data changed into adjustments
17304         vector, return value changed to bool.
17305         (ipa_sra_modify_function_body): New function.
17306         (sra_ipa_reset_debug_stmts): Updated a comment.
17307         (modify_function): Use ipa_sra_modify_function_body to modify function
17308         body.
17310 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
17312         PR middle-end/43671
17313         * alias.c (true_dependence): Handle the same VALUE in x and mem.
17314         (canon_true_dependence): Likewise.
17315         (write_dependence_p): Likewise.
17317 2010-05-04  Jan Hubicka  <jh@suse.cz>
17319         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
17320         * cgraphbuild.c: Include ipa-utils.h
17321         (record_reference_ctx): New struct.
17322         (record_reference): Simplify to work on initializers; not statements.
17323         (mark_address, mark_load, mark_store): New.
17324         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17325         walk PHI nodes too.
17326         (record_references_in_initializer): Update use of record_reference.
17327         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
17328         walk PHI nodes too.
17330 2010-05-04  Jan Hubicka  <jh@suse.cz>
17332         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
17333         node will be removed anyway.
17334         (lto_varpool_replace_node): Allow also unanalyzed nodes;
17335         relink aliases of node into prevailing node.
17336         * varpool.c (varpool_remove_node): Remove aliases properly;
17337         when removing node, remove all its aliases too; remove DECL_INITIAL
17338         of removed node; ggc_free the varpool node.
17340 2010-05-04  Richard Guenther  <rguenther@suse.de>
17342         PR tree-optimization/43879
17343         * tree-ssa-structalias.c (alias_get_name): Use
17344         DECL_ASSEMBLER_NAME if available.
17345         (create_function_info_for): Return the varinfo node.
17346         (ipa_pta_execute): Associate same-body aliases and extra names
17347         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
17349 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17351         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
17353 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
17355         PR bootstrap/43964
17356         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
17357         only if HONOR_REG_ALLOC_ORDER is not defined.
17359 2010-05-04  Richard Guenther  <rguenther@suse.de>
17361         PR tree-optimization/43949
17362         * tree-vrp.c (extract_range_from_binary_expr): Only handle
17363         TRUNC_MOD_EXPR.
17365 2010-04-26  Jason Merrill  <jason@redhat.com>
17367         * c.opt (-fstrict-enums): New.
17368         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
17370 2010-05-03  David Ung  <davidu@mips.com>
17371             James E. Wilson  <wilson@codesourcery.com>
17373         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
17374         emit the trap instruction before the divide for TUNE_74K.
17376 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
17378         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
17379         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
17380         based on the above, for new target hook.
17382         * hooks.c (hook_bool_mode_true): New generic hook.
17383         * hooks.h (hook_bool_mode_true): Add prototype.
17385         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
17386         target hook.
17387         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
17388         target hook, set to hook_bool_mode_false.
17389         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
17390         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
17391         with targetm.small_register_classes_for_mode_p.
17392         (find_reusable_reload): Likewise.
17393         (combine_reloads): Likewise.
17394         * reload1.c (reload_as_needed): Likewise.
17395         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
17396         * ifcvt.c (noce_process_if_block, check_cond_move_block,
17397         dead_or_predicable): Likewise.
17398         * regmove.c (optimize_reg_copy_1): Likewise.
17399         * calls.c (prepare_call_address): Likewise.
17400         (precompute_register_parameters): Likewise.
17402         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
17403         hook definition.
17404         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
17405         implementation of the hook that considers all register classes
17406         small except for SH64.
17407         (sh_override_options): Use the new hook.
17408         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
17409         Add prototype.
17411         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
17412         hook definition.
17413         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
17414         implementation of the hook that considers all register classes
17415         small for THUMB1.
17416         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
17417         Add prototype.
17419         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
17420         hook definition.
17421         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
17422         implementation of the hook that considers all register classes
17423         small for MIPS16.
17424         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
17425         Add prototype.
17427         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
17428         hook definition.
17429         * config/m32c/m32c.h: Likewise.
17430         * config/pdp11/pdp11.h: Likewise.
17431         * config/avr/avr.h: Likewise.
17432         * config/xtensa/xtensa.h: Likewise.
17433         * config/m68hc11/m68hc11.h: Likewise.
17434         * config/mn10300/mn10300.h: Likewise.
17435         * config/mcore/mcore.h: Likewise.
17436         * config/h8300/h8300.h: Likewise.
17437         * config/bfin/bfin.h: Likewise.
17439         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
17440         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
17442 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
17444         * double-int.h (tree_to_double_int): Remove macro.
17445         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
17446         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
17447         (tree_to_double_int): New function.
17448         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
17449         Move ...
17450         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
17452 2010-05-03  Richard Guenther  <rguenther@suse.de>
17454         PR tree-optimization/43971
17455         * tree-ssa-structalias.c (get_constraint_for_1): Fix
17456         constraints in the !flag_delete_null_pointer_checks case.
17458 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
17460         PR debug/43972
17461         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
17462         result mode matches original rtl mode.
17464 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
17466         PR target/43888
17467         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
17469 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17471         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
17472         when processing flag options.
17474 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17476         * gcov-iov.c (main): Change format string placeholder
17477         from %#08x to 0x%08x.
17478         * genchecksum.c (dosum): Change format string placeholder
17479         from %#02x to 0x%02x.
17481 2010-05-02  Richard Guenther  <rguenther@suse.de>
17483         PR tree-optimization/43879
17484         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
17486 2010-05-02  Bruno Haible  <bruno@clisp.org>
17488         * doc/extend.texi (Function Attributes): Fix a typo.
17490 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17492         Revert:
17493         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
17494         placeholder from 0x%x to %#x.
17495         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
17496         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17497         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17498         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17499         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17500         * config/i386/i386.c (ix86_target_string): Ditto.
17501         * config/i386/i386.c (output_pic_addr_const): Ditto.
17502         (print_operand): Ditto.
17504 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
17506         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
17507         placeholder from 0x%x to %#x.
17508         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
17509         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
17510         (ASM_OUTPUT_DEBUG_DATA): Ditto.
17511         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
17512         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
17513         * optc-gen.awk: Ditto.
17514         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
17515         (HOST_WIDE_INT_PRINT_HEX): Ditto.
17516         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
17517         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
17519 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
17521         * target.h (struct calls): Add function_value_regno_p field.
17522         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
17523         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
17524         * targhooks.c (default_function_value_regno_p): New function.
17525         * targhooks.h (default_function_value_regno_p): Declare function.
17526         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
17527         * builtins.c. (apply_result_size): (Ditto.).
17528         * combine.c. (likely_spilled_retval_p): (Ditto.).
17529         * mode-switching.c. Include 'target.h'.
17530         (create_pre_exit): Use function_value_regno_p hook.
17531         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
17532         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
17533         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
17535         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
17536         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
17537         (ix86_function_value_regno_p): Declare as static, change argument
17538         type to const unsigned int.
17539         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
17541 2010-05-01  Richard Guenther  <rguenther@suse.de>
17543         PR tree-optimization/43949
17544         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
17545         types.
17546         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
17548 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
17550         * rtl.h (CONST_DOUBLE_P): Define.
17551         (rtx_to_double_int): Declare.
17552         * emit-rtl.c (rtx_to_double_int): New function.
17553         * dwarf2out.c (insert_double): New function.
17554         (loc_descriptor, add_const_value_attribute): Clean up, use
17555         rtx_to_double_int and insert_double functions.
17557 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
17559         * doc/extend.texi (Inline): Add missing return keyword to examples.
17560         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
17561         "command-line".
17563 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
17565         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
17566         the variable part of the offset as well.  Use highest_pow2_factor for
17567         all alignment checks.
17569 2010-04-30  Richard Guenther  <rguenther@suse.de>
17571         PR tree-optimization/43879
17572         * tree-ssa-structalias.c (type_could_have_pointers): Functions
17573         can have pointers.
17575 2010-04-30  Jan Hubicka  <jh@suse.cz>
17577         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
17578         varpool.
17579         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
17581 2010-04-30  Jan Hubicka  <jh@suse.cz>
17583         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
17584         New.
17585         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
17586         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
17587         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
17588         cgraph_node_set_needs_ltrans_p): Remove.
17590 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
17592         * sdbout.c: Include vec.h, do not include varray.h.
17593         (deferred_global_decls, sdbout_global_decl,
17594         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
17595         * toplev.c: Do not include varray.h.
17596         (dump_memory_report): Do not dump VARRAY statistics.
17597         * gengtype.c (open_base_file): Ignore varray.h.
17598         * Makefile.in: Update for abovementioned changes.
17599         Remove all traces of varray.c and varray.h.
17600         * varray.c: Remove file.
17601         * varray.h: Remove file.
17603 2010-04-30  Jan Hubicka  <jh@suse.cz>
17605         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
17606         references.
17608 2010-04-30  Jan Hubicka  <jh@suse.cz>
17610         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
17611         needed.
17613 2010-04-30  Richard Guenther  <rguenther@suse.de>
17615         * tree-ssa-structalias.c (get_constraint_for_1): Generate
17616         constraints for CONSTRUCTOR.
17618 2010-04-30  Richard Guenther  <rguenther@suse.de>
17620         PR lto/43946
17621         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
17622         first after all lowering passes.
17624 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
17626         * toplev.c: Include varray.h for statistics dumping.
17627         * tree.h: Do not declare varray_head_tag.
17628         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
17629         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
17630         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
17631         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
17632         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
17633         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
17634         c-common.c, c-common.h, reg-stack.c, basic-block.h,
17635         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
17636         include varray.h.
17637         * Makefile.in: Update for abovementioned changes.
17639 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
17641         PR debug/43942
17642         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
17644 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
17646         * config/picochip/picochip.c (picochip_legitimize_address): Define.
17647         Use this function to do machine-specific conversion.
17648         (picochip_legitimize_reload_address): Likewise.
17649         (picochip_legitimate_address_p): Check valid base register only if
17650         strict.
17651         (picochip_check_conditional_copy): Check for modw only if opnd is
17652         register.
17653         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
17654         to call the function in c.
17655         * config/picochip/picochip-protos.h
17656         (picochip_legitimize_reload_address): Define.
17657         * config/picochip/picochip.md (supported_compare1): Define.
17659 2010-04-30  Jan Hubicka  <jh@suse.cz>
17661         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
17662         (cgraph_global_info): Remove inlined.
17663         (LTO_cgraph_tag_names): Remove.
17664         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
17665         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
17666         simplify cgraph tags and document.
17667         (lto_output_node): Use only LTO_cgraph_unavail_node and
17668         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
17669         for_functions_valid, global info, process and output flags.
17670         (input_overwrite_node): Initialize estimated stack size and
17671         estimated growth.  Do not read flags we no longer store.
17672         (input_node): Likewise do not read info no longer stored.
17673         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
17674         flag.
17676 2010-04-30  Richard Guenther  <rguenther@suse.de>
17678         PR tree-optimization/43879
17679         * tree-ssa-structalias.c (get_constraint_for_1): Properly
17680         handle non-zero initializers.
17682 2010-04-30  Richard Guenther  <rguenther@suse.de>
17684         * builtins.c (fold_builtin_1): Delete free (0).
17686 2010-04-29  Jan Hubicka  <jh@suse.cz>
17688         * gengtype.c (open_base_files): Add lto-streamer.h
17689         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
17690         (pass_ipa_cp): GGC collect.
17691         * toplev. (compile_file): Do not output symbols.
17692         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
17693         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
17694         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
17695         * lto-section-in.c: Include ggc.h
17696         (lto_new_in_decl_state): Alloc in GGC.
17697         (lto_delete_in_decl_state): Likewise.
17698         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
17699         Collect.
17701 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
17703         PR target/42895
17704         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
17705         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
17706         (HONOR_REG_ALLOC_ORDER): Describe new macro.
17707         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
17708         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
17709         account only if HONOR_REG_ALLOC_ORDER is not defined.
17710         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
17711         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
17713 2010-04-29  Jon Grant  <04@jguk.org>
17715         * collect2.c (vflag): Change type from int to bool.
17716         (debug): Likewise.
17717         (helpflag): New global bool.
17718         (main): Set vflag and debug with boolean, not integer truth values.
17719         Accept new "--help" option and output usage text if found.
17720         * collect2.h (vflag): Update prototype.
17721         (debug): Likewise.
17723 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17725         PR bootstrap/43936
17726         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
17728 2010-04-29  Richard Guenther  <rguenther@suse.de>
17730         PR bootstrap/43935
17731         * plugin.h (invoke_plugin_callbacks): Annotate arguments
17732         with ATTRIBUTE_UNUSED.
17734 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17736         PR target/43921
17737         * config/i386/i386.c (get_some_local_dynamic_name): Replace
17738         INSN_P with NONDEBUG_INSN_P.
17739         (distance_non_agu_define): Likewise.
17740         (distance_agu_use): Likewise.
17742 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
17744         From Dominique d'Humieres  <dominiq@lps.ens.fr>
17745         PR bootstrap/43858
17746         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
17747         test_set.
17749 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
17751         * plugin.h (invoke_plugin_callbacks): New inline function.
17752         * plugin.c (flag_plugin_added): New global flag.
17753         (add_new_plugin): Initialize above flag.
17754         (invoke_plugin_callbacks): Rename to ...
17755         (invoke_plugin_callbacks_full): ... this.
17757 2010-04-28  Jan Hubicka  <jh@suse.cz>
17759         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
17760         (lto_varpool_replace_node): New.
17761         (lto_symtab_resolve_symbols): Resolve varpool nodes.
17762         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
17763         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
17764         * cgraph.h (varpool_node_ptr): New type.
17765         (varpool_node_ptr): New vector.
17766         (varpool_node_set_def): New structure.
17767         (varpool_node_set): New type.
17768         (varpool_node_set): New vector.
17769         (varpool_node_set_element_def): New structure.
17770         (varpool_node_set_element, const_varpool_node_set_element): New types.
17771         (varpool_node_set_iterator): New type.
17772         (varpool_node): Add prev pointers, add used_from_other_partition,
17773         in_other_partition.
17774         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
17775         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
17776         varpool_get_node, varpool_remove_node): Declare.
17777         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
17778         varpool_node_set_size): New inlines.
17779         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
17780         * tree-pass.h (varpool_node_set_def): Forward declare.
17781         (ipa_opt_pass_d): Summary writting takes vnode sets too.
17782         (ipa_write_optimization_summaries): Update prototype.
17783         * ipa-cp.c (ipcp_write_summary): Update.
17784         * ipa-reference.c (ipa_reference_write_summary): Update.
17785         * lto-cgraph.c (lto_output_varpool_node): New static function.
17786         (output_varpool): New function.
17787         (input_varpool_node): New static function.
17788         (input_varpool_1): New function.
17789         (input_cgraph): Input varpool.
17790         * ipa-pure-const.c (pure_const_write_summary): Update.
17791         * lto-streamer-out.c (lto_output): Update, output varpool too.
17792         (write_global_stream): Kill WPA hack.
17793         (produce_asm_for_decls): Update.
17794         (output_alias_pair_p): Handle variables.
17795         (output_unreferenced_globals): Output only needed partition of varpool.
17796         * ipa-inline.c (inline_write_summary): Update.
17797         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
17798         cgraph.
17799         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
17800         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
17801         varpool_node_set_new, varpool_node_set_add,
17802         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
17803         debug_varpool_node_set): New functions.
17804         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
17805         (execute_one_pass): Process new decls too.
17806         (ipa_write_summaries_2): Pass around vsets.
17807         (ipa_write_summaries_1): Likewise.
17808         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
17809         to add.
17810         (ipa_write_optimization_summaries_1): Pass around vsets.
17811         (ipa_write_optimization_summaries): Likewise.
17812         * varpool.c (varpool_get_node): New.
17813         (varpool_node): Update doubly linked lists.
17814         (varpool_remove_node): New.
17815         (dump_varpool_node): More dumping.
17816         (varpool_enqueue_needed_node): Update doubly linked lists.
17817         (decide_is_variable_needed): Kill ltrans hack.
17818         (varpool_finalize_decl): Kill lto hack.
17819         (varpool_assemble_decl): Skip decls in other partitions.
17820         (varpool_assemble_pending_decls): Update doubly linkes lists.
17821         (varpool_empty_needed_queue): Likewise.
17822         (varpool_extra_name_alias): Likewise.
17823         * lto-streamer.c (lto_get_section_name): Add vars section.
17824         * lto-streamer.h (lto_section_type): Update.
17825         (output_varpool, input_varpool): Declare.
17827 2010-04-28  Mike Stump  <mikestump@comcast.net>
17829         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
17831 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
17833         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
17834         record or union type with RECORD_OR_UNION_TYPE_P predicate.
17835         (lto_input_ts_type_tree_pointers): Likewise.
17836         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
17837         (lto_output_ts_type_tree_pointers): Likewise.
17839 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
17841         Uniquization of constants at the Tree level
17842         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
17843         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
17844         bit to the end.
17845         (tree_output_constant_def): Declare.
17846         * gimplify.c (gimplify_init_constructor): When using block copy, first
17847         uniquize the constant constructor on the RHS.
17848         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
17849         DECL_IN_CONSTANT_POOL flag.
17850         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
17851         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
17852         constant pool.
17853         (assemble_variable): Deal with symbols belonging to the tree constant
17854         pool.
17855         (get_constant_section): Add ALIGN parameter and simplify.
17856         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
17857         (assemble_constant_contents): Use the expression of the VAR_DECL.
17858         (output_constant_def_contents): Use the alignment of the VAR_DECL.
17859         (tree_output_constant_def): New global function.
17860         (mark_constant): Use the expression of the VAR_DECL.
17861         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
17862         its expression.
17863         (output_object_block): Likewise and assemble the expression.
17865 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
17867         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
17868         hash_tree, eq_tree): New tree hash table.
17869         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
17870         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
17871         lto_orig_address_remove): Reimplement.
17873 2010-04-28  Xinliang David Li  <davidxl@google.com>
17875         PR c/42643
17876         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
17877         (compute_uninit_opnds_pos): New function.
17878         (is_non_loop_exit_postdominating): New function.
17879         (compute_control_dep_chain): New function.
17880         (find_pdom): New function.
17881         (convert_control_dep_chain_into_preds): New function.
17882         (find_predicates): New function.
17883         (find_control_equiv_block): New function.
17884         (collect_phi_def_edges): New function.
17885         (find_def_preds): New function.
17886         (find_dom): New function.
17887         (dump_predicates): New function.
17888         (get_cmp_code): New function.
17889         (is_value_included_in): New function.
17890         (find_matching_predicate_in_rest_chains): New function.
17891         (use_pred_not_overlap_with_undef_path_pred): New function.
17892         (is_use_properly_guarded): New function.
17893         (normalize_cond_1): New function.
17894         (is_and_or_or): New function.
17895         (normalize_cond): New function.
17896         (is_gcond_subset_of): New function.
17897         (is_subset_of_any): New function.
17898         (is_or_set_subset_of): New function.
17899         (is_and_set_subset_of): New function.
17900         (is_norm_cond_subset_of): New function.
17901         (is_pred_expr_subset_of): New function.
17902         (is_pred_chain_subset_of): New function.
17903         (is_included_in): New function.
17904         (is_superset_of): New function.
17905         (find_uninit_use): New function.
17906         (warn_uninitialized_phi): New function.
17907         (compute_possibly_undefined_names): New function.
17908         (ssa_undefined_value_p): New function.
17909         (execute_late_warn_uninitialized): New function.
17910         * tree-ssa.c (ssa_undefined_value_p): Removed.
17911         (warn_uninit): Changed to extern.
17912         (warn_uninitialized_phi): Removed.
17913         (warn_uninitialized_vars): Changed to extern.
17914         (execute_late_warn_uninitialized): Removed
17915         * tree-flow.h: Add new prototypes.
17916         * timevar.def: Add new time variable.
17917         * Makefile.in: Add new build file.
17919 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
17921         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
17922         type if available.
17924 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17926         PR target/22224
17927         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
17929 2010-04-28  Martin Jambor  <mjambor@suse.cz>
17931         * cgraph.h (struct cgraph_node): New field indirect_calls.
17932         (struct cgraph_indirect_call_info): New type.
17933         (struct cgraph_edge): Removed field indirect_call. New fields
17934         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
17935         (cgraph_create_indirect_edge): Declare.
17936         (cgraph_make_edge_direct): Likewise.
17937         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
17938         * ipa-prop.h (struct ipa_param_call_note): Removed.
17939         (struct ipa_node_params): Removed field param_calls.
17940         (ipa_create_all_structures_for_iinln): Declare.
17941         * cgraph.c: Described indirect edges and uids in initial comment.
17942         (cgraph_add_edge_to_call_site_hash): New function.
17943         (cgraph_edge): Search also among the indirect edges, use
17944         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
17945         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
17946         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
17947         site hash.
17948         (initialize_inline_failed): Assign a reason to indirect edges.
17949         (cgraph_create_edge_1): New function.
17950         (cgraph_create_edge): Moved some functionality to
17951         cgraph_create_edge_1.
17952         (cgraph_create_indirect_edge): New function.
17953         (cgraph_edge_remove_callee): Add an assert checking for
17954         non-indirectness.
17955         (cgraph_edge_remove_caller): Special-case indirect edges.
17956         (cgraph_remove_edge): Likewise.
17957         (cgraph_set_edge_callee): New function.
17958         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
17959         (cgraph_make_edge_direct): New function.
17960         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
17961         the declaration of the call statement matches.
17962         (cgraph_node_remove_callees): Special-case indirect edges.
17963         (cgraph_clone_edge): Likewise.
17964         (cgraph_clone_node): Clone also the indirect edges.
17965         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
17966         indirect_call, dump count of indirect_calls edges.
17967         * ipa-prop.c (iinlining_processed_edges): New variable.
17968         (ipa_note_param_call): Create indirect edges instead of
17969         creating notes.  New parameter node.
17970         (ipa_analyze_call_uses): New parameter node, pass it on to
17971         ipa_note_param_call.
17972         (ipa_analyze_stmt_uses): Likewise.
17973         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
17974         (print_edge_addition_message): Work on edges rather than on notes.
17975         (update_call_notes_after_inlining): Likewise, renamed to
17976         update_indirect_edges_after_inlining.
17977         (ipa_create_all_structures_for_iinln): New function.
17978         (ipa_free_node_params_substructures): Do not free notes.
17979         (ipa_edge_duplication_hook): Propagate bits within
17980         iinlining_processed_edges bitmap.
17981         (ipa_node_duplication_hook): Do not duplicate notes.
17982         (free_all_ipa_structures_after_ipa_cp): Renamed to
17983         ipa_free_all_structures_after_ipa_cp.
17984         (free_all_ipa_structures_after_iinln): Renamed to
17985         ipa_free_all_structures_after_iinln.
17986         (ipa_write_param_call_note): Removed.
17987         (ipa_read_param_call_note): Removed.
17988         (ipa_write_indirect_edge_info): New function.
17989         (ipa_read_indirect_edge_info): Likewise.
17990         (ipa_write_node_info): Do not stream notes, do stream information
17991         in indirect edges.
17992         (ipa_read_node_info): Likewise.
17993         (lto_ipa_fixup_call_notes): Removed.
17994         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
17995         * ipa-inline.c (pass_ipa_inline): Likewise.
17996         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
17997         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
17998         * tree-inline.c (copy_bb): Removed an unnecessary double check for
17999         is_gimple_call.
18000         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
18001         edges.
18002         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
18003         (output_cgraph): Stream also indirect edges.
18004         (lto_output_edge): Added capability to stream indirect edges.
18005         (input_edge): Likewise.
18006         (input_cgraph_1): Likewise.
18007         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
18008         of indirect edges.
18010 2010-04-28  Richard Guenther  <rguenther@suse.de>
18012         PR tree-optimization/43879
18013         PR tree-optimization/43909
18014         * tree-ssa-structalias.c (struct variable_info): Add
18015         only_restrict_pointers flag.
18016         (new_var_info): Initialize it.  Increment stats.total_vars here.
18017         (create_function_info_for): Do not increment stats.total_vars here.
18018         (get_function_part_constraint): Fix build with C++.
18019         (insert_into_field_list): Remove.
18020         (push_fields_onto_fieldstack): Properly merge fields.
18021         (create_variable_info_for): Split and simplify.
18022         (create_variable_info_for_1): New piece.
18023         (intra_create_variable_infos): Properly make restrict constraints
18024         from parameters.
18026 2010-04-28  Richard Guenther  <rguenther@suse.de>
18028         PR c++/43880
18029         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
18031 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18032             Jan Hubicka  <hubicka@ucw.cz>
18034         * doc/invoke.texi (-Wsuggest-attribute=const,
18035         -Wsuggest-attribute=pure): Document.
18036         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
18037         (function_always_visible_to_compiler_p,
18038         suggest_attribute, warn_function_pure, warn_function_const):
18039         New functions.
18040         (check_call): Improve debug info.
18041         (analyze_function): Do not check availability.
18042         (add_new_function): Check availability.
18043         (propagate): Output warnings.
18044         (skip_function_for_local_pure_const): New function.
18045         (local_pure_const): Use it; output warnings.
18046         * common.opt (Wsuggest-attribute=const,
18047         Wsuggest-attribute=pure): New.
18049 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18051         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
18052         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
18053         or DW_CFA_def_cfa_offset{,_sf}.
18055 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18057         * tree.h: Fix truncated long macros.
18059 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
18061         * collect2.c (TARGET_64BIT): Redefine to target's default.
18062         * tlink.c: Likewise.
18063         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
18064         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
18065         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
18066         for underscoring __USER_LABEL_PREFIX__.
18067         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
18068         (SUB_LINK_ENTRY32): New.
18069         (SUB_LINK_ENTRY64): New.
18070         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
18071         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
18072         (SUB_LINK_ENTRY64): New.
18073         (SUB_LINK_ENTRY): New.
18074         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
18075         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
18076         x64 target is choosen.
18077         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
18078         * configure: Regenerated.
18079         * configure.ac (leading-mingw64-underscores): Option added.
18081 2010-04-27  Jan Hubicka  <jh@suse.cz>
18083         * doc/invoke.texi (-fipa-profile): Document.
18084         * opts.c (decode_options): Enable ipa-profile at -O1.
18085         * timevar.def (TV_IPA_PROFILE): Define.
18086         * common.opt (fipa-profile): Add.
18087         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
18088         flag for clones.
18089         (cgraph_propagate_frequency): Handle only local ones.
18090         * tree-pass.h (pass_ipa_profile): Declare.
18091         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
18092         (pass_ipa_profile): Use TV_IPA_PROFILE.
18093         * ipa.c (ipa_profile): New function.
18094         (gate_ipa_profile): Likewise.
18095         (pass_ipa_profile): New global variable.
18096         * passes.c (pass_ipa_profile): New.
18098 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
18100         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
18102 2010-04-27  Martin Jambor  <mjambor@suse.cz>
18104         PR middle-end/43812
18105         * ipa.c (dissolve_same_comdat_group_list): New function.
18106         (function_and_variable_visibility): Call
18107         dissolve_same_comdat_group_list when comdat group contains external or
18108         newly local nodes.
18109         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
18110         lists are circular and that they contain only DECL_ONE_ONLY nodes.
18112 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18114         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
18115         (const_hash_1) <VECTOR_CST>: New case.
18116         (compare_constant) <VECTOR_CST>: Likewise.
18117         <ADDR_EXPR>: Deal with LABEL_REFs.
18118         (copy_constant) <VECTOR_CST>: New case.
18120 2010-04-27  Jan Hubicka  <jh@suse.cz>
18122         * cgraph.c (cgraph_propagate_frequency): New function.
18123         * cgraph.h (cgraph_propagate_frequency): Declare.
18124         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
18125         cgraph_propagate_frequency.
18127 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
18129         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
18131 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
18133         PR target/40657
18134         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
18135         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
18136         here to determine which regs to push and how much stack to reserve.
18138 2010-04-27  Jie Zhang  <jie@codesourcery.com>
18140         * doc/gimple.texi (gimple_statement_with_ops): Remove
18141         addresses_taken field.
18142         (gimple_statement_with_memory_ops): Likewise.
18144 2010-04-27  Jan Hubicka  <jh@suse.cz>
18146         * tree-inline.c (eni_inlining_weights): Remove.
18147         (estimate_num_insns): Special case more builtins.
18149 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
18151         PR c/32207
18152         * c-typeck.c (build_binary_op): Move forward check for comparison
18153         pointer with null pointer constant and adjust the diagnostic message.
18155 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
18157         PR lto/42776
18158         * configure.ac (gcc_cv_as_section_has_align): Set if installed
18159         binutils supports extended .section directive needed by LTO, or
18160         warn if older binutils found.
18161         (LTO_BINARY_READER): New AC_SUBST'd variable.
18162         (LTO_USE_LIBELF): Likewise.
18163         * gcc/config.gcc (lto_binary_reader): New target-specific configure
18164         variable.
18165         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
18166         (LTO_USE_LIBELF): Likewise.
18167         * configure: Regenerate.
18169         * collect2.c (is_elf): Rename from this ...
18170         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
18171          object files in addition to ELF-formatted ones.
18172         (scan_prog_file): Caller updated.  Also allow for LTO info marker
18173         symbol to be prefixed or not by an extra underscore.
18175         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
18176         * config/i386/winnt.c: Also #include lto-streamer.h
18177         (i386_pe_asm_named_section): Specify 1-byte section alignment for
18178         LTO named sections.
18179         (i386_pe_asm_output_aligned_decl_common): Add comment.
18180         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
18182 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
18184         PR target/43889
18185         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
18186         Add missing earlyclobber for second alternative.
18188 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
18190         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
18191         bits for artificial defs at the top of the block.
18192         * fwprop.c (single_def_use_enter_block): Don't call it.
18194 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
18196         PR 43715
18197         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
18198         instead of "$gcc_cv_objdump -T".
18199         Use "-undefined dynamic_lookup" on darwin.
18200         * gcc/configure: Regenerate.
18202 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
18204         PR c/43893
18205         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
18207 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18209         * c-parser.c (struct c_token): Move location field up.
18210         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
18211         (struct c_declspecs): Convert typespec_word, storage_class, and
18212         default_int_p into bitfields.
18213         (struct c_declarator): Move loc field up.
18215 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
18217         * cfgloop.h (struct loop): Move can_be_parallel field up.
18218         * ipa-prop.h (struct ip_node_params): Move bitfields up.
18219         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
18220         down.
18221         (struct iv_cand): Convert pos field into a bitfield.
18222         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
18223         field up.
18224         (struct _stmt_vec_info): Shuffle fields for better packing.
18226 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18228         * varasm.c (IN_NAMED_SECTION): Remove guard.
18229         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
18230         (IN_NAMED_SECTION_P): ...this.
18231         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
18232         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
18234 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
18236         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
18237         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
18238         of shadowing it.  Fix comments.
18240 2010-04-26  Jan Hubicka  <jh@suse.cz>
18242         * cgraph.c (cgraph_create_node): Set node frequency to normal.
18243         (cgraph_clone_node): Copy function frequency.
18244         * cgraph.h (node_frequency): New enum
18245         (struct cgraph_node): Add.
18246         * final.c (rest_of_clean_state): Update.
18247         * lto-cgraph.c (lto_output_node): Output node frequency.
18248         (input_overwrite_node): Input node frequency.
18249         * tre-ssa-loop-ivopts (computation_cost): Update.
18250         * lto-streamer-out.c (output_function): Do not output function
18251         frequency.
18252         * predict.c (maybe_hot_frequency_p): Update and handle functions
18253         executed once.
18254         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
18255         attribute lookup.
18256         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
18257         (compute_function_frequency): Set noreturn functions to be executed
18258         once.
18259         (choose_function_section): Update.
18260         * lto-streamer-in.c (input_function): Do not input function frequency.
18261         * function.c (allocate_struct_function): Do not initialize function
18262         frequency.
18263         * function.h (function_frequency): Remove.
18264         (struct function): Remove function frequency.
18265         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
18266         (try_update): Update.
18267         * tree-inline.c (initialize_cfun): Do not update function frequency.
18268         * passes.c (pass_init_dump_file): Update.
18269         * i386.c (ix86_compute_frame_layout): Update.
18270         (ix86_pad_returns): Update.
18272 2010-04-26  Jie Zhang  <jie@codesourcery.com>
18274         PR tree-optimization/43833
18275         * tree-vrp.c (range_int_cst_p): New.
18276         (range_int_cst_singleton_p): New.
18277         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
18278         when both operands are constants.  Use range_int_cst_p in
18279         BIT_IOR_EXPR case.
18281 2010-04-26  Jan Hubicka  <jh@suse.cz>
18283         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
18285 2010-04-26  Richard Guenther  <rguenther@suse.de>
18287         PR lto/43080
18288         * gimple.c (gimple_decl_printable_name): Deal gracefully
18289         with a NULL DECL_NAME.
18291 2010-04-26  Richard Guenther  <rguenther@suse.de>
18293         PR lto/42425
18294         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
18295         if emitting debug information and it is either a function
18296         or a namespace decl.
18298 2010-04-26  Ira Rosen  <irar@il.ibm.com>
18300         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
18301         determine if the statement is vectorizable, and a macro to access it.
18302         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18303         Skip statements that can't be vectorized. If the analysis fails,
18304         mark the statement as unvectorizable if vectorizing basic block.
18305         (vect_compute_data_refs_alignment): Likewise.
18306         (vect_verify_datarefs_alignment): Skip statements marked as
18307         unvectorizable. Add print.
18308         (vect_analyze_group_access): Skip statements that can't be
18309         vectorized. If the analysis fails, mark the statement as
18310         unvectorizable if vectorizing basic block.
18311         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
18312         * tree-vect-stmts.c (vectorizable_store): Fix the number of
18313         generated stmts for SLP.
18314         (new_stmt_vec_info): Initialize the new field.
18315         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
18316         statements marked as unvectorizable.
18318 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
18320         * c-common.c (flag_isoc1x): New.
18321         (flag_isoc99): Update comment.
18322         * c-common.h (flag_isoc1x): New.
18323         (flag_isoc99): Update comment.
18324         * c-cppbuiltin.c (builtin_define_float_constants): Also define
18325         __<type>_DECIMAL_DIG__.
18326         * c-opts.c (set_std_c1x): New.
18327         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
18328         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
18329         * c.opt (-std=c1x, -std=gnu1x): New options.
18330         * doc/cpp.texi: Mention -std=c1x.
18331         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
18332         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
18333         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
18334         * doc/standards.texi: Mention C1X.
18335         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
18336         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
18337         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
18338         Define for C1X.
18340 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
18342         * config/i386/gmon-sol2.c (_mcleanup): Change format string
18343         placeholder from 0x%x to %#x.
18344         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18345         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18346         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18347         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18348         * config/i386/i386.c (ix86_target_string): Ditto.
18349         (output_pic_addr_const): Ditto.
18350         (print_operand): Ditto.
18352 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
18354         * combine.c (find_split_point): Add third argument.  Use it
18355         to find nested multiply-accumulate instructions.  Adjust calls.
18356         (try_combine): Adjust call to find_split_point.
18358 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
18360         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
18362 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
18364         PR tree-optimization/41442
18365         * fold-const.c (merge_truthop_with_opposite_arm): New function.
18366         (fold_binary_loc): Call it.
18368 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18370         * toplev.c (general_init): Set default for fdiagnostics-show-option.
18371         * opts.c (common_handle_option): Allow disabling it.
18372         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
18374 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
18376         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
18377         between modes if both types are integral.
18379 2010-04-23  Richard Guenther  <rguenther@suse.de>
18381         PR tree-optimization/43572
18382         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
18384 2010-04-23  Richard Guenther  <rguenther@suse.de>
18386         PR lto/43455
18387         * tree-inline.c (tree_can_inline_p): Also check compatibility
18388         of return types.
18390 2010-04-23  Martin Jambor  <mjambor@suse.cz>
18392         PR tree-optimization/43846
18393         * tree-sra.c (struct access): New flag grp_assignment_read.
18394         (build_accesses_from_assign): Set grp_assignment_read.
18395         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
18396         (enum mark_read_status): New type.
18397         (analyze_access_subtree): Propagate grp_assignment_read, create
18398         accesses also if both direct_read and root->grp_assignment_read.
18400 2010-04-23  Martin Jambor  <mjambor@suse.cz>
18402         PR middle-end/43835
18403         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
18404         function does not have type attributes.
18406 2010-04-23  Richard Guenther  <rguenther@suse.de>
18408         PR lto/42653
18409         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
18410         of FUNCTION_DECLs.
18412 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18414         * sese.h (create_if_region_on_edge): Remove.
18416         * sese.c (create_if_region_on_edge): Make static.
18418         * tree-inline.c: Do not include ggc.h.
18420         * expr.c: Do not include ggc.h.
18422         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
18423         dependencies.
18425 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
18427         PR target/43744
18428         * config/sh/sh.c (find_barrier): Don't emit a constant pool
18429         in the middle of insns for casesi_worker_2.
18431 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
18433         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
18435 2010-04-22  Ira Rosen  <irar@il.ibm.com>
18437         PR tree-optimization/43842
18438         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
18439         loop unrolling in update of exit phis. Fix comment.
18440         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
18441         least two reduction statements in the loop before starting SLP
18442         analysis.
18444 2010-04-22  Nick Clifton  <nickc@redhat.com>
18446         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
18448 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
18450         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
18451         to simplify a + ~a.
18453 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18455         * tree-parloops.c (loop_parallel_p): New argument
18456         parloop_obstack.  Pass it down.
18457         (parallelize_loops): New variable parloop_obstack.  Initialize it,
18458         pass it down, free it.
18460         * tree-loop-linear.c (linear_transform_loops): Pass down
18461         lambda_obstack.
18463         * tree-data-ref.h (lambda_compute_access_matrices): New argument
18464         of type struct obstack *.
18466         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
18467         scratch_obstack.  Initialize it, pass down, free it.
18469         * lambda.h (lambda_loop_new): Remove.
18470         (lambda_matrix_new, lambda_matrix_inverse)
18471         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
18472         argument of type struct obstack *.
18474         * lambda-trans.c (lambda_trans_matrix_new): New argument
18475         lambda_obstack.  Pass it down, use obstack allocation for ret.
18476         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
18477         it down.
18479         * lambda-mat.c (lambda_matrix_get_column)
18480         (lambda_matrix_project_to_null): Remove.
18481         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
18482         allocation for mat.
18483         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
18484         lambda_obstack.
18486         * lambda-code.c (lambda_loop_new): New function.
18487         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
18488         (lambda_compute_auxillary_space, lambda_compute_target_space)
18489         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
18490         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
18491         (build_access_matrix): New argument lambda_obstack.  Use obstack
18492         allocation for am.
18493         (lambda_compute_step_signs, lambda_compute_access_matrices): New
18494         argument lambda_obstack.  Pass it down.
18496 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
18498         * optabs.h (expand_widening_mult): Declare.
18500 2010-04-22  Richard Guenther  <rguenther@suse.de>
18502         PR tree-optimization/43845
18503         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
18504         lookup the CALL_EXPR function and arguments.
18506 2010-04-22  Nick Clifton  <nickc@redhat.com>
18508         * config/stormy16/stormy16.c
18509         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
18510         * config/stormy16/stormy16.h: Tidy up formatting.
18511         (DONT_USE_BUILTIN_SETJMP): Remove definition.
18512         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
18513         (ineqbranchsi): Delete pattern.
18514         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
18515         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
18516         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
18517         stormy16-lib2-ucmpsi2.c.
18519 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
18521         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
18522         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
18523         extra set merge_set_noclobber, and use it to relax the final test
18524         slightly.
18525         * df.h (df_simulate_find_noclobber_defs): Declare.
18526         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
18527         conditional defs.
18528         (df_simulate_find_noclobber_defs): New function.
18530 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
18532         * config/i386/i386.md: Use {} around multi-line preparation statements.
18534 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18536         * c-tree.h (push_init_level, pop_init_level, set_init_index)
18537         (process_init_element): New argument of type struct obstack *.
18539         * c-typeck.c (push_init_level, pop_init_level, set_designator)
18540         (set_init_index, set_init_label, set_nonincremental_init)
18541         (set_nonincremental_init_from_string, find_init_member)
18542         (output_init_element, output_pending_init_elements)
18543         (process_init_element): New argument braced_init_obstack.  Pass it
18544         down.
18545         (push_range_stack, add_pending_init): New argument
18546         braced_init_obstack.  Use obstack allocation.
18548         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
18549         braced_init_obstack.  Pass it down.
18550         (c_parser_braced_init): New variables ret, braced_init_obstack.
18551         Initialize obstack, pass it down and finally free it.
18553 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
18555         PR middle-end/29274
18556         * tree-pass.h (pass_optimize_widening_mul): Declare.
18557         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
18558         gate_optimize_widening_mul): New static functions.
18559         (pass_optimize_widening_mul): New.
18560         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
18561         <case MULT_EXPR>: Remove support for widening multiplies.
18562         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
18563         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
18564         simplify_gen_unary rather than directly building extensions.
18565         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
18566         WIDEN_MULT_EXPR.
18567         * expmed.c (expand_widening_mult): New function.
18568         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
18570 2010-04-21  Jan Hubicka  <jh@suse.cz>
18572         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
18573         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
18574         * lto-wpa-fixup.c: Remove.
18575         * Makefile.in (lto-wpa-fixup.o): Remove.
18576         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
18577         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
18578         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
18580 2010-04-21  Jan Hubicka  <jh@suse.cz>
18582         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
18583         add write_optimization_summary, read_optimization_summary.
18584         (ipa_write_summaries_of_cgraph_node_set): Remove.
18585         (ipa_write_optimization_summaries): Declare.
18586         (ipa_read_optimization_summaries): Declare.
18587         * ipa-cp.c (pass_ipa_cp): Update.
18588         * ipa-reference.c (pass_ipa_reference): Update.
18589         * ipa-pure-const.c (pass_ipa_pure_const): Update.
18590         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
18591         Update.
18592         * ipa-inline.c (pass_ipa_inline): Update.
18593         * ipa.c (pass_ipa_whole_program): Update.
18594         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
18595         * passes.c (ipa_write_summaries_1): Do not test wpa.
18596         (ipa_write_optimization_summaries_1): New.
18597         (ipa_write_optimization_summaries): New.
18598         (ipa_read_summaries): Do not test ltrans.
18599         (ipa_read_optimization_summaries_1): New.
18600         (ipa_read_optimization_summaries): New.
18602 2010-04-21  Jan Hubicka  <jh@suse.cz>
18604         * lto-cgraph.c (lto_output_node): Do not output comdat groups
18605         for boundary nodes.
18606         (output_cgraph): Do not arrange comdat groups for boundary nodes.
18608 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18610         PR debug/40040
18611         * dwarf2out.c (add_name_and_src_coords_attributes): Add
18612         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
18614 2010-04-21  Jan Hubicka  <jh@suse.cz>
18616         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
18618 2010-04-21  Jan Hubicka  <jh@suse.cz>
18620         * varpool.c (decide_is_variable_needed): Variable is always needed
18621         during ltrans.
18623 2010-04-21  Jan Hubicka  <jh@suse.cz>
18625         * opts.c (decode_options): Enable pure-const pass for whopr.
18627 2010-04-21  Jan Hubicka  <jh@suse.cz>
18629         * cgraph.c (dump_cgraph_node): Dump also assembler name.
18630         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
18631         at WPA dumping.
18632         (cgraph_decide_inlining): Do not expect callee to be removed in all
18633         cases.
18635 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
18637         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
18639 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
18641         * config/i386/i386.md (x86_shrd): Add athlon_decode and
18642         amdfam10_decode attributes.
18644 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18646         PR middle-end/43570
18647         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
18648         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
18649         (lower_copyprivate_clauses): Use private var in outer
18650         context instead of original var.  Make sure the types
18651         are correct for VLAs.
18653 2010-04-21  Richard Guenther  <rguenther@suse.de>
18655         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
18656         to non-pointer objects.
18658 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
18660         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
18661         last chain entry if it starts with the still current label.
18662         (add_location_or_const_value_attribute): Check that
18663         loc_list->first->next is NULL instead of comparing ->first with ->last.
18664         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
18665         to add_var_loc_to_decl.
18667         * dwarf2out.c (output_call_frame_info): For dw_cie_version
18668         >= 4 add also address size and segment size fields into CIE header.
18670         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
18671         long as address size is the same as sizeof (void *) and
18672         segment size is 0.
18673         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
18674         address size or segment size is unexpected, return DW_EH_PE_omit.
18675         (classify_object_over_fdes): If get_cie_encoding returned
18676         DW_EH_PE_omit, return -1.
18677         (init_object): If classify_object_over_fdes returned -1,
18678         pretend there were no FDEs at all.
18680 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
18682         * config/i386/i386.md (bswap<mode>2): Macroize expander from
18683         bswap{si,di}2 using SWI48 mode iterator.
18684         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
18685         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
18686         set modrm attribute of bswap insn to 0 and remove length attribute.
18687         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
18688         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
18689         set mode attribute to <MODE> and remove length attribute.
18691 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
18693         PR rtl-optimization/43520
18694         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
18695         zero available registers.
18697 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18699         * builtins.c (fold_builtin_cproj): Fold more cases.
18701 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18703         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
18704         (fold_builtin_1): Fold builtin cproj.
18705         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
18706         Use ATTR_CONST_NOTHROW_LIST.
18708 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
18710         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
18711         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
18712         ffsi2_no_cmove for !TARGET_CMOVE.
18713         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
18714         (ffssi2): Remove expander.
18715         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
18716         mode iterator.
18717         (ctz<mode>2): Ditto from ctz{si,di}2.
18718         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
18719         mode iterator.
18720         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
18721         mode iterator.
18723 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18725         * dwarf2out.c (AT_linkage_name): Define.
18726         (clone_as_declaration): Handle DW_AT_linkage_name.
18727         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
18728         of DW_AT_MIPS_linkage_name.
18729         (move_linkage_attr): Likewise.
18730         (dwarf2out_finish): Likewise.
18732 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
18734         PR middle-end/41952
18735         * fold-const.c (fold_comparison): New folding rule.
18737 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
18739         * double-int.h (double_int_setbit): Declare.
18740         * double-int.c (double_int_setbit): New function.
18741         * rtl.h (immed_double_int_const): Declare.
18742         * emit-rtl.c (immed_double_int_const): New function.
18743         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
18744         and immed_double_int_const functions.
18745         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
18746         expand_copysign_bit): (Ditto.).
18747         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
18748         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
18749         * dojump.c (prefer_and_bit_test): (Ditto.).
18750         * expr.c (convert_modes, reduce_to_bit_field_precision,
18751         const_vector_from_tree): (Ditto.).
18752         * expmed.c (mask_rtx, lshift_value): (Ditto.).
18754 2010-04-20  Jan Hubicka  <jh@suse.cz>
18756         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
18757         (dump_cgraph_node): Dump new flags.
18758         * cgraph.h (struct cgraph_node): Add flags
18759         reachable_from_other_partition and in_other_partition.
18760         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
18761         other partition can not be removed.
18762         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
18763         the other partition must be output; silence sanity checking on
18764         leaking functions bodies from other paritition.
18765         * lto-cgraph.c (reachable_from_other_partition_p): New function.
18766         (lto_output_node): Output new flags; do not sanity check that inline
18767         clones are output; drop lto_forced_extern_inline_p code; do not mock
18768         visibility flags at partition boundaries.
18769         (add_node_to): New function.
18770         (output_cgraph): Use it to sort functions so masters appear before
18771         clones.
18772         (input_overwrite_node): Input new flags.
18773         * passes.c (ipa_write_summaries): Do not call
18774         lto_new_extern_inline_states.
18775         * lto-section-out.c (forced_extern_inline,
18776         lto_new_extern_inline_states lto_delete_extern_inline_states,
18777         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
18778         * lto-streamer.h (lto_new_extern_inline_states,
18779         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
18780         lto_forced_extern_inline_p): Kill.
18782 2010-04-20  Richard Guenther  <rguenther@suse.de>
18784         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
18785         from vars that can have pointers.
18786         (process_constraint): Dump useless constraints.
18788 2010-04-20  Richard Guenther  <rguenther@suse.de>
18790         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
18791         (dump_sa_points_to_info): Remove asserts.
18792         (init_base_vars): nothing_id isn't an escape point nor does it
18793         have pointers.
18795 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
18797         * tree.h (TYPE_REF_IS_RVALUE): Define.
18798         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
18799         should_move_die_to_comdat, prune_unused_types_walk): Handle
18800         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
18801         (modified_type_die, gen_reference_type_die): Emit
18802         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
18803         if TYPE_REF_IS_RVALUE and -gdwarf-4.
18805 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18807         PR target/43635
18808         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
18809         calls for -fpic -m31 if they have been sibcall optimized.
18811 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
18813         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
18814         ar.lc fixed and call-used.
18816         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
18818 2010-04-19  Jan Hubicka  <jh@suse.cz>
18820         * opts.c (decode_options): Disable whpr incompatible passes.
18821         * lto/lto.c (lto_1_to_1_map): Skip clones.
18822         (read_cgraph_and_symbols): Do not mark everything as needed.
18823         (do_whole_program_analysis): Do map only after optimizing;
18824         set proper cgraph_state; use passmanager.
18826 2010-04-19  DJ Delorie  <dj@redhat.com>
18828         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
18829         POINTER_PLUS_EXPR and fix them.
18831 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
18833         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
18834         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
18835         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
18836         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
18837         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
18838         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
18839         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
18840         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
18841         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
18842         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
18843         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
18845 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18847         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
18848         (check_cond_move_block): Likewise.
18849         (cond_move_process_if_block): Likewise.
18850         (noce_find_if_block): Improve formatting.
18851         (find_if_header): Pass 0 to memset and tweak conditions.
18852         (cond_exec_find_if_block): Fix long lines and tweak conditions.
18854 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
18856         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
18857         for -gdwarf-4.
18859         PR middle-end/43337
18860         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
18861         with non-local decl doesn't need chain.
18863 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
18865         * ira-color.c (allocno_reload_assign): Avoid accumulating
18866         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
18868 2010-04-19  Martin Jambor  <mjambor@suse.cz>
18870         * gimple.h (create_tmp_reg): Declare.
18871         * gimplify.c (create_tmp_reg): New function.
18872         (gimplify_return_expr): Use create_tmp_reg.
18873         (gimplify_omp_atomic): Likewise.
18874         (gimple_regimplify_operands): Likewise.
18875         * tree-dfa.c (make_rename_temp): Likewise.
18876         * tree-predcom.c (predcom_tmp_var): Likewise.
18877         (reassociate_to_the_same_stmt): Likewise.
18878         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
18879         (get_replaced_param_substitute): Likewise.
18880         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
18881         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
18882         * tree-ssa-pre.c (get_representative_for): Likewise.
18883         (create_expression_by_pieces): Likewise.
18884         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
18885         (create_tailcall_accumulator): Likewise.
18887 2010-04-19  Martin Jambor  <mjambor@suse.cz>
18889         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
18890         new_stmt.
18891         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
18893 2010-04-19  Richard Guenther  <rguenther@suse.de>
18895         PR tree-optimization/43796
18896         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
18897         from SCEV in the lattice.
18898         (vrp_visit_phi_node): Dump change.
18900 2010-04-19  Richard Guenther  <rguenther@suse.de>
18902         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
18903         * configure: Re-generated.
18905 2010-04-19  Richard Guenther  <rguenther@suse.de>
18907         PR tree-optimization/43783
18908         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
18909         constant ARRAY_REF operands two and three if possible.
18911 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
18913         PR target/43766
18914         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
18916 2010-04-19  Jie Zhang  <jie@codesourcery.com>
18918         PR target/43662
18919         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
18921 2010-04-19  Ira Rosen  <irar@il.ibm.com>
18923         PR tree-optimization/37027
18924         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
18925         and macro to access it.
18926         (vectorizable_reduction): Add argument.
18927         (vect_get_slp_defs): Likewise.
18928         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
18929         statements for possible use in SLP.
18930         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
18931         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
18932         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
18933         add new argument.
18934         (vectorizable_reduction): Likewise.
18935         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
18936         vect_get_slp_defs.
18937         (vectorizable_type_demotion, vectorizable_type_promotion,
18938         vectorizable_store): Likewise.
18939         (vect_analyze_stmt): Update call to vectorizable_reduction.
18940         (vect_transform_stmt): Likewise.
18941         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
18942         (vect_build_slp_tree): Fix indentation. Check that there are no loads
18943         from different interleaving chains in same node.
18944         (vect_slp_rearrange_stmts): New function.
18945         (vect_supported_load_permutation_p): Allow load permutations for
18946         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
18947         inside SLP nodes if necessary.
18948         (vect_analyze_slp_instance): Handle reductions.
18949         (vect_analyze_slp): Try to build SLP instances originating from groups
18950         of reductions.
18951         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
18952         (vect_get_constant_vectors): Create initial vectors for reductions
18953         according to reduction code. Add new argument.
18954         (vect_get_slp_defs): Add new argument, pass it to
18955         vect_get_constant_vectors.
18956         (vect_schedule_slp_instance): Remove SLP tree root statements.
18958 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
18960         * tree.h (ENUM_IS_SCOPED): Define.
18961         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
18962         for ENUM_IS_SCOPED enums.
18964 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18966         * fold-const.c (fold_comparison): Use ssizetype.
18967         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18968         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
18969         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
18970         * tree-object-size.c (compute_object_sizes): Use size_type_node.
18972         * tree.h (initialize_sizetypes): Remove parameter.
18973         (build_common_tree_nodes): Remove second parameter.
18974         * stor-layout.c (initialize_sizetypes): Remove parameter.
18975         Always create an unsigned type.
18976         (set_sizetype): Assert that the passed type is unsigned and simplify.
18977         * tree.c (build_common_tree_nodes): Remove second parameter.
18978         Adjust call to initialize_sizetypes.
18979         * c-decl.c (c_init_decl_processing): Remove second argument in call to
18980         build_common_tree_nodes.
18982 2010-04-18  Matthias Klose  <doko@ubuntu.com>
18984         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
18986 2010-04-18  Ira Rosen  <irar@il.ibm.com>
18988         PR tree-optimization/43771
18989         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
18990         load permutation doesn't have gaps.
18992 2010-04-18  Jan Hubicka  <jh@suse.cz>
18994         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
18995         (sse_prologue_save_insn expander): Use new pattern.
18996         (sse_prologue_save_insn1): New pattern and splitter.
18997         (sse_prologue_save_insn): Update to deal also with 64bit aligned
18998         blocks.
18999         * i386.c (setup_incoming_varargs_64): Do not compute jump
19000         destination here.
19001         (ix86_gimplify_va_arg): Update alignment needed.
19002         (ix86_local_alignment): Do not align all local arrays to 128bit.
19004 2010-04-17  Jan Hubicka  <jh@suse.cz>
19006         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
19008 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19010         * arm.md (negdi2): Remove redundant code to force values into a
19011         register.
19013 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19015         * arm/bpabi.S: Add EABI alignment attributes to objects.
19016         * arm/bpabi-v6m.S: Likewise.
19017         * arm/crti.asm: Likewise.
19018         * arm/crtn.asm: Likewise.
19019         * arm/lib1funcs.asm: Likewise.
19020         * arm/libunwind.S: Likewise.
19022 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
19024         * arm-protos.h (tune_params): New structure.
19025         * arm.c (current_tune): New variable.
19026         (arm_constant_limit): Delete.
19027         (struct processors): Add pointer to the tune parameters.
19028         (arm_slowmul_tune): New tuning option.
19029         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
19030         (all_cores): Adjust to pick up the tuning model.
19031         (arm_constant_limit): New function.
19032         (arm_override_options): Select the appropriate tuning model.  Delete
19033         initialization of arm_const_limit.
19034         (arm_split_constant): Use the new constant-limit model.
19035         (arm_rtx_costs): Pick up the current tuning model.
19036         * arm.md (is_strongarm, is_xscale): Delete.
19037         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
19038         for Xscale variant architectures.
19039         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
19041 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19043         * config/arm/arm.c (arm_gen_constant): Remove unused variable
19044         can_shift.
19045         (arm_rtx_costs_1): Remove unused variable extra_cost.
19046         (arm_unwind_emit_set): Use variable offset.
19047         (thumb1_output_casesi): Remove unused variable flags.
19049 2010-04-16  Jeff Law  <law@redhat.com>
19051         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
19052         needing assignment rather than doing a two-phase assignment.  Remove
19053         unused variable 'm'.
19055 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19057         PR bootstrap/43767
19058         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
19060 2010-04-16  Doug Kwan  <dougkwan@google.com>
19062         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
19063         (next_operand_entry_id): New static variable.
19064         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
19065         (add_to_ops_vec): Assigned unique ID to operand entry.
19066         (struct oecount_s): New field ID.
19067         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
19068         (undistribute_ops_list): Assign unique IDs to oecounts.
19069         (init_reassoc): reset next_operand_entry_id.
19071 2010-04-16  Doug Kwan  <dougkwan@google.com>
19073         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
19074         missing left parenthesis.
19076 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
19078         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
19079         *btdi_rex64 using SWI48 mode iterator.
19080         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
19081         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
19082         *jcc_btdi_mask_rex64.
19084 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
19086         * double-int.h (tree_to_double_int): Convert to macro.
19087         * double-int.c (tree_to_double_int): Remove.
19089 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19091         PR debug/43762
19092         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
19093         with want_address 2 and in case a single element list might be
19094         possible, call it again with want_address 0.
19096 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19098         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
19099         case 'W' print operands for HI mode.
19100         * config/h8300/h8300.h (Y0, Y2) : New constraints.
19101         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
19102         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
19103         * config/h8300/predicate.md (bit_register_indirect_operand): New.
19105         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
19107         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
19108         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
19109         #xx:3 and #xx:4 mode.
19111         * config/h8300/h8300.md (inverted load with HImode dest): Add
19112         support for H8300SX.
19114         * config/h8300/predicate.md (bit_operand): Allow immediate values that
19115         satisfy 'U' constraint.
19117 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19119         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
19120         * configure: Regenerate.
19121         * config.in: Regenerate.
19122         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
19123         works.
19125 2010-04-16  Richard Guenther  <rguenther@suse.de>
19127         * tree.h (struct tree_decl_minimal): Move pt_uid ...
19128         (struct tree_decl_common): ... here.
19129         (DECL_PT_UID): Adjust.
19130         (SET_DECL_PT_UID): Likewise.
19131         (DECL_PT_UID_SET_P): Likewise.
19133 2010-04-16  Richard Guenther  <rguenther@suse.de>
19135         PR tree-optimization/43572
19136         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
19137         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
19138         * tree-flow.h (is_call_clobbered): Remove.
19139         * tree-flow-inline.h (is_call_clobbered): Likewise.
19140         * tree-dfa.c (dump_variable): Do not dump call clobber state.
19141         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
19142         (execute_return_slot_opt): Adjust.
19143         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
19144         check for call clobbered vars here.
19145         (find_tail_calls): Move tailcall verification to the
19146         proper place.
19148 2010-04-16  Diego Novillo  <dnovillo@google.com>
19150         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
19152 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19154         PR target/40603
19155         * config/arm/arm.md (cbranchqi4): New pattern.
19156         * config/arm/predicates.md (const0_operand,
19157         cbranchqi4_comparison_operator): New predicates.
19159 2010-04-16  Richard Guenther  <rguenther@suse.de>
19161         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
19162         (dump_gimple_stmt): Likewise.
19164 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19166         * recog.h (struct recog_data): New field is_operator.
19167         (struct insn_operand_data): New field is_operator.
19168         * recog.c (extract_insn): Set recog_data.is_operator.
19169         * genoutput.c (output_operand_data): Emit code to set the
19170         is_operator field.
19171         * reload.c (find_reloads): Use it rather than testing for an
19172         empty constraint string.
19174         PR target/41514
19175         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
19176         If the previous insn is a cbranchsi4_insn with the same arguments,
19177         omit the compare instruction.
19179         * config/arm/arm.md (addsi3_cbranch): If destination is a high
19180         register, inputs must be low registers and we need a low register
19181         scratch.  Handle alternative 2 like alternative 3.
19183 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
19185         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
19186         don't call get_addr on both.  If one expression is a VALUE and
19187         the other a REG, check VALUE's locs if the REG isn't among them.
19189 2010-04-16  Christian Bruel  <christian.bruel@st.com>
19191         * config/sh/sh.h (sh_frame_pointer_required): New function.
19192         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
19193         (flag_omit_frame_pointer) Set.
19194         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
19195         (rounded_frame_size): Adjust size with outgoing_args_size.
19196         (sh_set_return_address): Must return from stack pointer.
19197         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
19198         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
19199         (ACCUMULATE_OUTGOING_ARGS): Define.
19200         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
19201         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
19203 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19205         PR target/43471
19206         * config/sh/sh.c (sh_legitimize_reload_address): Use
19207         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
19208         Remove a unneeded check for offset_base.
19210 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19212         * configure: Regenerated.
19214 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19216         * config/s390/s390.c (s390_call_save_register_used): Switch back
19217         to HARD_REGNO_NREGS.
19219 2010-04-15  Richard Guenther  <rguenther@suse.de>
19221         * alias.c (alias_set_subset_of): Handle alias-set zero
19222         child properly.
19224 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
19225             Julian Brown  <julian@codesourcery.com>
19227         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
19228         alternatives according to use of high and low regs.
19229         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
19230         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
19231         optimizing for size on Thumb-2.
19233 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
19235         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
19237 2010-04-15  Richard Guenther  <rguenther@suse.de>
19239         * tree-ssa-structalias.c (struct variable_info): Add
19240         is_fn_info flag.
19241         (new_var_info): Initialize it.
19242         (dump_constraints): Support printing last added constraints.
19243         (debug_constraints): Adjust.
19244         (dump_constraint_graph): Likewise.
19245         (make_heapvar_for): Check for NULL cfun.
19246         (get_function_part_constraint): New function.
19247         (get_fi_for_callee): Likewise.
19248         (find_func_aliases): Properly implement IPA PTA constraints.
19249         (process_ipa_clobber): New function.
19250         (find_func_clobbers): Likewise.
19251         (insert_into_field_list_sorted): Remove.
19252         (create_function_info_for): Properly allocate vars for IPA mode.
19253         Do not use insert_into_field_list_sorted.
19254         (create_variable_info_for): Properly generate constraints for
19255         global vars in IPA mode.
19256         (dump_solution_for_var): Always dump the solution.
19257         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
19258         (find_what_var_points_to): Adjust.
19259         (pt_solution_set): Change.
19260         (pt_solution_ior_into): New function.
19261         (pt_solution_empty_p): Export.
19262         (pt_solution_includes_global): Adjust.
19263         (pt_solution_includes_1): Likewise.
19264         (pt_solutions_intersect_1): Likewise.
19265         (dump_sa_points_to_info): Check some invariants.
19266         (solve_constraints): Move constraint dumping ...
19267         (compute_points_to_sets): ... here.
19268         (ipa_pta_execute): ... and here.
19269         (compute_may_aliases): Do not re-compute points-to info
19270         locally if IPA info is available.
19271         (ipa_escaped_pt): New global var.
19272         (ipa_pta_execute): Properly implement IPA PTA.
19273         * tree-into-ssa.c (dump_decl_set): Support dumping
19274         decls not in referenced-vars.
19275         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
19276         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
19277         (dump_points_to_solution): Likewise.
19278         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
19279         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
19280         (remap_gimple_stmt): Reset call clobber/use information if necessary.
19281         (copy_decl_to_var): Copy DECL_PT_UID.
19282         (copy_result_decl_to_var): Likewise.
19283         * tree.c (make_node_stat): Initialize DECL_PT_UID.
19284         (copy_node_stat): Copy it.
19285         * tree.h (DECL_PT_UID): New macro.
19286         (SET_DECL_PT_UID): Likewise.
19287         (DECL_PT_UID_SET_P): Likewise.
19288         (struct tree_decl_minimal): Add pt_uid member.
19289         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
19290         (pt_solution_empty_p): Declare.
19291         (pt_solution_set): Adjust.
19292         (ipa_escaped_pt): Declare.
19293         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
19294         * gimple-pretty-print.c (pp_points_to_solution): New function.
19295         (dump_gimple_call): Dump call clobber/use information.
19296         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
19297         * tree-pass.h (TDF_ALIAS): New dump option.
19298         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
19299         * doc/invoke.texi (-fipa-pta): Update documentation.
19301 2010-04-15  Richard Guenther  <rguenther@suse.de>
19303         * Makefile.in (OBJS-common): Add gimple-fold.o.
19304         (gimple-fold.o): New rule.
19305         * tree.h (maybe_fold_offset_to_reference,
19306         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
19307         prototypes ...
19308         * gimple.h: ... here.
19309         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
19310         may_propagate_address_into_dereference): Move prototypes ...
19311         * gimple.h: ... here.
19312         * tree-ssa-ccp.c (get_symbol_constant_value,
19313         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
19314         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
19315         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
19316         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
19317         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
19318         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
19319         gimplify_and_update_call_from_tree): Move ...
19320         * gimple-fold.c: ... here.  New file.
19321         (ccp_fold_builtin): Rename to ...
19322         (gimple_fold_builtin): ... this.
19323         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
19325 2010-04-15  Richard Guenther  <rguenther@suse.de>
19327         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
19328         fit_double_type, force_fit_type_double, add_double_with_sign,
19329         neg_double, mul_double_with_sign, lshift_double, rshift_double,
19330         lrotate_double, rrotate_double, div_and_round_double): Move ...
19331         * double-int.c: ... here.
19332         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
19333         add_double, neg_double, mul_double_with_sign, mul_double,
19334         lshift_double, rshift_double, lrotate_double, rrotate_double,
19335         div_and_round_double): Move prototypes ...
19336         * double-int.h: ... here.
19338 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
19340         PR target/43742
19341         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
19342         matching constraints to ensure inputs match the output.
19344 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
19346         PR target/43742
19347         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
19348         in an input-only operand.
19350 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
19352         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
19353         (double_int_not, double_int_lshift, double_int_rshift): Declare.
19354         (double_int_negative_p): Convert to static inline function.
19355         * double-int.c (double_int_lshift, double_int_lshift): New functions.
19356         (double_int_negative_p): Remove.
19357         * tree.h (lshift_double, rshift_double):
19358         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
19359         * fold-const.c (fold_convert_const_int_from_real,
19360         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
19361         (lshift_double): Change type of arith argument to bool.
19362         (rshift_double): Change type of arith argument to bool. Correct
19363         comment.
19364         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19366 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
19368         PR target/21803
19369         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
19370         at the start and end of the then/else blocks, and omit them from the
19371         conversion.
19372         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
19373         argument; all callers changed.  Pass zero to old_insns_match_p instead.
19374         (flow_find_head_matching_sequence): New function.
19375         (old_insns_match_p): Check REG_EH_REGION notes for calls.
19376         * basic-block.h (flow_find_cross_jump,
19377         flow_find_head_matching_sequence): Declare functions.
19379 2010-04-14  Jason Merrill  <jason@redhat.com>
19381         PR c++/36625
19382         * c-common.c (attribute_takes_identifier_p): New fn.
19383         * c-common.h: Declare it.
19385 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19387         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
19388         splitter condition.
19389         (*udivmod<mode>4): Ditto.
19391 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19393         * config/i386/i386.md (maxmin_int): Rename code attribute from
19394         maxminiprefix and update all users.
19395         (maxmin_float): Ditto from maxminfprefix.
19396         (logic): Ditto from logicprefix.
19397         (absneg_mnemonic): Ditto from absnegprefix.
19398         * config/i386/mmx.md: Update all users of maxminiprefix,
19399         maxminfprefix and logicprefix for rename.
19400         * config/i386/sse.md: Ditto.
19401         * config/i386/sync.md (sync_<code><mode>): Update for
19402         logicprefix rename.
19404 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19406         PR 42966
19407         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
19408         warnings converted to errors.
19410 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19412         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
19413         used insn_type variable.
19414         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
19415         to avoid set-but-not-used warning.
19417 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19419         * df-core.c (df_ref_debug): Change format string placeholder
19420         from 0x%x to %#x.
19421         * dwarf2asm.c (dw2_asm_output_data_raw,
19422         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
19423         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
19424         * dwarf2out.c (output_cfi, output_cfi_directive,
19425         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
19426         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
19427         Ditto.
19428         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
19429         * print-rtl.c (print_rtx): Ditto.
19431 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19433         PR middle-end/42694
19434         * builtins.c (expand_builtin_pow_root): New function to expand pow
19435         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
19436         series of sqrt and cbrt calls under -ffast-math.
19437         (expand_builtin_pow): Call it.
19439 2010-04-14  Michael Matz  <matz@suse.de>
19441         PR tree-optimization/42963
19442         * tree-cfg.c (touched_switch_bbs): New static variable.
19443         (group_case_labels_stmt): New function broken out from ...
19444         (group_case_labels): ... here, use the above.
19445         (start_recording_case_labels): Allocate touched_switch_bbs.
19446         (end_recording_case_labels): Deallocate it, call
19447         group_case_labels_stmt.
19448         (gimple_redirect_edge_and_branch): Remember index of affected BB.
19450 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19452         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
19453         from insn template.
19455 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
19457         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
19459 2010-04-13  Jan Hubicka  <jh@suse.cz>
19461         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
19462         of optimized out static functions.
19463         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
19464         cost computation.  Also sanity check for overflows.
19465         (update_caller_keys): Update cgraph_edge_badness call; properly
19466         update fibheap and sanity check that it is up to date.
19467         (add_new_edges_to_heap): Update cgraph_edge_badness.
19468         (cgraph_decide_inlining_of_small_function): Likewise;
19469         add sanity checking that badness in heap is up to date;
19470         improve dumping of reason; Update badness of calls to the
19471         offline copy of function currently inlined; dump badness
19472         of functions not inlined because of unit growth limits.
19474 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
19476         PR middle-end/32628
19477         * c-common.c (pointer_int_sum): Disregard overflow that occured only
19478         because of sign-extension change when converting to sizetype here...
19479         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
19481         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
19482         the folding to constants.  Remove redundant final conversion.
19483         (fold_binary) <associate>: Do not associate if the re-association of
19484         constants alone overflows.
19485         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
19486         to the end of the list.
19487         (multiple_of_p) <COND_EXPR>: New case.
19489 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19491         * opt-functions.awk (opt_sanitized_name): New.
19492         (opt_enum): New.
19493         * optc-gen.awk: Use it
19494         * opth-gen.awk: Use it.
19496 2010-04-13  Martin Jambor  <mjambor@suse.cz>
19498         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
19499         (sra_modify_assign): Delete stmts loading dead data even if racc has no
19500         children.  Call replace_uses_with_default_def_ssa_name to handle
19501         SSA_NAES on lhs.
19503 2010-04-13  Michael Matz  <matz@suse.de>
19505         PR middle-end/43730
19506         * builtins.c (expand_builtin_interclass_mathfn): Also create
19507         a register if the predicate doesn't match.
19509 2010-04-13  Diego Novillo  <dnovillo@google.com>
19511         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
19512         * c-pch.c: Include timevar.h.
19513         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
19514         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
19515         * ggc-common.c: Include timevar.h.
19516         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
19517         * timevar.def (TV_PCH_SAVE): Define.
19518         (TV_PCH_CPP_SAVE): Define.
19519         (TV_PCH_PTR_REALLOC): Define.
19520         (TV_PCH_PTR_SORT): Define.
19521         (TV_PCH_RESTORE): Define.
19522         (TV_PCH_CPP_RESTORE): Define.
19524 2010-04-13  Michael Matz  <matz@suse.de>
19526         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
19527         into MINUS_EXPRs.
19528         (can_reassociate_p): New function.
19529         (break_up_subtract_bb, reassociate_bb): Use it.
19531 2010-04-13  Richard Guenther  <rguenther@suse.de>
19533         PR bootstrap/43737
19534         * builtins.c (c_readstr): Fix assert.
19536 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
19538         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
19539         when generating cltd insn.
19541         (*ashl<mode>3_1): Remove special handling for register operand 2.
19542         (*ashlsi3_1_zext): Ditto.
19543         (*ashlhi3_1): Ditto.
19544         (*ashlhi3_1_lea): Ditto.
19545         (*ashlqi3_1): Ditto.
19546         (*ashlqi3_1_lea): Ditto.
19547         (*<shiftrt_insn><mode>3_1): Ditto.
19548         (*<shiftrt_insn>si3_1_zext): Ditto.
19549         (*<shiftrt_insn>qi3_1_slp): Ditto.
19550         (*<rotate_insn><mode>3_1): Ditto.
19551         (*<rotate_insn>si3_1_zext): Ditto.
19552         (*<rotate_insn>qi3_1_slp): Ditto.
19554 2010-04-13  Richard Guenther  <rguenther@suse.de>
19556         * tree-ssa-structalias.c (callused_id): Remove.
19557         (call_stmt_vars): New.
19558         (get_call_vi): Likewise.
19559         (lookup_call_use_vi): Likewise.
19560         (lookup_call_clobber_vi): Likewise.
19561         (get_call_use_vi): Likewise.
19562         (get_call_clobber_vi): Likewise.
19563         (make_transitive_closure_constraints): Likewise.
19564         (handle_const_call): Adjust to do per-call call-used handling.
19565         (handle_pure_call): Likewise.
19566         (find_what_var_points_to): Remove general callused handling.
19567         (init_base_vars): Likewise.
19568         (init_alias_vars): Initialize call_stmt_vars.
19569         (compute_points_to_sets): Process call-used and call-clobbered
19570         vars for call statements.
19571         (delete_points_to_sets): Free call_stmt_vars.
19573 2010-04-13  Richard Guenther  <rguenther@suse.de>
19575         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19576         Only add RW dependence for dependence distance zero.
19577         Adjust maximal vectorization factor according to dependences.
19578         Move alignment handling ...
19579         (vect_find_same_alignment_drs): ... here.  New function.
19580         (vect_analyze_data_ref_dependences): Adjust.
19581         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
19582         (vect_analyze_data_refs): Adjust minimal vectorization factor
19583         according to data references.
19584         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
19585         dependences before determining the vectorization factor.
19586         Analyze alignment after determining the vectorization factor.
19587         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
19588         dependences before alignment.
19589         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
19590         Adjust prototype.
19591         (vect_analyze_data_refs): Likewise.
19592         (MAX_VECTORIZATION_FACTOR): New define.
19594 2010-04-13  Duncan Sands  <baldrick@free.fr>
19596         * except.h (lang_eh_type_covers): Remove.
19597         * except.c (lang_eh_type_covers): Likewise.
19599 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19600             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19602         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
19603         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
19604         UNITS_PER_LONG where it is ABI relevant.
19605         (s390_return_addr_rtx): Likewise.
19606         (s390_back_chain_rtx): Likewise.
19607         (s390_frame_area): Likewise.
19608         (s390_frame_info): Likewise.
19609         (s390_initial_elimination_offset): Likewise.
19610         (save_gprs): Likewise.
19611         (s390_emit_prologue): Likewise.
19612         (s390_emit_epilogue): Likewise.
19613         (s390_function_arg_advance): Likewise.
19614         (s390_function_arg): Likewise.
19615         (s390_va_start): Likewise.
19616         (s390_gimplify_va_arg): Likewise.
19617         (s390_function_profiler): Likewise.
19618         (s390_optimize_prologue): Likewise.
19619         (s390_rtx_costs): Likewise.
19620         (s390_secondary_reload): Likewise.
19621         (s390_promote_function_mode): Likewise.
19622         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
19623         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
19624         registers available.
19625         (s390_unwind_word_mode): New function.
19626         (s390_function_value): Split 64 bit values into register pair if
19627         used as return value.
19628         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
19629         function call parameters.  Handle parallels.
19630         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
19631         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
19632         (DWARF_CIE_DATA_ALIGNMENT): New macro.
19633         (s390_expand_setmem): Remove unused variable src_addr.
19634         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
19635         deal with 64 bit registers.
19636         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
19637         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
19638         (UNITS_PER_LONG): New macro.
19639         * libjava/include/s390-signal.h: Define extended ucontext
19640         structure containing the upper halfs of the 64 bit registers.
19642 2010-04-13  Simon Baldwin  <simonb@google.com>
19644         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
19646 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
19648         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
19649         rvalue on the RHS if the LHS is of a non-renamable type.
19650         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
19652 2010-04-13  Matthias Klose  <doko@ubuntu.com>
19654         * gcc.c (cc1_options): Handle -iplugindir before processing
19655         the cc1 spec. Only add -iplugindir once.
19656         (cpp_unique_options): Add -iplugindir option if -fplugin* options
19657         found.
19658         * common.opt (iplugindir): Remove `Separate' property, initialize.
19659         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
19660         option.
19661         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
19662         (distclean): Remove plugin dir.
19663         * doc/invoke.texi: Document -iplugindir.
19665 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
19667         * doc/plugins.texi (Loading Plugins): Document short
19668         -fplugin=foo option.
19669         (Plugin API): Mention default_plugin_dir_name function.
19671         * gcc.c (find_file_spec_function): Add new declaration.
19672         (static_spec_func): Use it for "find-file".
19673         (find_file_spec_function): Add new function.
19674         (cc1_options): Add -iplugindir option if -fplugin* options found.
19676         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
19678         * plugin.c (add_new_plugin): Updated comment, and handle short
19679         plugin name.
19680         (default_plugin_dir_name): Added new function.
19682         * common.opt (iplugindir): New option to set the plugin directory.
19684 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
19686         * config/i386/i386.md (any_rotate): New code iterator.
19687         (rotate_insn): New code attribute.
19688         (rotate): Ditto.
19689         (SWIM124): New mode iterator.
19690         (<rotate_insn>ti3): New expander.
19691         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
19692         any_rotate code iterator.
19693         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
19694         using any_rotate code iterator and SWIM124 mode iterator.
19695         (ix86_rotlti3): New insn_and_split pattern.
19696         (ix86_rotrti3): Ditto.
19697         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
19698         ix86_rotl{di,ti}3 patterns.
19699         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
19700         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
19701         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
19702         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
19703         code iterator and SWI mode iterator.
19704         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
19705         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
19706         code iterator.
19707         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
19708         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
19709         (bswap rotatert splitter): Add splitter.
19710         (bswap splitter): Macroize splitter using any_rotate code iterator.
19711         Add insn predicate to split only for TARGET_USE_XCHGB or when
19712         optimizing function for size.
19714 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
19716         * config/pa/pa.c (emit_move_sequence): Remove use of
19717         deleted variable flag_argument_noalias.
19719 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19721         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
19722         configurations.
19723         Add to unsupported targets list.
19724         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
19725         sparc*-sun-solaris2.[567]* from target lists.
19726         * configure: Regenerate.
19727         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
19728         removal.
19729         Remove Solaris 7 patch references.
19730         (Specific, sparc-sun-solaris2.7): Removed.
19731         (sparc-sun-solaris2*): Update Solaris 7 example.
19732         (sparc64-*-solaris2*): Likewise.
19734 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19736         * config.build (alpha*-dec-osf4*): Remove.
19737         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
19738         of obsolete configurations.
19739         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
19740         support.
19741         * config/alpha/t-osf4: Renamed to ...
19742         * config/alpha/t-osf5: ... this.
19743         * config/alpha/osf.h: Renamed to ...
19744         * config/alpha/osf5.h: ... this.
19745         Merged old osf5.h contents.
19746         Update comments.
19747         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
19748         (EXTRA_SPECS): Removed.
19749         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
19750         reflect removal of Tru64 UNIX V4.0/V5.0 support.
19751         Document that.
19753 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19755         * doc/contrib.texi (Contributors, Rainer Orth): Update.
19757 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
19759         PR/43702
19760         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
19761         __thiscall convention.
19763 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
19765         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
19766         orig_base.
19767         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
19769 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
19771         * function.c (assign_parms_initialize_all): Add unused attribute
19772         to fntype.
19774 2010-04-12  Richard Guenther  <rguenther@suse.de>
19776         * gsstruct.def (GSS_CALL): New.
19777         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
19778         * gimple.h: Include tree-ssa-alias.h.
19779         (struct gimple_statement_call): New.
19780         (union gimple_statement_struct_d): Add gimple_call member.
19781         (gimple_call_reset_alias_info): Declare.
19782         (gimple_call_use_set): New function.
19783         (gimple_call_clobber_set): Likewise.
19784         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
19785         * gimple.c (gimple_call_reset_alias_info): New function.
19786         (gimple_build_call_1): Call it.
19787         * lto-streamer-in.c (input_gimple_stmt): Likewise.
19788         * tree-inline.c (remap_gimple_stmt): Likewise.
19789         (expand_call_inline): Remove callused handling.
19790         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
19791         * tree-dfa.c (dump_variable): Likewise.
19792         * tree-parloops.c (parallelize_loops): Likewise.
19793         * tree-ssa.c (init_tree_ssa): Likewise.
19794         (delete_tree_ssa): Likewise.
19795         * tree-flow-inline.h (is_call_used): Remove.
19796         * tree-flow.h (struct gimple_df): Remove callused member.
19797         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
19798         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
19799         (ref_maybe_used_by_call_p_1): Simplify.
19800         (call_may_clobber_ref_p_1): Likewise.
19801         * tree-ssa-structalias.c (compute_points_to_sets): Set
19802         the call stmt used and clobbered sets.
19803         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
19804         (find_tail_calls): Verify the tail call.
19806 2010-04-12  Richard Guenther  <rguenther@suse.de>
19808         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
19809         single-iteration always-inline inlining.
19810         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
19811         (cgraph_decide_inlining): Do not handle always-inline specially.
19812         (try_inline): Remove always-inline cycle detection special case.
19813         Do not recurse on always-inlines.
19814         (cgraph_early_inlining): Do not iterate if not optimizing.
19815         (cgraph_gate_early_inlining): remove.
19816         (pass_early_inline): Run unconditionally.
19817         (gate_cgraph_decide_inlining): New function.
19818         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
19819         not inlining or optimizing.
19820         (cgraph_decide_inlining_of_small_functions): Also consider
19821         always-inline functions.
19822         (cgraph_default_inline_p): Return true for nodes which should
19823         disregard inline limits.
19824         (estimate_function_body_sizes): Assume zero size and time for
19825         nodes which are marked as disregarding inline limits.
19826         (cgraph_decide_recursive_inlining): Do not perform recursive
19827         inlining on always-inline nodes.
19829 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
19831         PR bootstrap/43699
19832         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
19833         for exprs satisfying handled_component_p.
19835 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
19837         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
19838         non-constant aggregate elements.
19840         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
19841         is a real initialization.
19843 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
19845         PR c/36774
19846         * c-decl.c (start_function): Move forward check for nested function.
19848 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
19850         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
19851         * config/sh/sh.c: Include reload.h.
19852         (sh_legitimize_reload_address): New.
19853         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
19854         sh_legitimize_reload_address.
19856 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
19858         * config/sh/sh.md (*movqi_pop): New insn pattern.
19859         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
19861 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
19863         * config/i386/i386.md (any_shiftrt): New code iterator.
19864         (shiftrt_insn): New code attribute.
19865         (shiftrt): Ditto.
19866         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
19867         using any_shiftrt code iterator.
19868         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
19869         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
19870         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
19871         pattern from corresponding peephole2 patterns.
19872         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
19873         using any_shiftrt code iterator.
19874         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
19875         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
19876         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
19877         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
19878         *{ashr,lshr}<mode>3_cmp_zext.
19879         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
19881 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
19883         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
19884         scratch register.
19885         (*lshr<mode>3_cconly): Ditto.
19887 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
19889         * config/i386/i386.md (lshr<mode>3): Macroize expander from
19890         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
19891         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
19892         pattern from *lshr{di,ti}3_1 and corresponding splitters using
19893         DWI mode iterator.
19894         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
19895         from corresponding peephole2 patterns.
19896         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
19897         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
19898         and *lshrdi3_1_rex64 using SWI mode iterator.
19899         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
19900         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
19901         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
19902         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
19903         and *lshrdi3_cmp_rex64 using SWI mode iterator.
19904         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
19905         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
19906         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
19907         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
19908         SWI mode iterator.
19910 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
19912         * config/i386/i386.md (ashr<mode>3): Macroize expander from
19913         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
19914         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
19915         pattern from *ashr{di,ti}3_1 and corresponding splitters using
19916         DWI mode iterator.
19917         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
19918         from corresponding peephole2 patterns.
19919         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
19920         (ashrsi3_cvt): Rename from ashrsi3_31.
19921         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
19922         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
19923         and x86_64_shift_adj_3 using SWI48 mode iterator.
19924         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
19925         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
19926         and *ashrdi3_1_rex64 using SWI mode iterator.
19927         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
19928         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
19929         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
19930         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
19931         and *ashrdi3_cmp_rex64 using SWI mode iterator.
19932         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
19933         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
19934         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
19935         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
19936         SWI mode iterator.
19937         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
19938         * config/i386/i386.c (ix86_split_ashr): Update for renamed
19939         x86_shift<mode>_adj_3 expanders.
19941 2010-04-10  Wei Guozhi  <carrot@google.com>
19943         PR target/42601
19944         * config/arm/arm.c (arm_pic_static_addr): New function.
19945         (legitimize_pic_address): Call arm_pic_static_addr when it detects
19946         a static symbol.
19947         (arm_output_addr_const_extra): Output expression for new pattern.
19948         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
19950 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
19952         * ira-costs.c (record_reg_classes): Ignore alternatives that are
19953         not enabled.
19955         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
19956         * web.c: Include "insn-config.h" and "recog.h".
19957         (union_match_dups): New function.
19958         (web_main): Call it.
19959         (union_defs): Don't try to recognize match_dups.
19961         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
19962         if doing so would replace the entire pattern.
19964 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
19966         PR target/43707
19967         PR target/43709
19968         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
19969         and splitter pattern.  Change splitter operand 1 predicate to
19970         nonmemory_operand.
19972 2010-04-09  Martin Jambor  <mjambor@suse.cz>
19974         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
19975         lattices are addresses of CONST_DECLs with the same initial value.
19976         (ipcp_print_all_lattices): Print values of CONST_DECLs.
19977         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
19979 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
19980             Bernd Schmidt  <bernds@codesourcery.com>
19982         * loop-invariant.c (replace_uses): New static function.
19983         (move_invariant_reg): Use it to ensure we can replace the uses.
19985 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19987         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
19988         function template.
19989         (picochip_override_options): Enable section anchors only above -O1.
19990         (picochip_reorg): Fixed a couple of build warnings.
19992 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19994         * configure.ac (plugin -rdynamic test): Log result.
19995         * configure: Regenerate.
19996         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
19997         (RDYNAMIC_SPEC): Define.
19998         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
20000 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20002         * configure.ac: Determine Sun ld version numbers.
20003         (comdat_group): Restrict GNU ld version checks to gld.
20004         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
20005         (enable_comdat): Support --enable-comdat.
20006         * configure: Regenerate.
20007         * doc/install.texi (Configuration): Document --enable-comdat.
20009 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20011         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
20012         * config/sol2-gld.h: ... here.
20013         * config.gcc (sparc*-*-solaris2*): Reflect this.
20014         (i[34567]86-*-solaris2*): Use it.
20016 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
20018         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
20019         setup_clocks_p.
20020         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
20022 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20024         PR 42965
20025         * diagnostic.c (diagnostic_initialize): Initialize
20026         some_warnings_are_errors.
20027         (diagnostic_finish): New.
20028         (diagnostic_action_after_output): Call it before exiting.
20029         (diagnostic_report_diagnostic): Do not print message here. Set
20030         some_warnings_are_errors.
20031         * diagnostic.h (diagnostic_context): Delete
20032         issue_warnings_are_errors_message. Add some_warnings_are_errors.
20033         (diagnostic_finish): Declare.
20034         * toplev.c (toplev_main): Call it before exit.
20036 2010-04-09  Jason Merrill  <jason@redhat.com>
20038         PR c++/42623
20039         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
20040         for incomplete type.
20042         PR c++/41788
20043         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
20044         based on a warning flag.
20046 2010-04-09  Richard Guenther  <rguenther@suse.de>
20048         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
20050 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
20052         PR bootstrap/43684
20053         * varasm.c (default_assemble_visibility): Wrap vars that are
20054         set, but unused, by targets without GAS.
20055         * config/rs6000/rs6000.c (paired_emit_vector_compare):
20056         Remove set, but unused, vars.
20057         (rs6000_legitimize_tls_address): Likewise.
20058         (altivec_expand_dst_builtin): Likewise.
20059         * config/darwin.c (machopic_classify_symbol): Likewise.
20060         (machopic_indirection_name): Likewise.
20062 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
20064         * config/i386/i386.md (DWI): New mode iterator.
20065         (S): New mode attribute.
20066         (shift_operand): Ditto.
20067         (shift_immediate_operand): Ditto.
20068         (ashl_input_operand): Ditto.
20069         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
20070         using SDWIM mode iterator.
20071         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
20072         pattern from *ashl{di,ti}3_1 and corresponding splitters using
20073         DWI mode iterator.
20074         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
20075         from corresponding peephole2 patterns.
20076         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
20077         and x86_64_shift_adj_1 using SWI48 mode iterator.
20078         (x86_shift<mode>_adj_2): Ditto.
20079         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
20080         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
20081         using SWI48 mode iterator.
20082         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
20083         *ashldi3_cmp_rex64 using SWI mode iterator.
20084         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
20085         *ashldi3_cconly_rex64 using SWI mode iterator.
20086         * config/i386/i386.c (ix86_split_ashl): Update for renamed
20087         x86_shift<mode>_adj_{1,2}.
20088         (ix86_split_ashr): Ditto.
20089         (ix86_split_lshr): Ditto.
20091 2010-04-09  Richard Guenther  <rguenther@suse.de>
20093         * target.h (builtin_conversion): Pass in input and output types.
20094         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
20095         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
20096         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
20097         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
20099         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
20100         Handle AVX modes.
20101         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
20103 2010-04-09  Richard Guenther  <rguenther@suse.de>
20105         PR target/43152
20106         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
20108 2010-04-09  Richard Guenther  <rguenther@suse.de>
20110         * tree-vectorizer.h (struct _stmt_vec_info): Document
20111         that vectype is the type of the LHS.
20112         (supportable_widening_operation, supportable_narrowing_operation):
20113         Get both input and output vector types as arguments.
20114         (vect_is_simple_use_1): Declare.
20115         (get_same_sized_vectype): Likewise.
20116         * tree-vect-loop.c (vect_determine_vectorization_factor):
20117         Set STMT_VINFO_VECTYPE to the vector type of the def.
20118         (vectorizable_reduction): Adjust.
20119         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
20120         Adjust.  Specify the output vector type.
20121         (vect_pattern_recog_1): Adjust.
20122         * tree-vect-stmts.c (get_same_sized_vectype): New function.
20123         (vectorizable_call): Adjust.
20124         (vectorizable_conversion): Likewise.
20125         (vectorizable_operation): Likewise.
20126         (vectorizable_type_demotion): Likewise.
20127         (vectorizable_type_promotion): Likewise.
20128         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
20129         the def.
20130         (vect_is_simple_use_1): New function.
20131         (supportable_widening_operation): Get both input and output
20132         vector types.
20133         (supportable_narrowing_operation): Likewise.
20134         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
20136 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
20138         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
20139         __thiscall and _thiscall as predefined macros.
20140         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
20141         thiscall attribute handling.
20142         (ix86_comp_type_attributes): Likewise.
20143         (ix86_function_regparm): Likewise.
20144         (ix86_return_pops_args): Likewise.
20145         (init_cumulative_args): Likewise.
20146         (find_drap_reg): Likewise.
20147         (ix86_static_chain): Likewise.
20148         (x86_this_parameter): Likewise.
20149         (x86_output_mi_thunk): Likewise.
20150         (ix86_attribute_table): Add description for thiscall attribute.
20151         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
20152         * doc/extend.texi: Add documentation for thiscall.
20154 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20156         PR c++/28584
20157         * c.opt (Wint-to-pointer-cast): Available in C++.
20158         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
20160 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20162         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
20163         * calls.c (expand_call): Pass the function type to aggregate_value_p.
20164         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
20165         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
20166         function type instead.  Reorder and simplify checks.
20168         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
20170 2010-04-08  Jing Yu  <jingyu@google.com>
20171             Zdenek Dvorak  <ook@ucw.cz>
20173         PR tree-optimization/42720
20174         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
20175         loop unswitch conditions here from ...
20176         (tree_unswitch_single_loop): ... here.
20178 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20180         * tree-if-conv.c: Fix comments and simplify logic.
20182 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
20184         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
20185         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
20186         (main_tree_if_conversion): Update call to tree_if_conversion.
20188 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20190         PR 42485
20191         * doc/invoke.texi (-b,-V): Delete.
20192         * doc/tm.texi: Do not mention -b.
20193         * gcc.c (display_help): Delete -b and -V.
20194         (process_command): Delete -b and -V.
20195         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
20197 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
20198             Wolfgang Gellerich  <gellerich@de.ibm.com>
20200         Implement target hook for loop unrolling
20201         * target.h (loop_unroll_adjust): Add a new target hook function.
20202         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
20203         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
20204         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
20205         (s390_loop_unroll_adjust): Implement the new target hook for s390.
20206         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
20207         target hook.
20208         (decide_unroll_stupid): Likewise.
20210 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20212         PR target/43643
20213         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
20215 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20217         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
20218         (Specific, *-*-solaris2*): Likewise.
20219         Don't prefer Sun as over GNU as.
20221 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
20223         * config/s390/s390.c (override_options): Adjust the z10 defaults
20224         for max-unroll-times, max-completely-peeled-insns
20225         and max-completely-peel-times.
20227 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20229         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
20230         instructions for z10.
20231         (s390_expand_setmem): Likewise.
20232         (s390_expand_cmpmem): Likewise.
20234 2010-04-08  Richard Guenther  <rguenther@suse.de>
20236         PR tree-optimization/43679
20237         * tree-ssa-pre.c (eliminate): Only propagate copies.
20239 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20241         PR bootstrap/43681
20242         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
20243         set but not used variable warning.
20245 2010-04-08  Wei Guozhi  <carrot@google.com>
20247         PR target/41653
20248         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
20249         (arm_size_rtx_costs): Call the new function when optimized for size.
20251 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
20253         PR debug/43670
20254         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
20255         op0 is not a MEM, just return NULL instead of assertion
20256         failure.
20257         (discover_nonconstant_array_refs): Don't walk debug stmts.
20259 2010-04-08  Doug Kwan  <dougkwan@google.com>
20261         * configure.ac: Recognize gold and do not use its version number
20262         to test ld features.
20263         * configure: Regenerate.
20265 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
20267         PR middle-end/40815
20268         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
20269         (negate_value): Move code to push elements to broken_up_substracts ...
20270         (eliminate_plus_minus_pair): ... here.  Push operands that have no
20271         negative pair to plus_negates.
20272         (repropagate_negates, init_reassoc, fini_reassoc): Update.
20274 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20276         * doc/install.texi (Configuration): Move description of
20277         --enable-lto, --with-libelf*, --enable-gold from Java section to
20278         general section.
20280         * doc/generic.texi (Working with declarations)
20281         (Function Properties, C and C++ Trees): Fix typos.
20282         * doc/sourcebuild.texi (Top Level): Likewise.
20284 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20286         PR c/18624
20287         * tree.h (DECL_READ_P): Define.
20288         (struct tree_decl_common): Add decl_read_flag.
20289         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
20290         a set but not used warning.
20291         (merge_decls): Merge DECL_READ_P flag.
20292         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
20293         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
20294         * c-common.c (handle_used_attribute, handle_unused_attribute):
20295         Likewise.
20296         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
20297         New prototypes.
20298         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
20299         New functions.
20300         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
20301         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
20302         c_parser_binary_expression, c_parser_cast_expression,
20303         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
20304         Call default_function_array_read_conversion instead of
20305         default_function_array_conversion where needed.
20306         (c_parser_unary_expression, c_parser_conditional_expression,
20307         c_parser_postfix_expression_after_primary, c_parser_initelt):
20308         Likewise.  Call mark_exp_read where needed.
20309         (c_parser_statement_after_labels, c_parser_asm_operands,
20310         c_parser_typeof_specifier, c_parser_sizeof_expression,
20311         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
20312         where needed.
20313         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
20314         New.
20315         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
20316         (warn_unused_but_set_parameter): Default to warn_unused
20317         && extra_warnings.
20318         * doc/invoke.texi: Document -Wunused-but-set-variable and
20319         -Wunused-but-set-parameter.
20321         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
20322         used count variable.
20323         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
20324         when operandN variables aren't used in the body of the expander
20325         or splitter.
20326         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
20327         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
20328         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
20329         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
20330         FOR_EACH_IMM_USE_ON_STMT): Likewise.
20331         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
20332         * tree.c (PROCESS_ARG): Likewise.
20334 2010-04-07  Simon Baldwin  <simonb@google.com>
20336         * diagnostic.h (diagnostic_override_option_index): New macro to
20337         set a diagnostic's option_index.
20338         * c-tree.h (c_cpp_error): Add warning reason argument.
20339         * opts.c (_warning_as_error_callback): New.
20340         (register_warning_as_error_callback): Store callback for
20341         warnings enabled via enable_warning_as_error.
20342         (enable_warning_as_error): Call callback, minor code tidy.
20343         * opts.h (register_warning_as_error_callback): Declare.
20344         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
20345         response to -Werror=.
20346         (c_common_init_options): Register warning_as_error_callback in opts.c.
20347         * common.opt: Add -Wno-cpp option.
20348         * c-common.c (struct reason_option_codes_t): Map cpp warning
20349         reason codes to gcc option indexes.
20350         * (c_option_controlling_cpp_error): New function, lookup the gcc
20351         option index for a cpp warning reason code.
20352         * (c_cpp_error): Add warning reason argument, call
20353         c_option_controlling_cpp_error for diagnostic_override_option_index.
20354         * doc/invoke.texi: Document -Wno-cpp.
20356 2010-04-07  Richard Guenther  <rguenther@suse.de>
20358         * ipa-reference.c (mark_load): Use get_base_address.
20359         (mark_store): Likewise.
20361         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
20362         inserting GIMPLE_NOPs into the IL.
20363         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20364         Explicitly strip handled components and indirect references.
20366         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
20367         folding address expressions.
20368         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
20369         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
20370         operand_equal_p to compare decls.
20371         (ptr_deref_may_alias_decl_p): Likewise.
20372         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
20373         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
20374         Handle reversed comparison ops.
20375         * tree-sra.c (asm_visit_addr): Use get_base_address.
20376         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
20377         * ipa-reference.c (mark_address): Use get_base_address.
20379 2010-04-07  Richard Guenther  <rguenther@suse.de>
20381         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
20382         Propagate constants everywhere.
20384 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
20386         PR debug/43516
20387         * tree.c (MAX_INT_CACHED_PREC): Define.
20388         (nonstandard_integer_type_cache): New array.
20389         (build_nonstandard_integer_type): Cache results for precision
20390         <= MAX_INT_CACHED_PREC.
20392 2010-04-07  Richard Guenther  <rguenther@suse.de>
20394         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
20395         -fargument-noalias-global, -fargument-noalias-anything): Remove.
20396         * common.opt: Likewise.
20397         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
20398         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
20399         (nonoverlapping_memrefs_p): Likewise.
20400         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20401         * opts.c (common_handle_option): Handle OPT_fargument_alias,
20402         OPT_fargument_noalias, OPT_fargument_noalias_anything and
20403         OPT_fargument_noalias_global for backward compatibility.
20405 2010-04-07  Richard Guenther  <rguenther@suse.de>
20407         PR tree-optimization/43270
20408         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
20409         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
20410         * tree-ssa-pre.c (phi_translate_1): Adjust.
20411         (fully_constant_expression): Split out vn_reference handling to ...
20412         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
20413         Fold reads from constant strings.
20414         (vn_reference_lookup): Handle fully constant references.
20415         (vn_reference_lookup_pieces): Likewise.
20416         * Makefile.in (expmed.o-warn): Add -Wno-error.
20418 2010-04-07  Martin Jambor  <mjambor@suse.cz>
20420         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
20422 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
20424         PR driver/41594
20425         * gcc.c: Add -static-libstdc++ to list of recognized options.
20427 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20429         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
20431 2010-04-07  Richard Guenther  <rguenther@suse.de>
20433         PR middle-end/42617
20434         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
20435         bases build simple mem attributes to retain points-to information.
20437 2010-04-07  Richard Guenther  <rguenther@suse.de>
20439         PR middle-end/42617
20440         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
20441         preserve points-to related information.
20443 2010-04-07  Richard Guenther  <rguenther@suse.de>
20445         PR middle-end/42617
20446         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
20447         discard plain indirect references.
20448         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
20449         * tree.c (tree_nop_conversion): Likewise.
20451 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
20453         PR debug/43628
20454         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
20456 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
20458         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
20459         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
20461 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
20463         * tree-if-conv.c: Fix indentation and comments.
20465 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
20467         * tree-if-conv.c: Sort static functions in topological order.
20469 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
20471         * tree-if-conv.c: Fix indentation and comments.
20473 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20475         PR middle-end/43519
20476         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
20477         lang_hooks.types.type_for_size instead of
20478         build_nonstandard_integer_type.
20479         When converting an unsigned type to signed, double its precision.
20480         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
20481         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
20482         (graphite_create_new_loop_guard): When ub + 1 wraps around,
20483         use lb <= ub.
20485 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20487         PR middle-end/43519
20488         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
20489         POINTER_PLUS_EXPR for pointer types.
20491 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20493         PR middle-end/43519
20494         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
20495         * graphite-clast-to-gimple.c: Include langhooks.h.
20496         (max_signed_precision_type): New.
20497         (max_precision_type): Takes two types as arguments.
20498         (precision_for_value): New.
20499         (precision_for_interval): New.
20500         (gcc_type_for_interval): New.
20501         (gcc_type_for_value): New.
20502         (gcc_type_for_clast_term): New.
20503         (gcc_type_for_clast_red): New.
20504         (gcc_type_for_clast_bin): New.
20505         (gcc_type_for_clast_expr): Split up into several functions.
20506         (gcc_type_for_clast_eq): Rewritten.
20507         (compute_bounds_for_level): New.
20508         (compute_type_for_level_1): New.
20509         (compute_type_for_level): New.
20510         (gcc_type_for_cloog_iv): Removed.
20511         (gcc_type_for_iv_of_clast_loop): Rewritten.
20512         (graphite_create_new_loop): Compute the lower and upper bound types
20513         with gcc_type_for_clast_expr.
20514         (graphite_create_new_loop_guard): Same.
20515         (find_cloog_iv_in_expr): Removed.
20516         (compute_cloog_iv_types_1): Removed.
20517         (compute_cloog_iv_types): Removed.
20518         (gloog): Do not call compute_cloog_iv_types.
20519         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
20520         GBB_CLOOG_IV_TYPES.
20521         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
20522         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
20523         (GBB_CLOOG_IV_TYPES): Removed.
20525 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20527         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
20528         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
20529         (detect_commutative_reduction): Same.
20531 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20533         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
20534         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
20535         argument.
20536         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
20537         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
20538         (rewrite_commutative_reductions_out_of_ssa): Same.
20539         * passes.c (execute_function_todo): Call verify_ssa for every pass
20540         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
20541         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
20542         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
20543         with an extra argument.
20544         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
20545         verify_ssa only when the extra argument is true.
20546         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
20547         with an extra argument.
20548         (tree_transform_and_unroll_loop): Same.
20550 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
20552         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
20553         for all the passes of the LNO having LOOP_CLOSED_SSA.
20554         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
20555         * tree-loop-distribution.c (pass_loop_distribution): Same.
20556         * tree-pass.h (TODO_verify_loops): Removed.
20557         * tree-ssa-loop.c (pass_tree_loop_init): Same.
20558         (pass_lim): Same.
20559         (pass_tree_unswitch): Same.
20560         (pass_predcom): Same.
20561         (pass_vectorize): Same.
20562         (pass_linear_transform): Same.
20563         (pass_graphite_transforms): Same.
20564         (pass_iv_canon): Same.
20565         (pass_complete_unroll): Same.
20566         (pass_complete_unrolli): Same.
20567         (pass_parallelize_loops): Same.
20568         (pass_loop_prefetch): Same.
20569         (pass_iv_optimize): Same.
20571 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
20573         PR middle-end/32824
20574         * passes.c (init_optimization_passes): Move pass_lim before
20575         pass_copy_prop and pass_dce_loop.
20577 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
20579         PR target/43667
20580         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
20581         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
20582         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
20583         MULTI_* defines for 4 argument vpermil2p* builtins.
20585 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
20587         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
20588         * config/i386/i386.c (x86_maybe_negate_const_int): New.
20589         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
20590         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
20591         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
20592         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
20593         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
20594         Use x86_maybe_negate_const_int to output insn mnemonic.
20595         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
20596         check from instruction predicate.  Update comments.
20597         * config/i386/sync.md (sync_add<mode>): Use
20598         x86_maybe_negate_const_int to output insn mnemonic.
20600 2010-04-06  Jan Hubicka  <jh@suse.cz>
20602         PR tree-optimization/42906
20603         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
20604         IGNORE_SELF argument.  Set visited_control_parents for fully
20605         processed BBs.
20606         (find_obviously_necessary_stmts): Update call of
20607         mark_control_dependent_edges_necessary.
20608         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
20610 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
20612         * config/i386/i386.md: Remove comment about 'e' and 'E'
20613         operand modifier.
20615 2010-04-06  Richard Guenther  <rguenther@suse.de>
20617         PR tree-optimization/43627
20618         * tree-vrp.c (extract_range_from_unary_expr): Widenings
20619         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
20620         not varying.
20622 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
20624         * BASE-VER: Change to 4.6.0.
20626         PR target/43638
20627         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
20628         handling.
20630 2010-04-06  Richard Guenther  <rguenther@suse.de>
20632         PR middle-end/43661
20633         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
20635 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20637         * doc/invoke.texi (Optimize Options): Document that LTO
20638         won't remove object access purely due to incompatible
20639         declarations.
20641 2010-04-04  Matthias Klose  <doko@ubuntu.com>
20643         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
20644         Initialize variable.
20646 2010-04-03  Richard Guenther  <rguenther@suse.de>
20648         PR middle-end/42509
20649         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
20650         require a non-NULL MEM_OFFSET.
20652 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
20654         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
20655         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
20656         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
20657         config/alpha/predicates.md, config/arm/arm.md,
20658         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
20659         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
20660         config/darwin9.h, config/darwin.c, config/darwin.h,
20661         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
20662         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
20663         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
20664         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
20665         config/mips/mips.md, config/mn10300/mn10300.c,
20666         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
20667         config/rs6000/aix.h, config/rs6000/dfp.md,
20668         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
20669         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
20670         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
20671         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
20672         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
20673         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
20674         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
20675         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
20676         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
20677         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
20678         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
20679         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
20680         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
20681         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
20682         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
20683         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
20684         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
20685         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
20686         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
20687         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
20688         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
20689         opt-functions.awk, opth-gen.awk, params.def, passes.c,
20690         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
20691         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
20692         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
20693         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
20694         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
20695         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
20696         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
20697         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
20698         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
20699         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
20700         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
20701         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
20702         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
20703         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
20705 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20707         PR other/43620
20708         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
20709         * aclocal.m4: Regenerate.
20711 2010-04-02  Richard Guenther  <rguenther@suse.de>
20713         PR tree-optimization/43629
20714         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
20715         if we have seen a constant value.
20717 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
20719         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
20721 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
20723         PR target/43469
20724         * arm.c (legitimize_tls_address): Adjust call to
20725         gen_tls_load_dot_plus_four.
20726         (arm_note_pic_base): New function.
20727         (arm_cannot_copy_insn_p): Use it.
20728         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
20729         constraint.
20731 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20733         PR bootstrap/43531
20735         Revert:
20736         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20738         * Makefile.in ($(out_object_file)): Depend on
20739         gt-$(basename $(notdir $(out_file))).h.
20741 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
20743         * config.gcc (lm32-*-rtems*): Add t-lm32.
20745 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
20747         * config.gcc: Add lm32-*-rtems*.
20748         * config/lm32/rtems.h: New file.
20750 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
20752         PR target/42609
20753         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
20755 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
20757         * dwarf2out.c (output_compilation_unit_header): For
20758         -gdwarf-4 use version 4 instead of version 3.
20759         (output_line_info): For version 4 and above emit additional
20760         maximum ops per insn header field.
20761         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
20763         * dwarf2out.c (is_c_family, is_java): Remove.
20764         (lower_bound_default): New function.
20765         (add_bound_info, gen_descr_array_type_die): Use it.
20767 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
20769         PR debug/43325
20770         * dwarf2out.c (gen_variable_die): Allow debug info for variable
20771         re-declaration when it happens in a function.
20773 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
20775         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
20776         (cgraph_remove_function_insertion_hook): Same.
20777         (cgraph_call_function_insertion_hooks): Same.
20779 2010-04-01  Richard Guenther  <rguenther@suse.de>
20781         PR middle-end/43614
20782         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
20783         and TREE_THIS_VOLATILE.
20784         (copy_ref_info): Likewise.
20785         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
20786         * tree.c (build6_stat): Ignore side-effects of all but arg5
20787         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
20788         TARGET_MEM_REF.
20790 2010-04-01  Richard Guenther  <rguenther@suse.de>
20792         PR tree-optimization/43607
20793         * ipa-type-escape.c (check_call): Do not access non-existing
20794         arguments.
20796 2010-04-01  Richard Guenther  <rguenther@suse.de>
20798         PR middle-end/43602
20799         Revert
20800         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
20801                     Jack Howarth  <howarth@bromo.med.uc.edu>
20803         * tree-profile.c (tree_init_ic_make_global_vars): Make static
20804         variables TLS.
20806 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20808         * doc/install.texi (Prerequisites): Document libelf usability on
20809         IRIX 5/6 and Solaris 2.
20810         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
20811         Update GNU as, GNU ld requirements.
20812         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
20813         Document Sun Studio compiler download.
20814         Update and simplify as, ld recommendations.
20815         (Specific, *-*-solaris2.7): Note obsoletion, removal.
20817 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20819         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
20820         with_tune_32 to pentium4.
20822 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
20824         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
20826 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20828         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
20829         obsoletion, removal.
20830         Update IDO URL.
20831         Document GNU as requirement.
20832         Update configure requirements.
20833         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
20834         Recomment IRIX 6.5.18+.
20835         Document IDF/IDL requirement.
20836         Document GNU as requirement.
20837         Document GNU ld bootstrap failure.
20838         Remove freeware.sgi.com reference.
20840 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20842         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
20843         UNIX V4.0, V5.0 obsoletion, removal.
20844         Remove --with-gc=simple reference.
20845         Update VM requirements during bootstrap.
20846         Remove -oldas bootstrap description.
20847         Update binutils reference.
20848         Remove comparison failure note.
20850 2010-03-31  Richard Guenther  <rguenther@suse.de>
20851             Zdenek Dvorak  <ook@ucw.cz>
20852             Sebastian Pop  <sebastian.pop@amd.com>
20854         PR middle-end/43464
20855         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
20856         with multiple arguments.
20857         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
20859 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20861         * graphite-dependences.c (print_pddr): Call print_pdr with an
20862         extra argument.
20863         * graphite-poly.c (debug_pdr): Add an extra argument for the
20864         verbosity level.
20865         (print_pdr): Same.
20866         (print_pbb_domain): Same.
20867         (print_pbb): Same.
20868         (print_scop_context): Same.
20869         (print_scop): Same.
20870         (print_cloog): Same.
20871         (debug_pbb_domain): Same.
20872         (debug_pbb): Same.
20873         (print_pdrs): Same.
20874         (debug_pdrs): Same.
20875         (debug_scop_context): Same.
20876         (debug_scop): Same.
20877         (debug_cloog): Same.
20878         (print_scop_params): Same.
20879         (debug_scop_params): Same.
20880         (print_iteration_domain): Same.
20881         (print_iteration_domains): Same.
20882         (debug_iteration_domain): Same.
20883         (debug_iteration_domains): Same.
20884         (print_scattering_function): Same.
20885         (print_scattering_functions): Same.
20886         (debug_scattering_function): Same.
20887         (debug_scattering_functions): Same.
20888         * graphite-poly.h (debug_pdr): Update declaration.
20889         (print_pdr): Same.
20890         (print_pbb_domain): Same.
20891         (print_pbb): Same.
20892         (print_scop_context): Same.
20893         (print_scop): Same.
20894         (print_cloog): Same.
20895         (debug_pbb_domain): Same.
20896         (debug_pbb): Same.
20897         (print_pdrs): Same.
20898         (debug_pdrs): Same.
20899         (debug_scop_context): Same.
20900         (debug_scop): Same.
20901         (debug_cloog): Same.
20902         (print_scop_params): Same.
20903         (debug_scop_params): Same.
20904         (print_iteration_domain): Same.
20905         (print_iteration_domains): Same.
20906         (debug_iteration_domain): Same.
20907         (debug_iteration_domains): Same.
20908         (print_scattering_function): Same.
20909         (print_scattering_functions): Same.
20910         (debug_scattering_function): Same.
20911         (debug_scattering_functions): Same.
20913 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20915         * graphite-poly.c (print_scattering_function_1): New.
20916         (print_scattering_function): Call it.
20917         (print_scop_params): Remove spaces at the end of lines.
20918         (print_cloog): New.
20919         (debug_cloog): New.
20920         * graphite-poly.h (print_cloog): Declared.
20921         (debug_cloog): Declared.
20923 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20925         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
20926         in loop->header.
20927         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
20928         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
20929         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
20930         to switch between adding the IV bump in loop->latch or in loop->header.
20932 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20934         * graphite-poly.c (print_scattering_function): Pretty print following
20935         the scoplib format.
20936         (print_pdr): Same.
20937         (print_pbb_domain): Same.
20938         (dump_gbb_cases): Same.
20939         (dump_gbb_conditions): Same.
20940         (print_pdrs): Same.
20941         (print_pbb): Same.
20942         (print_scop_params): Same.
20943         (print_scop_context): Same.
20944         (print_scop): Same.
20945         (print_pbb_body): New.
20946         (lst_indent_to): New.
20947         (print_lst): Start new lines with a #.
20948         * graphite-poly.h (pbb_bb): New.
20949         (pbb_index): Use pbb_bb.
20950         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
20951         disjuncts.
20952         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
20954 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
20956         * dwarf2out.c (size_of_die): For -gdwarf-4 use
20957         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
20958         and 0 instead of 1 for dw_val_class_flag.
20959         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
20960         dw_val_class_range_list, dw_val_class_loc_list,
20961         dw_val_class_lineptr and dw_val_class_macptr, use
20962         DW_FORM_flag_present for dw_val_class_flag and
20963         DW_FORM_exprloc for dw_val_class_loc.
20964         (output_die): For -gdwarf-4 print dw_val_class_loc
20965         size as uleb128 instead of 1 or 2 bytes and don't print
20966         anything for dw_val_class_flag.
20968         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
20969         instead of cselib_lookup following by tweaking locs->setting_insn.
20971         PR bootstrap/43596
20972         * cselib.c (cselib_process_insn): Clear cselib_current_insn
20973         even before returning from label, setjmp call or volatile asm
20974         handling.
20976 2010-03-31  Richard Guenther  <rguenther@suse.de>
20978         PR middle-end/43600
20979         * cgraphunit.c (cgraph_output_in_order): Do not allocate
20980         temporary data on stack.
20982 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20984         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
20985         (PUSHSECTION_ASM_OP): Remove.
20986         (POPSECTION_ASM_OP): Remove.
20987         (PUSHSECTION_FORMAT): Remove.
20988         * config/sol2.h (PUSHSECTION_FORMAT): Define.
20989         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
20990         * config/sol2.c (solaris_output_init_fini): Use it.
20992 2010-03-31  Jie Zhang  <jie@codesourcery.com>
20994         PR 43574
20995         * opt-functions.awk (var_type_struct): Use signed char type
20996         for simple variables.
20998 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21000         * config/sol2.c: Include output.h.
21001         (solaris_assemble_visibility): New function.
21002         * config/t-sol2 (sol2.o): Add output.h dependency.
21003         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
21004         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
21005         Redefine.
21007 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
21009         PR target/43580
21010         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
21011         V2SImode or XFmode on PRE_DEC.
21013         PR debug/43557
21014         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
21015         BLKmode.
21017 2010-03-31  Jie Zhang  <jie@codesourcery.com>
21019         PR 43562
21020         * reload.h (caller_save_initialized_p): Declare.
21021         * toplev.c (backend_init_target): Don't call
21022         init_caller_save but set caller_save_initialized_p to false.
21023         * caller-save.c (caller_save_initialized_p): Define.
21024         (init_caller_save): Check caller_save_initialized_p.
21025         * ira.c (ira): Call init_caller_save if flag_caller_saves.
21027 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21029         PR target/39048
21030         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
21031         and soft-fp/t-softfp to tmake_file.
21032         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
21033         (LIBGCC2_TF_CEXT): Define.
21034         (TF_SIZE): Define.
21036 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
21038         PR debug/42977
21039         * cselib.c (n_useless_values): Document handling of debug locs.
21040         (n_useless_debug_values, n_debug_values): New variables.
21041         (new_elt_loc_list): Don't add to debug values, keep count.
21042         (promote_debug_loc): New.
21043         (cselib_reset_table): Zero new variables.
21044         (entry_and_rtx_equal_p): Promote debug locs.
21045         (discard_useless_locs): Increment n_useless_debug_values for
21046         debug values.
21047         (remove_useless_values): Adjust n_useless_values and n_debug_values
21048         with n_useless_debug_values.
21049         (add_mem_for_addr): Promote debug locs.
21050         (cselib_lookup_mem): Likewise.
21051         (cselib_lookup_addr): Renamed to...
21052         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
21053         (cselib_log_lookup): ... this.  Turn into...
21054         (cselib_lookup_addr): ... new wrapper.
21055         (cselib_lookup_from_insn): New.
21056         (cselib_invalidate_regno): Increment n_useless_debug_values for
21057         debug values.
21058         (cselib_invalidate_mem): Likewise.
21059         (cselib_process_insn): Take n_deleted and n_debug_values into
21060         account to guard remove_useless_value call.
21061         (cselib_finish): Zero n_useless_debug_values.
21062         * cselib.h (cselib_lookup_from_insn): Declare.
21063         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
21064         (sched_analyze_2): Likewise.
21066 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
21068         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
21069         functions.
21070         (adjust_mems): Replace narrowing SUBREG of expression containing
21071         just PLUS, MINUS, MULT and ASHIFT of registers and constants
21072         with operations in the narrower mode.
21074         PR debug/43593
21075         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
21076         regs_invalidated_by_call instead all call_used_reg_set registers.
21078 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
21080         PR middle-end/43430
21081         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
21082         pointer comparisons with types_compatible_p.
21083         * tree-vect-stmts.c (vectorizable_call): Same.
21084         (vectorizable_condition): Same.
21086 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21088         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
21089         stack check if the mask would be zero.
21091 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
21092             Jack Howarth  <howarth@bromo.med.uc.edu>
21094         * tree-profile.c (tree_init_ic_make_global_vars): Make static
21095         variables TLS.
21097 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
21099         PR other/25232
21100         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
21101         and __unordtf2.
21102         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
21103         Include ___unordxf2 and ___unordtf2.
21104         * config/i386/libgcc-glibc.ver: Do not define inheritance from
21105         GCC_4.4.0 here.
21107 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
21109         * config/lm32/t-lm32: New file.
21110         * config.gcc: Use the above file when targetting lm32.
21112 2010-03-28  Duncan Sands  <baldrick@free.fr>
21114         * Makefile.in (PLUGIN_HEADERS): Add except.h.
21116 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21118         PR middle-end/43431
21119         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
21120         Improve vectorization cost model diagnostic.
21122 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
21124         PR middle-end/43436
21125         * tree-vect-data-refs.c (vect_analyze_data_refs): When
21126         compute_data_dependences_for_loop returns false, early exit
21127         and output an extra diagnostic for the failed data reference
21128         analysis.
21130 2010-03-29  Richard Guenther  <rguenther@suse.de>
21132         PR tree-optimization/43560
21133         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
21134         (can_sm_ref_p): Treat stores to readonly locations as trapping.
21136 2010-03-29  Jie Zhang  <jie@codesourcery.com>
21138         PR 43564
21139         * toplev.c (process_options): Set optimization_default_node
21140         and optimization_current_node.
21141         * opts.c (decode_options): Don't set optimization_default_node
21142         and optimization_current_node.
21144 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
21146         * config/rtems.h: Abandon -qrtems_debug.
21148 2010-03-28  Jan Hubicka  <jh@suse.cz>
21150         PR tree-optimization/43505
21151         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
21152         map should not be copied.
21154 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21156         PR middle-end/41674
21157         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
21158         cdtors, set DECL_PRESERVE_P.
21159         * ipa.c (cgraph_externally_visible_p): Return true if declaration
21160         should be preseved.
21162 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
21164         PR tree-optimization/43528
21165         * stor-layout.c (place_field): Check that constant fits into
21166         unsigned HWI when skipping calculation of MS bitfield layout.
21168 2010-03-27  Jan Hubicka  <jh@suse.cz>
21170         PR middle-end/43391
21171         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
21172         notice_global_symbol work.
21174 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
21176         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
21177         instead of dwarf2out_decl.
21178         (struct var_loc_node): Remove section_label field.
21179         (dwarf2out_function_decl): New function.
21180         (dwarf2out_var_location): Don't set section_label field.
21181         (dwarf2out_begin_function): Don't empty decl_loc_table here.
21183 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
21185         PR tree-optimization/43544
21186         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
21187         First argument for builtin vectorized function hook is now a
21188         tree to be able to distinguish between machine specific and
21189         standard builtins.
21190         * targhooks.c (default_builtin_vectorized_function): Ditto.
21191         * targhooks.h (default_builtin_vectorized_function): Ditto.
21192         * target.h (struct gcc_target): Ditto.
21193         * tree-vect-stmts.c (vectorizable_function): Ditto.
21194         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
21195         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
21196         Ditto.
21198 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
21200         PR c/43381
21201         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
21202         nested binding iff it is a FUNCTION_DECL.
21203         (store_parm_decls_newstyle): Pass nested=true to bind for
21204         FUNCTION_DECLs amongst parameters.
21206 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21208         * var-tracking.c (vt_expand_loc_callback): Don't run
21209         cselib_expand_value_rtx_cb in dummy mode if
21210         cselib_dummy_expand_value_rtx_cb returned false.
21212         * var-tracking.c (emit_note_insn_var_location): For one part
21213         notes with offset 0, don't add EXPR_LIST around the location.
21214         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
21215         add_location_or_const_value_attribute): Adjust for that change.
21217         PR debug/43540
21218         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
21219         into first operand and location into second.
21220         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
21221         dw_cfi_oprnd_loc for DW_CFA_expression.
21222         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
21223         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
21224         assume first argument is regnum and second argument is location.
21226 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21228         PR target/42113
21229         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
21230         of scratch register to DImode.  Split to DImode comparison operator.
21231         Use SImode subreg of scratch register in the multiplication.
21232         (*cmp_sadd_sidi): Ditto.
21233         (*cmp_ssub_si): Ditto.
21234         (*cmp_ssub_sidi): Ditto.
21236 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
21238         PR target/43524
21239         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
21240         Remove invalid assert and wrong comment.
21242 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
21244         PR debug/43516
21245         * flags.h (final_insns_dump_p): New extern.
21246         * final.c (final_insns_dump_p): New variable.
21247         (rest_of_clean_state): Set it before -fdump-final-insns=
21248         dumping, clear afterwards.
21249         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
21250         MEM_ALIAS_SET on MEMs.
21252 2010-03-26  David S. Miller  <davem@davemloft.net>
21254         * configure.ac: Fix sparc GOTDATA_OP bug check.
21255         * configure: Rebuild.
21257 2010-03-26  Alan Modra  <amodra@gmail.com>
21259         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
21261 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21263         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
21264         TLS_SECTION_ASM_FLAG.
21266 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
21268         PR bootstrap/43511
21269         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
21270         Clear first_function_block_is_cold.
21272         PR c/43385
21273         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
21274         argument if the argument is truth_value_p.
21276 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21278         * config/rs6000/constraints.md: Update copyright year for my changes.
21280         PR target/43484
21281         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
21282         used in reg+reg addressing, swap registers.
21284 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21286         PR debug/43293
21287         * target.h (struct gcc_target): Add code_end hook.
21288         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
21289         if not yet defined.
21290         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
21291         * toplev.c (compile_file): Call targetm.asm_out.code_end
21292         hook before unwind info/debug info output.
21293         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
21294         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
21295         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21296         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
21297         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
21298         * config/i386/i386.c (ix86_file_end): Renamed to...
21299         (ix86_code_end): ... this.  Make static.  Don't call
21300         file_end_indicate_exec_stack.  Emit unwind info using
21301         final_start_function/final_end_function.
21302         (darwin_x86_file_end): Remove.
21303         (TARGET_ASM_CODE_END): Define.
21304         * config/i386/i386.h (TARGET_ASM_FILE_END,
21305         NEED_INDICATE_EXEC_STACK): Don't define.
21306         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
21307         (TARGET_ASM_FILE_END): Define to darwin_file_end.
21308         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
21309         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
21311         PR target/43498
21312         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
21313         at the beginning and final_end_function at the end.
21314         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
21316 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21318         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
21319         and Sun as TLS syntax.
21320         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
21321         * configure: Regenerate.
21322         * config.in: Regenerate.
21323         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
21324         (default_elf_asm_named_section): Use it.
21325         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
21326         (i386_output_dwarf_dtprel): Likewise.
21327         (output_addr_const_extra): Likewise.
21328         (output_pic_addr_const): Lowercase @GOTTPOFF.
21329         (output_addr_const_extra): Likewise.
21330         (output_pic_addr_const): Lowercase @GOTNTPOFF.
21331         (output_addr_const_extra): Likewise.
21332         (output_pic_addr_const): Lowercase @INDNTPOFF.
21333         (output_addr_const_extra): Likewise.
21334         (output_pic_addr_const): Lowercase @NTPOFF.
21335         (output_addr_const_extra): Likewise.
21336         (output_pic_addr_const): Lowercase @TPOFF.
21337         (output_addr_const_extra): Likewise.
21338         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
21339         (*tls_global_dynamic_64): Likewise.
21340         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
21341         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
21343         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
21344         (ASM_OUTPUT_TLS_COMMON): Use it.
21345         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
21347         PR target/38118
21348         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
21349         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
21350         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
21351         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
21352         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21353         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
21355 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21357         * config/i386/i386.c (override_options): Don't accept
21358         -mtls-dialect=sun any longer.
21359         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
21360         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
21361         (*tls_local_dynamic_base_32_sun): Likewise.
21362         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
21364 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
21366         PR debug/43508
21367         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21368         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
21370         PR debug/43479
21371         * ira.c (adjust_cleared_regs): New function.
21372         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
21374         PR debug/19192
21375         PR debug/43479
21376         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
21377         from gimple_block.
21378         * expr.c (expand_expr_real): Restore previous
21379         curr_insn_source_location and curr_insn_block after
21380         expand_expr_real_1 call.
21381         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
21382         instead of expand_expr_real_1.
21384 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
21386         PR rtl-optimization/43413
21387         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
21388         hard regs too.
21390 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
21392         PR target/43348
21393         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
21394         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
21396 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21398         * config/i386/i386.c (ix86_target_string): Add -mfma.
21399         Fix a typo in comment.
21401 2010-03-22  Mike Stump  <mikestump@comcast.net>
21403         PR target/23071
21404         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
21405         Don't overly align based upon packed packed fields.
21407 2010-03-22  Jason Merrill  <jason@redhat.com>
21409         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
21410         Use () rather than [], and move before the element type.
21412 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21414         * doc/configfiles.texi (Configuration Files): Removed
21415         fixinc/Makefile*, intl/Makefile.*.
21416         * doc/makefile.texi: Fixed markup. Abstract from version
21417         control system used.
21418         (Makefile): Removed obsolete gcc/java/parse.y example.
21419         * doc/sourcebuild.texi: Likewise.
21420         (Top Level): Added config, gnattools, libdecnumber, libgcc,
21421         libgomp, libssp.  Removed fastjar.
21422         (Miscellaneous Docs): Clarify location.
21423         Added COPYING3, COPYING3.LIB.
21424         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
21426 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21428         PR target/38085
21429         * config/i386/i386.c (x86_function_profiler)
21430         [!NO_PROFILE_COUNTERS]: Fix typo.
21431         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
21432         instead of callq.
21434 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
21435             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21437         * doc/sourcebuild.texi (Test Directives): Split into six
21438         subsections, with most of the current text in new subsections
21439         Directives, Selectors, and Final Actions.
21440         (Directives): Split list of test directives into multiple
21441         subsubsections.
21442         (Selectors): Describe use and syntax of selectors.
21443         (Effective-Target Keywords): Describe all existing keywords.
21444         (Add Options): Describe features for dg-add-options.
21445         (Require Support): Describe variants of dg-require-support.
21446         (Final Actions): Describe commands to use in dg-final.
21448 2010-03-22  Michael Matz  <matz@suse.de>
21450         PR middle-end/43475
21451         * recog.c (validate_replace_rtx_group): Replace also in
21452         REG_EQUAL and REG_EQUIV notes.
21454 2010-03-22  Richard Guenther  <rguenther@suse.de>
21456         PR tree-optimization/43390
21457         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
21458         sure vector extracts are type correct.
21460 2010-03-22  Richard Guenther  <rguenther@suse.de>
21462         PR middle-end/40106
21463         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
21464         x * sqrt (x) even when optimizing for size if the target
21465         has native support for sqrt.
21467 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
21469         * varasm.c (make_decl_rtl_for_debug): Also clear
21470         flag_mudflap for the duration of make_decl_rtl call.
21472         PR debug/43443
21473         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
21474         locs from preserved VALUEs.
21476 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21478         PR middle-end/42718
21479         * pa.md (movmemsi): Set align to one if zero.
21480         (movmemdi): Likewise.
21482 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
21484         PR target/42321
21485         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
21486         with their corresponding prologue pushes.
21488 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
21490         PR target/43156
21491         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
21492         at the begining or end.
21493         (spu_expand_epilogue): Likewise.
21495 2010-03-20  Richard Guenther  <rguenther@suse.de>
21497         PR rtl-optimization/43438
21498         * combine.c (make_extraction): Properly zero-/sign-extend an
21499         extraction of the low part of a CONST_INT.  Also handle
21500         CONST_DOUBLE.
21502 2010-03-19  Mike Stump  <mikestump@comcast.net>
21504         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
21505         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
21506         (override_options): Use SUBTARGET32_DEFAULT_CPU.
21508 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
21510         PR c/43211
21511         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
21512         an error.
21514 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
21516         PR rtl-optimization/42258
21517         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
21518         use that may match DEF.
21520         PR target/40697
21521         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
21522         the cost of loading the constant rather than assuming
21523         COSTS_N_INSNS (1).
21524         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
21525         outer code is AND, do the same tests as the andsi3 expander and
21526         return COSTS_N_INSNS (1) if and is cheap.
21528         * optabs.c (avoid_expensive_constant): Fix formatting.
21530 2010-03-19  Michael Matz  <matz@suse.de>
21532         PR c++/43116
21533         * attribs.c (decl_attributes): When rebuilding a function pointer
21534         type use the same qualifiers as the original pointer type.
21536 2010-03-19  Martin Jambor  <mjambor@suse.cz>
21538         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
21539         and is_gimple_ip_invariant_address.
21541 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21543         Revert
21544         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21546         * config/arm/arm.c (arm_override_options): Turn off
21547         flag_dwarf2_cfi_asm for AAPCS variants.
21549 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21551         PR target/43399
21552         * config/arm/arm.c (emit_multi_reg_push): Update comments.
21553         Use PRE_MODIFY instead of PRE_DEC.
21554         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
21555         (vfp_emit_fstmd): Likewise.
21557 2010-03-19  Michael Matz  <matz@suse.de>
21559         PR target/43305
21560         * builtins.c (expand_builtin_interclass_mathfn,
21561         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
21562         if that fails.
21564 2010-03-19  Richard Guenther  <rguenther@suse.de>
21566         PR tree-optimization/43415
21567         * tree-ssa-pre.c (phi_translate): Split out worker to ...
21568         (phi_translate_1): ... this.
21569         (phi_translate): Move all caching here.  Cache all NARY
21570         and REFERENCE translations.
21572 2010-03-19  David S. Miller  <davem@davemloft.net>
21574         With help from Eric Botcazou.
21575         * config/sparc/sparc.c: Include dwarf2out.h.
21576         (emit_pic_helper): Delete.
21577         (pic_helper_symbol_name): Delete.
21578         (pic_helper_emitted_p): Delete.
21579         (pic_helper_needed): New.
21580         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
21581         (get_pc_thunk_name): New.
21582         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
21583         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
21584         Set pic_helper_needed to true.  Don't call emit_pic_helper.
21585         (sparc_expand_prologue): Update load_pic_register call.
21586         (sparc_output_mi_thunk): Likewise.
21587         (sparc_file_end): Emit a hidden comdat symbol for the PIC
21588         thunk if possible.  Output CFI information as needed.
21590 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
21591             Jack Howarth  <howarth@bromo.med.uc.edu>
21593         PR target/36399
21594         * config/i386/i386.h: Fix ABI on darwin x86-32.
21596 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
21598         * tree.h: Declare make_decl_rtl_for_debug.
21599         * varasm.c (make_decl_rtl_for_debug): New.
21600         * dwarf2out.c (rtl_for_decl_location): Call it.
21601         * cfgexpand.c (expand_debug_expr): Call it.
21603 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
21605         PR bootstrap/43399
21606         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
21607         mem_mode.
21609         PR bootstrap/43403
21610         * var-tracking.c (vt_init_cfa_base): Do nothing if
21611         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
21613 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
21615         PR debug/42873
21616         * var-tracking.c (canonicalize_vars_star): New.
21617         (dataflow_post_merge_adjust): Use it.
21619 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
21621         PR debug/43058
21622         * var-tracking.c (non_suitable_const): New function.
21623         (add_uses): For DEBUG_INSNs with constants, don't record any
21624         value, instead just the constant value itself.
21625         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
21626         is not VAR_LOC_UNKNOWN_P, set var to the constant.
21627         (emit_notes_in_bb): Likewise.
21628         (emit_note_insn_var_location): For onepart variables if
21629         cur_loc is a VOIDmode constant, use DECL_MODE.
21631 2010-03-18  Martin Jambor  <mjambor@suse.cz>
21633         PR middle-end/42450
21634         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
21635         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
21636         all non-clones.  Moved call redirection...
21637         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
21638         (cgraph_materialize_all_clones): Dispose of all
21639         combined_args_to_skip bitmaps.
21640         (verify_cgraph_node): Do not check for edges pointing to wrong
21641         nodes in inline clones.
21642         * tree-inline.c (copy_bb): Call
21643         cgraph_redirect_edge_call_stmt_to_callee.
21644         * ipa.c (cgraph_remove_unreachable_nodes): Call
21645         cgraph_node_remove_callees even when there are used clones.
21647 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
21649         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
21651 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
21653         PR target/43383
21654         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
21655         for 32bit.
21657 2010-03-18  Michael Matz  <matz@suse.de>
21659         PR middle-end/43419
21660         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
21661         into sqrt(x) if we need to preserve signed zeros.
21663 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
21664             Eric Botcazou  <ebotcazou@adacore.com>
21666         PR rtl-optimization/43360
21667         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
21668         note if we don't know its invariant status.
21670 2010-03-18  Michael Matz  <matz@suse.de>
21672         PR tree-optimization/43402
21673         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
21674         PHI chains of ssa names registered for update.
21676 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
21678         PR target/42427
21679         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
21680         non-offsettable and pre_modify update addressing.
21681         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
21682         and "2" alternatives "#".
21683         (*movdd_softfloat32): Make all alternatives "#";
21684         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
21685         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
21686         (*movdf_softfloat32): Make all alternatives "#";
21687         (movdi): Use the new DIFD mode iterator to create a common splitter
21688         for movdi, movdf and movdd patterns.
21690 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
21692         * common.opt (dumpdir): Remove redundant tab.
21694 2010-03-17  Martin Jambor  <mjambor@suse.cz>
21696         PR tree-optimization/43347
21697         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
21698         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
21700 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
21702         PR rtl-optimization/42216
21703         * regrename.c (create_new_chain): New function, broken out from...
21704         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
21705         appending a use to an empty chain.
21706         (build_def_use): Remove previous changes that convert OP_INOUT to
21707         OP_OUT operands; instead detect the case where an OP_INOUT operand
21708         uses a previously untracked register and create an empty chain for it.
21710 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21712         * doc/extend.texi (Function Attributes): Rewrite unfinished
21713         sentence in ms_abi documentation.
21715 2010-03-17  Alan Modra  <amodra@gmail.com>
21717         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
21718         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
21719         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
21720         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
21722 2010-03-16  Richard Henderson  <rth@redhat.com>
21724         PR middle-end/43365
21725         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
21726         (lower_try_finally): Save and restore eh_seq around the expansion
21727         of the try-finally.
21729 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
21731         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
21732         statements before splitting block.
21734 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21736         * doc/sourcebuild.texi (Testsuites): Fix markup.
21737         Use pathnames relative to gcc/testsuite.
21738         (Test Directives): Move description of how timeout is determined.
21739         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
21740         (C Tests): Correct gcc.misc-tests directory.
21741         Framework tests now live in gcc.test-framework.
21743 2010-03-16  Richard Guenther  <rguenther@suse.de>
21745         PR middle-end/43379
21746         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
21747         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
21749 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
21750             Alexandre Oliva  <aoliva@redhat.com>
21752         PR tree-optimization/42917
21753         * lambda-code.c (remove_iv): Skip debug statements.
21754         (lambda_loopnest_to_gcc_loopnest): Likewise.
21755         (not_interesting_stmt): Debug statements are not interesting.
21757 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
21759         PR debug/43051
21760         PR debug/43092
21761         * cselib.c (cselib_preserve_constants,
21762         cfa_base_preserved_val): New static variables.
21763         (preserve_only_constants): New function.
21764         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
21765         clear its REG_VALUES.  If cselib_preserve_constants, don't
21766         empty the whole hash table, but preserve there VALUEs with constants,
21767         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
21768         (cselib_preserve_cfa_base_value): New function.
21769         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
21770         (cselib_init): Change argument to int bitfield.  Set
21771         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
21772         is in it.
21773         (cselib_finish): Clear cselib_preserve_constants and
21774         cfa_base_preserved_val.
21775         * cselib.h (enum cselib_record_what): New enum.
21776         (cselib_init): Change argument to int.
21777         (cselib_preserve_cfa_base_value): New prototype.
21778         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
21779         * dse.c (dse_step1): Likewise.
21780         * cfgcleanup.c (thread_jump): Likewise.
21781         * sched-deps.c (sched_analyze): Likewise.
21782         * gcse.c (local_cprop_pass): Likewise.
21783         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
21784         If FN is non-NULL, call the callback always and whenever it returns
21785         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
21786         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
21787         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
21788         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
21789         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
21790         * var-tracking.c: Include recog.h.
21791         (bb_stack_adjust_offset): Remove.
21792         (vt_stack_adjustments): Don't call it, instead just gather the
21793         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
21794         (adjust_stack_reference): Remove.
21795         (compute_cfa_pointer): New function.
21796         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
21797         (struct adjust_mem_data): New type.
21798         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
21799         functions.
21800         (get_address_mode): New function.
21801         (replace_expr_with_values): Use it.
21802         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
21803         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
21804         (adjust_sets): Remove.
21805         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
21806         Use get_address_mode.
21807         (get_adjusted_src): Remove.
21808         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
21809         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
21810         (add_with_sets): Don't call adjust_sets.
21811         (fp_setter, vt_init_cfa_base): New functions.
21812         (vt_initialize): Change return type to bool.  Move most of pool etc.
21813         initialization to the beginning of the function from end.  Pass
21814         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
21815         If !frame_pointer_needed, call vt_stack_adjustment before mos
21816         vector is filled, call vt_init_cfa_base if argp/framep has been
21817         eliminated to sp.  If frame_pointer_needed and argp/framep has
21818         been eliminated to hard frame pointer, set
21819         hard_frame_pointer_adjustment and call vt_init_cfa_base after
21820         encountering fp setter in the prologue.  For MO_ADJUST, call
21821         log_op_type before pusing the op into mos vector, not afterwards.
21822         Call adjust_insn before cselib_process_insn/add_with_sets,
21823         call cancel_changes (0) afterwards.
21824         (variable_tracking_main_1): Adjust for vt_initialize calling
21825         vt_stack_adjustments and returning whether it succeeded or not.
21827 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
21829         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
21830         debug statements.
21832 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
21834         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
21835         has been set.
21836         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
21837         drap_reg has not been set.
21839 2010-03-15  Michael Matz  <matz@suse.de>
21841         PR middle-end/43300
21842         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
21843         use it to expand block copies.
21844         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
21845         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
21846         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
21848 2010-03-15  Richard Guenther  <rguenther@suse.de>
21850         PR tree-optimization/43367
21851         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
21852         elimination check.
21854 2010-03-15  Richard Guenther  <rguenther@suse.de>
21856         PR tree-optimization/43317
21857         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
21859 2010-03-15  Martin Jambor  <mjambor@suse.cz>
21861         PR tree-optimization/43141
21862         * tree-sra.c (create_abstract_origin): New function.
21863         (modify_function): Call create_abstract_origin.
21865 2010-03-15  Chris Demetriou  <cgd@google.com>
21867         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
21868         wasn't copied.
21870 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21872         PR middle-end/43354
21873         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
21874         call insert_out_of_ssa_copy for default definitions.
21876 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21878         * graphite-clast-to-gimple.c (my_long_long): Defined.
21879         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
21880         * graphite-sese-to-poly.c (my_long_long): Defined.
21881         (scop_ivs_can_be_represented): Use it.
21883 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21885         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
21886         graphite-max-bbs-per-function, and loop-block-tile-size.
21887         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
21888         with "maximum".
21889         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
21891 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21893         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
21894         forward declaration.
21895         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
21896         (add_upper_bounds_from_estimated_nit): New.
21897         (build_loop_iteration_domains): Use it.
21899 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21901         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
21903 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21905         PR middle-end/43306
21906         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
21907         should be an INTEGER_CST.  Also handle CASE_CONVERT.
21909 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21911         * graphite.c (graphite_initialize): To bound the number of bbs per
21912         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
21913         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
21914         * doc/invoke.texi: Document it.
21916 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21918         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
21919         * graphite-sese-to-poly.h (build_poly_scop): Same.
21921 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21923         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
21924         the number of parameters in the scop.  Use as an upper bound
21925         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
21926         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
21927         * doc/invoke.texi: Document it.
21929 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
21931         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
21932         * doc/c-tree.texi: Remove.
21933         * doc/generic.texi: Merge c-tree.texi here.
21934         * doc/gccint.texi (Trees): Remove menu entry.
21935         (c-tree.texi): Remove @include.
21936         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
21937         * doc/languages.texi (Reading RTL): Ditto.
21939 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
21941         PR target/42869
21942         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
21944 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21946         PR middle-end/42431
21947         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
21948         code added to work around reload clobbering CONST insns.
21950 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
21952         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
21953         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
21954         (cselib_preserve_only_values): Remove retain argument, don't
21955         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
21956         * cselib.h (cselib_preserve_only_values): Remove retain argument.
21957         * var-tracking.c (micro_operation): Move insn field before union.
21958         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
21959         (struct variable_tracking_info_def): Remove n_mos field, change
21960         mos into a vector of micro_operations.
21961         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
21962         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
21963         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
21964         changing into a vector.
21965         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
21966         come before all other uops generated by add_stores.
21967         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
21968         argument removal.
21969         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
21970         a vector.  Run just one pass over the bbs instead of separate counting
21971         and computation phase.
21972         (vt_finalize): Free VTI (bb)->mos vector instead of array.
21974         PR debug/43329
21975         * tree-inline.c (remap_decls): Put old_var rather than origin_var
21976         into *nonlocalized_list vector.
21977         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
21978         even if origin is non-NULL.
21979         (gen_variable_die): Likewise.
21980         (process_scope_var): Don't change origin.
21981         (gen_decl_die): Likewise.
21982         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
21983         before adding new edges instead of after it, fix moving over
21984         debug stmts.
21986 2010-03-11  David S. Miller  <davem@davemloft.net>
21988         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
21989         of four.
21990         * configure: Rebuild.
21992 2010-03-11  Martin Jambor  <mjambor@suse.cz>
21994         PR tree-optimization/43257
21995         * tree.c (assign_assembler_name_if_neeeded): New function.
21996         (free_lang_data_in_cgraph): Assembler name assignment moved to the
21997         above new function.
21998         * tree.h (assign_assembler_name_if_neeeded): Declare.
21999         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
22000         the function if needed.
22002 2010-03-11  Chris Demetriou  <cgd@google.com>
22004         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
22005         include/stdint-gcc.h, and include/stdint.h world-readable.
22007 2010-03-11  Richard Guenther  <rguenther@suse.de>
22009         PR tree-optimization/43255
22010         * tree-vrp.c (process_assert_insertions_for): Do not insert
22011         asserts for trivial conditions.
22013 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22015         PR tree-optimization/43280
22016         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
22017         generation.  Move calculation of size out of the if branch.
22018         (find_bswap): Modify compare number generation.
22020 2010-03-11  Richard Guenther  <rguenther@suse.de>
22022         PR lto/43200
22023         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
22024         (input_gimple_stmt): Fixup handled component types during
22025         operand read.  Also fix up decls in ADDR_EXPRs.
22027 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
22029         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
22030         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
22032 2010-03-10  Jan Hubicka  <jh@suse.cz>
22034         PR c/43288
22035         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
22036         * varasm.c (get_variable_section): Don't do that here...
22037         (make_decl_rtl): ... and here.
22038         (do_assemble_alias): Produce decl RTL.
22039         (assemble_alias): Likewise.
22041 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22043         PR debug/43290
22044         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
22045         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
22046         of fde->vdrap_reg.
22047         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
22048         (based_loc_descr): Only express drap or vdrap regno based expressions
22049         using DW_OP_fbreg when not optimizing.
22050         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
22051         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
22052         REG_CFA_SET_VDRAP note.
22054 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
22056         PR tree-optimization/43236
22057         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
22058         error in calculation of base address in reverse iteration case.
22059         (generate_builtin): Take number of latch executions if the statement
22060         is in the latch.
22062 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
22064         PR middle-end/42859
22065         * tree-eh.c: Include pointer-set.h.
22066         (lower_eh_dispatch): Filter out duplicate case labels and
22067         remove the unneeded edge when the label is unused.  Return
22068         true when some edges are removed.
22069         (execute_lower_eh_dispatch): When any lowering resulted in
22070         removing an edge, also delete unreachable blocks.
22072 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
22074         PR bootstrap/43287
22075         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
22076         UNSPEC_MACHOPIC_OFFSET.
22078 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
22080         PR target/43294
22081         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
22082         (m68k_delegitimize_address): New function.
22084 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
22086         PR debug/43299
22087         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
22089         PR debug/43299
22090         * var-tracking.c (adjust_sets): New function.
22091         (count_with_sets, add_with_sets): Use it.
22092         (get_adjusted_src): New inline function.
22093         (add_stores): Use it.
22095         PR debug/43304
22096         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
22097         call cselib_dummy_expand_value_rtx_cb instead of
22098         cselib_expand_value_rtx_cb.
22100         PR debug/43293
22101         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
22102         * config/i386/i386.c: Include debug.h and dwarf2out.h.
22103         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
22104         and .cfi_endproc around the pic thunks.
22105         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
22106         all queued unwind info register saves are saved before the call.
22107         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
22108         considered as sp-=4 for unwind info and the pop as sp+=4 which
22109         also clobbers dest, but doesn't actually restore it.
22111         PR debug/43290
22112         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
22113         RTX_FRAME_RELATED_P.
22115 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22117         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
22118         whitespaces in output template.
22120 2010-03-09  Jie Zhang  <jie@codesourcery.com>
22122         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
22123         out array boundary.
22125 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22127         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
22128         builtins.exp in a separate job.
22130 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22132         * graphite-sese-to-poly.c (add_param_constraints): Use
22133         lower_bound_in_type and upper_bound_in_type.
22135 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22137         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
22138         instead of unsigned_type_node.
22140 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22141             Reza Yazdani  <reza.yazdani@amd.com>
22143         PR middle-end/43065
22144         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
22145         on pointer type parameters.
22147 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22149         PR middle-end/42644
22150         PR middle-end/42130
22151         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
22152         handle conversions from pointer to integers.
22153         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
22154         induction variable, to be able to work with code generated by CLooG.
22155         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
22156         (build_poly_scop): Bail out if we cannot codegen a loop.
22158 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
22160         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
22161         code generation with gloog_error.
22163 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22165         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
22166         Call fold_convert on all the returned values.
22167         (expand_scalar_variables_expr): Pass to
22168         expand_scalar_variables_ssa_name the type of the resulting expression.
22170 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22172         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
22173         ppl_min_for_le_pointset.
22174         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
22175         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
22177 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22179         * graphite-dependences.c (map_into_dep_poly): Removed.
22180         (dependence_polyhedron_1): Use combine_context_id_scat.
22182 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22184         * graphite-poly.h (struct poly_scattering): Add layout documentation.
22185         (struct poly_bb): Same.
22186         (combine_context_id_scat): New.
22188 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22190         PR middle-end/42326
22191         * sese.c (name_defined_in_loop_p): Return false for default
22192         definitions.
22194 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22196         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
22197         and clean up the logic.
22199 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
22201         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
22202         early return.
22204 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
22206         * var-tracking.c (remove_cselib_value_chains): Define only for
22207         ENABLE_CHECKING.
22208         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
22209         delete_slot_part, emit_notes_for_differences_1): Don't call
22210         remove_cselib_value_chains here.
22211         (set_slot_part, emit_notes_for_differences_2): Don't call
22212         add_cselib_value_chains here.
22213         (preserved_values): New vector.
22214         (preserve_value): New function.
22215         (add_uses, add_stores, vt_add_function_parameters): Use it
22216         instead of cselib_preserve_value.
22217         (changed_values_stack): New vector.
22218         (check_changed_vars_0): New function.
22219         (check_changed_vars_1, check_changed_vars_2): Use it.
22220         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
22221         changed_values_stack VALUEs.
22222         (vt_emit_notes): For all preserved_values call
22223         add_cselib_value_chains.  If ENABLE_CHECKING call
22224         remove_cselib_value_chains before verifying value_chains is empty.
22225         Initialize and free changed_values_stack.
22226         (vt_initialize): Initialize preserved_values.
22227         (vt_finalize): Free preserved_values.
22229 2010-03-08  Richard Guenther  <rguenther@suse.de>
22231         PR tree-optimization/43269
22232         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
22233         region detection.
22235 2010-03-08  Martin Jambor  <mjambor@suse.cz>
22237         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
22238         (ipa_is_param_called): Removed.
22239         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
22240         (ipa_print_node_params): Do not print the called flag.
22241         (ipa_write_node_info): Do not stream the called flag.
22242         (ipa_read_node_info): Likewise.
22244 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
22246         PR debug/43176
22247         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
22248         * cselib.c (struct expand_value_data): Add dummy field.
22249         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
22250         dummy to false.
22251         (cselib_dummy_expand_value_rtx_cb): New function.
22252         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
22253         any rtl.
22254         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
22255         * var-tracking.c: Include pointer-set.h.
22256         (variable): Change n_var_parts to char from int.  Add
22257         cur_loc_changed and in_changed_variables fields.
22258         (variable_canonicalize): Remove.
22259         (shared_var_p): New inline function.
22260         (unshare_variable): Maintain cur_loc_changed and
22261         in_changed_variables fields.  If var was in changed_variables,
22262         replace it there with new_var.  Just copy cur_loc instead of
22263         resetting it to something else.
22264         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
22265         (dataflow_set_union): Don't call variable_canonicalize.
22266         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
22267         of their DEBUG_EXPR_TREE_DECLs.
22268         (canonicalize_loc_order_check): Verify that cur_loc is NULL
22269         and in_changed_variables and cur_loc_changed is false.
22270         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
22271         and cur_loc_changed.  Don't update cur_loc here.
22272         (variable_merge_over_src): Don't call variable_canonicalize.
22273         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
22274         removing loc that is equal to cur_loc, clear cur_loc,
22275         set cur_loc_changed and ensure variable_was_changed is called.
22276         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
22277         compare pointers in cur_loc check, if it is equal to loc,
22278         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
22279         (variable_different_p): Remove compare_current_location argument,
22280         don't compare cur_loc.
22281         (dataflow_set_different_1): Adjust variable_different_p caller.
22282         (variable_was_changed): If dv had some var in changed_variables
22283         already, reset in_changed_variables flag for it and propagate
22284         cur_loc_changed over to the new variable.  On empty var
22285         always set cur_loc_changed.  Set in_changed_variables on whatever
22286         var is added to changed_variables.
22287         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
22288         Use shared_var_p.  When removing loc that is equal to cur_loc,
22289         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
22290         end, don't set it to something else, just call variable_was_changed.
22291         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
22292         loc being removed, clear cur_loc and set cur_loc_changed.
22293         Set cur_loc_changed if all locations have been removed.
22294         (struct expand_loc_callback_data): New type.
22295         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
22296         allocated.  Always create SUBREGs if simplify_subreg failed.
22297         Prefer to use cur_loc, when that fails and still in
22298         changed_variables (and seen first time) recompute it.  Set
22299         cur_loc_changed of variables which had to change cur_loc and
22300         compute elcd->cur_loc_changed if any of the subexpressions used
22301         had to change cur_loc.
22302         (vt_expand_loc): Adjust to pass arguments in
22303         expand_loc_callback_data structure.
22304         (vt_expand_loc_dummy): New function.
22305         (emitted_notes): New variable.
22306         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
22307         that weren't used for any other decl in current
22308         emit_notes_for_changes call call vt_expand_loc_dummy to update
22309         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
22310         first loc_chain location if NULL before.  Always use just
22311         cur_loc instead of first loc_chain location.  When cur_loc_changed
22312         is false, when not --enable-checking=rtl just don't emit any note.
22313         When rtl checking, compute the note and assert it is the same
22314         as previous note.  Clear cur_loc_changed and in_changed_variables
22315         at the end before removing from changed_variables.
22316         (check_changed_vars_3): New function.
22317         (emit_notes_for_changes): Traverse changed_vars to call
22318         check_changed_vars_3 on each changed var.
22319         (emit_notes_for_differences_1): Clear cur_loc_changed and
22320         in_changed_variables.  Recompute cur_loc of new_var.
22321         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
22322         (vt_emit_notes): Initialize and destroy emitted_notes.
22324 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
22326         PR rtl-optimization/42220
22327         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
22328         Use verify_reg_tracked to determine if we should use OP_OUT rather
22329         than OP_INOUT.
22330         (build_def_use): If we see an in-out operand for a register that we
22331         know nothing about, treat is an output if possible, fail the block if
22332         not.
22334 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22336         PR debug/42897
22337         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
22338         permanently.
22340 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22342         PR debug/42897
22343         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
22344         uses of relevant DEFs that are dead outside the loop too.
22346 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
22348         * var-tracking.c (dataflow_set_merge): Swap src and src2.
22349         Reverted:
22350         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
22351         PR debug/41371
22352         * var-tracking.c (values_to_unmark): New variable.
22353         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
22354         values_to_unmark vector.  Moved body to...
22355         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
22356         instead queue it into values_to_unmark vector.
22357         (vt_find_locations): Free values_to_unmark vector.
22359 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
22361         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
22362         (site.exp): Export them when plugins are enabled.
22364 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
22366         PR middle-end/42326
22367         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
22368         that contain scevs.
22369         (chrec_fold_multiply): Same.
22371 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22373         PR c/43248
22374         * c-decl.c (build_compound_literal): Return early if init is
22375         an error_mark_node.
22377 2010-03-04  Martin Jambor  <mjambor@suse.cz>
22379         PR tree-optimization/43164
22380         PR tree-optimization/43191
22381         * tree-sra.c (type_consists_of_records_p): Reject records with
22382         zero-size bit-fields at the end.
22384 2010-03-04  Mike Stump  <mikestump@comcast.net>
22386         * Makefile.in (TAGS): Remove *.y.
22388 2010-03-04  Richard Guenther  <rguenther@suse.de>
22390         PR tree-optimization/40761
22391         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
22392         in reverse order.
22393         (my_rev_post_order_compute): New function.
22394         (init_pre): Call it.
22396 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
22398         PR middle-end/43209
22399         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
22400         decrease the cost of an IV candidate when the cost is infinite.
22402 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22404         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
22405         Use '3DNow!' for the extension of that name, ensure normal space
22406         after the string.
22407         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
22409 2010-03-03  Jeff Law  <law@redhat.com>
22411         * PR middle-end/32693
22412         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
22413         than gen_rtx_SUBREG.
22414         (extract_bit_field_1): Likewise.
22416 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
22418         * doc/sourcebuild.texi (Test directives): Document that arguments
22419         include-opts and exclude-opts are now optional for dg-skip-if,
22420         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
22422 2010-03-03  Jason Merrill  <jason@redhat.com>
22424         PR c++/12909
22425         * cgraph.h (varpool_node): Add extra_name field.
22426         * varpool.c (varpool_extra_name_alias): New.
22427         (varpool_assemble_decl): Emit extra name aliases.
22428         (varpool_mark_needed_node): Look past an extra name alias.
22429         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
22430         * lto-streamer-in.c (lto_input_tree): Read it.
22431         * lto-streamer-out.c (output_unreferenced_globals): Write it.
22433 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
22435         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
22436         (sparc*-*-solaris2*): ...this.
22438 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
22440         PR debug/43229
22441         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
22442         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
22443         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
22444         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
22446         PR debug/43237
22447         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
22448         fallthrough to default handling, just with want_address 0 instead of 2.
22449         For single element lists, add_AT_loc directly, otherwise create an
22450         artificial variable DIE and stick location list to it.
22452         PR debug/43177
22453         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
22454         (VAL_EXPR_HAS_REVERSE): Define.
22455         (reverse_op): New function.
22456         (add_stores): For reversible operations add an extra MO_VAL_USE.
22458 2010-03-02  Jason Merrill  <jason@redhat.com>
22460         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
22462 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
22464         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
22465         (sparc64-*-linux*): Likewise.
22466         (sparc64-*-solaris2*): Include assembler files before linker ones.
22467         (sparc-*-solaris2*): Simplify and reorder to match previous case.
22468         * config/sparc/gas.h: Delete.
22469         * config/sparc/sol2-64.h: Add copyright notice.
22470         * config/sparc/sol2-gas-bi.h: Likewise.
22471         * config/sparc/sol2-gld.h: Likewise.
22472         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
22473         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
22474         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
22475         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
22476         (sparc_elf_asm_named_section): Rename into...
22477         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
22479 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
22481         * config/alpha/alpha.c (override_options): Fix -mtune error message.
22483 2010-03-02  Jeff Law  <law@redhat.com>
22485         PR middle-end/42431
22486         * reload1.c (rtx_p, substitute_stack): Declare.
22487         (substitute): Record addresses of changed rtxs.
22488         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
22489         Restore the original rtx when complete.
22490         (reload): Free subsitute_stack when complete.
22492 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
22494         * doc/gccint.texi (menu): Add Testsuites as a chapter.
22495         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
22496         new chapter.
22497         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
22498         LTO Testing, gcov Testing, profopt Testing, compat Testing,
22499         Torture Tests): Change from subsection to section.
22501 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
22502             Steven Bosscher  <steven@gcc.gnu.org>
22504         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
22505         instead of bb.
22507 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
22509         PR middle-end/42640
22510         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
22511         the assignment from the new induction variable to the assignment
22512         of the value from the original loop PHI function.
22514 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
22515             Daniel Jacobowitz  <dan@codesourcery.com>
22517         * doc/sourcebuild.texi (Test directives): Clarify options to
22518         dg-skip-if.
22520 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22522         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
22523         Disable cfi directives unless GCC and gas agree on using read-only
22524         .eh_frame sections for 64-bit.
22525         * configure: Regenerate.
22527 2010-03-01  Richard Guenther  <rguenther@suse.de>
22529         PR tree-optimization/43220
22530         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
22531         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
22533 2010-03-01  Richard Guenther  <rguenther@suse.de>
22534             Martin Jambor  <mjambor@suse.cz>
22536         PR middle-end/41250
22537         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
22538         gimplified parameters.
22540 2010-03-01  Christian Bruel  <christian.bruel@st.com>
22542         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
22544 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
22546         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
22548 2010-03-01  Richard Guenther  <rguenther@suse.de>
22550         PR middle-end/43213
22551         * expr.c (expand_assignment): Use the alias-oracle to tell
22552         if the rhs aliases the result decl.
22554 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22556         PR pch/14940
22557         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
22558         to sol_gt_pch_get_address.
22559         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
22560         64-bit, SPARC and x86.
22561         (sol_gt_pch_get_address): New function.
22563 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
22565         * toplev.h (inform_n, error_n): Declare.
22566         * diagnostic.c (inform_n, error_n): New function.
22568 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
22570         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
22571         has no rtl yet when processing local_decls, queue it and recheck
22572         if deferred stack allocation hasn't assigned it rtl.
22574 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
22576         * config/sh/sh.c (unspec_bbr_uid): New.
22577         (gen_block_redirect): Use it instead of INSN_UID.
22578         (gen_far_branch): Likewise.
22580 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
22582         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
22583         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
22585 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22587         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
22588         (Warning Options): -Wno-conversion-null is valid for
22589         Objective-C++ as well.
22590         * doc/tm.texi (Named Address Spaces): Likewise.
22591         * doc/plugins.texi (Plugins): Replace TABs with spaces.
22592         * doc/tree-ssa.texi (Tree SSA): Likewise.
22594 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22596         PR bootstrap/43202
22597         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
22598         by default.  Don't set the default arch for
22599         i[34567]86-*-darwin*|x86_64-*-darwin*.
22601 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22603         PR bootstrap/43202
22604         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
22605         default.  Set the default 32bit/64bit archs with $with_arch
22606         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
22608 2010-02-27  Richard Guenther  <rguenther@suse.de>
22610         PR tree-optimization/43186
22611         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
22612         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
22613         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
22614         unroller iterations.
22616 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
22618         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
22619         required and i[34567]86-*-* targets don't support 64bit ISA.
22621 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
22623         PR ada/43096
22624         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22625         the same alias set.
22627 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
22629         * config.gcc: Set the default arch at least to Prescott for
22630         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
22631         if SSE math is enabled.
22633 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22635         * diagnostic.c (diagnostic_initialize): Update.
22636         (diagnostic_report_diagnostic): Test inhibit_notes_p for
22637         informative notes.
22638         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
22639         (diagnostic_inhibit_notes): New.
22640         * toplev.c (process_options): inhibit notes with -fcompare-debug.
22642 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22644         PR c/20631
22645         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
22646         * doc/standards.texi: Likewise.
22647         * doc/extend.texi: Likewise.
22648         * doc/trouble.texi: Likewise.
22649         * doc/cppopts.texi: Likewise.
22650         * doc/install.texi: Likewise.
22651         * c.opt (std=c90,std=gnu90): New options.
22652         * c-opts.c (c_common_handle_option): Handle them.
22654 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22656         PR c/24577
22657         * c-decl.c (undeclared_variable): Use an informative note.
22659 2010-02-26  Richard Guenther  <rguenther@suse.de>
22661         PR tree-optimization/43186
22662         * gimple.h (gimple_fold): Remove.
22663         * gimple.c (gimple_fold): Remove.  Inline into single user ...
22664         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
22665         Try harder for conditions.
22667 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
22669         PR debug/43190
22670         * function.c (used_types_insert): Don't skip through named pointer
22671         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
22672         and it is different from the main variant's type.
22674 2010-02-26  Nick Clifton  <nickc@redhat.com>
22676         * config/rx/rx.md (sminsi3): Remove bogus alternative.
22678 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
22680         * config.gcc: Support --with-fpmath=sse for x86.
22682         * config/i386/ssemath.h: New.
22684         * doc/install.texi (--with-fpmath=sse): Documented.
22686 2010-02-26  Richard Guenther  <rguenther@suse.de>
22688         PR tree-optimization/43188
22689         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
22690         vector types of over-aligned element type.
22692 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
22694         PR target/43175
22695         * config/i386/i386.c (expand_vec_perm_blend): Use correct
22696         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
22698 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
22700         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
22702 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
22704         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
22705         * var-tracking.c: Include diagnostic.h.
22706         (debug_dv): New function.
22707         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
22709         PR debug/43160
22710         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
22711         (add_value_chain, add_value_chains, remove_value_chain,
22712         remove_value_chains): Handle DEBUG_EXPRs.
22713         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
22715         PR debug/43161
22716         * regcprop.c (struct queued_debug_insn_change): New type.
22717         (struct value_data_entry): Add debug_insn_changes field.
22718         (struct value_data): Add n_debug_insn_changes field.
22719         (debug_insn_changes_pool): New variable.
22720         (free_debug_insn_changes, apply_debug_insn_changes,
22721         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
22722         (kill_value_one_regno): Call free_debug_insn_changes if needed.
22723         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
22724         fields.
22725         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
22726         changes for them.
22727         (copyprop_hardreg_forward_1): Don't call apply_change_group for
22728         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
22729         changes, call cprop_find_used_regs via note_stores.
22730         (copyprop_hardreg_forward): When copying vd from predecessor
22731         which has any queued DEBUG_INSN changes, make sure the pointers are
22732         cleared.  At the end call df_analyze and then if there are any
22733         DEBUG_INSN changes queued at the end of some basic block for still
22734         live registers, apply them.
22735         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
22737 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
22739         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
22740         (arm*-*-*): Ditto.
22742 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
22744         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
22745         targets.  Set the default with_cpu/with_arch from arch/cpu.
22746         Allow x86-64 and native for with_cpu/with_arch.
22748 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
22750         * ebitmap.c: Change calls to verify_popcount with calls to
22751         sbitmap_verify_popcount.
22752         (ebitmap_clear_bit): Fixed map->cacheindex test and
22753         map>cache update when bit clearing results in an empty
22754         element.
22756 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
22758         PR target/43154
22759         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
22760         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
22761         and support both V2DF and V2DI modes.
22762         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
22763         support both V2DF and V2DI modes.
22764         (general): Delete trailing whitespace from a few patterns.
22766         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22767         V2DF/V2DI interleave high/low builtins.
22769         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
22770         new VSX builtins.
22772         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
22773         interleave high/low functions.
22775 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
22777         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
22778         #pragma extern_prefix.
22780 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
22782         PR debug/43166
22783         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
22784         BLKmode, assert op0 is a MEM and just adjust its mode.
22786         PR debug/43165
22787         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
22788         if bitpos isn't multiple of mode's bitsize.
22790 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22792         * c.opt (-ftemplate-depth=): New.
22793         (-ftemplate-depth-): Deprecate.
22794         * optc-gen.awk: Handle -ftemplate-depth=.
22795         * opth-gen.awk: Likewise.
22796         * c-opts.c (c_common_handle_option): Likewise.
22797         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
22799 2010-02-24  Jason Merrill  <jason@redhat.com>
22801         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
22803 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22805         * cfg.c (alloc_aux_for_block): Remove inline.
22806         (alloc_aux_for_edge): Likewise.
22808 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22810         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
22812 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22814         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
22815         * config/i386/sol2-gas.h: New file.
22816         * config.gcc (i[34567]86-*-solaris2*): Use it.
22818 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22820         PR c/43128
22821         * c-typeck.c (ep_convert_and_check): New.
22822         (build_conditional_expr): Use it.
22823         (build_binary_op): Likewise.
22825 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
22827         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
22829         PR debug/43150
22830         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
22831         bounds even for -O+.
22832         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
22833         expr needs to have DECL_NAME set.
22835 2010-02-24  Nick Clifton  <nickc@redhat.com>
22837         * config/mep/mep.c: Include gimple.h.
22838         (mep_function_uses_sp): Delete unused function.
22839         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
22840         parameters.  Use unsigned integers to count args.  Return a
22841         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
22843 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
22845         PR target/43107
22846         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
22847         greater or equal to nelt instead of 2 * nelt.
22848         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
22849         with nelt - 1.
22851 2010-02-23  Jason Merrill  <jason@redhat.com>
22853         PR debug/42800
22854         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
22855         in cfun->local_decls even if they have register types.
22857         PR c++/42837
22858         * stor-layout.c (place_field): Don't warn about unnecessary
22859         DECL_PACKED if the type is packed.
22861 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
22863         PR target/43139
22864         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
22865         GOTOFF relocs, even when the base reg isn't pic pointer.
22867 2010-02-23  Michael Matz  <matz@suse.de>
22869         PR debug/43077
22870         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
22871         (expand_gimple_basic_block): Generate and use debug temps if there
22872         are debug uses left after the last real use of TERed ssa names.
22873         Unlink debug immediate uses when they are expanded.
22875 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22877         PR 43123
22878         * config/i386/i386.c (override_options): Reorganise to provide
22879         better error messages.
22881 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
22883         PR middle-end/43083
22884         * graphite-scop-detection.c (create_single_exit_edge): Move
22885         the call to find_single_exit_edge to....
22886         (create_sese_edges): ...here.  Don't handle multiple edges
22887         exiting the function.
22888         (build_graphite_scops): Don't handle multiple edges
22889         exiting the function.
22891 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
22893         PR middle-end/43097
22894         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
22895         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
22897 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
22899         PR middle-end/43026
22900         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
22902 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22904         PR c++/43126
22905         * c-typeck.c (convert_arguments): Print declaration location.
22906         * c-common.c (validate_nargs): Rename as
22907         builtin_function_validate_nargs.
22908         (check_builtin_function_arguments): Update.
22910 2010-02-22  Richard Guenther  <rguenther@suse.de>
22912         PR lto/43045
22913         * tree-inline.c (declare_return_variable): Use the type of
22914         the call stmt lhs if available.
22916 2010-02-22  Duncan Sands  <baldrick@free.fr>
22918         * passes.c (register_pass): Always consider all pass lists when
22919         ref_pass_instance_number is zero.
22921 2010-02-22  Richard Guenther  <rguenther@suse.de>
22923         PR tree-optimization/42749
22924         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
22925         parameter.  Do arithmetic in the original type.
22926         (update_accumulator_with_ops): Likewise.
22927         (adjust_accumulator_values): Adjust.
22929 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22931         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
22932         (QI to BLKmode splitter): New splitter.
22934 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
22936         * config/i386/i386.c (initial_ix86_tune_features): Turn on
22937         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
22939 2010-02-22  Richard Guenther  <rguenther@suse.de>
22941         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
22943 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
22945         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
22946         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
22947         ($(T)crti.o, $(T)crtn.o): Remove rules.
22949 2010-02-21  Tobias Burnus  <burnus@net-b.de>
22951         PR fortran/35259
22952         * doc/invoke.texi (-fassociative-math): Document that this
22953         option is automatically enabled for Fortran.
22955 2010-02-20  David S. Miller  <davem@davemloft.net>
22957         * configure.ac: Test if linker and assembler properly support
22958         GOTDATA_OP relocations.
22959         * configure: Rebuild.
22960         * config.in: Likewise.
22961         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
22962         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
22963         (movsi_high_pic): Likewise.
22964         (movdi_lo_sum_pic): Likewise.
22965         (movdi_high_pic): Likewise.
22966         (movsi_pic_gotdata_op): New pattern.
22967         (movdi_pic_gotdata_op): Likewise.
22968         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
22969         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
22971 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
22973         PR target/43067
22974         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
22975         attribute to ssemul.
22976         (xop_mulv2div2di3_high): Ditto.
22978 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22980         PR c++/35669
22981         * c.opt (Wconversion-null): New option.
22982         * doc/invoke.texi (Wconversion-null): Document.
22984 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22986         * common.opt (Wlarger-than-): Add Undocumented.
22988 2010-02-19  Mike Stump  <mikestump@comcast.net>
22990         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
22992 2010-02-19  Jason Merrill  <jason@redhat.com>
22994         PR target/40332
22995         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
22996         * configure: Likewise.
22998 2010-02-20  Alan Modra  <amodra@gmail.com>
23000         PR middle-end/42344
23001         * cgraph.h (cgraph_make_decl_local): Declare.
23002         * cgraph.c (cgraph_make_decl_local): New function.
23003         (cgraph_make_node_local): Use it.
23004         * cgraphunit.c (cgraph_function_versioning): Likewise.
23005         * ipa.c (function_and_variable_visibility): Likewise.
23007 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23009         PR bootstrap/43121
23010         * except.c (sjlj_emit_function_enter): Don't call
23011         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
23012         directly.
23013         * rtl.h (add_reg_br_prob_note): Remove prototype.
23015 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23017         PR 41779
23018         * c-common.c (conversion_warning): Remove widening conversions
23019         before checking the conversion of integers to reals.
23021 2010-02-19  Mike Stump  <mikestump@comcast.net>
23023         PR middle-end/43125
23024         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
23026         PR objc/43061
23027         * cgraphunit.c (process_function_and_variable_attributes): Check
23028         DECL_PRESERVE_P instead of looking up attribute "used".
23029         * ipa-pure-const.c (check_decl): Likewise.
23030         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
23031         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
23032         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
23033         instead of attribute "used".
23034         * config/sol2-c.c (solaris_pragma_init): Likewise.
23035         (solaris_pragma_fini): Likewise.
23037 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23039         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
23040         Use XCNEW instead of xcalloc.
23041         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
23042         XNEW instead of xmalloc.
23043         (get_fields): Use XNEWVEC instead of xmalloc.
23045         PR debug/43084
23046         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
23047         populate vars array.
23048         (create_new_general_access): For debug stmts just reset value.
23049         (get_stmt_accesses): For accesses within debug stmts just record them
23050         using add_access_to_acc_sites instead of preventing the peeling or
23051         counting them as accesses.
23053         PR middle-end/42233
23054         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
23056 2010-02-19  Richard Guenther  <rguenther@suse.de>
23058         PR tree-optimization/42916
23059         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
23060         instructions.
23062 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
23064         * configure.ac: Replace all uses of changequote in macro arguments
23065         with proper quoting.
23067 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23069         PR middle-end/42233
23070         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
23072 2010-02-19  Richard Guenther  <rguenther@suse.de>
23074         PR tree-optimization/42944
23075         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
23076         test for aliasing with errno.
23078 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
23080         PR middle-end/42233
23081         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
23082         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
23083         * dojump.c: Include output.h.
23084         (inv): New inline function.
23085         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
23086         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
23087         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
23088         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
23089         argument, pass it down to other calls.
23090         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
23091         add REG_BR_PROB note to the conditional jump.
23092         * cfgexpand.c (add_reg_br_prob_note): Removed.
23093         (expand_gimple_cond): Don't call it, add the probability
23094         as last argument to jumpif_1/jumpifnot_1.
23095         * Makefile.in (dojump.o): Depend on output.h.
23096         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
23097         callers.
23098         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
23099         * stmt.c (do_jump_if_equal): Likewise.
23100         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
23101         * loop-unswitch.c (compare_and_jump_seq): Likewise.
23102         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
23103         Likewise.
23104         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
23105         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
23106         jumpifnot_1 callers.
23107         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
23108         callers.
23109         (store_expr): Adjust jumpifnot caller.
23110         (store_constructor): Adjust jumpif caller.
23112         PR middle-end/42233
23113         * gimplify.c (gimple_boolify): For __builtin_expect call
23114         gimple_boolify also on its first argument.
23116 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
23118         * configure.ac (gnu-unique-object): Wrap regexps using [] in
23119         changequote block.
23120         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
23121         * configure: Regenerated.
23123 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23125         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
23126         lang_hooks.types_compatible_p instead of comptypes.
23128 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23130         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
23131         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
23132         if __prefer_thumb__ is defined.
23134 2010-02-18  Martin Jambor  <mjambor@suse.cz>
23136         PR tree-optimization/43066
23137         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
23138         array with zero-sized element type.
23140 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
23142         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
23143         rtx, allocate struct var_loc_node here and return it to the
23144         caller, and only if it is actually needed.
23145         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
23146         move it earlier and return immediately if it returns NULL.
23148 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
23150         * config/sparc/gas.h: New file.  Restore
23151         TARGET_ASM_NAMED_SECTION to its ELF default.
23152         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
23153         check !HAVE_GNU_AS.
23154         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23155         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
23156         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
23157         after sparc/sysv4.h.
23159 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
23161         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
23163 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
23165         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
23166         patterns from predicated pattern.
23168 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
23170         PR target/43103
23171         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
23172         for insn mnemonic suffix.
23174 2010-02-17  Richard Guenther  <rguenther@suse.de>
23176         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
23177         to loop PHI nodes.
23179 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
23181         PR debug/42918
23182         * caller-save.c (save_call_clobbered_regs): If BB ends with
23183         a DEBUG_INSN, move any notes in between last real insn and the last
23184         DEBUG_INSN after the last DEBUG_INSN.
23186 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23188         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
23189         Fix return type.  Fix argument type.  Explain meaning of return value.
23191 2010-02-16  Richard Guenther  <rguenther@suse.de>
23193         PR tree-optimization/41043
23194         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
23195         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
23196         statements ...
23197         (vrp_visit_phi_node): ... but only for loop PHI nodes.
23199 2010-02-16  Ira Rosen  <irar@il.ibm.com>
23201         PR tree-optimization/43074
23202         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
23203         * tree-vect-loop.c (vect_analyze_loop_operations): Add
23204         vectorizable cycles in hybrid SLP check.
23205         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
23207 2010-02-16  Richard Guenther  <rguenther@suse.de>
23209         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
23210         (true_dependence): If memrefs_conflict_p computes must-alias
23211         trust it.  Move TBAA check after offset-based disambiguation.
23212         (canon_true_dependence): Likewise.
23214 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
23216         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
23217         * doc/invoke.texi: Document it.
23218         * var-tracking.c: Include toplev.h and params.h.
23219         (vt_find_locations): Return bool indicating success.  Compute
23220         hash sizes unconditionally.  Check new parameter, report.
23221         (variable_tracking_main_1): Check vt_find_locations results and
23222         retry.  Renamed from...
23223         (variable_tracking_main): ... this.  New wrapper to preserve
23224         flag_var_tracking_assignments.
23225         * Makefile.in (var-tracking.o): Adjust dependencies.
23227 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
23228             Jakub Jelinek  <jakub@redhat.com>
23230         PR target/42854
23231         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
23232         if weak_import attribute is present.
23233         * config/darwin.c (machopic_select_section): Likewise.
23235 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
23237         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
23238         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
23239         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
23240         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
23242         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
23243         types.
23245         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
23246         Fix argument types.
23248         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
23249         Rewrite text to refer to the names.
23251 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
23253         * config/i386/i386-builtin-types.def
23254         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
23255         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
23256         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
23257         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
23258         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
23259         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
23260         IX86_BUILTIN_VPERMIL2PS256.
23261         (MULTI_ARG_4_DF2_DI_I): Defined.
23262         (MULTI_ARG_4_DF2_DI_I1): Defined.
23263         (MULTI_ARG_4_SF2_SI_I): Defined.
23264         (MULTI_ARG_4_SF2_SI_I1): Defined.
23265         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
23266         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
23267         __builtin_ia32_vpermil2ps256.
23268         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23269         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23270         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
23271         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
23272         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
23273         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
23274         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
23275         CODE_FOR_xop_vpermil2v8sf3.
23276         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
23277         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
23278         * config/i386/xopintrin.h (_mm_permute2_pd): New.
23279         (_mm256_permute2_pd): New.
23280         (_mm_permute2_ps): New.
23281         (_mm256_permute2_ps): New.
23283 2010-02-15  Nick Clifton  <nickc@redhat.com>
23285         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
23286         boolean parameters.  Use emit_jump_insn when emitting a pop
23287         instruction containing a return insn.
23288         (push): Use 'true' rather than '1' as second parameter to F.
23289         (h8300_expand_prologue): Likewise.
23290         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
23291         (h8300_expand_epilogue): Likewise.
23293 2010-02-15  Richard Guenther  <rguenther@suse.de>
23295         PR middle-end/43068
23296         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
23297         if that is zero.
23299 2010-02-15  Nick Clifton  <nickc@redhat.com>
23301         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
23302         delta.
23304 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
23306         * intl.c (fake_ngettext): New function.
23307         * intl.h (fake_ngettext): Declare.
23308         (ngettext): Define macro.
23309         * collect2.c (notice_translated): New function.
23310         (main): Use notice_translated and ngettext.
23311         * collect2.h (notice_translated): Declare.
23313 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
23315         * reorg.c (delete_computation): Comment fixes.
23316         * caller-save.c (setup_save_areas): Idem.
23317         * sel-sched-dump.c (dump_lv_set): Idem.
23318         * rtl.def: Idem.
23320 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23322         * config/s390/s390.c (s390_sched_init): New function.
23323         (TARGET_SCHED_INIT): Target hook defined.
23325 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
23326             Jack Howarth  <howarth@bromo.med.uc.edu>
23327             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
23329         PR target/42982
23330         Partial revert of unintended change in fix for PR41605.
23331         * config/darwin.h: Fix typo.
23332         * config/darwin9.h: Same.
23334 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23336         * c-pch.c (pch_init): Clear v.
23338 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23340         PR middle-end/42930
23341         * graphite-scop-detection.c (graphite_can_represent_scev): Call
23342         graphite_can_represent_init for MULT_EXPR.
23344 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23346         PR middle-end/42914
23347         PR middle-end/42530
23348         * graphite-sese-to-poly.c (remove_phi): New.
23349         (translate_scalar_reduction_to_array): Call remove_phi.
23351 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23353         PR middle-end/42771
23354         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
23355         * graphite-clast-to-gimple.h (gloog): Update declaration.
23356         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
23357         * graphite-poly.h (struct poly_bb): Add missing comments.
23358         (struct scop): Add poly_scop_p field.
23359         (POLY_SCOP_P): New.
23360         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
23361         * graphite.c (graphite_transform_loops): Build the polyhedral
23362         representation for each scop before code generation.
23363         * sese.c (rename_variables_in_operand): Removed.
23364         (rename_variables_in_expr): Return the renamed expression.
23365         (rename_sese_parameters): New.
23366         * sese.h (rename_sese_parameters): Declared.
23368 2010-02-11  Richard Guenther  <rguenther@suse.de>
23370         PR tree-optimization/42998
23371         * tree-ssa-pre.c (create_expression_by_pieces): Treat
23372         POINTER_PLUS_EXPR properly.
23374 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
23375             Changpeng Fang  <changpeng.fang@amd.com>
23377         PR middle-end/40886
23378         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
23379         the cost of an IV candidate when the IV is used in a test against zero.
23381         * gcc.dg/tree-ssa/ivopts-3.c: New.
23383 2010-02-11  Richard Guenther  <rguenther@suse.de>
23385         PR lto/41664
23386         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
23387         pointer-vs-decl case by swapping refs.  Handle some cases
23388         of pointer-vs-decl disambiguations more conservatively.
23389         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
23390         to false after expanding.
23392 2010-02-11  Richard Guenther  <rguenther@suse.de>
23394         PR driver/43021
23395         * gcc.c (process_command): Handle LTO file@offset case more
23396         appropriately.
23398 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
23400         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
23401         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
23402         of DEBUG_INSNs.
23403         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
23405         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
23406         if MEM's mode size isn't DWARF2_ADDR_SIZE.
23407         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
23408         Optimize eq/ne comparisons when both arguments are known to be
23409         zero-extended.
23410         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
23411         Don't mask operands unnecessarily if they are known to be already
23412         zero-extended.
23414 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
23416         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
23417         instead of loop.
23419 2010-02-10  Richard Guenther  <rguenther@suse.de>
23421         PR tree-optimization/43017
23422         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
23423         for wrapping signed arithmetic.
23425 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
23427         PR debug/43010
23428         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
23429         if no debug info should be emitted for it.
23431 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
23433         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
23434         note when flag_exceptions is set.
23436 2010-02-10  Duncan Sands  <baldrick@free.fr>
23438         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
23440 2010-02-10  Richard Guenther  <rguenther@suse.de>
23442         PR c/43007
23443         * tree.c (get_unwidened): Handle constants.
23444         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
23446 2010-02-10  Martin Jambor  <mjambor@suse.cz>
23448         PR lto/42985
23449         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
23450         check for variable argument counts independently.
23452 2010-02-10  Christian Bruel  <christian.bruel@st.com>
23454         PR target/42841
23455         * config/sh/sh.c (find_barrier): Increase length for non delayed
23456         conditional branches.
23458 2010-02-10  Christian Bruel  <christian.bruel@st.com>
23460         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
23462 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
23464         * builtins.c (set_builtin_user_assembler_name): Also handle
23465         ffs if int is smaller than word.
23467 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
23469         PR middle-end/42973
23470         * ira-conflicts.c (get_dup): Remove.
23471         (process_reg_shuffles): Add new parameter.  Use it as an
23472         additional guard for copy generation.
23473         (add_insn_allocno_copies): Rewrite.
23475 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
23477         * common.opt (fsched2-use-traces): Preserved for backward
23478         compatibility.
23479         * doc/invoke.texi: Remove the documentation about option
23480         -fsched2-use-traces.
23481         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
23482         flag_sched2_use_traces.
23483         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
23484         the backward compatibility flag section.
23486 2010-02-09  Richard Guenther  <rguenther@suse.de>
23488         PR tree-optimization/43008
23489         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
23490         make HEAP variables initialized from global memory if they
23491         are not known builtin functions.
23492         (find_func_aliases): Adjust.
23494 2010-02-09  Richard Guenther  <rguenther@suse.de>
23496         PR tree-optimization/43000
23497         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
23498         arithmetic manually.
23500 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
23502         PR tree-optimization/42931
23503         * tree-loop-linear.c (try_interchange_loops): Don't call
23504         double_int_mul if estimated_loop_iterations failed.
23506 2010-02-08  Martin Jambor  <mjambor@suse.cz>
23508         PR middle-end/42898
23509         * tree-sra.c (build_accesses_from_assign): Do not mark in
23510         should_scalarize_away_bitmap if stmt has volatile ops.
23511         (sra_modify_assign): Do not process assigns piecemeal if if stmt
23512         has volatile ops.
23514 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
23516         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
23518 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
23520         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
23521         before the pattern.
23523 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
23525         PR middle-end/42946
23526         * df-core.c (df_finish_pass): Change type of saved_flags to int.
23528 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
23530         PR middle-end/42988
23531         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
23532         to unknown_dependence.
23533         (graphite_legal_transform_dr): Handle the unknown_dependence.
23534         (graphite_carried_dependence_level_k): Same.
23536 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
23538         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
23540 2010-02-07  Richard Guenther  <rguenther@suse.de>
23542         PR middle-end/42991
23543         * expr.c (get_inner_reference): Always initialize *pbitsize.
23545 2010-02-07  Richard Guenther  <rguenther@suse.de>
23547         PR middle-end/42956
23548         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
23549         new ARRAY_REFs on variable size element or minimal index arrays.
23550         Complete.
23551         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
23552         gimple_fold_indirect_ref.
23554 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
23556         PR target/42957
23557         * arm.c (arm_override_options): Just return if the user has specified
23558         an invalid fpu name.
23560 2010-02-03  Jason Merrill  <jason@redhat.com>
23562         PR c++/42870
23563         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
23564         i386_pe_maybe_record_exported_symbol.
23566 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
23568         PR target/42924
23569         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
23570         (pa_delegitimize_address): New function.
23572 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
23574         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
23575         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
23577 2010-02-05  Richard Guenther  <rguenther@suse.de>
23579         PR lto/42762
23580         * lto-streamer-in.c (get_resolution): Deal with references
23581         to undefined functions.
23583 2010-02-05  Richard Guenther  <rguenther@suse.de>
23585         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
23586         (fold_const_aggregate_ref): Likewise.
23587         (ccp_fold_stmt): Substitute loads.
23588         (maybe_fold_reference): Verify types before substituting.
23589         Unshare properly.
23590         (fold_gimple_assign): Unshare properly.
23591         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
23593 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
23595         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
23596         for rs6000_gen_cell_microcode.
23598 2010-02-04  Richard Guenther  <rguenther@suse.de>
23600         PR rtl-optimization/42952
23601         * dse.c (const_or_frame_p): Remove MEM handling.
23603 2010-02-04  Nick Clifton  <nickc@redhat.com>
23605         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
23606         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
23607         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
23608         (mn10300_asm_output_mi_thunk): New function.
23609         (mn10300_can_output_mu_thunk): New function.
23610         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
23611         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
23612         (FUNCTION_ARG): Delete incorrect comment.
23614 2010-02-03  Jason Merrill  <jason@redhat.com>
23616         PR c++/40138
23617         * fold-const.c (operand_equal_p): Handle erroneous types.
23619 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23621         * config/h8300/h8300.md (can_delay): Fix attibute condition.
23623 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
23625         PR rtl-optimization/42941
23626         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
23627         of xmalloc.
23629 2010-02-03  Jason Merrill  <jason@redhat.com>
23631         PR c++/35652
23632         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
23634 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
23636         PR debug/42896
23637         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
23638         (cselib_reset_table): Renamed from...
23639         (cselib_reset_table_with_next_value): ... this.
23640         (cselib_get_next_uid): Renamed from...
23641         (cselib_get_next_unknown_value): ... this.
23642         * cselib.c (next_uid): Renamed from...
23643         (next_unknown_value): ... this.
23644         (cselib_clear_table): Adjust.
23645         (cselib_reset_table): Adjust.  Renamed from...
23646         (cselib_reset_table_with_next_value): ... this.
23647         (cselib_get_next_uid): Adjust.  Renamed from...
23648         (cselib_get_next_unknown_value): ... this.
23649         (get_value_hash): Use hash.
23650         (cselib_hash_rtx): Likewise.
23651         (new_cselib_val): Adjust.  Set and dump uid.
23652         (cselib_lookup_mem): Pass next_uid as hash.
23653         (cselib_subst_to_values): Likewise.
23654         (cselib_log_lookup): Dump uid.
23655         (cselib_lookup): Pass next_uid as hash.  Adjust.
23656         (cselib_process_insn): Adjust.
23657         (cselib_init): Initialize next_uid.
23658         (cselib_finish): Adjust.
23659         (dump_cselib_table): Likewise.
23660         * dse.c (canon_address): Dump value uid.
23661         * print-rtl.c (print_rtx): Print value uid.
23662         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
23663         (dvuid): New type.
23664         (dv_uid): New function, sort of renamed from...
23665         (dv_htab_hash): ... this, reimplemented in terms of it and...
23666         (dv_uid2hash): ... this.  New.
23667         (variable_htab_eq): Drop excess assertions.
23668         (tie_break_pointers): Removed.
23669         (canon_value_cmp): Compare uids.
23670         (variable_post_merge_New_vals): Print uids.
23671         (vt_add_function_parameters): Adjust.
23672         (vt_initialize): Reset table.  Adjust.
23674 2010-02-03  Richard Guenther  <rguenther@suse.de>
23676         PR tree-optimization/42944
23677         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
23678         (call_may_clobber_ref_p_1): Likewise.  Properly handle
23679         malloc and calloc clobbering errno.
23681 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
23683         * doc/invoke.texi: Fix name of sched1 dump.
23685         * opts.c (decode_options): Set flag_tree_switch_conversion
23686         only conditionally on optimize >= 2.
23688         * gcse.c: Assorted comment fixes in pass description.
23690 2010-02-03  Anthony Green  <green@moxielogic.com>
23692         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
23693         nop padding in order to maintain alignment of storage location of
23694         target function address.
23695         (moxie_trampoline_init): Store target function address at newly
23696         aligned location.
23697         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
23698         to 32.
23699         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
23701 2010-02-03  Richard Guenther  <rguenther@suse.de>
23703         PR middle-end/42927
23704         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
23706 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23708         * config.gcc: Reenable check for obsolete targets.
23709         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
23710         mips-sgi-irix6.[0-4]*.
23712 2010-02-02  Nick Clifton  <nickc@redhat.com>
23714         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
23715         constant size of 4 as being the same as 0.
23716         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
23717         can take values in the range 0..4.
23719 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
23721         PR java/41991
23722         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
23723         as _darwin10_Unwind_FindEnclosingFunction().
23724         * libgcc-libsystem.ver: New.
23726 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
23728         PR target/41399
23729         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
23730         implicitly set registers.
23732 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
23734         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
23735         (arm_override_options): Allow automatic selection of the thread
23736         pointer register if thumb2.
23737         (legitimize_pic_address): Improve code sequences for Thumb2.
23738         (arm_call_tls_get_addr): Likewise.
23739         (legitimize_tls_address): Likewise.
23740         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
23741         (pic_load_addr_32bit): ... this.  New named pattern.
23742         * thumb2.md (pic_load_addr_thumb2): Delete.
23743         (pic_load_dot_plus_four): Delete.
23744         (tls_load_dot_plus_four): New named pattern.
23746 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23748         PR libgomp/29986
23749         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
23750         Document fix for TLS bug.
23752 2010-01-31  Richard Guenther  <rguenther@suse.de>
23754         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
23755         conservatively correct.
23757 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23759         PR target/42850
23760         Revert:
23761         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23763         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
23765 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23767         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
23769 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
23771         * config.gcc: Adjust order of makefile fragments for mingw targets.
23773 2010-01-31  Richard Guenther  <rguenther@suse.de>
23775         PR middle-end/42898
23776         * gimplify.c (gimplify_init_constructor): For volatile LHS
23777         initialize a temporary.
23779 2010-01-31  Matthias Klose  <doko@ubuntu.com>
23781         * configure.ac: Fix __stack_chk_fail check for cross builds configured
23782         --with-headers
23783         * configure: Regenerate.
23785 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
23787         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
23788         the same alias set and their sizes different constantness.
23789         (aliasing_component_refs_p): Revert 2009-10-24 change.
23791 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23793         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
23794         unused.
23796 2010-01-29  Richard Guenther  <rguenther@suse.de>
23798         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
23799         Assert we successfully updated the call.
23801 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
23803         PR rtl-optimization/42889
23804         * df.h (df_set_bb_dirty_nonlr): New prototype.
23805         * df-core.c (df_set_bb_dirty_nonlr): New function.
23806         * df-scan.c (df_insn_rescan): Call it instead of
23807         df_set_bb_dirty for DEBUG_INSNs.
23809 2010-01-29  Richard Guenther  <rguenther@suse.de>
23811         PR middle-end/37448
23812         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
23813         quadratic behavior in most cases.
23815 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
23817         PR target/42891
23818         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
23819         in the call to gen_x86_movsicc_0_m1.
23821 2010-01-28  Richard Guenther  <rguenther@suse.de>
23823         PR tree-optimization/42871
23824         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
23826 2010-01-28  Richard Guenther  <rguenther@suse.de>
23828         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
23829         into call arguments.
23831 2010-01-28  Richard Guenther  <rguenther@suse.de>
23833         PR middle-end/42883
23834         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
23835         the forwarder if the destination is an EH landing pad.
23837 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
23839         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
23840         block list passed to gimple_duplicate_sese_tail.
23841         (parallelize_loops): Avoid parallelization when the function
23842         has_nonlocal_label.
23843         Avoid parallelization when the preheader is IRREDUCIBLE.
23844         Try to optimize when estimated_loop_iterations_int is unresolved.
23845         Add the loop's location to the dump file.
23846         * tree-cfg.c (add_phi_args_after_redirect): Remove.
23847         (gimple_duplicate_sese_tail): Remove the check for the latch.
23848         Redirect nexits to the exit block.
23849         Remove handling of the incoming edges to the latch.
23850         Redirect the backedge from the copied latch to the exit bb.
23852 2010-01-28  Michael Matz  <matz@suse.de>
23854         PR target/42881
23855         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
23856         Wrap force_reg into a sequence, emit it before user.
23858 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
23860         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
23861         (arm_rev): New.
23862         (arm_legacy_rev): Likewise.
23863         (thumb_legacy_rev): Likewise.
23865 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
23867         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
23868         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
23869         on MEM's address failed, try avoid_constant_pool_reference and
23870         recurse if it returned something different.
23871         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
23872         address, try avoid_constant_pool_reference and recurse if it
23873         returned something different.
23874         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
23875         address and avoid_constant_pool_reference returned something
23876         different, don't set have_address.
23878 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
23880         PR debug/42861
23881         * var-tracking.c (val_store): Add modified argument, obey it.
23882         Adjust callers.
23883         (count_uses): Move down logging of main.
23884         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
23885         don't need resolution.
23886         (emit_notes_in_bb): Likewise.
23888 2010-01-27  Richard Guenther  <rguenther@suse.de>
23890         PR middle-end/42878
23891         * tree-inline.c (remap_decl): Delay remapping of SSA name
23892         default definitions until we need them.
23894 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
23896         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
23897         (rs6000_delegitimize_address): New function.
23899         * config/s390/s390.c (s390_delegitimize_address): Call
23900         delegitimize_mem_from_attrs.
23902         PR middle-end/42874
23903         * tree-inline.c (cannot_copy_type_1): Removed.
23904         (copy_forbidden): Don't forbid copying of functions containing
23905         records/unions with variable length fields.
23907 2010-01-27  Christian Bruel  <christian.bruel@st.com>
23909         Revert:
23910         PR target/42841
23911         * config/sh/sh.c (find_barrier): Increase length for non delayed
23912         conditional branches.
23914 2010-01-27  Matthias Klose  <doko@ubuntu.com>
23916         * configure.ac (gnu-unique-object): Fix ldd version check.
23917         * configure: Regenerate.
23919 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23921         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
23922         HAVE_GNU_AS value.
23923         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
23924         Test for HAVE_GNU_AS value.
23926 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23928         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
23929         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
23930         INT64_TYPE): Define.
23931         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
23932         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23933         INT_LEAST64_TYPE): Define.
23934         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
23935         UINT_LEAST64_TYPE): Define.
23936         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
23937         INT_FAST64_TYPE): Define.
23938         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23939         UINT_FAST64_TYPE): Define.
23940         (INTMAX_TYPE, UINTMAX_TYPE): Define.
23941         (INTPTR_TYPE, UINTPTR_TYPE): Define.
23942         (SIG_ATOMIC_TYPE): Define.
23944 2010-01-26  Richard Guenther  <rguenther@suse.de>
23946         * df-scan.c (df_scan_set_bb_info): Remove assert.
23947         (df_insn_rescan_debug_internal): Merge asserts.
23948         (df_install_ref): Likewise.
23949         (df_mark_reg): Use bitmap_set_range.
23950         (df_hard_reg_used_p): Remove assert.
23951         (df_hard_reg_used_count): Likewise.
23953 2010-01-26  Richard Guenther  <rguenther@suse.de>
23955         PR rtl-optimization/42685
23956         * web.c (web_main): Ignore DEBUG_INSNs.
23958 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
23960         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
23962         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
23963         Fix types of fndecl and arglist parameters.
23965 2010-01-26  Richard Guenther  <rguenther@suse.de>
23967         PR middle-end/42806
23968         * tree-eh.c (unsplit_eh): Skip debug insns.
23970 2010-01-26  Richard Guenther  <rguenther@suse.de>
23972         PR tree-optimization/42250
23973         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
23975 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
23977         PR fortran/42866
23978         * omp-low.c (expand_omp_sections): Only use single_pred if
23979         l2_bb is single_pred_p.
23981 2010-01-25  Christian Bruel  <christian.bruel@st.com>
23983         PR target/42841
23984         * config/sh/sh.c (find_barrier): Increase length for non delayed
23985         conditional branches.
23986         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
23988 2010-01-24  David S. Miller  <davem@davemloft.net>
23990         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
23991         define if not using GAS.
23992         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23993         Likewise.  Delete SECTION_MERGE code, which is only applicable
23994         when using GAS.
23996 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
23998         PR c++/42748
23999         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
24000         mangling of va_list in system headers.
24002 2010-01-23  Toon Moene  <toon@moene.org>
24004         * tree-predcom.c (combine_chains): Return NULL, not false.
24006 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
24008         * tree-loop-distribution.c (distribute_loop): Fix declaration and
24009         initialization of variable res to agree with return type.
24011 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
24013         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
24014         * tree-sra.c: Add include of expr.h.
24016 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
24018         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
24019         insert the debug stmt on the single non-EH edge from the stmt.
24021 2010-01-22  Richard Henderson  <rth@redhat.com>
24023         PR tree-opt/42833
24024         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
24025         the RHS until after generate_subtree_copies has insertted its
24026         code before the current statement.
24028 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
24030         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
24032         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
24034 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24036         PR tree-optimization/42585
24037         * tree-sra.c (struct access): New field grp_total_scalarization.
24038         (dump_access): Dump the new field.
24039         (should_scalarize_away_bitmap): New variable.
24040         (cannot_scalarize_away_bitmap): Likewise.
24041         (sra_initialize): Allocate new bitmaps.
24042         (sra_deinitialize): Free new bitmaps.
24043         (create_access_1): New function.
24044         (create_access): Parts moved to create_access_1.
24045         (type_consists_of_records_p): New function.
24046         (completely_scalarize_record): Likewise.
24047         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
24048         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
24049         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
24050         access.
24051         (analyze_all_variable_accesses): Completely scalarize small eligible
24052         records.
24054 2010-01-21  Martin Jambor  <mjambor@suse.cz>
24056         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
24058 2010-01-21  Andrew Haley  <aph@redhat.com>
24060         * gcc.c (process_command): Move lang_specific_driver before
24061         setting cc_libexec_prefix.
24063 2010-01-21  Richard Guenther  <rguenther@suse.de>
24065         PR middle-end/19988
24066         * fold-const.c (negate_expr_p): Pretend only negative
24067         real constants are easily negatable.
24069 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
24070             Jason Merrill  <jason@redhat.com>
24072         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
24073         (TYPE_TRANSPARENT_AGGR): this, for union and record.
24074         * calls.c (initialize argument_information): Handle it.
24075         * c-common.c (handle_transparent_union_attribute): Use new name.
24076         * c-decl.c (finish_struct): Ditto.
24077         * c-typeck.c (type_lists_compatible_p): Ditto.
24078         (convert_for_assignment): Use new name and also handle record.
24079         * function.c (aggregate_value_p): Handle it.
24080         (pass_by_reference): Ditto.
24081         (assign_parm_data_types): Ditto.
24082         * print-tree.c (print_node): Ditto.
24083         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
24084         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
24085         * tree.c (first_field): New fn.
24087 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
24089         PR target/42818
24090         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
24091         even when linking statically, for now.
24093 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24095         PR debug/42715
24096         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
24097         without a cselib val.
24098         (count_uses): Accept MO_VAL_SET with no val on stores.
24099         (add_stores): Likewise.
24101 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24103         * var-tracking.c (check_value_val): Add a compile time assertion.
24104         (dv_is_decl_p): Simplify.
24105         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
24106         gcc_assert if ENABLE_CHECKING.
24108 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
24110         PR debug/42782
24111         * var-tracking.c: Include tree-flow.h.
24112         (mem_dies_at_call): New.
24113         (dataflow_set_preserve_mem_locs): Use it.
24114         (dataflow_set_remove_mem_locs): Likewise.
24115         (dump_var): Renamed from dump_variable.  Adjust all callers.
24116         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
24117         * Makefile.in (var-tracking.o): Adjust deps.
24119 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
24121         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
24123 2010-01-20  Richard Guenther  <rguenther@suse.de>
24125         PR tree-optimization/42717
24126         * tree-ssa-dce.c (get_live_post_dom): Remove.
24127         (forward_edge_to_pdom): Take an arbitrary edge to copy
24128         degenerate PHI args from.
24129         (remove_dead_stmt): Use the first post-dominator even if it
24130         does not contain live statements as redirection destination.
24132 2010-01-20  Richard Guenther  <rguenther@suse.de>
24134         * tree-inline.c (estimate_num_insns): Handle EH builtins.
24136 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24138         * sel-sched.c (create_speculation_check): Remove set but not used
24139         variable twin.
24140         (try_transformation_cache): Remove set but not used variable ds.
24141         (calculate_privileged_insns): Remove set but not used variables
24142         cur_insn and min_spec_insn.
24143         (find_best_expr): Remove set but not used variable avail_n.
24144         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
24145         variable e.
24146         * cgraphunit.c (assemble_thunk): Remove set but not used variable
24147         false_label.
24148         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
24149         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
24150         new_scop_exit_edge.
24152 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
24154         PR bootstrap/42786
24155         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
24156         cpu types.  Add support for *-sse3 cpu types.
24157         (x86_64-*-*): Ditto.
24159 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24161         PR middle-end/42803
24162         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
24163         argument, call initializer_constant_valid_p_1 instead of
24164         initializer_constant_valid_p, pass CACHE to it, return NULL
24165         immediately if first call returns NULL.
24166         (initializer_constant_valid_p_1): New function.
24167         (initializer_constant_valid_p): Use it.
24169 2010-01-20  Thomas Quinot  <quinot@adacore.com>
24171         * tree.def (PLACEHOLDER_EXPR): Fix comment.
24173 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
24175         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
24176         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
24177         (loc_list_from_tree): Don't handle unsigned division.  Handle
24178         signed modulo using DW_OP_{over,over,div,mul,minus}.
24179         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
24180         modulo instead of signed.
24182 2010-01-20  DJ Delorie  <dj@redhat.com>
24184         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
24185         (Fpa): Pass it
24186         (h8300_emit_stack_adjustment): Propogate it.
24187         (push): Pass it.
24188         (h8300_expand_prologue): Likewise.
24189         (h8300_expand_epilogue): Likewise.
24191 2010-01-19  Michael Matz  <matz@suse.de>
24193         PR tree-optimization/41783
24194         * tree-data-ref.c (toplevel): Include flags.h.
24195         (dump_data_dependence_relation):  Also dump the inputs if the
24196         result will be unknown.
24197         (split_constant_offset_1): Look through some conversions.
24198         * tree-predcom.c (determine_roots_comp): Restart a new chain if
24199         the offset from last element is too large.
24200         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
24201         (reassociate_to_the_same_stmt): Handle vector registers.
24202         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
24203         (e.g. conversions).
24204         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
24205         wide_prolog_niters argument, emit widening instructions.
24206         (vect_do_peeling_for_alignment): Adjust caller, use widened
24207         variant of the iteration cound.
24208         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
24210 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24212         PR target/38697
24213         * config/arm/neon-testgen.m (emit_automatics): New parameter
24214         features. Adjust for Fixed_return_reg feature.
24215         (test_intrinsic): Call emit_automatics with new feature.
24216         * config/arm/neon.ml: Update copyright years.
24217         (features): New Fixed_return_reg feature.
24218         (ops): Update feature for Vget_low.
24220 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
24222         PR tree-optimization/42719
24223         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
24224         stmt uses.
24226         PR debug/42728
24227         * fwprop.c (all_uses_available_at): Return false if def_set dest
24228         is a REG that is used in def_insn.
24230 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
24232         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
24234         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
24235         Add argument names.
24237         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
24239         * target.h (struct gcc_target) <secondary_reload>: Change type
24240         of last argument to secondary_reload_info *.
24242 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
24244         PR target/42774
24245         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
24246         memory references with unaligned offsets.  Remove CQImode handling.
24247         (unaligned_memory_operand): Return 1 for memory references with
24248         unaligned offsets.  Remove CQImode handling.
24250 2010-01-18  Richard Guenther  <rguenther@suse.de>
24252         PR middle-end/39954
24253         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
24254         builtin calls.
24256 2010-01-18  Richard Guenther  <rguenther@suse.de>
24258         PR tree-optimization/42781
24259         * tree-ssa-structalias.c (find_what_var_points_to): Skip
24260         restrict processing only if the original variable was artificial.
24262 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
24264         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
24265         find number of popped argument bytes.
24267         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
24268         Fix the text that describes the return value for invalid insns.
24270         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
24272         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
24273         Clarify what 'cost of the -dependence' is.  Fix quoting.
24275         * toplev.c (default_get_pch_validity): Rename argument to "sz".
24276         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
24278 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
24280         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
24281         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
24283 2010-01-17  Richard Guenther  <rguenther@suse.de>
24285         PR middle-end/42248
24286         * function.c (split_complex_args): Take a VEC to modify.
24287         (assign_parms_augmented_arg_list): Build a VEC instead of
24288         a chain of PARM_DECLs.
24289         (assign_parms_unsplit_complex): Take a VEC of arguments.
24290         Do not fixup unmodified parms.
24291         (assign_parms): Deal with the VEC.
24292         (gimplify_parameters): Likewise.
24294 2010-01-17  Richard Guenther  <rguenther@suse.de>
24296         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
24297         node existence check.
24298         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
24299         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
24300         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
24301         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
24302         (gimple_execute_on_growing_pred): Likewise.
24304 2010-01-17  Richard Guenther  <rguenther@suse.de>
24306         PR tree-optimization/42773
24307         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
24308         (compute_antic_aux): Likewise.
24309         (compute_partial_antic_aux): Likewise.
24311 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
24313         PR debug/42767
24314         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
24315         and US_TRUNCATE.
24317 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
24319         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
24320         appearance.
24322         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
24323         Fix markup for strict argument.
24325         (TARGET_SCHED_REORDER2): Fix argument types.
24327         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
24328         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
24330         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
24331         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
24333         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
24334         Add argument name.
24336         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
24337         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
24338         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
24339         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
24340         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
24342         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
24344         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
24346         (TARGET_ASM_RELOC_RW_MASK): Add return type.
24347         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
24349         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
24351         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
24352         Use prototype.
24354         (TARGET_ASM_NAMED_SECTION): Fix argument list.
24356         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
24357         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
24359         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
24361         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
24363         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
24364         referring to it.  Fix language.
24366         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
24368         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
24370         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
24372         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
24374         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
24375         '@var{stream}.  Remove stray 'and'.
24377         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
24379         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
24381         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
24383         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
24384         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
24386         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
24387         Fix description of return value.
24388         Rename argument "sz" to "len."
24390         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
24391         Clarify meaning of 'true' return value.
24393         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
24395         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
24396         rep_mode versus mode_rep.
24398         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
24400         (TARGET_BUILTIN_DECL): Fix name.
24402         (TARGET_COMMUTATIVE_P): Fix type of first argument.
24404         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
24406         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
24408         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
24410         (TARGET_RELAXED_ORDERING): Use @deftypevr.
24412         (TARGET_GET_DRAP_RTX): Note that this is a hook.
24413         Clarify language.
24415         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
24416         Rename argument tm_fn to md_fn.
24418         (TARGET_OPTION_PRINT): Fix argument list.
24420 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
24422         PR target/42664
24423         * config/i386/i386.c (ix86_fixup_binary_operands):
24424         Revert FMA4 fixup of operands.
24426 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24428         PR gcc/42525
24429         * Makefile.in (write_entries_to_file, install-plugin):
24430         Use \012 instead of \n with tr.
24432 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
24434         * configure.ac (HAVE_AS_REF): New C macro.
24435         * configure: Regenerate.
24436         * config.in: Likewise.
24437         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
24438         if HAVE_AS_REF.
24439         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
24440         if HAVE_AS_REF.
24442 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
24444         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
24446         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
24448         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
24450         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
24452         (TARGET_IN_SMALL_DATA_P): Fix argument type.
24454         (TARGET_BINDS_LOCAL_P): Fix argument type.
24456         (TARGET_ASM_FILE_END): Use prototype.
24458         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
24460         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
24462         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
24464         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
24466         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
24467         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
24469         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
24470         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
24472         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
24473         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
24474         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
24475         (TARGET_ADDR_SPACE_CONVERT): Likewise.
24477         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
24479         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
24481         (TARGET_INIT_BUILTINS): Use prototype.
24483         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
24484         Put 'const char *' in braces.  Fix parameter types.
24485         (TARGET_INVALID_CONVERSION): Fix parameter types.
24486         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
24487         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
24489         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
24490         Fix argument type.
24492         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
24494         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
24496 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
24498         * doc/tm.texi (TARGET_HELP): Fix return type.
24500         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
24501         in braces.  Fix argument types.
24503         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
24505         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
24507         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
24509         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
24510         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
24512         (TARGET_MANGLE_TYPE): Fix argument types.
24514         (TARGET_IRA_COVER_CLASSES): Use prototype.
24516         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
24518         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
24520         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
24522         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
24524         (TARGET_CALLEE_COPIES): Fix argument types.
24526         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
24528         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
24530         (TARGET_FUNCTION_VALUE): Fix argument types.
24532         (TARGET_RETURN_IN_MSB): Fix argument type.
24534         (TARGET_RETURN_IN_MEMORY): Fix argument types.
24536         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
24538         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
24540         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
24541         agree with return type.
24543         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
24545 2010-01-15  Jing Yu  <jingyu@google.com>
24547         PR rtl-optimization/42691
24548         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
24549         a pseudo to a constant and are merged, and adjust comments.
24551 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
24553         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
24555 2010-01-15  Richard Guenther  <rguenther@suse.de>
24557         PR middle-end/42739
24558         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
24559         labels of computed or non-local gotos to the destination.
24560         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
24561         landing pad label is the first label.
24563 2010-01-15  Richard Guenther  <rguenther@suse.de>
24565         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
24567 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24569         PR target/42747
24570         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
24571         to allow generation of the xssqrtdp instruction on power7.
24572         (sqrtdf2_fpr): Ditto.
24574 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
24576         PR middle-end/42674
24577         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
24578         functions with noreturn attribute.
24580         PR c++/42608
24581         * varasm.c (declare_weak): Add weak attribute to decl if it
24582         doesn't have one already.
24583         (assemble_external): Only add decls to weak_decls if they also
24584         have weak attribute.
24586 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
24588         * var-tracking.c (var_reg_delete): Don't delete the association
24589         between REGs and values or one-part variables if the register
24590         isn't clobbered.
24592 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
24594         PR debug/42657
24595         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
24596         because its first operand is a non-localized variable.
24598 2010-01-14  Martin Jambor  <mjambor@suse.cz>
24600         PR tree-optimization/42706
24601         * tree-sra.c (encountered_recursive_call): New variable.
24602         (encountered_unchangable_recursive_call): Likewise.
24603         (sra_initialize): Initialize both new variables.
24604         (callsite_has_enough_arguments_p): New function.
24605         (scan_function): Call decl and flags check only for IPA-SRA, check
24606         whether there is a recursive call and whether it has enough arguments.
24607         (all_callers_have_enough_arguments_p): New function.
24608         (convert_callers): Look for recursive calls only when
24609         encountered_recursive_call is set.
24610         (ipa_early_sra): Bail out either if
24611         !all_callers_have_enough_arguments_p or
24612         encountered_unchangable_recursive_call.
24614 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24616         * sel-sched.c: Add 2010 to copyright years.
24617         * sel-sched-ir.c: Likewise.
24618         * sel-sched-ir.h: Likewise.
24620 2010-01-14  Martin Jambor  <mjambor@suse.cz>
24622         PR tree-optimization/42714
24623         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
24624         constructors specially.
24626 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24628         * config/i386/drivers-i386.c (detect_caches_intel):
24629         Add l2sizekb parameter and fill in.
24630         (host_detect_local_cpu): Add l2sizekb, fill in.
24631         Add Atom small cache heuristic.
24633 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24635         * config/i386/drivers-i386.c (detect_caches_cpuid4):
24636         Add level3 parameter and fill in.
24637         (detect_caches_intel): Handle level3 cache.
24639 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24641         * config/i386/drivers-i386.c (host_detect_local_cpu):
24642         Fix core duo detection.
24644 2010-01-14  Andi Kleen  <ak@linux.intel.com>
24646         * config/i386/drivers-i386.c (host_detect_local_cpu):
24647         Fix Atom detection.
24649 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24651         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
24652         (rs6000_variable_issue_1): this.  Use...
24653         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
24655 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24657         * sel-sched-ir.c (sel_restore_other_notes): Rename to
24658         sel_restore_notes.  Update all callers.  Call reemit_notes
24659         for all insns.
24661 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24663         PR rtl-optimization/42246
24664         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
24665         loops.
24667 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24669         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
24670         all successors is the same as number of successors in current region.
24672 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24674         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
24675         to rename is not separable.  Otherwise check that its LHS is not NULL.
24677 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24679         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
24681 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24683         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
24684         available registers when failed to discover LHS register class.
24685         Fix indentation.  Update comment.
24687 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24688             Alexander Monakov  <amonakov@ispras.ru>
24690         PR rtl-optimization/42389
24691         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
24692         to can_issue_more.
24693         (advance_state_on_fence): Likewise.
24694         (sel_target_adjust_priority): Print debug output only when
24695         sched_verbose >= 4, not 2.
24696         (get_expr_cost): Do not issue all unique insns on the next cycle.
24697         (fill_insns): Initialize can_issue_more from the value saved
24698         with the fence.
24699         * sel-sched-ir.c (flist_add): New parameter issue_more.
24700         Init FENCE_ISSUE_MORE with it.
24701         (merge_fences): Likewise.
24702         (init_fences): Update call to flist_add.
24703         (add_to_fences, add_clean_fence_to_fences)
24704         (add_dirty_fence_to_fences): Likewise.
24705         (move_fence_to_fences): Update call to merge_fences.
24706         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
24707         sched groups.
24708         * sel-sched-ir.h (struct _fence): New field issue_more.
24709         (FENCE_ISSUE_MORE): New accessor macro.
24711 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24713         PR rtl-optimization/42388
24714         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
24715         that have no predecessors nor successors.  Do not call move_bb_info
24716         for empty blocks outside of current region.
24718 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24720         PR rtl-optimization/42294
24721         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
24722         * sel-sched.c (move_exprs_to_boundary): Transitively add all
24723         originators' originators.
24725 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
24727         PR rtl-optimization/39453
24728         PR rtl-optimization/42246
24729         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
24730         for pipelining_p.
24731         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
24733 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24734             Alexander Monakov  <amonakov@ispras.ru>
24736         PR middle-end/42245
24737         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
24738         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
24739         argument.  Update all callers.
24740         (tidy_control_flow): ... and here.  Recompute topological order
24741         of basic blocks in region if necessary.
24742         (sel_redirect_edge_and_branch): Change return type.  Return true
24743         if topological order might have been invalidated.
24744         (purge_empty_blocks): Export and move from...
24745         * sel-sched.c (purge_empty_blocks): ... here.
24746         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
24747         (maybe_tidy_empty_bb): Delete prototype.
24748         (purge_empty_blocks): Declare.
24750 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
24752         PR rtl-optimization/42249
24753         * sel-sched.c (try_replace_dest_reg): When chosen register
24754         and original register is the same, do not bail out early, but
24755         still check all original insns for validity of replacing destination
24756         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
24757         in this case.
24759 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
24761         PR c/42721
24762         Port from no-undefined-overflow branch:
24763         2009-03-09  Richard Guenther  <rguenther@suse.de>
24765         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
24767 2010-01-14  Richard Guenther  <rguenther@suse.de>
24769         PR lto/42665
24770         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
24772 2010-01-14  Ira Rosen  <irar@il.ibm.com>
24774         PR tree-optimization/42709
24775         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
24776         as scalar type in creation of constant vector operand.
24778 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24780         PR testsuite/42414
24781         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
24782         (check-parallel-%): Match `testsuite' directory component only
24783         at the end.
24785 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
24787         PR translation/39521
24788         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
24789         strings with _().
24791 2010-01-13  Richard Guenther  <rguenther@suse.de>
24793         PR tree-optimization/42730
24794         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
24795         offset zero.
24797 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
24799         PR target/pr42542
24800         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
24801         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
24802         them signed.
24804 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
24806         * config/bfin/libgcc-bfin.ver: Regenerate based on current
24807         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
24808         ___umulsi3_highpart.
24810         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
24811         rather than schedule_insns if the pass is enabled.
24813 2010-01-13  Martin Jambor  <mjambor@suse.cz>
24815         PR tree-optimization/42704
24816         * tree-sra.c (sra_modify_assign): Do not delete assignments to
24817         SSA_NAMEs.
24819 2010-01-13  Martin Jambor  <mjambor@suse.cz>
24821         PR tree-optimization/42703
24822         * tree-sra.c (analyze_access_subtree): Check that we can build a
24823         reference to the original data within the aggregate.
24825 2010-01-13  Richard Guenther  <rguenther@suse.de>
24827         PR tree-optimization/42705
24828         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
24830 2010-01-13  Richard Guenther  <rguenther@suse.de>
24832         PR middle-end/42716
24833         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
24835 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
24837         PR debug/41371
24838         * var-tracking.c (values_to_unmark): New variable.
24839         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
24840         values_to_unmark vector.  Moved body to...
24841         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
24842         instead queue it into values_to_unmark vector.
24843         (vt_find_locations): Free values_to_unmark vector.
24845 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
24847         * config/s390/s390.c (override_options): Set
24848         default of max-pending-list-length to 256
24850 2010-01-13  Richard Guenther  <rguenther@suse.de>
24852         PR lto/42678
24853         * tree-pass.h (PROP_gimple_lcx): New.
24854         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
24855         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
24856         before the final cleanup_eh.
24857         (dump_properties): Dump PROP_gimple_lcx.
24858         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
24859         (tree_lower_complex_O0): Remove.
24860         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
24861         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
24862         tree_lower_complex, schedule TODO_update_ssa.
24863         * lto-streamer-out.c (output_function): Stream the functions
24864         properties.
24865         * lto-streamer-in.c (input_function): Likewise.
24866         (lto_read_body): Do not override them here.
24868 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
24870         PR c/42708
24871         * c-typeck.c (build_c_cast): Fold value cast to union type before
24872         wrapping it in a CONSTRUCTOR.
24874 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
24876         PR rtl-optimization/42699
24877         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
24878         involved.
24880 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24882         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
24883         SUBTARGET_WARN_UNUSED_SPEC): Move ...
24884         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
24885         SUBTARGET_WARN_UNUSED_SPEC): ... here
24886         * config/mips/iris5.h (LIBGCC_SPEC): Define.
24888 2010-01-12  Julian Brown  <julian@codesourcery.com>
24890         * config/arm/neon-schedgen.ml (Utils): Don't try to
24891         open missing module.
24892         (find_with_result): New.
24894 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
24896         PR debug/42662
24897         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
24898         sharing when canonicalizing ({lt,ge}u (plus a b) b).
24900         PR tree-optimization/42645
24901         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
24902         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
24903         decl_map, set processing_debug_stmt to -1 and return name without
24904         any remapping.
24906 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24908         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
24909         binutils version, and reword target configuration description.
24911 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
24913         * config/avr/avr.h (LINKER_NAME): Remove.
24915 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
24917         PR target/42416
24918         * config/rs6000/rs6000.c (rs6000_override_options): On targets
24919         that support VSX, warn for -mno-altivec if vsx is not disabled,
24920         and disable vsx.
24922 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
24923             Shujing Zhao  <pearly.zhao@oracle.com>
24925         PR translation/42469
24926         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
24927         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
24928         character between option name and help text.
24929         * c.opt (imultilib): Likewise.
24931 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
24933         * lto-streamer-out.c (output_unreferenced_globals): Output static
24934         variables.
24936 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
24938         PR rtl-optimization/42621
24939         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
24940         optimizing for size.
24941         (duplicate_computed_gotos): Remove now-redundant check.
24943 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
24945         PR target/37454
24946         * configure.ac: Save and restore LDFLAGS and LIBS
24947         * configure: Regenerate.
24949 2010-01-10  Richard Guenther  <rguenther@suse.de>
24951         PR middle-end/42667
24952         * builtins.c (fold_builtin_strlen): Add type argument and
24953         convert the resulting length to it.
24954         (fold_builtin_1): Adjust.
24956 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
24958         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
24959         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
24960         1 insn.
24961         (num_insns_constant_wide): Adjust for that change.
24963 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24965         PR debug/42631
24966         * web.c (union_defs): Add used argument, to combine uses of
24967         uninitialized regs.
24968         (entry_register): Adjust type and tests of used argument.
24969         (web_main): Widen used for new use.  Pass it to union_defs.
24970         * df.h (union_defs): Adjust prototype.
24972 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24974         PR debug/42630
24975         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
24976         uses in new incoming argument.  Free body.
24977         (reset_debug_uses_in_loop): New.
24978         (analyze_insn_to_expand_var): Call the latter if the former found
24979         anything.  Fix whitespace.  Reject invalid dest overlaps before
24980         going through all insns in the loop.
24982 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24984         PR debug/42629
24985         * haifa-sched.c (dying_use_p): Debug insns don't count.
24987 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24989         PR middle-end/42363
24990         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
24991         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
24992         (verify_gimple_call): Reject LHS in noreturn calls.
24994 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24996         PR debug/42604
24997         PR debug/42395
24998         * tree-vect-loop-manip.c (adjust_info): New type.
24999         (adjust_vec): New pointer to vector.
25000         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
25001         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
25002         (slpeel_update_phis_for_duplicate_loop): Use them.
25003         (slpeel_update_phi_nodes_for_guard1): Likewise.
25004         (slpeel_update_phi_nodes_for_guard2): Likewise.
25005         (slpeel_tree_peel_loop_to_edge): Likewise.
25006         (vect_update_ivs_after_vectorizer): Likewise.
25008 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25010         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
25011         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
25013 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
25015         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
25016         bogus uninitialized warning.
25018 2010-01-09  Richard Guenther  <rguenther@suse.de>
25020         PR middle-end/42512
25021         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
25022         the evolution is compatible with the initial condition.
25024 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
25026         * gcc.c (process_command): Update copyright notice dates.
25027         * gcov.c (print_version): Likewise.
25028         * gcov-dump.c (print_version): Likewise.
25029         * mips-tfile.c (main): Likewise.
25030         * mips-tdump.c (main): Likewise.
25032 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
25034         PR target/41885
25035         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
25036         (rotlhi3): Delete.
25037         (rotlhi3_8): Delete.
25038         (rotlsi3): Delete.
25039         (rotlsi3_8): Delete.
25040         (rotlsi3_16): Delete.
25041         (rotlsi3_24): Delete.
25042         (rotl<mode>3): New.
25043         (*rotw<mode>3): New.
25044         (*rotb<mode>3): New.
25045         * config/avr/avr.c (avr_rotate_bytes): New function.
25046         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
25048 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
25050         PR target/37454
25051         * configure.ac: Modify -rdynamic check.
25052         * configure: Regenerate.
25054 2010-01-08  DJ Delorie  <dj@redhat.com>
25056         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
25057         register popping order.
25059 2010-01-08  Richard Guenther  <rguenther@suse.de>
25061         PR lto/42528
25062         * c.opt (fsigned-char): Also let LTO handle this option.
25063         (funsigned-char): Likewise.
25065 2010-01-07  Richard Guenther  <rguenther@suse.de>
25067         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
25068         (gimple_op): Likewise.
25069         (gimple_op_ptr): Likewise.
25070         (gimple_assign_set_lhs): Remove gcc_assert.
25071         (gimple_assign_set_rhs1): Likewise.
25072         (gimple_assign_set_rhs2): Likewise.
25073         (gimple_call_set_lhs): Likewise.
25074         (gimple_call_set_fn): Likewise.
25075         (gimple_call_set_fndecl): Likewise.
25076         (gimple_call_fndecl): Likewise.
25077         (gimple_call_return_type): Likewise.
25078         (gimple_call_set_chain): Likewise.
25079         (gimple_call_num_args): Likewise.
25080         (gimple_call_set_arg): Likewise.
25081         (gimple_cond_set_code): Likewise.
25082         (gimple_cond_set_lhs): Likewise.
25083         (gimple_cond_set_rhs): Likewise.
25084         (gimple_cond_set_true_label): Likewise.
25085         (gimple_cond_set_false_label): Likewise.
25086         (gimple_label_set_label): Likewise.
25087         (gimple_goto_set_dest): Likewise.
25088         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
25089         (gimple_debug_bind_get_value): Likewise.
25090         (gimple_debug_bind_get_value_ptr): Likewise.
25091         (gimple_debug_bind_set_var): Likewise.
25092         (gimple_debug_bind_set_value): Likewise.
25093         (gimple_debug_bind_reset_value): Likewise.
25094         (gimple_debug_bind_has_value_p): Likewise.
25095         (gimple_return_retval_ptr): Remove gcc_assert.
25096         (gimple_return_retval): Likewise.
25097         (gimple_return_set_retval): Likewise.
25098         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
25099         (safe_referenced_var_iterator): Remove.
25100         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
25101         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
25102         (fill_referenced_var_vec): Remove.
25103         (first_readonly_imm_use): Remove redundant gcc_assert.
25104         (phi_arg_index_from_use): Combine gcc_asserts.
25105         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
25106         (first_imm_use_stmt): Remove redundant gcc_assert.
25107         * tree-cfg.c (verify_gimple_call): Verify function and chain
25108         operands.  Verify arguments.
25109         (verify_types_in_gimple_stmt): Verify condition code and labels.
25111 2010-01-07  Richard Guenther  <rguenther@suse.de>
25113         PR tree-optimization/42641
25114         * sese.c (rename_map_elt_info): Use the SSA name version, do
25115         not hash pointers.
25117 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
25119         PR tree-optimization/42625
25120         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
25121         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
25123 2010-01-07  Duncan Sands  <baldrick@free.fr>
25125         * Makefile.in (PLUGIN_HEADERS): Add version.h.
25127 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
25129         PR target/42511
25130         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
25131         note itself is not function_invariant_p.
25133 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
25135         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
25136         Do not add the DF_NOTE problem.
25137         * store-motion.c (execute_rtl_store_motion): Likewise.
25139 2010-01-07  Martin Jambor  <mjambor@suse.cz>
25141         PR tree-optimization/42157
25142         * tree-sra.c (compare_access_positions): Stabilize sort if both
25143         accesses have integer types, return zero immediately if they are the
25144         same.
25146 2010-01-06  Richard Henderson  <rth@redhat.com>
25148         PR middle-end/41883
25149         * haifa-sched.c (add_to_note_list): Merge into ...
25150         (concat_note_lists): ... here, and ...
25151         (unlink_other_notes, rm_other_notes): Merge into...
25152         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
25153         NOTE_INSN_EPILOGUE_BEG.
25155 2010-01-06  Richard Guenther  <rguenther@suse.de>
25157         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
25158         not inline regular functions into always-inline functions.
25160 2010-01-06  Nick Clifton  <nickc@redhat.com>
25162         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
25163         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
25164         used together.
25165         (OVERRIDE_OPTIONS): Delete.
25166         (OPTIMIZATION_OPTIONS): Define.
25167         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
25168         * config/rx/rx.c (rx_handle_option): Issue an error message if
25169         -mcpu=rx200 and -fpu are used together.
25170         (rx_set_optimization_options): New function.  Issue an error
25171         message if an optimization attribute attempts to reset the FPU/
25172         math optimization pairing.
25173         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
25174         * config/rx/rx.opt: Set the default to 32-bit doubles.
25175         * config/rx/t-rx: Add multilibs for -nofpu option.
25176         * doc/invoke.texi: Update documentation of RX options.
25178 2010-01-06  Richard Guenther  <rguenther@suse.de>
25180         * tree-ssa-pre.c (name_to_id): New global.
25181         (alloc_expression_id): Simplify SSA name handling.
25182         (lookup_expression_id): Likewise.
25183         (init_pre): Zero name_to_id.
25184         (fini_pre): Free it.
25186 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
25188         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
25190 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25192         PR target/42542
25193         * config/i386/sse.md (smaxv2di3): New.
25194         (umaxv2di3): Likewise.
25195         (sminv2di3): Likewise.
25196         (uminv2di3): Likewise.
25198 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
25200         PR target/42564
25201         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
25202         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
25203         (legitimize_tls_address): Likewise.
25204         (sparc_tls_referenced_p): Likewise.
25205         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
25206         and adjust calls to legitimize_pic_address.
25207         (legitimate_constant_p) Use sparc_tls_referenced_p.
25208         (legitimate_pic_operand_p): Likewise.
25209         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
25210         (sparc_tls_symbol_ref_1): Delete.
25211         (sparc_tls_referenced_p): Make static, recognize specific patterns.
25212         (legitimize_tls_address): Make static, handle CONST patterns.
25213         (legitimize_pic_address): Make static, remove unused parameter and
25214         adjust recursive calls.
25215         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
25216         and adjust call to legitimize_pic_address.
25217         (sparc_output_mi_thunk): Likewise.
25219 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
25220             H.J. Lu  <hongjiu.lu@intel.com>
25222         PR target/42542
25223         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
25224         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
25225         operands to make them signed.
25227         Revert:
25228         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25230         PR target/42542
25231         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25232         GTU to GT for V4SI and V2DI.
25234         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25235         (umin<mode>3): Removed.
25236         (uminv8hi3): New.
25237         (uminv4si3): Likewise.
25239 2010-01-05  Martin Jambor  <mjambor@suse.cz>
25241         PR tree-optimization/42462
25242         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
25243         current_function_decl to helper functions and macros.
25245 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25247         PR bootstrap/41771
25248         * flags.h: Don't include real.h.
25249         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
25250         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
25251         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
25252         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
25253         * dominance.c: Update copyright.
25254         * gimple.c (walk_gimple_op): Remove inline.
25255         * tree-ssa-reassoc.c: Include real.h.
25256         * Makefile.in (FLAGS_H): Remove $(REAL_H).
25257         (tree-ssa-reassoc.o): Depend on $(REAL_H).
25259 2010-01-05  Nick Clifton  <nickc@redhat.com>
25261         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
25262         register to push into the stack frame when the accumulator has to
25263         be saved during interrupts.
25265 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
25267         * doc/invoke.texi: Remove the documentation about option
25268         -Wunreachable-code.
25269         * common.opt (Wunreachable-code):  Preserved for backward
25270         compatibility.
25271         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
25272         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
25273         the backward compatibility flag section.
25275 2010-01-05  Richard Guenther  <rguenther@suse.de>
25277         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
25279 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
25281         PR other/42611
25282         * cfgexpand.c (expand_one_var): Diagnose too large variables.
25284         PR tree-optimization/42508
25285         * tree-sra.c (convert_callers): Check for recursive call
25286         by comparing cgraph nodes instead of decls.
25287         (modify_function): Call ipa_modify_formal_parameters also
25288         on all same_body aliases.
25290         * cgraphunit.c (cgraph_materialize_all_clones): Compare
25291         cgraph nodes when checking for same_body aliases.
25293 2010-01-05  Richard Guenther  <rguenther@suse.de>
25295         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
25296         allocation and lookup.
25297         (get_or_alloc_expr_for_constant): Likewise.
25298         (phi_translate): Sink allocation.
25300 2010-01-04  Richard Guenther  <rguenther@suse.de>
25302         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
25303         a new entry only if needed.
25304         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
25305         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
25306         hashtable lookup.
25307         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
25308         the result array.
25309         (phi_translate): Handle CONSTANTs early.
25311 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25313         PR tree-optimization/42398
25314         * tree-sra.c (struct access): Removed flag grp_different_types.
25315         (dump_access): Do not dump the removed flag.
25316         (sort_and_splice_var_accesses): Do not set the removed flag.
25317         (sra_modify_expr): Check for type compatibility directly.
25319 2010-01-04  Martin Jambor  <mjambor@suse.cz>
25321         PR tree-optimization/42366
25322         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
25323         edges with variable number of parameters.
25324         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
25325         flag instead of asserting it.
25326         (ipa_read_node_info): Read uses_analysis_done flag.
25328 2010-01-04  Richard Guenther  <rguenther@suse.de>
25330         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
25331         iterative_hash_* as intended.
25332         (vn_reference_compute_hash): Likewise.  Simplify hashing
25333         SSA names.
25334         (vn_reference_lookup_2): Likewise.
25335         (vn_nary_op_compute_hash): Likewise.
25336         (vn_phi_compute_hash): Likewise.
25337         (expressions_equal_p): Remove strange code.
25338         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
25339         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
25340         (bitmap_insert_into_set_1): Take value-id as parameter.
25341         (add_to_value): Pass it.
25342         (bitmap_insert_into_set): Likewise.
25343         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
25345 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
25347         PR driver/42442
25348         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
25349         (do_self_spec): For switches with SWITCH_IGNORE set set also
25350         SWITCH_IGNORE_PERMANENTLY.
25351         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
25352         of SWITCH_IGNORE.
25354 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
25356         * lto-streamer-out.c (output_unreferenced_globals): Output the full
25357         tree of an unreferenced global var.
25359 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25361         PR target/42542
25362         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
25363         GTU to GT for V4SI and V2DI.
25365         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
25366         (umin<mode>3): Removed.
25367         (uminv8hi3): New.
25368         (uminv4si3): Likewise.
25370 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
25372         PR lto/42581
25373         * collect2.c (main): Turn on trace in collect2 if -v is passed
25374         to gcc with LTO.
25376 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
25378         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
25379         description of expression operand.
25381 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
25383         * configure.ac: Add install-html to target_list for Make-hooks.
25384         * configure: Regenerate.
25385         * fortran/Make-lang.in (F95_HTMLFILES): New.
25386         (fortran.html): Use it.
25387         (fortran.install-html): New.
25388         * Makefile.in (install-html): Add lang.install-html.
25389         * java/Make-lang.in (JAVA_HTMLFILES): New.
25390         (java.html): Use it.
25391         (java.install-html): New.
25392         * objc/Make-lang.in (objc.install-html): New.
25393         * objcp/Make-lang.in (obj-c++.install-html): New.
25394         * cp/Make-lang.in (c++.install-html): New.
25395         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
25396         * lto/Make-lang.in (lto.install-html): New.
25398 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25400         PR lto/42520
25401         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
25403 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
25405         PR rtl-optimization/41862
25406         * store-motion.c (store_killed_in_insn, compute_store_table,
25407         remove_reachable_equiv_notes, replace_store_insn,
25408         build_store_vectors): Ignore all DEBUG_INSNs.
25410 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25412         PR lto/41564
25413         * common.opt: Add dumpdir.
25415         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
25416         isn't specified.
25417         (option_map): Add --dumpdir.
25419         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
25421         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
25423         * opts.c (decode_options): Try dump_dir_name first if
25424         dump_base_name isn't an absolute path.
25425         (common_handle_option): Handle OPT_dumpdir.
25427         * toplev.c (dump_dir_name): New.
25428         (print_switch_values): Also ignore -dumpdir.
25430         * toplev.h (dump_dir_name): New.
25432 2010-01-03  Richard Guenther  <rguenther@suse.de>
25434         PR tree-optimization/42589
25435         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
25436         double-word expansion of bswap32.
25438 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
25440         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
25441         with BLOCK_FOR_INSN.
25442         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
25443         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
25444         noce_process_if_block): Likewise.
25445         * gcse.c (compute_local_properties, insert_expr_in_table,
25446         insert_set_in_table, canon_list_insert, find_avail_set,
25447         pre_insert_copy_insn): Likewise.
25449         * basic-block.h (BLOCK_NUM): Move from here...
25450         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
25452 2010-01-03  Richard Guenther  <rguenther@suse.de>
25454         PR tree-optimization/42438
25455         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
25456         contains_may_not_return_call flag.
25457         (BB_MAY_NOTRETURN): New.
25458         (valid_in_sets): Trapping nary operations are not valid
25459         in blocks that may not return.
25460         (insert_into_preds_of_block): Remove check for trapping expressions.
25461         (compute_avail): Compute also BB_MAY_NOTRETURN.
25463 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
25465         * doc/invoke.texi: Add 2010 to copyright years.
25467 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
25469         * config/sparc/sparc.c: Fix formatting nits.
25471 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
25472             Alexander Monakov  <amonakov@ispras.ru>
25474         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
25476 2010-01-02  Richard Guenther  <rguenther@suse.de>
25478         PR middle-end/42577
25479         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
25480         (simplify_switch_using_ranges): Mark to be removed edges
25481         as non-executable.
25483 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25485         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
25487         * collect2.c (scan_libraries): Add missing argument in call to
25488         scan_prog_file.
25490 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
25492         PR target/42448
25493         * config/alpha/predicates.md (aligned_memory_operand): Return false
25494         for CQImode.
25495         (unaligned_memory_operand): Return true for CQImode.
25496         * config/alpha/alpha.c (get_aligned_mem): Assert that location
25497         doesn not cross aligned SImode word boundary.
25499 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
25501         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
25502         Remove.
25503         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
25504         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
25506 2010-01-02  Richard Guenther  <rguenther@suse.de>
25508         PR lto/41597
25509         * toplev.c (compile_file): Emit LTO marker properly.  Change
25510         it to __gnu_lto_v1.
25511         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
25513 2010-01-01  Richard Guenther  <rguenther@suse.de>
25515         PR debug/42455
25516         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
25518 2010-01-01  Richard Guenther  <rguenther@suse.de>
25520         PR c/42570
25521         * c-decl.c (grokdeclarator): For zero-size arrays force
25522         structural equality checks as layout_type does.
25524 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
25526         * builtins.c: Update copyright to 2010.
25528 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
25530         PR lto/42531
25531         * lto-streamer-out.c (produce_asm): Revert the last change.
25532         (copy_function): Likewise.
25534         * lto-streamer.c (lto_get_section_name): Skip any leading
25535         asterisk in name.
25537 2010-01-01  Richard Guenther  <rguenther@suse.de>
25539         PR middle-end/42559
25540         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
25541         for LABEL_DECLs.
25544 Copyright (C) 2010 Free Software Foundation, Inc.
25546 Copying and distribution of this file, with or without modification,
25547 are permitted in any medium without royalty provided the copyright
25548 notice and this notice are preserved.